/* =========================================================================
   Say LLC — Design System
   Plain CSS (no @apply): loaded alongside the Tailwind Play CDN.
   Tokens are documented in ARCHITECTURE.md — keep both in sync.
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #111111;              /* graphite base */
  --surface: #1A1A1A;         /* card surfaces */
  --surface-2: #232323;       /* inputs / nested panels */

  /* Borders */
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);

  /* Text */
  --text: #FAFAF9;
  --muted: #A8A29E;
  --subtle: #78716C;

  /* Accents (Graphite + Amber) */
  --accent: #FBBF24;          /* amber-400: text, icons, focus */
  --accent-strong: #F59E0B;   /* amber-500: primary brand */
  --steel: #F97316;           /* orange: secondary glow */
  --accent-soft: rgba(245, 158, 11, 0.12);

  /* Status */
  --success: #10B981;         /* emerald – pass / healthy / live */
  --success-text: #34D399;    /* emerald, lighter for small text on dark */
  --success-soft: rgba(16, 185, 129, 0.1);
  --success-border: rgba(16, 185, 129, 0.3);

  /* Shape */
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;

  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* ---------- Base ---------- */
html {
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

[hidden] { display: none !important; }

::selection { background: rgba(245, 158, 11, 0.3); color: #fff; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #1C1917;
  font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.font-mono { font-family: var(--font-mono); }

/* ---------- Decorative backgrounds ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 65% at 50% 0%, #000 35%, transparent 100%);
}

.hero-glow {
  background:
    radial-gradient(620px circle at 78% 12%, rgba(245, 158, 11, 0.14), transparent 60%),
    radial-gradient(520px circle at 12% 35%, rgba(249, 115, 22, 0.11), transparent 60%);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.018), rgba(255, 255, 255, 0));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hairline { border-top: 1px solid var(--border); }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(17, 17, 17, 0.7);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(17, 17, 17, 0.88);
  border-bottom-color: var(--border);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: linear-gradient(140deg, #2A2A2A, #151515);
  border: 1px solid var(--border-strong);
  color: var(--accent);
  box-shadow: 0 6px 18px -8px rgba(245, 158, 11, 0.45);
}

.brand-word {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.8rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, 0.04); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 0.8rem;
  right: 0.8rem;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.07); }
.icon-btn .icon-close { display: none; }
.icon-btn[aria-expanded="true"] .icon-open { display: none; }
.icon-btn[aria-expanded="true"] .icon-close { display: block; }

.mobile-menu {
  border-top: 1px solid var(--border);
  background: rgba(17, 17, 17, 0.98);
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--muted);
}
.mobile-link:hover,
.mobile-link.is-active { color: #fff; }
.mobile-link.is-active::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}
.btn-sm { height: 2.25rem; padding: 0 0.95rem; font-size: 0.85rem; }
.btn-lg { height: 3.1rem; padding: 0 1.5rem; font-size: 0.95rem; }

.btn-primary {
  background: linear-gradient(180deg, #FBBF24 0%, #F59E0B 100%);
  color: #1C1917;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 10px 28px -12px rgba(217, 119, 6, 0.7);
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: #fff;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.3); }

.btn[disabled] { opacity: 0.75; cursor: progress; transform: none; filter: none; }

.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.text-link {
  color: var(--accent);
  font-weight: 500;
  text-underline-offset: 4px;
}
.text-link:hover { text-decoration: underline; }

/* ---------- Typography ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.hero-title {
  font-size: clamp(2.5rem, 5.4vw, 4rem);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: #fff;
}

.section-title {
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.028em;
  color: #fff;
}

.section-lead {
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.text-gradient {
  background: linear-gradient(92deg, #FFFFFF 0%, #FDE68A 45%, #FCD34D 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Pills / badges ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.8rem;
  color: #D6D3D1;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 1.4rem;
  padding: 0 0.5rem;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background: var(--success-soft);
  border: 1px solid var(--success-border);
  color: var(--success-text);
}
.badge-accent { background: var(--accent-soft); border-color: rgba(245, 158, 11, 0.3); color: #FCD34D; }
.badge-muted { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0) 70%), var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.card-hover { transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease; }
.card-hover:hover {
  border-color: rgba(245, 158, 11, 0.32);
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -30px rgba(217, 119, 6, 0.45);
}

.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.25);
  color: var(--accent);
}

.label-caps {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--subtle);
}

.check-list > li {
  position: relative;
  padding-left: 1.65rem;
  color: #D6D3D1;
  font-size: 0.9rem;
  line-height: 1.55;
}
.check-list > li + li { margin-top: 0.6rem; }
.check-list > li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.05rem;
  height: 1.05rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23FBBF24'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 010 1.4l-8 8a1 1 0 01-1.4 0l-4-4a1 1 0 111.4-1.4L8 12.6l7.3-7.3a1 1 0 011.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---------- Hero pipeline panel ---------- */
.panel {
  position: relative;
  background: rgba(26, 26, 26, 0.82);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.45), transparent 40%, transparent 70%, rgba(249, 115, 22, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }

.pipe-row {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1.15rem;
}
.pipe-row + .pipe-row { border-top: 1px dashed rgba(255, 255, 255, 0.07); }
.pipe-idx {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--subtle);
  padding-top: 0.15rem;
}
.pipe-title { font-size: 0.9rem; font-weight: 600; color: #fff; }
.pipe-desc { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }

.panel-foot {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.panel-foot > div { padding: 0.85rem 1rem; }
.panel-foot > div + div { border-left: 1px solid var(--border); }

/* ---------- Engagement steps ---------- */
.step-num {
  display: inline-grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: rgba(245, 158, 11, 0.08);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

@media (min-width: 1024px) {
  .steps-track { position: relative; }
  .steps-track::before {
    content: "";
    position: absolute;
    top: 3.05rem;
    left: 3.5rem;
    right: 3.5rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), rgba(249, 115, 22, 0.25), rgba(245, 158, 11, 0.45));
    z-index: 0;
  }
  .steps-track > * { position: relative; z-index: 1; }
}

/* ---------- Selector widget ---------- */
.selector-legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
}
.selector-legend .legend-num {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.option { position: relative; display: block; cursor: pointer; }
.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.option-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 0.9rem 1rem 0.9rem 2.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.option-body::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.option:hover .option-body { border-color: var(--border-strong); background: rgba(255, 255, 255, 0.04); }
.option input:checked + .option-body {
  border-color: rgba(245, 158, 11, 0.6);
  background: rgba(245, 158, 11, 0.07);
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.3);
}
.option input:checked + .option-body::before {
  border-color: var(--accent);
  background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px);
}
.option input:focus-visible + .option-body { outline: 2px solid var(--accent); outline-offset: 2px; }
.option-title { font-size: 0.9rem; font-weight: 600; color: #fff; }
.option-desc { font-size: 0.78rem; color: var(--muted); line-height: 1.45; }

.rec-block { padding: 1.15rem 0; }
.rec-block + .rec-block { border-top: 1px solid var(--border); }
.rec-title { font-size: 1rem; font-weight: 600; color: #fff; margin-top: 0.4rem; }
.rec-note { font-size: 0.85rem; color: var(--muted); line-height: 1.6; margin-top: 0.35rem; }
.rec-enter { animation: rec-in 0.45s ease both; }

@keyframes rec-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Forms ---------- */
.field-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #D6D3D1;
}
.field-label .req { color: var(--accent); margin-left: 2px; }

.field {
  width: 100%;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: rgba(17, 17, 17, 0.75);
  color: #fff;
  font-size: 0.925rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
.field::placeholder { color: #6B6560; }
.field:hover { border-color: rgba(255, 255, 255, 0.26); }
.field:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(17, 17, 17, 0.95);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}
select.field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%23A8A29E'%3E%3Cpath fill-rule='evenodd' d='M5.2 7.2a.75.75 0 011.06 0L10 10.94l3.74-3.74a.75.75 0 111.06 1.06l-4.27 4.27a.75.75 0 01-1.06 0L5.2 8.26a.75.75 0 010-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 1.1rem;
}
select.field option { background: var(--surface); color: #fff; }
textarea.field { min-height: 150px; resize: vertical; }

.form-status {
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  line-height: 1.55;
}
.form-status.is-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #FCA5A5;
}
.form-status.is-info {
  background: var(--accent-soft);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FDE68A;
}
.form-status a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.is-prefilled { animation: prefill-pulse 1.8s ease; }
@keyframes prefill-pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  100% { box-shadow: 0 0 0 18px rgba(245, 158, 11, 0); }
}

.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(28, 25, 23, 0.3);
  border-top-color: #1C1917;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Client feedback ---------- */
.quote-card { position: relative; overflow: hidden; }
.quote-mark {
  position: absolute;
  top: -0.6rem;
  right: 1.1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 6.5rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.quote-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}

/* ---------- Founder ---------- */
.monogram {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 24px;
  background: linear-gradient(140deg, #2A2A2A 0%, #151515 100%);
  border: 1px solid var(--border-strong);
  color: #fff;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  box-shadow: 0 18px 40px -18px rgba(245, 158, 11, 0.5);
}
.monogram-sm { width: 56px; height: 56px; border-radius: 16px; font-size: 1.2rem; }

.profile-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.25rem;
  padding: 1rem 0;
}
.profile-row + .profile-row { border-top: 1px solid var(--border); }
@media (min-width: 640px) {
  .profile-row { grid-template-columns: 180px 1fr; gap: 1.5rem; }
}

/* ---------- Scroll reveal (progressive enhancement) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Mobile polish ---------- */
@media (max-width: 640px) {
  .btn { height: 3rem; }
  .btn-sm { height: 2.5rem; }
  .panel-foot { grid-template-columns: 1fr; }
  .panel-foot > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .field { font-size: 16px; } /* prevents iOS zoom on focus */
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* =========================================================================
   Visual components (service illustrations, timeline, portraits)
   Pure HTML/CSS illustrations — no external image requests.
   ========================================================================= */

/* ---------- Service card illustration frame ---------- */
.viz {
  position: relative;
  height: 168px;
  margin: -0.25rem -0.25rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background:
    radial-gradient(260px circle at 80% 0%, rgba(245, 158, 11, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(17, 17, 17, 0.9), rgba(26, 26, 26, 0.9));
  overflow: hidden;
}
.viz::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  pointer-events: none;
}
.viz > * { position: relative; z-index: 1; }

.skel { display: block; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.skel-accent { background: rgba(245, 158, 11, 0.55); }

/* App: browser + phone */
.viz-browser {
  position: absolute;
  left: 18px;
  top: 22px;
  width: 72%;
  height: 128px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}
.viz-browser-bar { display: flex; gap: 4px; padding: 7px 9px; border-bottom: 1px solid var(--border); }
.viz-browser-bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.viz-browser-body { display: grid; grid-template-columns: 34% 1fr; gap: 10px; padding: 10px; }
.viz-browser-body .col { display: grid; gap: 7px; align-content: start; }
.viz-tile { height: 34px; border-radius: 6px; border: 1px solid var(--border); background: rgba(245, 158, 11, 0.07); }
.viz-phone {
  position: absolute;
  right: 18px;
  bottom: -14px;
  width: 74px;
  height: 140px;
  padding: 14px 8px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-2);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  display: grid;
  gap: 7px;
  align-content: start;
}

/* Guardrails: checked message stream */
.viz-stream { display: grid; gap: 9px; padding: 20px 18px; }
.viz-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(26, 26, 26, 0.9);
}
.viz-msg .skel { flex: 1; }
.viz-chip {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 6px;
  border-radius: 5px;
  border: 1px solid var(--success-border);
  background: var(--success-soft);
  color: var(--success-text);
}
.viz-chip.warn { border-color: rgba(96, 165, 250, 0.3); background: rgba(96, 165, 250, 0.08); color: #93C5FD; }
.viz-chip.block { border-color: rgba(248, 113, 113, 0.3); background: rgba(248, 113, 113, 0.08); color: #FCA5A5; }

/* Model selection: comparison bars */
.viz-bars { display: grid; gap: 12px; padding: 22px 18px; }
.viz-bar-row { display: grid; grid-template-columns: 62px 1fr; align-items: center; gap: 10px; }
.viz-bar-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--subtle); }
.viz-bar-track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.viz-bar-fill { display: block; height: 100%; border-radius: 6px; background: rgba(168, 162, 158, 0.45); }
.viz-bar-row.is-selected .viz-bar-label { color: var(--accent); }
.viz-bar-row.is-selected .viz-bar-fill { background: linear-gradient(90deg, #D97706, #FCD34D); box-shadow: 0 0 14px rgba(245, 158, 11, 0.5); }

/* ---------- Engagement timeline ---------- */
.timeline { display: grid; gap: 2.5rem; }
.timeline-node {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.35);
  background: linear-gradient(160deg, rgba(245, 158, 11, 0.16), rgba(26, 26, 26, 0.9));
  color: var(--accent);
  box-shadow: 0 10px 30px -14px rgba(245, 158, 11, 0.7);
}
@media (min-width: 1024px) {
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
  .timeline::before {
    content: "";
    position: absolute;
    top: 1.625rem;
    left: 3.25rem;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.5), rgba(249, 115, 22, 0.25) 60%, transparent);
  }
  .timeline > li { position: relative; }
}

/* ---------- Portraits ---------- */
.portrait {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9);
}
.portrait img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 22%; }
.portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 17, 17, 0.85) 100%);
  pointer-events: none;
}
.portrait-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgba(17, 17, 17, 0.72);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}

.avatar {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  border: 2px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 10px 30px -12px rgba(245, 158, 11, 0.6);
}

.principle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.9rem;
  font-weight: 500;
  color: #fff;
}
.principle svg { flex-shrink: 0; color: var(--accent); }

/* ---------- About: experience / education list ---------- */
.cv-list { position: relative; }
.cv-item { position: relative; padding-left: 1.75rem; }
.cv-item + .cv-item { margin-top: 1.5rem; }
.cv-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  background: var(--bg);
}
.cv-item.is-current::before { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15); }
.cv-item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.15rem;
  bottom: -1.3rem;
  width: 1px;
  background: var(--border-strong);
}
.cv-title { font-size: 0.975rem; font-weight: 600; color: #fff; }
.cv-sub { margin-top: 0.2rem; font-size: 0.875rem; color: var(--muted); }

/* ---------- Example dashboard (#dashboard) ---------- */
.dash {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(26, 26, 26, 0.95), rgba(17, 17, 17, 0.95));
  box-shadow: 0 50px 100px -50px rgba(217, 119, 6, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}
.dash-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(17, 17, 17, 0.8);
  overflow-x: auto;
}
.dash-tab {
  padding: 0.4rem 0.85rem;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.dash-tab:hover { color: #fff; }
.dash-tab[aria-selected="true"] {
  color: #1C1917;
  background: linear-gradient(180deg, #FBBF24, #F59E0B);
  font-weight: 600;
}
.dash-panel { padding: 1rem; }
@media (min-width: 640px) { .dash-panel { padding: 1.25rem; } }
.dash-panel:focus-visible { outline-offset: -4px; }

.kpi {
  position: relative;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.kpi-label { font-size: 0.72rem; color: var(--subtle); }
.kpi-value { margin-top: 0.3rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; color: #fff; font-variant-numeric: tabular-nums; }
.kpi-dot { position: absolute; top: 1rem; right: 1rem; width: 7px; height: 7px; border-radius: 50%; }

.dash-card {
  padding: 1.1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.dash-card-title { font-size: 0.82rem; font-weight: 600; color: #E7E5E4; }
.legend-sw { display: inline-block; width: 8px; height: 8px; border-radius: 2px; }

.log-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(17, 17, 17, 0.6);
  font-size: 0.75rem;
  color: #D6D3D1;
}
.log-row .font-mono { font-size: 0.7rem; }

.dash-table { width: 100%; min-width: 460px; border-collapse: collapse; font-size: 0.8rem; }
.dash-table th {
  padding: 0 0.6rem 0.6rem;
  text-align: left;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--subtle);
  border-bottom: 1px solid var(--border);
}
.dash-table td { padding: 0.75rem 0.6rem; color: #D6D3D1; border-bottom: 1px solid rgba(255, 255, 255, 0.05); white-space: nowrap; }
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tr.is-selected td { background: rgba(245, 158, 11, 0.06); color: #fff; }
.qbar { width: 110px; height: 6px; border-radius: 4px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.qbar span { display: block; height: 100%; border-radius: 4px; background: rgba(168, 162, 158, 0.55); }
.is-selected .qbar span { background: linear-gradient(90deg, #D97706, #FCD34D); }
.dash-panel:not([hidden]) { animation: rec-in 0.35s ease both; }
