/* Qantm AI — static site. Palette + type read verbatim from the live qantm.ai
   (2026-07-11): Montserrat, near-black #09090b, red/blue CTAs, and a six-colour
   brand cycle for cards. Dark-first, matching the live app. */

/* Self-hosted Montserrat (latin subset) — no external font dependency. */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap; src: url("./fonts/montserrat-400.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap; src: url("./fonts/montserrat-600.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap; src: url("./fonts/montserrat-700.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 800; font-display: swap; src: url("./fonts/montserrat-800.woff2") format("woff2"); }

:root {
  /* Neutrals (HSL triplets — match the live shadcn theme). */
  --background: 240 10% 3.9%;
  --foreground: 0 0% 98%;
  --muted: 240 3.7% 15.9%;
  --muted-foreground: 240 5% 64.9%;
  --card: 240 6% 7%;
  --border: 240 3.7% 15.9%;
  --radius: 12px;
  /* Brand palette (verbatim from the live DOM). */
  --red: #da0318;
  --blue: #2563eb;
  --navy: #132964;
  --gold: #fbb724;
  --pink: #e74a7c;
  --cyan: #049fb6;
  --purple: #4b2571;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  /* subtle navy→black hero band at the top, like the live site */
  background: linear-gradient(hsl(222 40% 12%), hsl(var(--background)) 480px) no-repeat;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font: 400 16px/1.65 Montserrat, Arial, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
header { border-bottom: 1px solid hsl(var(--border)); position: sticky; top: 0; background: #000; z-index: 10; }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1.25rem; max-width: 1120px; margin: 0 auto; }
.logo { display: flex; align-items: center; }
.logo img { height: 50px; width: auto; display: block; }
nav.main { display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; }
nav.main a { color: hsl(var(--muted-foreground)); font-size: .95rem; font-weight: 600; }
nav.main a:hover, nav.main a[aria-current="page"] { color: hsl(var(--foreground)); text-decoration: none; }
nav.main a.contact-btn { background: var(--blue); color: #fff; padding: .55rem 1.15rem; border-radius: 10px; }
nav.main a.contact-btn:hover { filter: brightness(1.08); color: #fff; }

/* Hamburger toggle — hidden on desktop, drives the mobile menu */
.nav-toggle { display: none; background: none; border: 0; padding: .4rem; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; border-radius: 2px; background: hsl(var(--foreground)); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: 6px; }

@media (max-width: 760px) {
  .hdr { flex-wrap: wrap; padding: .6rem 1.1rem; }
  .nav-toggle { display: block; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  nav.main { display: none; order: 3; flex-basis: 100%; flex-direction: column; gap: 0; margin-top: .4rem; }
  nav.main.open { display: flex; }
  nav.main a { padding: .9rem .25rem; border-top: 1px solid hsl(var(--border)); font-size: 1.05rem; }
  nav.main a.contact-btn { margin: .75rem 0 .35rem; padding: .8rem; text-align: center; border-top: 0; }
}

/* Headings + hero */
h1 { font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; text-align: center; margin: 2.6rem auto 0; max-width: 20ch; }
.hero { padding: 1.5rem 0 3rem; text-align: center; }
.hero p { margin: 1.1rem auto 0; max-width: 60ch; color: hsl(var(--muted-foreground)); font-size: 1.15rem; }
.cta-row { display: flex; gap: .8rem; margin-top: 1.8rem; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .98rem; border: 1px solid transparent; color: #fff; background: hsl(var(--muted)); }
.btn:hover { text-decoration: none; filter: brightness(1.1); }
.btn.pri { background: var(--red); color: #fff; }
.btn.blue { background: var(--blue); color: #fff; }

/* Sections */
section { padding: 2.8rem 0; }
section > h2 { text-align: center; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; letter-spacing: -.01em; margin-bottom: .5rem; }
.lede { color: hsl(var(--muted-foreground)); max-width: 64ch; margin: 0 auto 1.6rem; font-size: 1.05rem; text-align: center; }

/* Colour-cycled tiles (offerings, services, values) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1.1rem; margin-top: 1.6rem; }
.tile { border-radius: var(--radius); padding: 1.6rem 1.5rem; color: #fff; display: flex; flex-direction: column; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.tile svg { width: 2rem; height: 2rem; stroke: #fff; stroke-width: 2; fill: none; margin-bottom: .8rem; }
.tile h3 { color: #fff; font-size: 1.12rem; font-weight: 700; margin-bottom: .5rem; }
.tile p, .tile li { color: rgba(255,255,255,.9); font-size: .93rem; }
.tile ul { margin-top: .6rem; padding-left: 1.1rem; }
.tile li { margin: .15rem 0; }
.tile--red { background: var(--red); } .tile--navy { background: var(--navy); }
.tile--gold { background: var(--gold); } .tile--pink { background: var(--pink); }
.tile--cyan { background: var(--cyan); } .tile--purple { background: var(--purple); }
/* gold is light — dark text keeps it legible */
.tile--gold h3, .tile--gold p, .tile--gold li { color: #1a1205; }
.tile--gold svg { stroke: #1a1205; }

/* Team cards (colour-cycled, circular real headshots) */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 1.6rem; }
/* 4-item card rows (About values + team): one clean row on desktop, then 2×2, then 1 — never an orphan */
.tiles-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .tiles-4, .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tiles-4, .team-grid { grid-template-columns: 1fr; } }
.team-card { border-radius: var(--radius); padding: 1.8rem 1.3rem; text-align: center; color: #fff; }
.team-card img { width: 118px; height: 118px; border-radius: 50%; object-fit: cover; margin: 0 auto .9rem; display: block; border: 3px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.team-card h3 { color: #fff; margin-bottom: .1rem; font-size: 1.15rem; font-weight: 700; }
.team-card .role { font-weight: 600; color: rgba(255,255,255,.92); font-size: .9rem; margin-bottom: .6rem; }
.team-card p { color: rgba(255,255,255,.85); font-size: .88rem; }
.team-card--gold { } .team-card.tile--gold h3, .team-card.tile--gold .role, .team-card.tile--gold p { color: #1a1205; }

/* Neutral cards (contact, misc) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.card { border: 1px solid hsl(var(--border)); border-radius: var(--radius); padding: 1.25rem; background: hsl(var(--card)); }
.card h3 { font-size: 1.05rem; margin-bottom: .45rem; }
.card p, .card li { color: hsl(var(--muted-foreground)); font-size: .95rem; }
.card ul { padding-left: 1.1rem; margin-top: .5rem; }

/* Image + prose blocks (mission, CTA) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; margin-top: 1.6rem; }
.split img { border-radius: var(--radius); width: 100%; height: auto; max-width: 70%; justify-self: center; }
.split .prose { text-align: left; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.prose p { margin: .8rem 0; max-width: 68ch; }
.prose p, .prose li { color: hsl(var(--muted-foreground)); }
.cta-image { display: block; max-width: 460px; width: 100%; margin: 1.6rem auto 0; border-radius: var(--radius); }
.kv { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 1rem; margin-top: 1.4rem; }
.kv .card strong { display: block; color: hsl(var(--foreground)); margin-bottom: .25rem; }

/* Footer */
footer { border-top: 1px solid hsl(var(--border)); margin-top: 3rem; padding: 2rem 0 2.5rem; }
footer .cols { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }
footer a { color: hsl(var(--muted-foreground)); font-size: .9rem; }
footer .copy { color: hsl(var(--muted-foreground)); font-size: .85rem; margin-top: 1.2rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Media portfolio — stats, featured book, speaking timeline, media cards */
.mstats { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin: 0 auto 2.2rem; max-width: 820px; }
.mstat { flex: 1 1 140px; max-width: 210px; text-align: center; padding: 1.1rem 1rem;
  border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--card)); }
.mstat-n { display: block; font-size: 2.3rem; font-weight: 800; line-height: 1; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.mstat-l { display: block; margin-top: .4rem; font-size: .82rem; color: hsl(var(--muted-foreground)); font-weight: 600; }

.media-nav { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin: 0 auto 2.4rem; max-width: 680px; }
.media-nav a { padding: .34rem .8rem; border-radius: 999px; border: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground)); font-size: .82rem; font-weight: 600; }
.media-nav a:hover { border-color: var(--blue); color: hsl(var(--foreground)); text-decoration: none; }

.msec { padding: 2.2rem 0; scroll-margin-top: 84px; max-width: 880px; margin-left: auto; margin-right: auto; }
.msec-head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.15rem; }
.msec-head h2 { text-align: left; font-size: 1.5rem; margin: 0; }
.msec-icon { display: inline-flex; padding: .5rem; border-radius: 10px; flex: none; }
.msec-icon svg { width: 1.35rem; height: 1.35rem; stroke: #fff; stroke-width: 2; fill: none; display: block; }
.msec-icon.tile--gold svg { stroke: #1a1205; }
.msec-count { font-size: .8rem; font-weight: 700; color: hsl(var(--muted-foreground));
  background: hsl(var(--muted) / .5); padding: .12rem .6rem; border-radius: 999px; }
.msec-sub { color: hsl(var(--muted-foreground)); font-size: .92rem; margin: -.6rem 0 1.1rem; }

/* Featured book */
.book-feature { display: grid; grid-template-columns: minmax(190px, 240px) 1fr; gap: 1.8rem; align-items: center; }
.book-cover { position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.6rem 1.4rem;
  min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.45); }
.book-cover::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: rgba(255,255,255,.22); }
.book-cover-tag { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.book-cover-title { font-size: 1.65rem; font-weight: 800; line-height: 1.14; margin: .8rem 0; }
.book-cover-by { font-size: .9rem; font-weight: 600; opacity: .92; }
.book-title { font-size: 1.5rem; margin-bottom: .3rem; }
.book-sub { color: hsl(var(--muted-foreground)); margin-bottom: 1rem; }
.book-get { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: hsl(var(--muted-foreground)); margin-bottom: .5rem; }
@media (max-width: 640px) { .book-feature { grid-template-columns: 1fr; } .book-cover { max-width: 280px; margin: 0 auto; } }

/* Media cards (video, podcasts, tv, newsletter) */
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(258px, 100%), 1fr)); gap: .8rem; }
.mcard { position: relative; display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.1rem;
  border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card));
  transition: border-color .15s ease, transform .15s ease; }
.mcard:hover { border-color: var(--blue); transform: translateY(-2px); text-decoration: none; }
.mcard-date { font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--blue); }
.mcard-title { font-size: .95rem; font-weight: 600; color: hsl(var(--foreground)); line-height: 1.42; padding-right: 1.1rem; }
.mcard-go { position: absolute; top: .95rem; right: .95rem; opacity: 0; transition: opacity .15s ease; }
.mcard-go svg { width: 1rem; height: 1rem; stroke: var(--blue); stroke-width: 2.5; fill: none; display: block; }
.mcard:hover .mcard-go { opacity: 1; }

/* Speaking timeline */
.timeline { margin-top: 1.2rem; padding-left: 1.7rem; border-left: 2px solid hsl(var(--border)); }
.tl-year { position: relative; padding-bottom: 1.7rem; }
.tl-year:last-child { padding-bottom: 0; }
.tl-marker { position: relative; font-size: 1.4rem; font-weight: 800; margin-bottom: .7rem; color: hsl(var(--foreground)); font-variant-numeric: tabular-nums; }
.tl-marker::before { content: ""; position: absolute; left: calc(-1.7rem - 1px); top: 50%;
  transform: translate(-50%, -50%); width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 3px solid hsl(var(--background)); }
.tl-items { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.tl-item { display: flex; flex-direction: column; gap: .35rem; padding: .85rem 1rem;
  border: 1px solid hsl(var(--border)); border-radius: 8px; background: hsl(var(--card));
  transition: border-color .15s ease, transform .15s ease; }
.tl-item:hover { border-color: var(--pink); transform: translateY(-2px); text-decoration: none; }
.tl-date { font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pink); }
.tl-title { font-size: .9rem; font-weight: 600; color: hsl(var(--foreground)); line-height: 1.42; }
@media (max-width: 620px) { .tl-items { grid-template-columns: 1fr; } }

/* Publications list */
.pub-list { list-style: none; padding: 0; margin: .3rem 0 0; }
.pub-list li { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .55rem 0; border-bottom: 1px solid hsl(var(--border)); }
.pub-list a { font-weight: 600; font-size: .93rem; }
.pub-year { font-size: .78rem; color: hsl(var(--muted-foreground)); white-space: nowrap; flex: none; font-variant-numeric: tabular-nums; }

/* Profile chips */
.mchips { display: flex; flex-wrap: wrap; gap: .6rem; }
.mchip { padding: .55rem 1.05rem; border: 1px solid hsl(var(--border)); border-radius: 999px; font-weight: 600; font-size: .9rem; color: hsl(var(--foreground)); }
.mchip:hover { border-color: var(--blue); background: hsl(var(--muted) / .3); text-decoration: none; }

/* Case studies — sourced enterprise & government AI deployments */
.cs-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.8rem; justify-content: center; }
.cs-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid hsl(var(--border)); background: transparent; color: hsl(var(--muted-foreground));
  font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; }
.cs-chip:hover { border-color: var(--blue); color: hsl(var(--foreground)); }
.cs-chip.is-on { background: var(--blue); color: #fff; border-color: transparent; }
.cs-chip span { font-size: .75rem; opacity: .8; font-variant-numeric: tabular-nums; }
.cs-chip.is-on span { opacity: .9; }

.cs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 1rem; margin-top: 1rem; }
.cs-card { display: flex; flex-direction: column; border: 1px solid hsl(var(--border)); border-radius: var(--radius);
  padding: 1.25rem; background: hsl(var(--card)); }
.cs-card[hidden] { display: none; }
.cs-top { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-bottom: .7rem; }
.cs-badge { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .16rem .5rem; border-radius: 5px; }
.cs-ent { background: hsl(217 91% 60% / .16); color: hsl(217 91% 72%); }
.cs-gov { background: hsl(38 96% 56% / .16); color: hsl(38 96% 66%); }
.cs-sector { font-size: .8rem; font-weight: 600; color: hsl(var(--muted-foreground)); }
.cs-country { font-size: .8rem; color: hsl(var(--muted-foreground)); margin-left: auto; }
.cs-client { font-size: 1.15rem; margin: 0 0 .1rem; color: hsl(var(--foreground)); font-weight: 700; }
.cs-year { font-weight: 500; color: hsl(var(--muted-foreground)); font-size: .9rem; }
.cs-name { font-size: .92rem; font-weight: 600; color: hsl(var(--muted-foreground)); margin-bottom: .8rem; }
.cs-metric { font-size: 1rem; font-weight: 700; color: #fff; line-height: 1.4;
  padding: .6rem .8rem; margin-bottom: .9rem; background: var(--blue);
  border-radius: 8px; }
.cs-dl { margin: 0 0 .2rem; }
.cs-dl dt { font-size: .72rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  color: hsl(var(--foreground)); margin-top: .7rem; }
.cs-dl dd { margin: .2rem 0 0; font-size: .9rem; color: hsl(var(--muted-foreground)); line-height: 1.55; }
.cs-quote { margin: 1rem 0 .3rem; padding-left: .9rem; border-left: 2px solid var(--blue);
  font-style: italic; font-size: .9rem; color: hsl(var(--foreground) / .85); }
.cs-tech { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: .9rem 0 0; }
.cs-tech li { font-size: .72rem; font-weight: 600; color: hsl(var(--muted-foreground));
  padding: .18rem .5rem; border: 1px solid hsl(var(--border)); border-radius: 5px; }
.cs-src { margin: 1rem 0 0; padding-top: .8rem; border-top: 1px solid hsl(var(--border));
  font-size: .82rem; color: hsl(var(--muted-foreground)); }
.cs-src a { font-weight: 600; }
.cs-note { color: hsl(var(--muted-foreground)); font-size: .82rem; max-width: 70ch; margin: 2.2rem auto 1.4rem;
  padding: .9rem 1rem; border: 1px solid hsl(var(--border)); border-radius: var(--radius); background: hsl(var(--muted) / .25); text-align: center; }

/* ---- Contact: booking card + form ---- */
.booking-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: 1.4rem 0; }
.booking-card p { color: hsl(var(--muted-foreground)); font-size: .95rem; }
.contact-form { max-width: 640px; margin: .8rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: .4rem; font-weight: 600; font-size: .88rem; }
.contact-form input, .contact-form textarea { padding: .7rem .85rem; border: 1px solid hsl(var(--border)); border-radius: 10px; background: hsl(var(--card)); color: #fff; font: inherit; font-weight: 400; }
.contact-form input:focus-visible, .contact-form textarea:focus-visible { outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form button { align-self: flex-start; cursor: pointer; margin-top: .2rem; }
@media (max-width: 560px) { .contact-form .form-row { grid-template-columns: 1fr; } }
