/* Ctrl+Shift microsite v2 · Safaricom DIRA-PRO design system
 * Tokens: brand_design.md (semantic roles, Light + Dark). Sections: website_design.md.
 * Icons: Iconsax Linear (icons_design.md), served from icons.svg.
 */
@font-face { font-family: "Proxima Nova"; src: local("Proxima Nova Regular"), local("ProximaNova-Regular"); font-weight: 400; }
@font-face { font-family: "Proxima Nova"; src: local("Proxima Nova Semibold"), local("ProximaNova-Semibold"); font-weight: 600; }
@font-face { font-family: "Proxima Nova"; src: local("Proxima Nova Bold"), local("ProximaNova-Bold"); font-weight: 700; }

:root {
  color-scheme: light;
  /* text */
  --text-primary: #181D27; --text-secondary: #414651; --text-tertiary: #535862; --text-quaternary: #717680;
  --text-placeholder: #717680; --text-white: #FFFFFF;
  --text-primary_on-brand: #FFFFFF; --text-secondary_on-brand: #A8DAAA;
  --text-brand-primary: #35A839; --text-brand-secondary: #267728; --text-brand-tertiary: #2D8F30;
  --text-error-primary: #D92D20; --text-success-primary: #079455; --text-warning-primary: #DC6803;
  /* background */
  --bg-primary: #FFFFFF; --bg-primary_hover: #FAFAFA; --bg-secondary: #FAFAFA; --bg-secondary_hover: #F5F5F5;
  --bg-tertiary: #F5F5F5; --bg-quaternary: #E9EAEB;
  --bg-active: #35A839; --bg-brand-primary: #EBF6EB; --bg-brand-solid: #2D8F30; --bg-brand-solid_hover: #267728;
  --bg-brand-section: #1E6020; --bg-overlay: #0A0D12;
  --bg-success-primary: #ECFDF3; --bg-warning-primary: #FFFAEB;
  /* foreground */
  --fg-secondary: #414651; --fg-quaternary: #717680; --fg-brand-primary: #2D8F30; --fg-success-primary: #079455; --fg-warning-primary: #DC6803;
  /* border */
  --border-primary: #D5D7DA; --border-secondary: #E9EAEB; --border-brand: #35A839; --border-error: #F04438;
  /* proposed in brand_design.md §1.9 */
  --bg-brand-subtle: #EBF6EB;

  /* radius */
  --radius-sm: 6px; --radius-md: 8px; --radius-lg: 10px; --radius-xl: 12px; --radius-2xl: 16px; --radius-full: 9999px;
  /* shadow */
  --shadow-xs: 0 1px 2px 0 #0A0D120D;
  --shadow-sm: 0 1px 3px 0 #0A0D121A, 0 1px 2px -1px #0A0D121A;
  --shadow-md: 0 4px 6px -1px #0A0D121A, 0 2px 4px -2px #0A0D120F;
  --shadow-lg: 0 12px 16px -4px #0A0D1214, 0 4px 6px -2px #0A0D1208;
  --shadow-xl: 0 20px 24px -4px #0A0D1214, 0 8px 8px -4px #0A0D1208;
  --focus-ring: 0 0 0 2px #FFFFFF, 0 0 0 6px #35A839;

  --font: "Proxima Nova", "proxima-nova", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --container: 1280px;
  --pad-x: 32px;
  --sec-y: 96px;
  --head-gap: 64px;
  --zoom: 1;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --text-primary: #F7F7F7; --text-secondary: #CECFD2; --text-tertiary: #94979C; --text-quaternary: #94979C;
    --text-placeholder: #85888E;
    --text-primary_on-brand: #F7F7F7; --text-secondary_on-brand: #CECFD2;
    --text-brand-primary: #2D8F30; --text-brand-secondary: #CECFD2; --text-brand-tertiary: #94979C;
    --text-error-primary: #F97066; --text-success-primary: #47CD89; --text-warning-primary: #FDB022;
    --bg-primary: #0C0E12; --bg-primary_hover: #22262F; --bg-secondary: #13161B; --bg-secondary_hover: #22262F;
    --bg-tertiary: #22262F; --bg-quaternary: #373A41;
    --bg-active: #2D8F30; --bg-brand-primary: #35A839; --bg-brand-solid: #2D8F30; --bg-brand-solid_hover: #35A839;
    --bg-brand-section: #13161B; --bg-overlay: #22262F;
    --bg-success-primary: #17B26A; --bg-warning-primary: #F79009;
    --fg-secondary: #CECFD2; --fg-quaternary: #94979C; --fg-brand-primary: #35A839; --fg-success-primary: #17B26A; --fg-warning-primary: #F79009;
    --border-primary: #373A41; --border-secondary: #22262F; --border-brand: #59B85D; --border-error: #F97066;
    --bg-brand-subtle: #184C1A;
    --focus-ring: 0 0 0 2px #0C0E12, 0 0 0 6px #35A839;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; font-size: calc(100% * var(--zoom)); }
body { margin: 0; background: var(--bg-primary); color: var(--text-primary); font: 400 1rem/1.5rem var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
.contents { display: contents; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--bg-active); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- type scale ---------- */
.d-xl { font-size: 3.75rem; line-height: 4.5rem; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.d-lg { font-size: 3rem; line-height: 3.75rem; font-weight: 600; letter-spacing: -.02em; }
.d-md { font-size: 2.25rem; line-height: 2.75rem; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow { font-size: 1rem; line-height: 1.5rem; font-weight: 600; color: var(--text-brand-secondary); }
.sub, .lead { font-size: 1.25rem; line-height: 1.875rem; color: var(--text-tertiary); max-width: 720px; text-wrap: pretty; }
.sec-head .d-md { margin-top: 12px; }
.sec-head .sub { margin-top: 20px; }
.brand-card .d-md, .split-copy .d-md { margin-top: 12px; }
.brand-card .sub, .split-copy .sub { margin-top: 16px; }

/* ---------- icons ---------- */
/* Two-colour Linear: main stroke Safaricom green, accent stroke Safaricom Red (brand accent, not error). */
.ic { width: 24px; height: 24px; flex: none; color: var(--fg-brand-primary); --ic-accent: var(--ic-red); }
:root { --ic-red: #E4002B; }
:root[data-theme="dark"] { --ic-red: #FF5978; }
/* On coloured fills and for status, icons go single-colour. */
.play-dot .ic, .a11y-trigger .ic, .banner .ic, .btn-primary .ic, .f-icon--success .ic { color: inherit; --ic-accent: currentColor; }
.ic-sm { width: 20px; height: 20px; }
.f-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--bg-brand-subtle); color: var(--fg-brand-primary); flex: none; }
.f-icon--success { background: var(--bg-success-primary); color: var(--fg-success-primary); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 16px; border-radius: var(--radius-md); border: 1px solid transparent;
  font: 600 1rem/1.5rem var(--font); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 48px; padding: 12px 20px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--bg-brand-solid); color: var(--text-white); border-color: var(--bg-brand-solid); box-shadow: var(--shadow-xs); }
.btn-primary:hover { background: var(--bg-brand-solid_hover); border-color: var(--bg-brand-solid_hover); }
.btn-secondary { background: var(--bg-primary); color: var(--text-secondary); border-color: var(--border-primary); box-shadow: var(--shadow-xs); }
.btn-secondary:hover { background: var(--bg-primary_hover); color: var(--text-primary); }
.btn[disabled] { opacity: .6; cursor: progress; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--fg-secondary); cursor: pointer; }
.icon-btn:hover { background: var(--bg-primary_hover); }
.icon-btn--on-brand { color: var(--text-primary_on-brand); }
.icon-btn--on-brand:hover { background: rgba(255,255,255,.15); }

/* ---------- banner (slim, brand) ---------- */
.banner { background: var(--bg-brand-section); color: var(--text-primary_on-brand); }
.banner-in { display: flex; align-items: center; gap: 12px; min-height: 52px; justify-content: center; }
.banner p { font-size: 1rem; }
.banner p span { color: var(--text-secondary_on-brand); }
.banner-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-underline-offset: 3px; }
.banner .icon-btn { margin-left: auto; }

/* ---------- header nav ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bg-primary); border-bottom: 1px solid var(--border-secondary); }
.top-in { display: flex; align-items: center; gap: 32px; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-right: auto; }
.brand-key { height: 40px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { font-weight: 600; color: var(--text-secondary); text-decoration: none; padding: 10px 12px; border-radius: var(--radius-md); }
.nav a:hover { background: var(--bg-primary_hover); color: var(--text-primary); }
.nav a.is-active { color: var(--text-brand-secondary); background: var(--bg-brand-subtle); }
.menu-btn { display: none; width: 40px; height: 40px; }
.menu-btn .ic-close, .menu-btn[aria-expanded="true"] .ic-open { display: none; }
.menu-btn[aria-expanded="true"] .ic-close { display: block; }
.mnav { display: grid; gap: 4px; padding: 8px 16px 24px; border-top: 1px solid var(--border-secondary); background: var(--bg-primary); }
.mnav a:not(.btn) { font-weight: 600; font-size: 1.125rem; padding: 12px 8px; border-radius: var(--radius-md); text-decoration: none; }
.mnav a:not(.btn):hover { background: var(--bg-primary_hover); }
.mnav .btn { margin-top: 12px; }

/* ---------- sections ---------- */
.sec { padding: var(--sec-y) 0; }
.sec--alt { background: var(--bg-secondary); }
.sec--tight { padding: 0; }
.sec-head { margin-bottom: var(--head-gap); max-width: 768px; }
.sec-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.sec-head--split { display: flex; justify-content: space-between; align-items: end; gap: 32px; max-width: none; }
.divider { border: 0; height: 1px; background: var(--border-secondary); background-clip: content-box; margin: 0 auto; }

/* ---------- hero (split image) ---------- */
.hero { padding: 96px 0; background: var(--bg-primary); }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.badge-group { display: inline-flex; align-items: center; gap: 12px; padding: 4px 12px 4px 4px; border-radius: var(--radius-full); background: var(--bg-brand-primary); color: var(--text-brand-secondary); font-size: .875rem; line-height: 1.25rem; font-weight: 600; border: 1px solid var(--border-secondary); }
:root[data-theme="dark"] .badge-group { background: var(--bg-brand-subtle); color: var(--text-primary); }
.badge { background: var(--bg-primary); color: var(--text-brand-secondary); border-radius: var(--radius-full); padding: 2px 10px; box-shadow: var(--shadow-xs); }
.hero .d-xl { margin-top: 16px; }
.hero .lead { margin-top: 24px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 48px; }
.proof { display: flex; align-items: center; gap: 8px; margin-top: 32px; color: var(--text-tertiary); font-weight: 600; }
.proof .ic { color: var(--fg-brand-primary); }

.film { margin: 0; }
.film-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-2xl); overflow: hidden; background: var(--bg-tertiary); box-shadow: var(--shadow-xl); border: 1px solid var(--border-secondary); }
.film-frame video { width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; border: 0; cursor: pointer; background: linear-gradient(180deg, transparent 45%, rgba(10,13,18,.45)); border-radius: 0; }
.film-play.is-gone { display: none; }
.play-dot { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-full); background: var(--bg-brand-solid); color: #fff; box-shadow: var(--shadow-lg); transition: transform .2s; }
.play-dot .ic { width: 32px; height: 32px; }
.film-play:hover .play-dot { transform: scale(1.06); }
.film-len { font-size: .875rem; font-weight: 600; color: #fff; background: rgba(10,13,18,.6); padding: 4px 12px; border-radius: var(--radius-full); }

/* ---------- metrics (card gray light) ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 32px; }
.stat { background: var(--bg-secondary); border-radius: var(--radius-xl); padding: 32px 24px; display: flex; flex-direction: column; gap: 12px; }
.stat b { font-size: 3.75rem; line-height: 4.5rem; font-weight: 600; letter-spacing: -.02em; color: var(--text-brand-tertiary); }
.stat span { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; color: var(--text-primary); }
.stat small { font-size: 1rem; color: var(--text-tertiary); }
:root[data-theme="dark"] .stat b { color: var(--fg-brand-primary); }

/* ---------- features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 32px; }
.feature { display: flex; flex-direction: column; gap: 20px; }
.feature h3 { font-size: 1.25rem; line-height: 1.875rem; font-weight: 600; margin-bottom: -12px; }
.feature p { color: var(--text-tertiary); }
.values { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--border-secondary); display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 32px; }
.values li { display: flex; gap: 12px; color: var(--text-tertiary); }
.values b { color: var(--text-primary); font-weight: 600; }
.values .ic, .checks-list .ic { color: var(--fg-brand-primary); margin-top: 2px; }

.cards4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.icard { background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); padding: 24px; box-shadow: var(--shadow-xs); display: flex; flex-direction: column; gap: 12px; }
.icard h3 { font-size: 1.25rem; line-height: 1.875rem; font-weight: 600; margin-top: 12px; }
.icard > p { color: var(--text-tertiary); }
.icard ul { margin-top: 8px; padding-top: 16px; border-top: 1px solid var(--border-secondary); display: grid; gap: 8px; }
.icard li { font-size: .875rem; line-height: 1.25rem; color: var(--text-secondary); padding-left: 16px; position: relative; }
.icard li::before { content: ""; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--bg-active); }

/* ---------- what's on (careers · card) ---------- */
.events-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.events { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.event { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "body meta" "when when"; gap: 12px 24px; padding: 24px; border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); background: var(--bg-primary); box-shadow: var(--shadow-xs); }
.event > div:first-of-type { grid-area: body; }
.event h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.event p:not(.event-when) { color: var(--text-tertiary); margin-top: 4px; }
.event-when { grid-area: when; display: inline-flex; align-items: center; gap: 8px; color: var(--text-tertiary); font-weight: 600; font-size: .875rem; }
.event-when .ic { width: 20px; height: 20px; }
.event-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 8px; border-radius: var(--radius-full); font-size: .875rem; line-height: 1.25rem; font-weight: 600; border: 1px solid; white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--live, .pill--confirmed { color: var(--text-success-primary); background: var(--bg-success-primary); border-color: color-mix(in srgb, var(--text-success-primary) 30%, transparent); }
.pill--tbc { color: var(--text-warning-primary); background: var(--bg-warning-primary); border-color: color-mix(in srgb, var(--text-warning-primary) 30%, transparent); }
.pill--planning { color: var(--text-secondary); background: var(--bg-secondary); border-color: var(--border-secondary); }
:root[data-theme="dark"] :is(.pill--live, .pill--confirmed, .pill--tbc) { background: transparent; }
.tag { font-size: .75rem; line-height: 1.125rem; font-weight: 600; color: var(--text-tertiary); }
.ceo-call { position: sticky; top: 104px; background: var(--bg-secondary); border-radius: var(--radius-2xl); padding: 32px; }
.ceo-call h3 { font-size: 1.5rem; line-height: 2rem; font-weight: 600; margin: 8px 0 24px; }
.checks-list { display: grid; gap: 16px; }
.checks-list li { display: flex; gap: 12px; color: var(--text-tertiary); }

/* ---------- council (team · image top) ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-secondary); }
.chip { font: 600 1rem/1.5rem var(--font); color: var(--text-quaternary); background: transparent; border: 0; border-radius: var(--radius-md); padding: 10px 14px; min-height: 44px; cursor: pointer; }
.chip.is-on { background: var(--bg-primary); color: var(--text-secondary); box-shadow: var(--shadow-sm); }
.council { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 32px; }
.member { display: flex; flex-direction: column; }
.member .tape { display: none; }
.member img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-xl); background: var(--bg-tertiary); }
.m-name { order: 2; margin-top: 20px; font-size: 1.25rem; line-height: 1.875rem; font-weight: 600; }
.m-role { order: 3; font-size: 1rem; color: var(--text-brand-secondary); font-weight: 400; }
.m-role .lead { color: inherit; font-size: inherit; line-height: inherit; font-weight: 600; }
.m-nick { order: 4; margin-top: 8px; font-size: .875rem; color: var(--text-tertiary); }
.m-nick:not(:empty)::before { content: "aka "; }
.sponsors { margin-top: 64px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.sponsor { display: flex; gap: 16px; align-items: center; padding: 24px; border-radius: var(--radius-xl); background: var(--bg-secondary); }
.sponsor .key { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius-full); background: var(--bg-brand-subtle); color: var(--text-brand-secondary); font-size: 1.125rem; font-weight: 600; flex: none; }
.sponsor .label { font-size: .875rem; font-weight: 600; color: var(--text-brand-secondary); }
.sponsor b { display: block; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.sponsor span:not(.key) { color: var(--text-tertiary); }
:root[data-theme="dark"] :is(.sponsor .key, .sponsor .label, .m-role) { color: var(--text-secondary); }
:root[data-theme="dark"] .sponsor .key { color: var(--text-primary); }

/* ---------- newsletter (CTA card horizontal · brand) ---------- */
.brand-card { display: flex; justify-content: space-between; align-items: center; gap: 32px 64px; flex-wrap: wrap; padding: 64px; border-radius: var(--radius-2xl); background: var(--bg-brand-section); color: var(--text-primary_on-brand); }
.brand-card > div:first-child { max-width: 640px; }
.brand-card .sub { color: var(--text-secondary_on-brand); }
.brand-card .actions { margin-top: 0; }
.eyebrow--on-brand { color: var(--text-secondary_on-brand); }

/* ---------- split (join, speak up) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.split-copy .checks-list { margin-top: 40px; }
.contact-items { display: grid; gap: 24px; margin-top: 40px; }
.contact-item { display: flex; gap: 16px; }
.contact-item b { display: block; font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.contact-item p { color: var(--text-tertiary); }

/* ---------- forms ---------- */
.card { background: var(--bg-primary); border: 1px solid var(--border-secondary); border-radius: var(--radius-2xl); padding: 32px; box-shadow: var(--shadow-lg); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label, legend { font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--text-secondary); }
legend { padding: 0; margin-bottom: 6px; }
.opt { font-weight: 400; color: var(--text-tertiary); }
input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; font: 400 1rem/1.5rem var(--font); color: var(--text-primary);
  background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-xs);
  appearance: none; -webkit-appearance: none;
}
::placeholder { color: var(--text-placeholder); }
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' viewBox='0 0 24 24'%3E%3Cpath stroke='%23717680' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' d='M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px; }
textarea { resize: vertical; min-height: 128px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--border-brand); box-shadow: var(--shadow-xs), 0 0 0 4px color-mix(in srgb, #35A839 24%, transparent); }
[aria-invalid="true"] { border-color: var(--border-error) !important; box-shadow: 0 0 0 4px color-mix(in srgb, #F04438 20%, transparent) !important; }
.count { font-size: .875rem; color: var(--text-tertiary); text-align: right; }
.hint { font-size: .875rem; line-height: 1.25rem; color: var(--text-tertiary); }

.checkgrid, .seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cbox, .seg label { position: relative; cursor: pointer; }
.cbox input, .seg input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.cbox span, .seg span { display: grid; place-items: center; min-height: 44px; padding: 8px; text-align: center; font-size: .875rem; line-height: 1.25rem; font-weight: 600; color: var(--text-secondary); background: var(--bg-primary); border: 1px solid var(--border-primary); border-radius: var(--radius-md); box-shadow: var(--shadow-xs); }
.cbox input:checked + span, .seg input:checked + span { background: var(--bg-brand-subtle); border-color: var(--border-brand); color: var(--text-brand-secondary); box-shadow: 0 0 0 1px var(--border-brand); }
:root[data-theme="dark"] :is(.cbox input:checked + span, .seg input:checked + span) { color: var(--text-primary); }
.cbox input:focus-visible + span, .seg input:focus-visible + span { box-shadow: var(--focus-ring); }

.toggle { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.toggle input { appearance: none; -webkit-appearance: none; flex: none; width: 36px; height: 20px; margin: 2px 0 0; border-radius: var(--radius-full); background: var(--bg-quaternary); position: relative; cursor: pointer; transition: background .15s; }
.toggle input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .15s; }
.toggle input:checked { background: var(--bg-brand-solid); }
.toggle input:checked::after { transform: translateX(16px); }
.toggle input:focus-visible { box-shadow: var(--focus-ring); }

.form-err { display: flex; gap: 8px; color: var(--text-error-primary); font-size: .875rem; font-weight: 600; }
.form-err::before { content: "!"; display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: .75rem; }
.form-done { text-align: center; display: grid; justify-items: center; gap: 8px; padding: 16px 0; }
.done-h { font-size: 1.5rem; line-height: 2rem; font-weight: 600; margin-top: 8px; }
.form-done p:last-child { color: var(--text-tertiary); }
.form.is-done > :not(.form-done) { display: none; }

/* ---------- FAQ (accordion) ---------- */
.faq { max-width: 768px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border-secondary); }
.faq-item:first-child { border-top: 1px solid var(--border-secondary); }
.faq-item h3 { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; }
.faq-item button { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; background: none; border: 0; font: inherit; color: var(--text-primary); text-align: left; cursor: pointer; }
.faq-item button .ic { transition: transform .2s; }
.faq-item button[aria-expanded="true"] .ic { transform: rotate(180deg); }
.faq-a { padding: 0 48px 24px 0; color: var(--text-tertiary); }

/* ---------- footer (small) ---------- */
.foot { border-top: 1px solid var(--border-secondary); padding: 64px 0 48px; }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-brand p { margin-top: 16px; color: var(--text-tertiary); }
.foot-logo { height: 40px; width: auto; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: start; }
.foot-links a { font-weight: 600; color: var(--text-tertiary); text-decoration: none; }
.foot-links a:hover { color: var(--text-primary); }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border-secondary); color: var(--text-quaternary); font-size: 1rem; }
.credit { font-size: .875rem; color: var(--text-tertiary); }
kbd { font: 600 .75rem/1 var(--font); border: 1px solid var(--border-primary); border-bottom-width: 2px; border-radius: var(--radius-sm); padding: 2px 6px; background: var(--bg-secondary); color: var(--text-secondary); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: var(--radius-xl); background: var(--bg-primary); color: var(--text-primary); border: 1px solid var(--border-secondary); box-shadow: var(--shadow-lg); font-weight: 600; }
.toast b { color: var(--text-brand-secondary); }

/* ---------- accessibility controls ---------- */
.a11y-trigger { position: fixed; right: 16px; bottom: 16px; z-index: 70; width: 46px; height: 46px; display: grid; place-items: center; border-radius: var(--radius-full); border: 0; background: var(--bg-brand-solid); color: #fff; box-shadow: var(--shadow-lg); cursor: pointer; }
.a11y-scrim { position: fixed; inset: 0; z-index: 88; background: color-mix(in srgb, var(--bg-overlay) 60%, transparent); backdrop-filter: blur(8px); }
.a11y { position: fixed; right: 16px; bottom: 16px; z-index: 90; width: min(440px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; background: var(--bg-primary); border-radius: var(--radius-2xl); box-shadow: var(--shadow-xl); padding: 24px; display: grid; gap: 16px; }
.a11y-head { display: flex; justify-content: space-between; align-items: center; }
.a11y-head h2 { font-size: 1.25rem; line-height: 1.875rem; font-weight: 600; }
.a11y-zoom { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-radius: var(--radius-xl); background: var(--bg-secondary); font-weight: 600; }
.a11y-zoom > span { display: inline-flex; gap: 10px; align-items: center; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper output { min-width: 52px; text-align: center; font-weight: 600; }
.theme-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-secondary); }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-quaternary); font: 600 .875rem/1.25rem var(--font); cursor: pointer; }
.theme-seg button[aria-checked="true"] { background: var(--bg-brand-subtle); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-brand); }
.a11y-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.a11y-tile { display: grid; justify-items: center; align-content: center; gap: 8px; min-height: 96px; padding: 12px 8px; border: 1px solid var(--border-secondary); border-radius: var(--radius-xl); background: var(--bg-primary); color: var(--text-secondary); font: 600 .875rem/1.25rem var(--font); cursor: pointer; text-align: center; }
.a11y-tile:hover { background: var(--bg-primary_hover); }
.a11y-tile[aria-pressed="true"] { border-color: var(--border-brand); background: var(--bg-brand-subtle); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-brand); }
.reading-guide { display: none; position: fixed; left: 0; right: 0; height: 12px; z-index: 85; pointer-events: none; background: color-mix(in srgb, var(--bg-active) 35%, transparent); border-block: 2px solid var(--bg-active); }

/* a11y modes */
/* Contrast is a token swap, not a filter: a filter on <body> re-anchors every fixed element (header, panel, toggle). */
:root.a-contrast { --text-secondary: var(--text-primary); --text-tertiary: var(--text-primary); --text-quaternary: var(--text-primary); --text-placeholder: var(--text-primary);
  --border-secondary: var(--fg-quaternary); --border-primary: var(--fg-quaternary); --text-secondary_on-brand: var(--text-primary_on-brand); }
:root.a-contrast .btn-primary { background: var(--bg-brand-section); border-color: var(--bg-brand-section); }
html.a-links a:not(.btn):not(.vswitch a) { text-decoration: underline 2px !important; text-underline-offset: 3px; background: color-mix(in srgb, #FDB022 30%, transparent); }
html.a-spacing body { letter-spacing: .06em; word-spacing: .16em; }
html.a-lineheight p, html.a-lineheight li { line-height: 2 !important; }
html.a-weight body { font-weight: 600; }
html.a-motion *, html.a-motion *::before, html.a-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.a-guide .reading-guide { display: block; }
html.a-noimg main img, html.a-noimg video { visibility: hidden; }
/* Greyscale only the page content, never an ancestor of fixed UI. */
html.a-saturation :is(.banner, .top, main, .foot) { filter: grayscale(1); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .cards4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .council { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1024px) {
  .hero-in, .split, .events-wrap { grid-template-columns: minmax(0, 1fr); }
  .ceo-call { position: static; }
}
@media (max-width: 767px) {
  :root { --pad-x: 16px; --sec-y: 64px; --head-gap: 48px; }
  .top-in { height: 72px; gap: 12px; }
  .top-cta, .hide-sm { display: none; }
  .brand-key { height: 34px; }
  .hero { padding: 48px 0 64px; }
  .d-xl { font-size: 2.25rem; line-height: 2.75rem; }
  .d-md { font-size: 1.875rem; line-height: 2.375rem; letter-spacing: 0; }
  .sub, .lead { font-size: 1.125rem; line-height: 1.75rem; }
  .actions { margin-top: 32px; }
  .actions .btn { flex: 1 1 auto; }
  .features, .values, .cards4, .sponsors { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: 16px; }
  .stat { padding: 24px 16px; } .stat b { font-size: 2.25rem; line-height: 2.75rem; } .stat span { font-size: 1rem; line-height: 1.5rem; }
  .council { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .m-name { font-size: 1.125rem; line-height: 1.75rem; margin-top: 12px; }
  .sec-head--split { flex-direction: column; align-items: start; }
  .event { grid-template-columns: minmax(0, 1fr); grid-template-areas: "meta" "body" "when"; }
  .event-meta { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .brand-card { padding: 32px 24px; }
  .card { padding: 24px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .checkgrid, .seg { grid-template-columns: 1fr 1fr; }
  .theme-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--radius-lg); background: var(--bg-secondary); border: 1px solid var(--border-secondary); }
.theme-seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; border-radius: var(--radius-md); background: transparent; color: var(--text-quaternary); font: 600 .875rem/1.25rem var(--font); cursor: pointer; }
.theme-seg button[aria-checked="true"] { background: var(--bg-brand-subtle); color: var(--text-primary); box-shadow: 0 0 0 1px var(--border-brand); }
.a11y-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
