/* OpenMinds Onboarding Hub — modeled on the OpenMinds® deck + website aesthetic
   Sky-blue + charcoal palette, matching the OpenMinds wordmark. Satoshi throughout. */

@font-face {
  font-family: 'Satoshi';
  src: url('uploads/fonts/Satoshi-Variable.woff2') format('woff2-variations'),
       url('uploads/fonts/Satoshi-Variable.woff2') format('woff2');
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('uploads/fonts/Satoshi-VariableItalic.woff2') format('woff2-variations'),
       url('uploads/fonts/Satoshi-VariableItalic.woff2') format('woff2');
  font-weight: 300 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f4f6f7;        /* cool off-white */
  --bg-card: #ffffff;
  --ink: #2d2d2d;             /* logo charcoal */
  --ink-2: #3a3a3a;
  --ink-3: #6a6d70;
  --ink-4: #a5a8ab;
  --line: #e4e8eb;
  --line-strong: #cdd3d8;
  --accent: #4fbfe0;          /* OpenMinds sky blue */
  --accent-2: #2ea7cf;         /* deeper hover */
  --accent-soft: #e2f4fb;
  --accent-ink: #1c6783;
  --dark: #2d2d2d;
  --dark-2: #3a3a3a;
  --pos: #2b6e4f;

  --display: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Satoshi', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;

  --radius: 2px;
  --radius-lg: 6px;
}

[data-theme="dark"] {
  --bg: #1a1d20;
  --bg-soft: #22262a;
  --bg-card: #22262a;
  --ink: #f0f3f5;
  --ink-2: #d4d8dc;
  --ink-3: #8a8e92;
  --ink-4: #4d5155;
  --line: #2d3236;
  --line-strong: #3d4448;
  --accent: #5fcaeb;
  --accent-soft: #1a3a48;
  --accent-ink: #b8e4f4;
  --dark: #f0f3f5;
  --dark-2: #d4d8dc;
}

[data-theme="cool"] {
  --bg: #ffffff;
  --bg-soft: #eef2f7;
  --bg-card: #ffffff;
  --ink: #0a1118;
  --ink-2: #1e2a38;
  --ink-3: #5b6776;
  --ink-4: #97a0ad;
  --line: #dde3eb;
  --line-strong: #c4cdd9;
  --accent: #1f4f99;
  --accent-soft: #d6e2f3;
  --accent-ink: #102b54;
  --dark: #0a1118;
  --dark-2: #1e2a38;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; cursor: pointer; }
a { color: inherit; }

/* ===== App shell ===== */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px 1fr;
}

/* SIDEBAR — dark, like the deck cover */
.sidebar {
  background: var(--dark);
  color: #f5f3ed;
  padding: 32px 26px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
[data-theme="dark"] .sidebar { background: #000; }
.sidebar .brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar .brand-logo {
  display: block;
  width: 140px;
  height: auto;
  background: #ffffff;
  padding: 12px 16px;
  border-radius: 4px;
  box-sizing: content-box;
}
.sidebar .brand-text {
  font-family: var(--display);
  line-height: 1;
}
.sidebar .brand-text .word {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: block;
}
.sidebar .brand-text .word sup {
  font-size: 10px;
  font-weight: 500;
  margin-left: 1px;
  vertical-align: super;
  opacity: 0.6;
}
.sidebar .brand-text .tag {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(245, 243, 237, 0.55);
  margin-top: 8px;
  display: block;
  line-height: 1.4;
}

.sidebar nav { display: flex; flex-direction: column; gap: 1px; }
.sidebar nav .label {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: rgba(245, 243, 237, 0.4);
  padding: 4px 0 12px;
}
.sidebar nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 0;
  font-size: 14px;
  color: rgba(245, 243, 237, 0.75);
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-weight: 400;
  border-top: 1px solid rgba(255,255,255,0.06);
  transition: color 120ms, padding 120ms;
}
.sidebar nav button:first-of-type { border-top: 0; }
.sidebar nav button:hover { color: #fff; padding-left: 4px; }
.sidebar nav button.active {
  color: #fff;
  font-weight: 500;
}
.sidebar nav button.active .num { color: var(--accent); }
.sidebar nav button .num {
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(245, 243, 237, 0.35);
  letter-spacing: 0.1em;
  width: 18px;
}
.sidebar .tagline {
  margin-top: auto;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.sidebar .tagline .line {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 243, 237, 0.55);
  line-height: 1.7;
}
.sidebar .tagline .accent-line { color: var(--accent); }

/* ===== Main canvas ===== */
.canvas {
  padding: 56px 72px 140px;
  max-width: 1180px;
  background: var(--bg);
}
@media (max-width: 980px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .canvas { padding: 32px 24px 120px; }
}

/* ===== Topbar ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.topbar .crumb {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink-3);
}
.topbar .crumb .sep { color: var(--accent); margin: 0 8px; }
.topbar .right { display: flex; gap: 10px; align-items: center; }

/* ===== Page header ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
}

.page-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 68px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 18px 0 22px;
  text-wrap: balance;
  text-transform: uppercase;
  color: var(--ink);
}
.page-title em {
  font-style: normal;
  color: var(--ink);
  font-weight: 700;
}
.page-title em .o-blue {
  color: var(--accent);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 62ch;
  text-wrap: pretty;
  font-weight: 400;
}
@media (max-width: 760px) {
  .page-title { font-size: 44px; }
}

/* ===== Sections ===== */
section.block { margin-top: 64px; scroll-margin-top: 24px; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 20px;
  border-top: 2px solid var(--ink);
  padding-top: 18px;
  margin-bottom: 28px;
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.section-head .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* ===== Pillar grid (deck-style numbered offerings) ===== */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
@media (max-width: 760px) { .pillars-grid { grid-template-columns: 1fr; } }
.pillar {
  background: var(--bg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pillar .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.18em;
  font-weight: 500;
}
.pillar h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  margin: 0;
  color: var(--ink);
}
.pillar p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.pillar ul {
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}
.pillar ul li {
  padding: 9px 0 9px 28px;
  position: relative;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  line-height: 1.4;
}
.pillar ul li::before {
  content: counter(item, decimal-leading-zero);
  counter-increment: item;
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--accent);
  font-weight: 500;
}
.pillar ul { counter-reset: item; }

/* ===== Founder / People card ===== */
.founder {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  display: grid;
  grid-template-columns: 1.2fr 2.5fr;
  gap: 36px;
}
.founder:first-of-type { border-top: 1px solid var(--line); }
.founder .who h4 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  line-height: 1;
}
.founder .who .role {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
}
.founder ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
  color: var(--ink-2);
}
.founder ul li { padding-left: 18px; position: relative; }
.founder ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; gap: 14px; }
}

/* ===== Subsidiary tile ===== */
.sub {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 0;
  text-align: left;
  cursor: default;
  transition: background 200ms;
  min-height: 120px;
}
button.sub { cursor: pointer; }
button.sub:hover { background: var(--bg-soft); }
.sub .name {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.sub .blurb {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ===== Case study row ===== */
.case {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  display: grid;
  grid-template-columns: 1.3fr 1fr 2fr;
  gap: 28px;
  align-items: start;
}
.case:first-of-type { border-top: 2px solid var(--ink); padding-top: 24px; }
.case .client {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.case .sector {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-top: 6px;
}
.case .work {
  font-size: 13.5px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.5;
}
.case .outcome { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }
@media (max-width: 760px) {
  .case { grid-template-columns: 1fr; gap: 8px; }
}

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  cursor: pointer;
  transition: padding 120ms;
}
.checklist li:first-of-type { border-top: 2px solid var(--ink); }
.checklist li:hover { padding-left: 8px; }
.checklist li .box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  flex-shrink: 0;
  margin-top: 2px;
  display: grid;
  place-items: center;
  transition: background 120ms, border-color 120ms;
}
.checklist li.checked .box {
  background: var(--accent);
  border-color: var(--accent);
}
.checklist li.checked .box::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}
.checklist li.checked .label { color: var(--ink-4); text-decoration: line-through; }
.checklist .label { color: var(--ink); }

/* ===== Timeline 30/60/90 ===== */
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--ink);
  border: 1px solid var(--ink);
}
.timeline .stage {
  background: var(--bg);
  padding: 24px 22px;
}
.timeline .stage .tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 10px;
}
.timeline .stage h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1;
}
.timeline .stage ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: var(--ink-2);
}
.timeline .stage ul li { padding-left: 16px; position: relative; line-height: 1.5; }
.timeline .stage ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 880px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ===== Tools table ===== */
.tools { border-top: 2px solid var(--ink); }
.tool {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 22px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.tool .t-name {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  letter-spacing: -0.005em;
}
.tool .t-why { color: var(--ink-3); }

/* ===== Hero stats — deck-style giant numbers ===== */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 44px;
  border: 1px solid var(--ink);
  background: var(--ink);
}
.hero-stat {
  background: var(--bg);
  padding: 22px 22px 26px;
}
.hero-stat .num {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: var(--ink);
}
.hero-stat .num .plus {
  color: var(--accent);
  font-weight: 700;
}
.hero-stat .lbl {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  margin-top: 10px;
}
@media (max-width: 760px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stat .num { font-size: 40px; }
}

/* ===== Welcome name form ===== */
.welcome-form {
  display: flex;
  gap: 0;
  margin-top: 28px;
  max-width: 440px;
  border: 1.5px solid var(--ink);
}
.welcome-form input {
  flex: 1;
  border: 0;
  background: var(--bg);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}
.welcome-form input:focus { outline: none; background: var(--bg-soft); }
.welcome-form button {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.welcome-form button:disabled { opacity: 0.4; }

/* ===== Intern badge + admin trigger ===== */
.intern-pill {
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-2);
  padding: 7px 12px;
  background: var(--bg-soft);
  border-radius: 0;
  border: 1px solid var(--line-strong);
}

.sync-pill {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 7px 12px;
  border-radius: 0;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.sync-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.sync-synced { color: #1a6d4c; border-color: #c4e4d4; background: #f0faf4; }
.sync-synced .dot { background: #2b8d63; }
.sync-syncing { color: var(--accent-ink); border-color: var(--accent); background: var(--accent-soft); }
.sync-syncing .dot { background: var(--accent); animation: pulse 1.4s infinite; }
.sync-error { color: #8a2929; border-color: #f0c8c8; background: #faf0f0; }
.sync-error .dot { background: #c0392b; }

.admin-trigger {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(245, 243, 237, 0.85);
  background: transparent;
  border: 1px solid rgba(245, 243, 237, 0.18);
  padding: 9px 12px;
  border-radius: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
}
.admin-trigger:hover { border-color: var(--accent); color: var(--accent); }
.admin-trigger .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Assistant ===== */
.assistant-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  border-radius: 0;
  padding: 14px 22px 14px 18px;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  z-index: 50;
  transition: transform 180ms;
}
.assistant-toggle:hover { transform: translateY(-2px); }
.assistant-toggle .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.assistant {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 420px;
  max-height: calc(100vh - 48px);
  background: var(--bg);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 50;
}
@media (max-width: 520px) {
  .assistant { width: calc(100vw - 16px); right: 8px; bottom: 8px; }
}
.assistant header {
  padding: 14px 18px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  gap: 12px;
}
.assistant header .title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.assistant header .caption {
  font-family: var(--mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.5);
  margin-top: 2px;
}
.assistant header .av {
  width: 26px;
  height: 26px;
  background: var(--accent);
  border-radius: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  color: var(--ink);
}
.assistant header .x {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  padding: 4px 8px;
  border-radius: 0;
}
.assistant header .x:hover { color: #fff; }

.thread {
  padding: 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 280px;
  background: var(--bg);
}
.msg { max-width: 92%; font-size: 13.5px; line-height: 1.55; }
.msg.user {
  align-self: flex-end;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 14px;
  border-radius: 0;
}
.msg.bot {
  align-self: flex-start;
  background: var(--bg-soft);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 0;
  border-left: 2px solid var(--accent);
  white-space: pre-wrap;
}
.msg.bot .src {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.msg.bot .src .badge {
  display: inline-block;
  padding: 3px 7px;
  background: var(--accent);
  color: white;
  border-radius: 0;
  font-weight: 500;
}

.suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 18px 14px;
}
.suggestions button {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink-2);
  padding: 7px 11px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all 120ms;
}
.suggestions button:hover {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.composer {
  border-top: 1px solid var(--line);
  padding: 12px;
  display: flex;
  gap: 0;
  background: var(--bg-soft);
}
.composer input {
  flex: 1;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 0;
  padding: 11px 14px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--ink);
  border-right: 0;
}
.composer input:focus {
  outline: none;
  border-color: var(--ink);
}
.composer button {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 0 18px;
  border-radius: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.composer button:disabled { opacity: 0.4; }

.thinking {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}
.thinking span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: bounce 1.1s infinite;
}
.thinking span:nth-child(2) { animation-delay: 0.15s; }
.thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* ===== Admin Modal ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}
.modal {
  background: var(--bg);
  border-radius: 0;
  border: 1.5px solid var(--ink);
  width: 760px;
  max-width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.modal header {
  padding: 22px 28px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: flex-start;
}
.modal header h2 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1;
}
.modal header .caption {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.55);
  margin-top: 8px;
}
.modal header .x {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  padding: 4px 10px;
  border-radius: 0;
}
.modal header .x:hover { color: #fff; }
.modal .body {
  padding: 24px 28px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  background: var(--bg);
}
.tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 0 28px;
}
.tabs button {
  background: transparent;
  border: 0;
  padding: 14px 16px 14px 0;
  margin-right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  position: relative;
  font-weight: 500;
}
.tabs button.active { color: var(--ink); }
.tabs button.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 22px;
  bottom: -1px;
  height: 2px;
  background: var(--accent);
}

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.field input, .field textarea {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  border-radius: 0;
  padding: 11px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: 0;
  padding: 12px 20px;
  border-radius: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  align-self: flex-start;
}
.btn-primary:disabled { opacity: 0.4; }
.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  padding: 11px 16px;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

.qa-row {
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg);
}
.qa-row .q { font-weight: 500; font-size: 14.5px; color: var(--ink); }
.qa-row .a { font-size: 13px; color: var(--ink-3); line-height: 1.55; }
.qa-row .meta {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 4px;
}
.qa-row .meta .when {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--ink-4);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.qa-row .meta button {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0;
}
.qa-row .meta button:hover { color: var(--accent); }

.empty {
  text-align: center;
  padding: 32px 14px;
  color: var(--ink-3);
  font-size: 13px;
  border: 1px dashed var(--line-strong);
  border-radius: 0;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Office card ===== */
.office {
  background: var(--bg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.office .country {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 6px;
}
.office .entity {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  margin-bottom: 4px;
}
.office .addr {
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.5;
}
.office .tel { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.office .web {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  margin-top: 6px;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}

/* ===== Callout card ===== */
.callout {
  background: var(--ink);
  color: var(--bg);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.callout .tag {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
}
.callout .text {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(245, 243, 237, 0.95);
  max-width: 70ch;
}

/* ===== FAQ accordion ===== */
.faq-item {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.faq-item:first-of-type { border-top: 2px solid var(--ink); }
.faq-item summary {
  cursor: pointer;
  padding: 18px 4px;
  font-size: 15px;
  font-weight: 500;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  min-width: 20px;
}
.faq-item summary .q-text { flex: 1; }
.faq-item summary .team-badge {
  font-family: var(--mono);
  font-size: 8.5px;
  padding: 3px 7px;
  background: var(--accent);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
}
.faq-item summary .chev {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--ink-3);
  transition: transform 180ms;
}
.faq-item[open] summary .chev { transform: rotate(45deg); }
.faq-item .a {
  padding: 0 4px 22px 38px;
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.65;
  max-width: 72ch;
}
