/* GENERATED FILE — do not edit.
   Source: frontend/src/brand.css  ·  Regenerate: node scripts/sync-brand-css.js
   Edit the source, not this copy. */

/* ──────────────────────────────────────────────────────────────────────────
   AI OFFICE lockup — typesetting for Brand.js.

   Every ratio here was measured off the delivered masters rather than eyeballed,
   so a 15px sidebar signature and a 64px hero lockup are the same drawing at
   two sizes. --brand-size is the font-size of AI OFFICE; everything scales
   from it.

   Measured from lockup-stacked (name cap 151px @ 213px font-size):
     wordmark        Poppins 600, +0.065em tracking   → width 7.166x cap
     by AgentHub     0.275x name font-size, +0.059em  → width 7.05x its height
     slogan          0.165x name font-size, +0.05em
     rule row        spans exactly the width of the wordmark
   ────────────────────────────────────────────────────────────────────────── */

.brand-mark {
  display: block;
  object-fit: contain;
  user-select: none;
  flex: none;
}

.brand-lockup {
  --brand-size: 22px;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
  line-height: 1;
}

.brand-words {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── AI OFFICE ─────────────────────────────────────────────────────────── */
.brand-name {
  font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: var(--brand-size);
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1;
  white-space: nowrap;
  color: var(--brand-ink, #0A1F33);
}

/* The two words carry different colour — that split is the wordmark. */
.brand-name-ai {
  background: linear-gradient(100deg, #1E5BFF 0%, #2F6BFF 55%, #4D8BFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* ── by AgentHub, flanked by the orange rules ──────────────────────────── */
/* The row stretches to the wordmark's width and the rules take up the slack,
   which is how the master sets it in both the stacked and horizontal art. */
.brand-parent {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: calc(var(--brand-size) * 0.5);
  font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: calc(var(--brand-size) * 0.275);
  font-weight: 400;
  letter-spacing: 0.059em;
  line-height: 1;
  white-space: nowrap;
  color: var(--brand-parent-fg, #0A1F33);
}

.brand-parent b { font-weight: 600; }

.brand-rule {
  flex: 1 1 0;
  min-width: calc(var(--brand-size) * 0.35);
  height: max(1px, calc(var(--brand-size) * 0.012));
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(255, 154, 46, 0) 0%, #FF9A2E 45%, #FFBE72 100%);
}

.brand-parent > .brand-rule:last-child {
  background: linear-gradient(90deg, #FFBE72 0%, #FF9A2E 55%, rgba(255, 154, 46, 0) 100%);
}

/* ── Slogan ────────────────────────────────────────────────────────────── */
.brand-slogan {
  font-family: 'Poppins', 'Plus Jakarta Sans', system-ui, sans-serif;
  font-size: calc(var(--brand-size) * 0.165);
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.35;
  color: var(--brand-slogan-fg, #17203A);
}

.brand-slogan em {
  font-style: normal;
  color: #1E5BFF;
}

/* ── Vertical rhythm ───────────────────────────────────────────────────── */
/* Ink-to-ink gaps from the master, converted for line-height:1 boxes: a
   line box carries ~0.17em of its own leading around the cap, so the margins
   below are the measured gap minus what the boxes already contribute. The
   stacked and horizontal masters genuinely set this gap differently — 0.20em
   against 0.30em — which is why the value is per-variant. */
.brand-slogan  { margin-top: calc(var(--brand-size) * 0.167); }

/* ── Variants ──────────────────────────────────────────────────────────── */
.brand-lockup-stacked {
  flex-direction: column;
  gap: calc(var(--brand-size) * 0.20);
  text-align: center;
}
.brand-lockup-stacked .brand-words { align-items: center; }
.brand-lockup-stacked .brand-name  { margin-bottom: calc(var(--brand-size) * 0.032); }

.brand-lockup-horizontal { gap: calc(var(--brand-size) * 0.5); }
/* The master hangs the mark off the wordmark's centre line, not the centre of
   the whole text block — otherwise the by-AgentHub row drags it visibly low. */
.brand-lockup-horizontal .brand-mark {
  align-self: flex-start;
  margin-top: calc(var(--brand-size) * -0.62);
}
.brand-lockup-horizontal .brand-name   { margin-bottom: calc(var(--brand-size) * 0.119); }
.brand-lockup-horizontal .brand-parent { font-size: calc(var(--brand-size) * 0.315); }

.brand-lockup-signature { gap: 0; }
.brand-lockup-signature .brand-name   { margin-bottom: calc(var(--brand-size) * 0.119); }
.brand-lockup-signature .brand-parent { font-size: calc(var(--brand-size) * 0.315); }

/* ── Dark surfaces ─────────────────────────────────────────────────────── */
/* Navy ink vanishes on a navy footer, so OFFICE goes white and the AI
   gradient lifts to the brighter end of the blue ramp. */
.brand-tone-dark {
  --brand-ink: #FFFFFF;
  --brand-parent-fg: rgba(255, 255, 255, 0.80);
  --brand-slogan-fg: rgba(255, 255, 255, 0.74);
}
.brand-tone-dark .brand-name-ai {
  background: linear-gradient(100deg, #3D77FF 0%, #4D8BFF 50%, #00B4FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
.brand-tone-dark .brand-slogan em { color: #00B4FF; }

/* Background-clipped text has no colour to fall back on in forced-colors or
   print, so hand it a solid one. */
@media print {
  .brand-name-ai { -webkit-text-fill-color: #1E5BFF; color: #1E5BFF; }
}
@media (forced-colors: active) {
  .brand-name-ai { -webkit-text-fill-color: currentColor; color: currentColor; background: none; }
  .brand-rule { background: CanvasText; }
}
