/* ==========================================================================
   Dan Manning · danmanning.co.uk
   Dark-futuristic AI theme with light/dark switching.
   All colours flow from CSS custom properties so theming is single-source.
   ========================================================================== */

:root {
  /* Brand */
  --accent: #6ee7ff;
  --accent-2: #a78bfa;
  --accent-3: #22d3ee;
  --grad: linear-gradient(110deg, var(--accent), var(--accent-2));

  /* Dark theme (default) */
  --bg: #06080f;
  --bg-soft: #0b0f1c;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #eef2ff;
  --text-soft: #aab4cf;
  --text-dim: #6b7693;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7);
  --glow: 0 0 40px -8px rgba(110, 231, 255, 0.45);

  /* Type */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --gutter: clamp(20px, 5vw, 56px);
  --assistant-w: 400px; /* docked side-panel width on desktop */
}

[data-theme='light'] {
  --bg: #f5f7fc;
  --bg-soft: #eef1f8;
  --surface: rgba(12, 18, 38, 0.03);
  --surface-2: rgba(12, 18, 38, 0.05);
  --border: rgba(12, 18, 38, 0.10);
  --border-strong: rgba(12, 18, 38, 0.18);
  --text: #0c1430;
  --text-soft: #46506e;
  --text-dim: #79839f;
  --shadow: 0 20px 50px -24px rgba(38, 50, 90, 0.35);
  --glow: 0 0 40px -10px rgba(124, 92, 246, 0.35);
  --accent: #2563eb;
  --accent-2: #7c3aed;
  --accent-3: #0891b2;
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; font-weight: 600; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--accent); color: #001018; padding: 10px 16px;
  border-radius: 8px; font-weight: 600;
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  --bw: 1px;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: var(--bw) solid var(--border-strong); background: var(--surface);
  color: var(--text); transition: transform 0.15s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--grad); color: #04111c; border-color: transparent;
  box-shadow: var(--glow);
}
.btn--primary:hover { box-shadow: 0 0 50px -6px rgba(124, 130, 246, 0.6); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }
.btn__dot {
  width: 9px; height: 9px; border-radius: 50%; background: #04111c;
  box-shadow: 0 0 0 0 rgba(4,17,28,0.6); animation: ping 1.8s infinite;
}
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(4,17,28,0.5);} 70%{box-shadow:0 0 0 7px rgba(4,17,28,0);} 100%{box-shadow:0 0 0 0 rgba(4,17,28,0);} }

/* --------------------------------------------------------------------------
   Nav
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background 0.3s, right 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner {
  max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.nav__brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; }
.nav__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad); color: #04111c; font-size: 0.85rem; letter-spacing: 0.5px;
}
.nav__links { display: flex; gap: 26px; font-size: 0.92rem; color: var(--text-soft); }
.nav__links a { position: relative; }
.nav__links a:hover { color: var(--text); }
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0;
  background: var(--grad); transition: width 0.25s ease;
}
.nav__links a:hover::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  cursor: pointer; transition: transform 0.2s, border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { transform: rotate(18deg); border-color: var(--accent); color: var(--accent); }
.theme-toggle__icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle__icon--sun { display: none; }
[data-theme='light'] .theme-toggle__icon--moon { display: none; }
[data-theme='light'] .theme-toggle__icon--sun { display: block; }

@media (max-width: 1000px) {
  .nav__links { display: none; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 120px var(--gutter) 80px; }

/* ----- Global fixed backdrop (grid + ambient glows + particle field) -----
   Sits behind all content with a negative z-index; content scrolls over it.
   The body keeps a solid base colour, so the transparent parts of this layer
   reveal the dark base while the texture stays put as you scroll. */
.site-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.site-bg__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(to right, var(--border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 95% 85% at 50% 22%, #000 22%, transparent 88%);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 22%, #000 22%, transparent 88%);
  opacity: 0.5;
}
.site-bg__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.4; }
.site-bg__glow--1 { width: 520px; height: 520px; top: -140px; right: -100px; background: radial-gradient(circle, var(--accent), transparent 65%); }
.site-bg__glow--2 { width: 480px; height: 480px; bottom: -180px; left: -140px; background: radial-gradient(circle, var(--accent-2), transparent 65%); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.hero__content {
  position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center;
}
.hero__text { min-width: 0; }
.hero__content--solo { grid-template-columns: 1fr; } /* fallback when no photo */

/* Portrait — the photo's dark constellation backdrop blends into the page,
   framed by a soft accent glow ring. */
.hero__portrait { position: relative; margin: 0; justify-self: center; max-width: 420px; width: 100%; }
.hero__portrait::before {
  content: ''; position: absolute; inset: -2px; border-radius: 26px; z-index: -1;
  background: var(--grad); filter: blur(22px); opacity: 0.45;
}
.hero__portrait img {
  display: block; width: 100%; height: auto; border-radius: 24px;
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  /* Feather the bottom/side edges so the photo melts into the dark hero. */
  mask-image: radial-gradient(120% 120% at 50% 35%, #000 62%, transparent 100%);
  -webkit-mask-image: radial-gradient(120% 120% at 50% 35%, #000 62%, transparent 100%);
}
[data-theme='light'] .hero__portrait img {
  mask-image: none; -webkit-mask-image: none;
}
[data-theme='light'] .hero__portrait::before { opacity: 0.6; }

@media (max-width: 880px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__portrait { grid-row: 1; max-width: 260px; }
  .hero { padding-top: 104px; }
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--text-soft); padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); margin-bottom: 28px;
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: blink 2s infinite; }
@keyframes blink { 50% { opacity: 0.35; } }

.hero__title { font-size: clamp(2.6rem, 7vw, 5.2rem); font-weight: 700; letter-spacing: -0.02em; max-width: 16ch; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  display: inline-block;
}
.hero__lede { margin-top: 26px; max-width: 60ch; font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--text-soft); }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 40px 0 0; padding: 0; }
.hero__chips li {
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-soft);
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 64px) var(--gutter); }
.section__head { margin-bottom: 52px; }
.section__kicker { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section__title { font-size: clamp(1.9rem, 4.4vw, 3.1rem); letter-spacing: -0.02em; }
.section__title--center { text-align: center; max-width: none; margin: 0 auto 48px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 56px; }
.stat {
  padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  position: relative; overflow: hidden;
}
.stat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--grad); }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.9rem); letter-spacing: -0.02em; line-height: 1; }
.stat__label { margin-top: 12px; font-size: 0.92rem; color: var(--text-soft); }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .stats { grid-template-columns: 1fr; } }

/* Cards */
.impact__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface); transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--text-soft); font-size: 0.96rem; }
.card--feature { grid-column: span 3; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 12%, transparent), var(--surface)); border-color: var(--border-strong); }
.card--feature h3 { font-size: 1.5rem; }
.card--feature strong { color: var(--text); }
@media (max-width: 880px) { .impact__cards { grid-template-columns: 1fr; } .card--feature { grid-column: auto; } }

/* Expertise panels */
.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.panel {
  padding: 32px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.25s, border-color 0.25s;
}
.panel:hover { transform: translateY(-4px); border-color: var(--accent); }
.panel__icon { font-size: 1.6rem; color: var(--accent); margin-bottom: 14px; }
.panel h3 { font-size: 1.22rem; margin-bottom: 10px; }
.panel p { color: var(--text-soft); font-size: 0.97rem; }
@media (max-width: 760px) { .grid--2 { grid-template-columns: 1fr; } }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--accent-2), transparent); }
.timeline__item { display: grid; grid-template-columns: 230px 1fr; gap: 30px; padding: 0 0 38px 30px; position: relative; }
.timeline__meta { display: flex; align-items: baseline; gap: 14px; }
.timeline__dot { position: absolute; left: 0; top: 7px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 3px solid var(--accent); box-shadow: 0 0 14px var(--accent); }
.timeline__meta time { font-family: var(--font-mono); font-size: 0.82rem; color: var(--text-soft); }
.timeline__body h3 { font-size: 1.18rem; }
.timeline__org { color: var(--accent); font-weight: 600; margin: 4px 0 8px; font-size: 0.95rem; }
.timeline__body p:last-child { color: var(--text-soft); font-size: 0.96rem; }
.timeline__item--muted .timeline__dot { border-color: var(--text-dim); box-shadow: none; }
@media (max-width: 720px) { .timeline__item { grid-template-columns: 1fr; gap: 6px; } }

/* Awards */
.awards__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.award { padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); text-align: center; }
.award__year { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--accent); }
.award__name { display: block; margin-top: 8px; color: var(--text-soft); font-size: 0.95rem; }
@media (max-width: 760px) { .awards__row { grid-template-columns: 1fr; } }

/* Speaker / press bio */
.bio__card {
  max-width: 900px; margin: 0 auto; padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
}
.bio__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bio__card .section__title { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 18px; }
.bio__text { color: var(--text-soft); font-size: 1.02rem; max-width: 68ch; }
.bio__copy.is-copied { border-color: var(--accent); color: var(--accent); }

/* Contact */
.contact__card {
  max-width: 820px; margin: 0 auto; text-align: center; padding: clamp(36px, 6vw, 64px);
  border-radius: 28px; border: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse 80% 120% at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%),
    var(--surface-2);
  box-shadow: var(--shadow);
}
.contact__card .section__title { margin: 8px auto 0; }
.contact__lede { color: var(--text-soft); margin: 22px auto 30px; max-width: 56ch; }
.contact__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.channel {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--surface); font-weight: 600; font-size: 0.92rem;
  transition: transform 0.15s, border-color 0.2s, color 0.2s;
}
.channel:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.channel svg { width: 18px; height: 18px; fill: currentColor; }

/* Footer */
.footer { text-align: center; padding: 48px var(--gutter); border-top: 1px solid var(--border); color: var(--text-dim); font-size: 0.9rem; }
.footer__note { margin-top: 8px; font-family: var(--font-mono); font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Reveal animation
   -------------------------------------------------------------------------- */
/* Hidden-until-scrolled applies only once main.js is running (it sets .js-reveal on <html>). */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn__dot, .pulse, .assistant-launcher__pulse { animation: none; }
}

/* --------------------------------------------------------------------------
   AI Assistant widget
   -------------------------------------------------------------------------- */
.assistant-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 150;
  width: 62px; height: 62px; border-radius: 50%; cursor: pointer;
  border: none; background: var(--grad); color: #04111c; display: grid; place-items: center;
  box-shadow: 0 12px 36px -8px rgba(110, 231, 255, 0.6); transition: transform 0.2s;
}
.assistant-launcher:hover { transform: scale(1.06); }
.assistant-launcher__icon { width: 28px; height: 28px; fill: currentColor; position: relative; z-index: 1; }
.assistant-launcher__pulse {
  position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent);
  animation: launcher-pulse 2.4s infinite;
}
@keyframes launcher-pulse { 0%{transform:scale(1);opacity:0.7;} 100%{transform:scale(1.7);opacity:0;} }
.assistant-launcher.is-open { transform: scale(0.9); opacity: 0; pointer-events: none; }

/* Docked side panel: full-height column flush to the right edge. On desktop
   the page content reflows into the remaining width (see body.assistant-docked
   below) so the chat sits ALONGSIDE the site rather than overlaying it. */
.assistant {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 151;
  width: var(--assistant-w); max-width: 100vw;
  display: flex; flex-direction: column;
  background: var(--bg-soft); border-left: 1px solid var(--border-strong);
  overflow: hidden; box-shadow: -24px 0 60px -24px rgba(0, 0, 0, 0.65);
  animation: assistant-slide 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
}
@keyframes assistant-slide { from { transform: translateX(100%); } to { transform: none; } }
.assistant[hidden] { display: none; }

/* Push the page aside on screens wide enough to show both side by side. */
@media (min-width: 900px) {
  body { transition: padding-right 0.3s cubic-bezier(0.2, 0.9, 0.3, 1); }
  body.assistant-docked { padding-right: var(--assistant-w); }
  body.assistant-docked .nav { right: var(--assistant-w); }
}

/* Too narrow to sit beside content: present as a full-height overlay instead. */
@media (max-width: 899px) {
  .assistant { width: 100vw; }
}
@media (prefers-reduced-motion: reduce) {
  .assistant { animation: none; }
  body { transition: none; }
}

.assistant__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--border); background: var(--surface); }
.assistant__id { display: flex; align-items: center; gap: 12px; }
.assistant__avatar { position: relative; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #04111c; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; overflow: hidden; flex-shrink: 0; }
.assistant__avatar-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.assistant__avatar.is-imgless .assistant__avatar-img { display: none; } /* fallback to DM monogram */
.assistant__avatar-fallback { position: relative; z-index: 0; } /* only visible when no photo */
.assistant__title { font-family: var(--font-display); font-weight: 600; }
.assistant__status { font-size: 0.76rem; color: var(--text-soft); display: flex; align-items: center; gap: 7px; }
.assistant__online { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
.assistant__close { background: none; border: none; color: var(--text-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.assistant__close:hover { color: var(--text); }

.assistant__log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 14px; font-size: 0.92rem; line-height: 1.5; animation: msg-in 0.25s ease; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg--bot { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; }
.msg--user { align-self: flex-end; background: var(--grad); color: #04111c; border-bottom-right-radius: 4px; font-weight: 500; }
.msg strong { color: inherit; }
.msg__channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.msg__channels a { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg-soft); color: var(--text); font-size: 0.82rem; font-weight: 600; }
.msg__channels a:hover { border-color: var(--accent); color: var(--accent); }
.msg__channels svg { width: 15px; height: 15px; fill: currentColor; }

.typing { display: inline-flex; gap: 4px; align-items: center; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--text-soft); animation: typing 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-5px); opacity: 1; } }

.assistant__suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 12px; }
.suggest-chip {
  font-size: 0.8rem; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-soft);
  font-family: var(--font-body); transition: border-color 0.2s, color 0.2s;
}
.suggest-chip:hover { border-color: var(--accent); color: var(--accent); }

.assistant__form { display: flex; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); background: var(--surface); }
.assistant__input { flex: 1; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 0.92rem; }
.assistant__input:focus { outline: none; border-color: var(--accent); }
.assistant__send { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--grad); color: #04111c; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: transform 0.15s; }
.assistant__send:hover { transform: scale(1.06); }
.assistant__send svg { width: 19px; height: 19px; fill: currentColor; }

@media (max-width: 460px) {
  .assistant-launcher { right: 16px; bottom: 16px; }
}


/* --------------------------------------------------------------------------
   Phone menu, shared by every page
   -------------------------------------------------------------------------- */
.nav__menu { display: none; font: inherit; font-size: 0.92rem; font-weight: 600; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.nav__menu:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav__name { white-space: nowrap; }
@media (max-width: 1000px) {
  .nav__menu { display: inline-flex; }
  .nav__long { display: none; }
  .nav__actions .btn { padding: 9px 14px; font-size: 0.9rem; }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 100%; left: 0; right: 0;
    padding: 8px var(--gutter) 18px; background: var(--bg); border-bottom: 1px solid var(--border); font-size: 1.05rem;
  }
  .nav.is-open .nav__links a { padding: 12px 0; color: var(--text); }
}

/* --------------------------------------------------------------------------
   Homepage: live demos strip, hero on phones, contact extras
   -------------------------------------------------------------------------- */
.hero { min-height: min(100svh, 860px); }
.demos .section__head { margin-bottom: 28px; }
.card--demo { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; border-color: var(--border-strong); }
.card--demo h3 { font-size: 1.35rem; }
.card--demo p { color: var(--text-soft); flex: 1; }
.demos__more { margin-top: 22px; font-size: 0.95rem; }
.demos__more a, .contact__more a { color: var(--accent); }
.section__head > p:not(.section__kicker) { margin-top: 14px; max-width: 62ch; color: var(--text-soft); }
.contact__more { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 0.95rem; }
.link-button { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.msg a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 880px) {
  .hero { min-height: 0; padding-bottom: 48px; }
  .hero__portrait { grid-row: auto; max-width: 200px; justify-self: start; }
  .hero__chips { margin-top: 26px; }
}

.hero__title { max-width: 22ch; font-size: clamp(2.3rem, 4.6vw, 3.9rem); }
.hero__title .grad-text { display: block; }

@media (max-width: 480px) { .nav__actions .btn { display: none; } }


/* --------------------------------------------------------------------------
   One site: shared header, footer and page width on every page
   -------------------------------------------------------------------------- */
.nav__actions .btn, .nav__menu { white-space: nowrap; }
.nav__links { white-space: nowrap; }
.footer__links { margin-top: 10px; }
.footer__links a { color: var(--accent); }
.footer { margin-top: clamp(40px, 5vw, 64px); }
