/* DTTT Meet. One layout, six brands. Each brand block maps its design system's tokens
   onto the shared variables; components only ever read the shared variables. */

/* ---------- Licensed brand faces (self-hosted) ---------- */
@font-face { font-family: 'Effra'; src: url('/fonts/effra-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Effra'; src: url('/fonts/effra-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Effra'; src: url('/fonts/effra-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Effra'; src: url('/fonts/effra-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/fonts/proxima-nova-300.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/fonts/proxima-nova-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/fonts/proxima-nova-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Proxima Nova'; src: url('/fonts/proxima-nova-800.woff2') format('woff2'); font-weight: 800; font-display: swap; }

/* ---------- DTTT house (default) ---------- */
:root, body[data-brand="dttt"] {
  --bg: #F6F4EF;
  --surface: #FFFFFF;
  --surface-sunken: #F7F8FA;
  --ink: #0F2044;
  --heading: #0F2044;
  --ink-soft: #4A5568;
  --ink-muted: #8A94A6;
  --hair: #E2E6EF;
  --hair-strong: #D5DAE6;
  --accent: #00857C;
  --on-accent: #FFFFFF;
  --accent-text: #006B63;
  --accent-soft: #E6F3F2;
  --select: #0F2044;
  --on-select: #FFFFFF;
  --btn: #0F2044;
  --btn-ink: #FFFFFF;
  --btn-hover: #1A3060;
  --error: #9B1C1C;
  --error-soft: #FEF2F2;

  --font-head: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', system-ui, sans-serif;
  --font-label: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --head-weight: 600;
  --head-tracking: -0.02em;
  --head-lh: 1.1;
  --title-size: clamp(34px, 5vw, 52px);
  --body-weight: 400;
  --lead-weight: 300;
  --label-size: 12px;
  --label-weight: 500;
  --label-tracking: 0.12em;
  --label-colour: #006B63;
  --meta-colour: #8A94A6;

  --radius-card: 4px;
  --radius-ctl: 3px;
  --radius-btn: 3px;
  --radius-slot: 3px;
  --card-shadow: 0 1px 2px rgba(15, 32, 68, 0.04);
  --maxw: 1120px;

  --header-bg: rgba(15, 32, 68, 0.97);
  --header-ink: #FFFFFF;
  --header-border: transparent;
  --header-meta: rgba(255, 255, 255, 0.7);
  --focus: rgba(0, 133, 124, 0.6);
  --ease: 160ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- X. Design Week: dark first, one signal blue, Poppins over Proxima Nova, glow not shadow ---------- */
body[data-brand="xdw"] {
  --bg: #0A0E1A;
  --surface: #131E33;
  --surface-sunken: #0C1730;
  --ink: #FFFFFF;
  --heading: #FFFFFF;
  --ink-soft: rgba(255, 255, 255, 0.72);
  --ink-muted: #8794AB;
  --hair: rgba(208, 218, 235, 0.12);
  --hair-strong: rgba(208, 218, 235, 0.24);
  --accent: #33A5F7;
  --on-accent: #FFFFFF;
  --accent-text: #6CBDFA;
  --accent-soft: rgba(51, 165, 247, 0.12);
  --select: #33A5F7;
  --on-select: #FFFFFF;
  --btn: #33A5F7;
  --btn-ink: #FFFFFF;
  --btn-hover: #6CBDFA;
  --error: #FF8A8A;
  --error-soft: rgba(255, 138, 138, 0.10);

  --font-head: 'Poppins', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Proxima Nova', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-label: 'Poppins', -apple-system, sans-serif;
  --head-weight: 700;
  --head-tracking: -0.015em;
  --head-lh: 1.1;
  --title-size: clamp(2.4rem, 5.5vw, 4rem);
  --body-weight: 400;
  --lead-weight: 300;
  --label-size: 11.8px;
  --label-weight: 700;
  --label-tracking: 0.16em;
  --label-colour: #33A5F7;
  --meta-colour: #8794AB;

  --radius-card: 14px;
  --radius-ctl: 10px;
  --radius-btn: 10px;
  --radius-slot: 10px;
  --card-shadow: 0 0 20px rgba(51, 165, 247, 0.18);

  --header-bg: rgba(10, 14, 26, 0.96);
  --header-ink: #FFFFFF;
  --header-border: rgba(208, 218, 235, 0.12);
  --header-meta: #8794AB;
  --focus: rgba(51, 165, 247, 0.7);
  --ease: 200ms ease;
}
body[data-brand="xdw"] .booker { border-color: rgba(208, 218, 235, 0.12); }
body[data-brand="xdw"] .btn { font-family: var(--font-head); box-shadow: 0 0 20px rgba(51, 165, 247, 0.18); }
body[data-brand="xdw"] .btn:hover { box-shadow: 0 0 32px rgba(51, 165, 247, 0.28); }
body[data-brand="xdw"] .btn.secondary { box-shadow: inset 0 0 0 1px rgba(208, 218, 235, 0.24); }
body[data-brand="xdw"] .slot, body[data-brand="xdw"] .h2, body[data-brand="xdw"] .cal-head .month { font-family: var(--font-head); }
body[data-brand="xdw"] .facts svg { color: #33A5F7; }
body[data-brand="xdw"] .day.sel { box-shadow: 0 0 20px rgba(51, 165, 247, 0.35); }
body[data-brand="xdw"] .slot-row.sel .slot { background: #424F66; border-color: #424F66; color: #fff; }
.cobrand { display: block; width: 124px; color: #FFFFFF; }
.cobrand svg { display: block; width: 100%; height: auto; }

/* ---------- Future. Destination. Brand.: cream, ink and one purple ---------- */
body[data-brand="fdb"] {
  --bg: #F5F0E9;
  --surface: #F5F0E9;
  --surface-sunken: #EFE9E0;
  --ink: #1A1A1A;
  --heading: #1A1A1A;
  --ink-soft: #3A3A3A;
  --ink-muted: #7A7A7A;
  --hair: rgba(26, 26, 26, 0.10);
  --hair-strong: rgba(26, 26, 26, 0.18);
  --accent: #8239C1;
  --on-accent: #FFFFFF;
  --accent-text: #8239C1;
  --accent-soft: #EDE5F8;
  --select: #8239C1;
  --on-select: #FFFFFF;
  --btn: #8239C1;
  --btn-ink: #FFFFFF;
  --btn-hover: #5B1FBF;

  --font-head: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-label: 'Geist', system-ui, -apple-system, sans-serif;
  --head-weight: 800;
  --head-tracking: -0.03em;
  --head-lh: 1.0;
  --title-size: clamp(40px, 6vw, 66px);
  --body-weight: 400;
  --lead-weight: 400;
  --label-size: 11px;
  --label-weight: 700;
  --label-tracking: 0.12em;
  --label-colour: #8239C1;
  --meta-colour: #7A7A7A;

  --radius-card: 4px;
  --radius-ctl: 3px;
  --radius-btn: 3px;
  --radius-slot: 2px;
  --card-shadow: none;
  --maxw: 1000px;

  --header-bg: #F5F0E9;
  --header-ink: #1A1A1A;
  --header-border: rgba(26, 26, 26, 0.18);
  --header-meta: #7A7A7A;
  --focus: rgba(130, 57, 193, 0.55);
  --ease: 150ms ease;
}

/* ---------- CAMPUS: forest greens, cream paper, Playfair against Effra ---------- */
body[data-brand="campus"] {
  --bg: #F7F3EC;
  --surface: #FFFFFF;
  --surface-sunken: #F5F0E8;
  --ink: #1A1A1A;
  --heading: #1E5D00;
  --ink-soft: #4A5568;
  --ink-muted: #6B7280;
  --hair: #E2EEDA;
  --hair-strong: rgba(30, 93, 0, 0.18);
  --accent: #1E5D00;
  --on-accent: #FFFFFF;
  --accent-text: #008344;
  --accent-soft: #E2EEDA;
  --select: #1E5D00;
  --on-select: #FFFFFF;
  --btn: #1E5D00;
  --btn-ink: #FFFFFF;
  --btn-hover: #4D7D00;

  --font-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Effra', 'DM Sans', Helvetica, Arial, sans-serif;
  --font-label: 'Effra', Helvetica, Arial, sans-serif;
  --head-weight: 700;
  --head-tracking: 0;
  --head-lh: 1.15;
  --title-size: clamp(36px, 5vw, 56px);
  --body-weight: 300;
  --lead-weight: 300;
  --label-size: 12px;
  --label-weight: 600;
  --label-tracking: 0.2em;
  --label-colour: #008344;
  --meta-colour: #008344;

  --radius-card: 16px;
  --radius-ctl: 8px;
  --radius-btn: 8px;
  --radius-slot: 8px;
  --card-shadow: 0 12px 40px rgba(30, 93, 0, 0.06);

  --header-bg: #1E5D00;
  --header-ink: #FFFFFF;
  --header-border: transparent;
  --header-meta: rgba(255, 255, 255, 0.75);
  --focus: rgba(78, 155, 1, 0.6);
  --ease: 300ms ease;
}

/* ---------- FRONTIERS (Stage 1, provisional): paper, ink, one hairline and one point ---------- */
body[data-brand="frontiers"] {
  --bg: #F8F6F1;
  --surface: #F8F6F1;
  --surface-sunken: #ECE6DA;
  --ink: #1B1916;
  --heading: #1B1916;
  --ink-soft: #3A352F;
  --ink-muted: #5E574D;
  --hair: #DCD5C8;
  --hair-strong: #1B1916;
  --accent: #E35D1A;
  --on-accent: #1B1916;
  --accent-text: #A8440A;
  --accent-soft: #FCE3D3;
  --select: #1B1916;
  --on-select: #F8F6F1;
  --btn: #1B1916;
  --btn-ink: #F8F6F1;
  --btn-hover: #3A352F;
  --error: #A61E3A;

  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-label: 'JetBrains Mono', ui-monospace, monospace;
  --head-weight: 800;
  --head-tracking: -0.03em;
  --head-lh: 1.02;
  --title-size: clamp(38px, 5.6vw, 62px);
  --body-weight: 400;
  --lead-weight: 400;
  --label-size: 11.5px;
  --label-weight: 500;
  --label-tracking: 0.08em;
  --label-colour: #5E574D;
  --meta-colour: #5E574D;

  --radius-card: 0;
  --radius-ctl: 2px;
  --radius-btn: 2px;
  --radius-slot: 2px;
  --card-shadow: none;

  --header-bg: #1B1916;
  --header-ink: #F8F6F1;
  --header-border: transparent;
  --header-meta: #B9B1A3;
  --focus: rgba(227, 93, 26, 0.7);
}

/* ---------- AI Transparency Framework: deference, clarity, depth ---------- */
body[data-brand="aitf"] {
  --bg: #F7F8FA;
  --surface: #FFFFFF;
  --surface-sunken: #F7F8FA;
  --ink: #0A1733;
  --heading: #0A1733;
  --ink-soft: #4C556A;
  --ink-muted: #697183;
  --hair: #DFE2E6;
  --hair-strong: #C9CED6;
  --accent: #00857C;
  --on-accent: #FFFFFF;
  --accent-text: #007870;
  --accent-soft: rgba(0, 133, 124, 0.08);
  --select: #00857C;
  --on-select: #FFFFFF;
  --btn: #00857C;
  --btn-ink: #FFFFFF;
  --btn-hover: #00857C;

  --font-head: 'IBM Plex Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-label: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --head-weight: 500;
  --head-tracking: -0.025em;
  --head-lh: 1.08;
  --title-size: clamp(38px, 5.4vw, 62px);
  --body-weight: 300;
  --lead-weight: 300;
  --label-size: 10.5px;
  --label-weight: 500;
  --label-tracking: 1.2px;
  --label-colour: #007870;
  --meta-colour: #697183;

  --radius-card: 24px;
  --radius-ctl: 12px;
  --radius-btn: 999px;
  --radius-slot: 12px;
  --card-shadow: 0 0 0 1px #DFE2E6;

  --header-bg: #FFFFFF;
  --header-ink: #0A1733;
  --header-border: #DFE2E6;
  --header-meta: #697183;
  --focus: rgba(0, 133, 124, 0.6);
  --ease: 200ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--body-weight);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  text-wrap: pretty;
  orphans: 3;
  widows: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
h1, h2, h3 { text-wrap: balance; }
a { color: var(--accent-text); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  color: var(--header-ink);
  border-bottom: 1px solid var(--header-border);
}
body[data-brand="dttt"] .top, body:not([data-brand]) .top { backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brandmark { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.brandmark svg, .brandmark img { display: block; }
.top-meta {
  font-family: var(--font-label);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--header-meta);
  text-align: right;
}
body[data-brand="fdb"] .top .wrap { min-height: 60px; }
body[data-brand="campus"] .top { position: relative; }
body[data-brand="campus"] .top::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.3; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
body[data-brand="campus"] .top .wrap { min-height: 76px; }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-label);
  font-size: var(--label-size);
  font-weight: var(--label-weight);
  letter-spacing: var(--label-tracking);
  text-transform: uppercase;
  color: var(--label-colour);
  margin: 0 0 14px;
}
.eyebrow.muted { color: var(--meta-colour); }
.title {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: var(--head-lh);
  font-size: var(--title-size);
  color: var(--heading);
  margin: 0 0 18px;
}
.lead {
  font-size: 18.5px;
  line-height: 1.6;
  font-weight: var(--lead-weight);
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0;
}
h2.h2, .h2 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.15;
  font-size: 24px;
  color: var(--heading);
  margin: 0 0 10px;
}
.em-fdb { color: var(--accent-text); }
.em-campus { font-style: italic; font-weight: 400; }
.em-frontiers { box-shadow: inset 0 -0.14em 0 var(--accent); }
.em-xdw-dot { color: var(--accent); }
body[data-brand="aitf"] .h2 { font-size: 22px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 36px; }
body[data-brand="fdb"] .hero { padding: 80px 0 44px; }
body[data-brand="aitf"] .hero { background: #FFFFFF; border-bottom: 1px solid var(--hair); padding: 64px 0 48px; margin-bottom: 40px; }

/* ---------- Choice grids (home and multi-type brands): hairline cells, not cards ---------- */
.cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  border-top: 1px solid var(--hair-strong);
  border-left: 1px solid var(--hair);
  margin: 8px 0 72px;
}
.cell {
  display: flex; flex-direction: column; gap: 10px;
  padding: 28px 26px 26px;
  border-right: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background: var(--surface);
  color: inherit; text-decoration: none;
  transition: box-shadow var(--ease), background var(--ease);
}
a.cell:hover { box-shadow: 0 6px 28px rgba(10, 23, 51, 0.10); position: relative; z-index: 1; }
body[data-brand="fdb"] a.cell:hover { box-shadow: none; background: rgba(255, 255, 255, 0.6); }
body[data-brand="xdw"] a.cell:hover { box-shadow: 0 0 20px rgba(51, 165, 247, 0.18); }
.cell .meta { font-family: var(--font-label); font-size: var(--label-size); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--meta-colour); font-weight: var(--label-weight); }
.cell h3 { font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-tracking); font-size: 22px; line-height: 1.2; margin: 0; color: var(--heading); }
.cell p { margin: 0; color: var(--ink-soft); font-size: 15px; }
.cell .go { margin-top: auto; padding-top: 10px; font-weight: 500; font-size: 14px; color: var(--accent-text); }
.cell .types { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 6px; }
.cell .types a { color: var(--accent-text); text-decoration: none; font-weight: 500; font-size: 15px; border-bottom: 1px solid transparent; }
.cell .types a:hover { border-bottom-color: currentColor; }
.cell .types span { color: var(--ink-muted); font-size: 13px; margin-left: 6px; }

/* ---------- Booker ---------- */
main { flex: 1; }
.booker {
  display: grid;
  grid-template-columns: minmax(260px, 320px) 1fr;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-card);
  box-shadow: var(--card-shadow);
  margin: 0 0 72px;
  overflow: hidden;
}
.summary { padding: 30px 28px; border-right: 1px solid var(--hair); display: flex; flex-direction: column; gap: 16px; }
body[data-brand="frontiers"] .summary { border-right-color: var(--hair-strong); }
body[data-brand="aitf"] .summary { background: var(--surface-sunken); }
.summary .h2 { margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-soft); font-size: 15px; }
.facts li { display: flex; align-items: flex-start; gap: 10px; }
.facts svg { flex: none; margin-top: 3px; color: var(--ink-muted); }
.summary p:not(.eyebrow) { margin: 0; color: var(--ink-soft); font-size: 15px; }
.summary .eyebrow { margin: 0; }
body[data-brand="fdb"] .booker { border-color: var(--hair-strong); }
body[data-brand="frontiers"] .booker { border-color: var(--hair-strong); }
body[data-brand="aitf"] .booker { border: 0; }
.chosen {
  border-top: 1px solid var(--hair); padding-top: 16px; margin-top: 4px;
  font-size: 15px; color: var(--ink);
}
.chosen strong { display: block; font-weight: 600; }
.chosen span { color: var(--ink-soft); font-size: 14px; }
.host { display: flex; align-items: center; gap: 12px; }
body[data-brand="fdb"] .avatar { border-radius: 3px; }
body[data-brand="frontiers"] .avatar { border-radius: 0; background: var(--ink); color: var(--bg); }
.host strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.host span { font-size: 13px; color: var(--ink-muted); }

/* FRONTIERS signature: the booking window as a hairline scale, the point marks the chosen day */
.scale { position: relative; height: 34px; margin-top: 6px; }
.scale::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 1px; background: var(--ink); }
.scale .pt { position: absolute; top: 7px; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); transform: translateX(-50%); transition: left var(--ease); }
.scale .ends { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: space-between; font-family: var(--font-label); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }

.panel { padding: 30px 32px 32px; min-width: 0; }
.step-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.step-label .h2 { font-size: 20px; margin: 0; }

.picker { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 32px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cal-head .month { font-weight: 600; font-size: 16px; color: var(--ink); }
body[data-brand="campus"] .cal-head .month { font-family: var(--font-head); font-size: 20px; color: var(--heading); }
.nav-btn {
  width: 36px; height: 36px; display: grid; place-items: center;
  border: 1px solid var(--hair); background: transparent; border-radius: var(--radius-ctl);
  cursor: pointer; color: var(--ink); transition: background var(--ease), border-color var(--ease);
}
body[data-brand="aitf"] .nav-btn { border-radius: 999px; }
.nav-btn:hover:not(:disabled) { border-color: var(--hair-strong); background: var(--surface-sunken); }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dow { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-muted); text-align: center; padding: 6px 0; font-weight: var(--label-weight); }
.day {
  aspect-ratio: 1; max-height: 52px; width: 100%;
  border: 0; background: transparent; border-radius: var(--radius-slot);
  color: var(--ink-muted); opacity: 0.55; font-size: 15px; font-variant-numeric: tabular-nums;
  display: grid; place-items: center; position: relative;
}
.day.open {
  opacity: 1; cursor: pointer; color: var(--accent-text); font-weight: 600;
  background: var(--accent-soft);
  transition: background var(--ease), color var(--ease);
}
body[data-brand="aitf"] .day, body[data-brand="aitf"] .slot { border-radius: 999px; }
.day.open:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); }
.day.sel, .day.sel:hover { background: var(--select); color: var(--on-select); }
.day.today::after { content: ''; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
body[data-brand="frontiers"] .day.open { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
body[data-brand="frontiers"] .day.sel { background: var(--ink); color: var(--bg); }
body[data-brand="frontiers"] .day.sel::before { content: ''; position: absolute; top: 5px; right: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
body[data-brand="fdb"] .day.open { background: transparent; box-shadow: inset 0 0 0 1px var(--accent-soft); color: var(--accent-text); }
body[data-brand="fdb"] .day.open:hover { background: var(--accent-soft); }
body[data-brand="fdb"] .day.sel { background: var(--accent); color: #fff; box-shadow: none; }

.tz { margin-top: 20px; display: grid; gap: 6px; }
.tz-line { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.tz-line svg { flex: none; width: 14px; height: 14px; margin-top: 3px; color: var(--ink-muted); }
.tz-line strong { color: var(--ink); font-weight: 600; }
.tz-off { color: var(--ink-muted); white-space: nowrap; }
.tz-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding-left: 22px; font-size: 13px; color: var(--ink-muted); }
.tz-sub .quiet { font-size: 13px; }
.tz select { margin-top: 6px; }
select, input, textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--radius-ctl);
  padding: 11px 12px;
  width: 100%;
  transition: border-color var(--ease), box-shadow var(--ease);
}
body[data-brand="xdw"] select, body[data-brand="xdw"] input, body[data-brand="xdw"] textarea { background: #0C1730; }
body[data-brand="fdb"] select, body[data-brand="fdb"] input, body[data-brand="fdb"] textarea,
body[data-brand="frontiers"] select, body[data-brand="frontiers"] input, body[data-brand="frontiers"] textarea { background: rgba(255, 255, 255, 0.6); }
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }

.times { display: flex; flex-direction: column; min-width: 0; }
.times .day-name { font-weight: 600; font-size: 15px; margin: 6px 0 14px; color: var(--ink); min-height: 23px; }
.slot-list { display: grid; gap: 8px; max-height: 420px; overflow-y: auto; padding: 2px 4px 2px 0; }
.slot-row { display: grid; grid-template-columns: 1fr; gap: 8px; }
.slot-row.sel { grid-template-columns: 1fr 1fr; }
.slot {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  color: var(--accent-text); background: transparent;
  border-radius: var(--radius-slot);
  padding: 11px 10px; font-weight: 600; font-size: 15px; cursor: pointer;
  font-variant-numeric: tabular-nums;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.slot-row.sel .slot { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--surface); }
body[data-brand="frontiers"] .slot { border-color: var(--ink); color: var(--ink); }
body[data-brand="frontiers"] .slot:hover { background: var(--accent-soft); }
.slot-row .btn { padding: 11px 10px; }

.empty { color: var(--ink-soft); font-size: 15px; padding: 18px 0; }
.loading { color: var(--ink-muted); font-size: 15px; padding: 40px 0; display: flex; align-items: center; gap: 12px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--hair-strong); border-top-color: var(--accent); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--btn); color: var(--btn-ink);
  border: 0; border-radius: var(--radius-btn);
  padding: 13px 22px; font-weight: 600; font-size: 15px; letter-spacing: -0.005em;
  cursor: pointer; text-decoration: none;
  transition: background var(--ease), opacity var(--ease);
}
.btn:hover { background: var(--btn-hover); }
body[data-brand="aitf"] .btn { font-weight: 500; }
body[data-brand="aitf"] .btn:hover { opacity: 0.85; }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair-strong); }
.btn.secondary:hover { background: var(--surface-sunken); }
.btn.danger { background: var(--ink); color: var(--bg); }
.btn.danger:hover { background: var(--ink-soft); }
.quiet {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--accent-text); font-weight: 500; font-size: 14px;
  text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 40%, transparent);
}
.quiet:hover { border-bottom-color: var(--accent-text); }
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; }

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; max-width: 560px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .opt { color: var(--ink-muted); font-weight: 400; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--accent); padding: 0; }
.fine { font-size: 13px; color: var(--ink-muted); margin: 0; }
.fine a { color: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error { background: var(--error-soft); color: var(--error); border-radius: var(--radius-ctl); padding: 12px 14px; font-size: 14px; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 4px; }

/* ---------- Confirmation ---------- */
.done { max-width: 620px; }
.done .title { font-size: clamp(30px, 4vw, 44px); }
.done-list { list-style: none; padding: 0; margin: 22px 0; border-top: 1px solid var(--hair); }
.done-list li { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.done-list .k { font-family: var(--font-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); padding-top: 3px; font-weight: var(--label-weight); }
.done-list .v small { display: block; color: var(--ink-muted); font-size: 13px; }
.done-list a { word-break: break-all; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hair); padding: 22px 0 28px; font-size: 13px; color: var(--ink-muted); }
.foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }
.foot a { color: inherit; }
.origin { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Embedded on a DTTT site ---------- */
body.embed .top, body.embed .foot, body.embed .hero { display: none; }
body.embed .booker { margin: 0; }
body.embed .wrap { padding: 0; max-width: none; }
body.embed { min-height: 0; background: transparent; }

/* ---------- Small screens ---------- */
@media (max-width: 900px) {
  .booker { grid-template-columns: 1fr; }
  .summary { border-right: 0; border-bottom: 1px solid var(--hair); }
  body[data-brand="frontiers"] .summary { border-bottom-color: var(--hair-strong); }
  .picker { grid-template-columns: 1fr; gap: 24px; }
  .slot-list { max-height: none; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .slot-row.sel { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  body[data-brand="fdb"] .hero { padding: 48px 0 28px; }
  body[data-brand="aitf"] .hero { padding: 40px 0 32px; margin-bottom: 24px; }
  .panel, .summary { padding: 22px 18px; }
  .row2 { grid-template-columns: 1fr; }
  .top-meta { display: none; }
  .cobrand { width: 96px; }
  .done-list li { grid-template-columns: 1fr; gap: 2px; }
  .cells { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ======================================================================
   Landing page: search, the list of calls, the team, the programmes and the hand-off
   ====================================================================== */

/* Brand skins for tiles and the hand-off. Each is that brand's own surface. */
.skin-dttt {
  --sk-bg: #0F2044; --sk-ink: #FFFFFF; --sk-soft: rgba(255,255,255,0.74); --sk-meta: #66BFB9; --sk-accent: #00857C;
  --sk-head: 'IBM Plex Sans', 'Inter', sans-serif; --sk-head-w: 600; --sk-track: -0.02em;
  --sk-body: 'Inter', system-ui, sans-serif; --sk-label: 'IBM Plex Mono', ui-monospace, monospace; --sk-label-w: 500; --sk-label-track: 0.12em;
  --sk-radius: 4px; --sk-border: transparent; --sk-hover: 0 10px 30px rgba(15,32,68,0.28);
}
.skin-fdb {
  --sk-bg: #F5F0E9; --sk-ink: #1A1A1A; --sk-soft: #3A3A3A; --sk-meta: #8239C1; --sk-accent: #8239C1;
  --sk-head: 'Geist', system-ui, sans-serif; --sk-head-w: 800; --sk-track: -0.03em;
  --sk-body: 'Geist', system-ui, sans-serif; --sk-label: 'Geist', system-ui, sans-serif; --sk-label-w: 700; --sk-label-track: 0.12em;
  --sk-radius: 4px; --sk-border: rgba(26,26,26,0.18); --sk-hover: inset 0 0 0 1px #8239C1;
}
.skin-xdw {
  --sk-bg: #0A0E1A; --sk-ink: #FFFFFF; --sk-soft: rgba(255,255,255,0.72); --sk-meta: #33A5F7; --sk-accent: #33A5F7;
  --sk-head: 'Poppins', sans-serif; --sk-head-w: 700; --sk-track: -0.015em;
  --sk-body: 'Proxima Nova', -apple-system, 'Segoe UI', Arial, sans-serif; --sk-label: 'Poppins', sans-serif; --sk-label-w: 700; --sk-label-track: 0.16em;
  --sk-radius: 14px; --sk-border: rgba(208,218,235,0.12); --sk-hover: 0 0 32px rgba(51,165,247,0.28);
}
.skin-campus {
  --sk-bg: #1E5D00; --sk-ink: #FFFFFF; --sk-soft: rgba(255,255,255,0.85); --sk-meta: #CFE39A; --sk-accent: #79A400;
  --sk-head: 'Playfair Display', Georgia, serif; --sk-head-w: 700; --sk-track: 0;
  --sk-body: 'Effra', 'Helvetica Neue', Arial, sans-serif; --sk-label: 'Effra', 'Helvetica Neue', Arial, sans-serif; --sk-label-w: 600; --sk-label-track: 0.2em;
  --sk-radius: 16px; --sk-border: transparent; --sk-hover: 0 20px 60px rgba(30,93,0,0.25);
}
.skin-frontiers {
  --sk-bg: #F8F6F1; --sk-ink: #1B1916; --sk-soft: #3A352F; --sk-meta: #5E574D; --sk-accent: #E35D1A;
  --sk-head: 'Plus Jakarta Sans', system-ui, sans-serif; --sk-head-w: 800; --sk-track: -0.03em;
  --sk-body: 'Plus Jakarta Sans', system-ui, sans-serif; --sk-label: 'JetBrains Mono', ui-monospace, monospace; --sk-label-w: 500; --sk-label-track: 0.08em;
  --sk-radius: 0; --sk-border: #1B1916; --sk-hover: inset 0 0 0 2px #1B1916;
}
.skin-aitf {
  --sk-bg: #FFFFFF; --sk-ink: #0A1733; --sk-soft: #4C556A; --sk-meta: #007870; --sk-accent: #00857C;
  --sk-head: 'IBM Plex Serif', Georgia, serif; --sk-head-w: 500; --sk-track: -0.02em;
  --sk-body: 'Inter', system-ui, sans-serif; --sk-label: ui-monospace, 'SF Mono', Menlo, monospace; --sk-label-w: 500; --sk-label-track: 1.2px;
  --sk-radius: 24px; --sk-border: #DFE2E6; --sk-hover: 0 6px 28px rgba(10,23,51,0.10);
}

/* Tiles */
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  background: var(--sk-bg); color: var(--sk-ink);
  border: 1px solid var(--sk-border); border-radius: var(--sk-radius);
  padding: 20px 20px 18px; min-height: 212px; width: 100%;
  font-family: var(--sk-body); cursor: pointer;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.tile:hover { box-shadow: var(--sk-hover); }
.tile:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skin-dttt.tile:hover, .skin-campus.tile:hover, .skin-aitf.tile:hover { transform: translateY(-2px); }
.tile.big { min-height: 248px; padding: 26px 26px 22px; }
.tile-mark { display: flex; align-items: center; gap: 9px; min-height: 30px; margin-bottom: 8px; color: var(--sk-ink); }
.tile-mark > span > svg { display: block; width: 100%; height: auto; }
.tile-mark > svg { flex: none; display: block; }
.tile-meta {
  font-family: var(--sk-label); font-weight: var(--sk-label-w); letter-spacing: var(--sk-label-track);
  text-transform: uppercase; font-size: 11px; color: var(--sk-meta); margin: 0;
}
.tile-title {
  font-family: var(--sk-head); font-weight: var(--sk-head-w); letter-spacing: var(--sk-track);
  font-size: 22px; line-height: 1.15; color: var(--sk-ink);
}
.tile-text { font-size: 14.5px; line-height: 1.5; color: var(--sk-soft); font-weight: 400; margin: 0; }
.skin-campus .tile-text, .skin-aitf .tile-text { font-weight: 300; }
.tile-foot {
  margin-top: auto; padding-top: 12px; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--sk-soft); border-top: 1px solid color-mix(in srgb, var(--sk-ink) 14%, transparent);
}
.tile-foot svg { flex: none; color: var(--sk-accent); transition: transform 200ms ease; }
.tile:hover .tile-foot svg { transform: translateX(3px); }
.skin-fdb .tile-foot svg { transition: none; }
.skin-fdb.tile:hover .tile-foot svg { transform: none; }
.tile-tag {
  order: -1; margin-bottom: 2px; font-family: var(--sk-label); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: color-mix(in srgb, var(--sk-accent) 18%, transparent); color: var(--sk-ink);
}
.skin-fdb .tile-tag { border-radius: 2px; }
.skin-frontiers .tile-tag { border-radius: 0; background: var(--sk-accent); color: #1B1916; }

/* Brand details on tiles */
.tm-fdb { font-family: 'Geist', sans-serif; font-weight: 700; font-size: 14px; letter-spacing: -0.01em; color: #1A1A1A; }
.tm-fdb b { color: #8239C1; font-weight: 700; }
.tm-xdw { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; color: #fff; text-shadow: 0 0 24px rgba(51,165,247,0.45); }
.tm-frontiers { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.04em; color: #1B1916; }
.tm-point { width: 9px; height: 9px; border-radius: 50%; background: #E35D1A; display: inline-block; }
.tm-aitf { font-family: 'IBM Plex Serif', serif; font-weight: 500; font-size: 15.5px; color: #0A1733; letter-spacing: -0.2px; }
.skin-xdw.tile { box-shadow: 0 0 20px rgba(51,165,247,0.10); }
.skin-xdw.tile:hover { box-shadow: 0 0 32px rgba(51,165,247,0.28); border-color: rgba(51,165,247,0.30); }
.skin-campus .tile-title { color: #FFFFFF; }
.skin-frontiers.tile::after {
  content: ''; position: absolute; left: 20px; right: 20px; top: 62px; height: 1px; background: #1B1916; opacity: 0.9;
}
.skin-frontiers.tile.big::after { left: 26px; right: 26px; top: 68px; }
.skin-frontiers .tile-mark { margin-bottom: 14px; }
.grain {
  position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: 0.32; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* ---------- Landing: one search, topics, one list of calls ---------- */
.home-hero { padding: 64px 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px 48px; }
.home-hero .title { margin-bottom: 14px; }
.home-hero .lead { max-width: 54ch; }
.hero-team { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink-soft); font-size: 14px; }
.hero-team:hover > span:last-child { color: var(--ink); }
.hero-team .stack .avatar { border-color: var(--bg); }

.finder { margin-top: 32px; scroll-margin-top: 88px; }
.search {
  position: relative; display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--hair-strong); border-radius: 4px;
  box-shadow: 0 1px 2px rgba(15, 32, 68, 0.04), 0 14px 36px -24px rgba(15, 32, 68, 0.35);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(0, 133, 124, 0.14), 0 14px 36px -24px rgba(15, 32, 68, 0.35); }
.search > svg { position: absolute; left: 22px; width: 20px; height: 20px; color: var(--ink-muted); pointer-events: none; }
.search input {
  border: 0; background: transparent; height: 66px; padding: 0 92px 0 58px;
  font-size: 18px; font-weight: 400; color: var(--ink); border-radius: 4px;
}
.search input:focus { box-shadow: none; }
.search input::placeholder { color: var(--ink-muted); opacity: 1; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.search-clear {
  position: absolute; right: 14px; padding: 7px 11px; cursor: pointer;
  background: var(--surface-sunken); border: 1px solid var(--hair); border-radius: 3px;
  font-size: 13px; font-weight: 500; color: var(--ink-soft);
}
.search-clear:hover { color: var(--ink); border-color: var(--hair-strong); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--hair-strong); border-radius: 3px;
  font: 500 14px/1 var(--font-body); cursor: pointer; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.chip .stack .avatar { border-color: var(--surface); }
.chip.on .stack .avatar { border-color: var(--ink); }

.results { padding-top: 40px; padding-bottom: 8px; min-height: 420px; }
.res-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 14px; }
.res-title, .group-label {
  font-family: var(--font-label); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--label-colour); margin: 0;
}
.group-label { margin-bottom: 14px; }
.res-why { margin: 0; font-size: 14px; color: var(--ink-muted); }
.group + .group { margin-top: 40px; }
.calls { display: grid; gap: 10px; }

/* A call */
.call {
  position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 22px; align-items: start;
  padding: 22px 24px; background: var(--surface); color: inherit; text-decoration: none;
  border: 1px solid var(--hair); border-radius: 4px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.call::before {
  content: ''; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 3px;
  background: var(--row-accent); border-radius: 4px 0 0 4px; opacity: 0; transition: opacity var(--ease);
}
.call:hover { border-color: var(--hair-strong); box-shadow: 0 1px 2px rgba(15, 32, 68, 0.04), 0 18px 40px -26px rgba(15, 32, 68, 0.4); }
.call:hover::before, .call:focus-visible::before { opacity: 1; }
.call-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.call-kicker {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px;
  font-family: var(--font-label); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-muted);
}
.best { font-weight: 500; color: #FFFFFF; background: var(--accent); padding: 4px 7px 3px; border-radius: 2px; letter-spacing: 0.08em; }
.call-title { font-family: var(--font-head); font-weight: 600; font-size: 21px; letter-spacing: -0.015em; line-height: 1.2; color: var(--heading); }
.call-text { font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 70ch; }
.call-who { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--ink-soft); }
.call-side { display: flex; align-items: center; gap: 18px; align-self: center; }
.call-dur-m { display: none; }
.call-dur { font-family: var(--font-label); font-size: 12px; letter-spacing: 0.06em; color: var(--ink-muted); white-space: nowrap; }
.call-go {
  width: 42px; height: 42px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--hair-strong); border-radius: 3px; color: var(--ink);
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.call:hover .call-go { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }

/* Programme badges */
.badge { position: relative; overflow: hidden; width: 56px; height: 56px; border-radius: 4px; display: grid; place-items: center; flex: none; }
.badge svg { display: block; }
.b-dttt { background: #0F2044; color: #FFFFFF; }
.b-dttt svg { width: 30px; height: auto; }
.b-fdb { background: #F5F0E9; box-shadow: inset 0 0 0 1px rgba(26, 26, 26, 0.14); }
.b-xdw { display: flex; align-items: center; justify-content: center; background: #0A0E1A; color: #FFFFFF; font: 800 22px/1 'Poppins', sans-serif; letter-spacing: -0.02em; }
.b-xdw i { font-style: normal; color: #33A5F7; }
.b-campus { background: #1E5D00; }
.b-campus img { display: block; width: 30px; height: auto; }
.b-xdw img { display: block; width: 50px; height: auto; }
.b-frontiers { background: #F8F6F1; box-shadow: inset 0 0 0 1px #1B1916; }
.b-frontiers::before { content: ''; position: absolute; left: 10px; right: 10px; top: 50%; height: 1px; background: #1B1916; }
.b-frontiers i { position: absolute; left: 60%; top: calc(50% - 5px); width: 11px; height: 11px; border-radius: 50%; background: #E35D1A; }
.b-aitf { background: #FFFFFF; color: #00857C; box-shadow: inset 0 0 0 1px #DFE2E6; }
.b-aitf svg { width: 28px; height: auto; }

.see-all {
  margin-top: 18px; padding: 0; background: none; border: 0; cursor: pointer;
  font: 500 14px var(--font-body); color: var(--accent-text);
  border-bottom: 1px solid color-mix(in srgb, var(--accent-text) 40%, transparent);
}

/* Choosing a person */
.person-head {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--hair); border-radius: 4px;
}
.person-id { flex: 1; min-width: 200px; }
.person-id strong { display: block; font-family: var(--font-head); font-size: 18px; font-weight: 600; color: var(--heading); }
.person-id span { font-size: 14px; color: var(--ink-soft); }
.pick-people { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .pick-people { grid-template-columns: 1fr 1fr; } }
.pick {
  display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--hair); border-radius: 4px;
  transition: border-color var(--ease);
}
.pick:hover { border-color: var(--ink); }
.pick strong { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.pick span span { font-size: 13px; color: var(--ink-muted); }

/* The team */
.team-section { padding-top: 64px; scroll-margin-top: 80px; }
.section-head { margin: 0 0 22px; }
.section-head .h2 { font-size: 28px; margin: 0; }
.team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.member {
  display: grid; grid-template-columns: 42% minmax(0, 1fr); overflow: hidden; color: inherit; text-decoration: none;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 4px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.member:hover { border-color: var(--hair-strong); box-shadow: 0 18px 40px -26px rgba(15, 32, 68, 0.4); }
/* The photo always fills the card top to bottom, and is never shorter than 4:5. */
.member-photo { position: relative; display: block; overflow: hidden; background: #000000; }
.member-photo::before { content: ''; display: block; padding-top: 125%; }
.member-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 500ms ease; }
.member:hover .member-photo img { transform: scale(1.03); }
.member-body { display: flex; flex-direction: column; gap: 3px; padding: 18px 18px 18px; min-width: 0; }
.member-body strong { font-family: var(--font-head); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; color: var(--heading); }
.member .role { font-family: var(--font-label); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label-colour); }
.member .bio { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); }
.member-go { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--accent-text); }
.member-go svg { width: 16px; height: 16px; transition: transform var(--ease); }
.member:hover .member-go svg { transform: translateX(3px); }

/* Programmes: each in its own colours and type, all on the DTTT grid */
.programmes { padding-top: 64px; padding-bottom: 88px; }
.brand-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.home .tile { --sk-radius: 4px; min-height: 216px; text-decoration: none; }

/* Hand-off */
.handoff {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background: var(--sk-bg); color: var(--sk-ink); font-family: var(--sk-body);
  opacity: 0; transition: opacity 220ms ease;
}
.handoff.in { opacity: 1; }
.handoff-inner { width: min(560px, calc(100% - 48px)); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.handoff .tile-mark { margin-bottom: 26px; transform: scale(1.25); transform-origin: left center; }
.handoff-title {
  font-family: var(--sk-head); font-weight: var(--sk-head-w); letter-spacing: var(--sk-track);
  font-size: clamp(36px, 6vw, 60px); line-height: 1.05; margin: 0; color: var(--sk-ink);
}
.skin-campus .handoff-title::after { content: '.'; }
.skin-fdb .handoff-title::after { content: '.'; color: #8239C1; }
.skin-xdw .handoff-title::after { content: '.'; color: #33A5F7; }
.handoff-line { width: 100%; height: 2px; margin: 26px 0 8px; background: color-mix(in srgb, var(--sk-ink) 14%, transparent); position: relative; overflow: hidden; }
.handoff-line span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--sk-accent); }
.handoff.in .handoff-line span { width: 100%; transition: width 1600ms linear; }
.skin-frontiers .handoff-line { background: #1B1916; height: 1px; overflow: visible; }
.skin-frontiers .handoff-line span { height: 11px; width: 11px; top: -5px; border-radius: 50%; left: 0; inset: auto; }
.skin-frontiers.handoff.in .handoff-line span { left: calc(100% - 11px); width: 11px; transition: left 1600ms linear; }
.handoff-actions { display: flex; gap: 18px; align-items: center; margin-top: 8px; }
.handoff-go {
  background: var(--sk-accent); color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: min(var(--sk-radius), 10px);
}
.skin-frontiers .handoff-go { background: #1B1916; color: #F8F6F1; border-radius: 2px; }
.skin-fdb .handoff-go { border-radius: 3px; }
.skin-aitf .handoff-go { border-radius: 999px; }
.skin-campus .handoff-go { background: #FFFFFF; color: #1E5D00; border-radius: 8px; }
.handoff-back { background: none; border: 0; color: var(--sk-soft); font: inherit; font-size: 14px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.handoff-who { display: flex; align-items: center; gap: 12px; margin: 6px 0 0; font-size: 15px; color: var(--sk-soft); }
.handoff-who .stack .avatar { border-color: var(--sk-bg); }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .brand-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home-hero { padding-top: 36px; }
  .finder { margin-top: 24px; }
  .search > svg { left: 16px; }
  .search input { height: 56px; padding-left: 46px; padding-right: 80px; font-size: 16px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px 4px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .results { padding-top: 28px; }
  .call { grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 16px; }
  .badge { width: 44px; height: 44px; }
  .b-dttt svg, .b-aitf svg { width: 24px; }
  .b-xdw img { width: 40px; }
  .b-campus img { width: 24px; }
  .call-title { font-size: 19px; }
  .call-main { padding-right: 40px; }
  .call-side { position: absolute; top: 16px; right: 14px; }
  .call-dur { display: none; }
  .call-dur-m { display: inline; }
  .call-go { width: 34px; height: 34px; }
  .team { grid-template-columns: 1fr; gap: 10px; }
  .member { grid-template-columns: 112px minmax(0, 1fr); }
  .member-body { padding: 14px 14px 14px; }
  .brand-grid { grid-template-columns: 1fr; }
  .home .tile { min-height: 0; }
  .tile-foot { margin-top: 10px; }
  .team-section, .programmes { padding-top: 48px; }
}

/* ---------- Faces ---------- */
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none;
  display: grid; place-items: center; object-fit: cover;
  background: var(--accent-soft); color: var(--accent-text);
  font-weight: 600; font-size: 14px; letter-spacing: 0.02em;
}
img.avatar { background: #000000; }
.avatar.xs { width: 22px; height: 22px; font-size: 9px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }
.avatar.md { width: 44px; height: 44px; font-size: 14px; }
.avatar.lg { width: 64px; height: 64px; font-size: 18px; }
.stack { display: inline-flex; flex: none; }
.stack .avatar { border: 2px solid var(--surface); }
.stack .avatar + .avatar { margin-left: -8px; }
.stack .avatar.xs + .avatar.xs { margin-left: -6px; }
.stack .avatar.md + .avatar.md { margin-left: -10px; }
body[data-brand="aitf"] .summary .stack .avatar { border-color: var(--surface-sunken); }
.host.group { align-items: center; }
.with { display: grid; gap: 8px; }
.with-one { display: flex; align-items: center; gap: 10px; }

/* ---------- Personal pages: /nick, /james, /lili, /fabio, /romy ---------- */
.person-hero { padding: 48px 0 36px; }
.person-hero-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; align-items: center; }
.person-portrait { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 4px; background: #000000; }
.person-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.person-hero .lead { max-width: 58ch; }
.person-link { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 0; font-family: var(--font-label); font-size: 13px; letter-spacing: 0.04em; color: var(--ink-muted); }
.person-link svg { width: 14px; height: 14px; }

.lengths { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--hair-strong); border-radius: 3px; overflow: hidden; }
.length {
  padding: 10px 4px; background: var(--surface); border: 0; border-left: 1px solid var(--hair-strong);
  font: 500 14px/1 var(--font-body); color: var(--ink); cursor: pointer; font-variant-numeric: tabular-nums;
  transition: background var(--ease), color var(--ease);
}
.length:first-child { border-left: 0; }
.length:hover { background: var(--surface-sunken); }
.length.on { background: var(--ink); color: #FFFFFF; }

.b-face { background: #000000; }
.b-face .avatar { width: 100%; height: 100%; border-radius: 0; }
.more-calls { padding-bottom: 72px; }

@media (max-width: 640px) {
  .person-hero { padding: 28px 0 24px; }
  .person-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .person-portrait { width: 112px; }
  .person-hero .title { font-size: 32px; }
  .person-hero .lead { font-size: 16px; }
}
