@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ── Tokens ─────────────────────────────────────────── */
:root {
  --bg: #050b16;
  --bg-accent: #071a33;
  --bg-card: #0a1628;
  --accent: #a5c0ff;
  --accent-dim: #4a6fa5;
  --text: #ffffff;
  --text-muted: #9aa3b7;
  --text-faint: #5a6478;
  --border: rgba(165, 192, 255, 0.08);
  --border-hover: rgba(165, 192, 255, 0.18);
  --radius: 8px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", var(--font);
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.8; }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

/* ── Scroll Reveal ──────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-80px);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(80px);
  filter: blur(8px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
  filter: blur(0);
}
.reveal-scale {
  opacity: 0;
  transform: scale(0.8);
  filter: blur(10px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              transform 1.1s cubic-bezier(0.16, 1, 0.3, 1),
              filter 1.1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}
.reveal-scale.visible {
  opacity: 1;
  transform: scale(1);
  filter: blur(0);
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }
.reveal-delay-4 { transition-delay: 0.6s; }
.reveal-delay-5 { transition-delay: 0.75s; }

/* ── Nav ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(5, 11, 22, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid transparent;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
}
.nav.scrolled {
  background: rgba(5, 11, 22, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 36px; display: block; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); opacity: 1; }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero ───────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem;
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(16, 42, 79, 0.6) 0%, transparent 70%),
    var(--bg);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  right: -50%;
  bottom: -50%;
  background: radial-gradient(circle at 30% 40%, rgba(165, 192, 255, 0.03) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(74, 111, 165, 0.04) 0%, transparent 50%);
  animation: heroAmbient 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes heroAmbient {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(3%, -2%) rotate(3deg); }
}
.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero-inner {
  max-width: 720px;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-tag {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 6vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}
.hero-sub {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.45s both;
}
.hero-pillars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}
.pillar-sep { color: var(--text-faint); }

/* ── Sections ───────────────────────────────────────── */
.section {
  padding: 7rem 2rem;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.section-alt {
  background: var(--bg-accent);
}
.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 0.75rem;
  background: linear-gradient(90deg, var(--accent), var(--accent-dim), transparent);
  transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-title.visible::after {
  width: 80px;
}
.section-sub {
  color: var(--text-muted);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 560px;
  margin-bottom: 3rem;
  line-height: 1.7;
}
.text-muted { color: var(--text-muted); }

/* ── Approach ───────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.approach-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: calc(50% - 0.75rem);
}
.approach-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.4s;
}
.approach-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(165, 192, 255, 0.03);
}
.approach-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--accent);
}
.approach-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ── Services ───────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
}
.service-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3), 0 0 60px rgba(165, 192, 255, 0.04);
}
.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.service-label {
  font-size: 0.78rem;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}
.service-card > p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.service-features li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 0.4rem;
}
.service-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
}

/* ── Service landing page ───────────────────────────── */
.service-landing { max-width: 760px; margin: 0 auto; }
.service-landing-body {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin: 2rem 0 3rem;
}
.service-landing-body p { margin-bottom: 1rem; }
.service-landing-body strong { color: var(--text); }
.service-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.service-cta-note {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.form-done {
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1rem;
}
.form-done[hidden] { display: none; }
.form-done a { color: var(--accent); margin-left: 0.25rem; }
.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  accent-color: var(--accent);
}
.service-form button[type="submit"] {
  margin-top: 1.75rem;
}
.service-form .form-hint {
  margin-top: 1rem;
}
.service-form .form-note {
  margin-top: 0.75rem;
}
.service-form .form-check:first-of-type {
  margin-top: 1.5rem;
}

/* ── Bespoke ────────────────────────────────────────── */
.bespoke-section { max-width: 700px; }
.bespoke-text {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
}
.bespoke-list {
  margin: 1.5rem 0;
  list-style: none;
}
.bespoke-list li {
  position: relative;
  padding-left: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.bespoke-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-dim);
}
.bespoke-list li strong {
  color: var(--text);
}

/* ── Sectors ────────────────────────────────────────── */
.sectors-grid {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}
.sector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.3s;
}
.sector:hover { color: var(--text); }
.sector svg { color: var(--accent-dim); flex-shrink: 0; transition: color 0.3s; }
.sector:hover svg { color: var(--accent); }

/* ── Page header (insights + podcast) ─────────────────── */
.page-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--accent-dim);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
.page-lede {
  font-size: clamp(15px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 640px;
  line-height: 1.7;
}
.page-header {
  margin-bottom: 4rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ── Insights ─────────────────────────────────────────── */
.insights-page { max-width: 1100px; margin: 0 auto; }

.insight-feature {
  display: block;
  padding: 2.5rem;
  margin-bottom: 2rem;
  background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
}
.insight-feature::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.4;
}
.insight-feature:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.35), 0 0 80px rgba(165, 192, 255, 0.04);
  opacity: 1;
}
.insight-feature-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1rem;
}
.insight-feature-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  color: var(--text);
}
.insight-feature-summary {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 720px;
}
.insight-feature-cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.insight-feature:hover .insight-feature-cta { border-bottom-color: var(--accent-dim); }

.insights-grid, .blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.insight-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
  min-height: 260px;
}
.insight-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  opacity: 1;
}
.insight-date {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.insight-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.5rem 0 0.75rem;
}
.insight-summary {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
  flex: 1;
}
.insight-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
}
.insight-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.tag {
  font-size: 0.68rem;
  padding: 0.2em 0.65em;
  border-radius: 999px;
  background: rgba(165, 192, 255, 0.08);
  color: var(--accent);
  letter-spacing: 0.02em;
}
.insight-meta {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.insight-category {
  font-family: var(--font-heading);
  font-size: 0.66rem;
  padding: 0.25em 0.7em;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  color: var(--accent-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 500;
  display: inline-block;
}
a.insight-category-link {
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
a.insight-category-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(165, 192, 255, 0.06);
  opacity: 1;
}
.insight-readtime {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.insights-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-faint);
  border: 1px dashed var(--border);
  border-radius: 10px;
  font-size: 0.95rem;
}

/* ── Article (insight single) ─────────────────────────── */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.article-back:hover { color: var(--accent); opacity: 1; }
.article-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}
.article-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4.5vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 1rem 0;
}
.article-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.article-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}
.article-content > p:first-of-type {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 2rem;
}
.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 3rem 0 1rem;
  letter-spacing: -0.005em;
}
.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 2.25rem 0 0.75rem;
}
.article-content p { margin-bottom: 1.25rem; color: var(--text-muted); }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content em { color: var(--accent); font-style: italic; }
.article-content a { border-bottom: 1px solid var(--accent-dim); }
.article-content ul, .article-content ol {
  margin: 1.25rem 0 1.5rem 1.5rem;
  color: var(--text-muted);
}
.article-content ul { list-style: disc; }
.article-content ol { list-style: decimal; }
.article-content li { margin-bottom: 0.6rem; line-height: 1.7; }
.article-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.65;
}
.article-content blockquote p { color: var(--text); margin-bottom: 0.5rem; }
.article-content blockquote p:last-child { margin-bottom: 0; }
.article-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  padding: 0.15em 0.45em;
  background: var(--bg-card);
  border-radius: 4px;
  color: var(--accent);
  border: 1px solid var(--border);
}
.article-content pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: #0a1224;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}
.article-content pre code {
  padding: 0;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: inherit;
}
.article-content table {
  width: 100%;
  margin: 2rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.article-content th {
  font-family: var(--font-heading);
  color: var(--accent-dim);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  background: var(--bg-card);
}
.article-content td { color: var(--text-muted); }
.article-content hr {
  margin: 3rem 0;
  border: none;
  height: 1px;
  background: var(--border);
}
.article-content img {
  margin: 2rem 0;
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* ── Language switcher ────────────────────────────────── */
.footer-lang {
  margin-top: 0.75rem;
}
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.lang-switch a,
.lang-switch span {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.lang-switch a:hover { color: var(--accent); opacity: 1; }
.lang-switch-active {
  background: var(--accent-dim);
  color: var(--bg) !important;
}

/* ── Podcast ─────────────────────────────────────────── */
.podcast-page { max-width: 900px; margin: 0 auto; }
.podcast-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.podcast-cover-wrap {
  position: relative;
}
.podcast-cover-wrap::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent), transparent 60%);
  opacity: 0.15;
  z-index: 0;
}
.podcast-cover {
  position: relative;
  z-index: 1;
  width: 220px;
  height: 220px;
  border-radius: 12px;
  border: 1px solid var(--border-hover);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.podcast-header-text { min-width: 0; }
.podcast-subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.75rem;
}
.podcast-subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  background: var(--bg-card);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.podcast-subscribe-btn:hover {
  border-color: var(--accent);
  background: rgba(165, 192, 255, 0.05);
  transform: translateY(-1px);
  opacity: 1;
}
.podcast-subscribe-btn svg { color: var(--accent); }

.podcast-embed {
  margin-bottom: 3rem;
}
.podcast-embed iframe {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
}
.spotify-gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 0.85rem;
  min-height: 232px;
  padding: 2.5rem 1.5rem;
  border-radius: 12px;
  border: 1px dashed var(--border-hover);
  background: var(--bg-card);
}
.spotify-gate-mark { color: var(--accent-dim); }
.spotify-gate-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 40ch;
}
.spotify-gate-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--accent-dim);
  border-radius: 8px;
  background: rgba(165, 192, 255, 0.06);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.spotify-gate-btn:hover {
  border-color: var(--accent);
  background: rgba(165, 192, 255, 0.12);
  transform: translateY(-1px);
}
.spotify-gate-note {
  font-size: 0.78rem;
  color: var(--text-faint);
}
.spotify-gate-note a { color: var(--accent-dim); }
.spotify-gate-note a:hover { color: var(--accent); opacity: 1; }

.podcast-intro {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 720px;
}
.podcast-intro strong { color: var(--text); }
.podcast-intro p { margin-bottom: 1rem; }
.podcast-intro p:last-child { margin-bottom: 0; }

.podcast-section-title {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.podcast-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.podcast-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.1rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s;
}
.podcast-list-item:hover { border-color: var(--border-hover); }
.podcast-list-main { min-width: 0; }
.podcast-list-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  margin: 0 0 0.2rem;
}
.podcast-list-date {
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.podcast-list-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.podcast-list-link {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border-hover);
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.podcast-list-link:hover { border-color: var(--accent); color: var(--text); opacity: 1; }

/* ── Team ───────────────────────────────────────────── */
.team-grid {
  display: flex;
  gap: 3rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.team-stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.team-number {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.team-label {
  font-size: 0.75rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.team-detail p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 700px;
}

/* ── Resources ──────────────────────────────────────── */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.resource-card {
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s, transform 0.4s;
}
.resource-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.resource-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.resource-type {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-dim);
}
.resource-service {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15em 0.5em;
  border-radius: 3px;
  background: rgba(165, 192, 255, 0.08);
  color: var(--accent-dim);
}
.resource-tlp {
  display: inline-block;
  font-size: 0.6rem;
  font-family: monospace;
  letter-spacing: 0.08em;
  padding: 0.2em 0.6em;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-faint);
  margin-bottom: 1rem;
}
.resource-card h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.resource-card > p {
  font-size: 0.825rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

/* ── Trust signals ──────────────────────────────────── */
.trust-section { text-align: center; }
.trust-items {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.trust-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
}
.trust-value {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Newsletter ─────────────────────────────────────── */
.newsletter-section {
  text-align: center;
  max-width: 540px;
  margin: 0 auto;
}
.newsletter-sub {
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 420px;
  margin: 0 auto 1rem;
}
.newsletter-form input {
  flex: 1;
}
.newsletter-note {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ── Contact ────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-info {
  display: grid;
  gap: 1.5rem;
  padding-top: 0.5rem;
}
.contact-block h4 {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.contact-block p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Forms ──────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}
input, select, textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: rgba(165, 192, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 0.3s, background 0.3s;
  outline: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent-dim);
  background: rgba(165, 192, 255, 0.06);
}
textarea { resize: vertical; min-height: 100px; }
select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa3b7'%3E%3Cpath d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.5rem;
}
select option { background: var(--bg); color: var(--text); }
.form-note {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 1rem;
}
.form-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
}
.form-error {
  font-size: 0.8rem;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: 6px;
  padding: 0.6rem 0.9rem;
  margin-bottom: 1rem;
}
.form-error[hidden] { display: none; }

/* ── Buttons ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--bg);
}
.btn-primary:hover { opacity: 0.9; transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.5; cursor: default; transform: none; }
.btn-secondary {
  background: rgba(165, 192, 255, 0.06);
  color: var(--accent);
  border: 1px solid var(--border);
}
.btn-secondary:hover { border-color: var(--accent-dim); }

/* ── Modal ──────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}
.modal-content {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  max-width: 400px;
  width: 100%;
  animation: modalIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-content.modal-wide {
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-faint);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }
.modal-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.modal-content > p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Footer ─────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}
.footer-brand img { height: 28px; margin-bottom: 0.5rem; }
.footer-tagline {
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.05em;
}
.footer-contact {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
}
.footer-legal {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.footer-links {
  margin-top: 0.35rem;
}
.footer-links a {
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-muted); opacity: 1; }
.footer-social {
  margin-top: 0.85rem;
}
.footer-social-link {
  display: inline-flex;
  color: var(--text-faint);
  transition: color 0.2s;
}
.footer-social-link svg { width: 18px; height: 18px; }
.footer-social-link:hover { color: var(--text-muted); opacity: 1; }

/* ── Cookie consent banner ──────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 200;
  background: var(--bg-accent);
  border: 1px solid var(--border-hover);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 1.4rem;
}
.cookie-banner-title {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}
.cookie-banner-body {
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.cookie-banner-body a { color: var(--accent); }
.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, opacity 0.2s;
}
.cookie-btn-ghost {
  border: 1px solid var(--border-hover);
  background: transparent;
  color: var(--text-muted);
}
.cookie-btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.cookie-btn-solid {
  border: 1px solid var(--accent-dim);
  background: rgba(165, 192, 255, 0.1);
  color: var(--text);
}
.cookie-btn-solid:hover { border-color: var(--accent); background: rgba(165, 192, 255, 0.18); transform: translateY(-1px); }

/* ── Article Content ────────────────────────────────── */
.page-single { padding-top: 8rem; min-height: 60vh; }
.article-header { margin-bottom: 3rem; }
.article-back {
  font-size: 0.8rem;
  color: var(--text-faint);
  display: inline-block;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--accent); opacity: 1; }
.article-header h1 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 500;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.article-author {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.article-content h2 { font-size: 1.3rem; margin: 2.5rem 0 1rem; font-weight: 500; }
.article-content h3 { font-size: 1.1rem; margin: 2rem 0 0.75rem; font-weight: 500; }
.article-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 1.25rem; }
.article-content ul, .article-content ol {
  color: var(--text-muted);
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  list-style: disc;
}
.article-content li { margin-bottom: 0.4rem; line-height: 1.7; }
.article-content code {
  font-family: "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  background: rgba(165, 192, 255, 0.06);
  border-radius: 4px;
}
.article-content pre {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}
.article-content pre code {
  background: none;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.6;
}
.article-content blockquote {
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-style: italic;
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
  .services-grid,
  .insights-grid,
  .blog-grid,
  .resources-grid { grid-template-columns: 1fr; }
  .approach-grid { grid-template-columns: 1fr; }
  .approach-card:last-child:nth-child(odd) { max-width: 100%; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
  .podcast-header {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }
  .podcast-cover-wrap { margin: 0 auto; }
  .podcast-subscribe { justify-content: center; }
  .insight-feature { padding: 1.75rem; }
  .insight-feature-title { font-size: 1.5rem; }
}
@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(5, 11, 22, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1rem 2rem 1.5rem;
    gap: 0;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.9rem;
  }
  .nav-links a:last-child { border-bottom: none; }
  .hero { min-height: 85vh; padding: 4rem 1.5rem; }
  .hero-pillars { flex-wrap: wrap; gap: 0.5rem; }
  .section { padding: 5rem 1.5rem; min-height: auto; }
  .footer-inner { flex-direction: column; gap: 1.5rem; }
  .sectors-grid { flex-direction: column; gap: 1.25rem; }
  .team-grid { gap: 2rem; }
  .form-row { grid-template-columns: 1fr; }
  .cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 1rem; }
  .cookie-banner-actions { justify-content: flex-end; }
  .podcast-list-item { flex-direction: column; align-items: flex-start; gap: 0.85rem; }
}

/* ── Focus visible (keyboard accessibility) ─────────── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
}

/* ── AI Transparency Label — verification page ─────── */
.ailabel-wrap {
  max-width: 760px;
  margin: 0 auto;
}
.ailabel-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--border);
}
.ailabel-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
}
.ailabel-pill {
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  font-weight: 600;
}
.ailabel-pill-verified {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: rgba(165, 192, 255, 0.08);
}
.ailabel-pill-private {
  color: #ffb38a;
  border-color: rgba(255, 179, 138, 0.45);
  background: rgba(255, 179, 138, 0.1);
}
.ailabel-private-intro {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
  padding: 0.85rem 1.05rem;
  border: 1px solid rgba(255, 179, 138, 0.25);
  background: rgba(255, 179, 138, 0.05);
  border-radius: 6px;
}
.ailabel-private-locked-note {
  color: var(--text-faint);
  font-style: italic;
}
.ailabel-id {
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.ailabel-date { color: var(--text-faint); }
.ailabel-title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  margin-top: 1rem;
  letter-spacing: -0.01em;
}
.ailabel-section {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ailabel-section:last-of-type { border-bottom: none; }
.ailabel-section-title {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
}
.ailabel-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.ailabel-artifact-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}
a.ailabel-artifact-title { color: var(--text); border-bottom: 1px solid var(--accent-dim); }
a.ailabel-artifact-title:hover { color: var(--accent); }
.ailabel-kv {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.25rem;
  font-size: 0.9rem;
}
.ailabel-kv dt {
  color: var(--text-faint);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-family: var(--font-heading);
  padding-top: 0.2rem;
}
.ailabel-kv dd { color: var(--text-muted); word-break: break-word; }
.ailabel-kv a { border-bottom: 1px solid var(--accent-dim); }
.ailabel-hash {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  color: var(--text-muted);
  word-break: break-all;
}
.ailabel-ladder {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ailabel-rung {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(165, 192, 255, 0.02);
  color: var(--text-muted);
  font-size: 0.92rem;
}
.ailabel-rung-num {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--text-faint);
  font-weight: 600;
}
.ailabel-rung-active {
  border-color: var(--accent-dim);
  background: rgba(165, 192, 255, 0.06);
  color: var(--text);
}
.ailabel-rung-active .ailabel-rung-num,
.ailabel-rung-active .ailabel-rung-label { color: var(--text); font-weight: 600; }
.ailabel-rung-mark { color: var(--accent); font-size: 0.7rem; }
.ailabel-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ailabel-chip {
  display: inline-block;
  padding: 0.3em 0.8em;
  border-radius: 999px;
  border: 1px solid var(--border-hover);
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(165, 192, 255, 0.04);
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
.ailabel-chip-empty { color: var(--text-faint); border-style: dashed; background: transparent; }
.ailabel-list { list-style: none; }
.ailabel-list li {
  padding: 0.2rem 0;
  color: var(--text);
  font-size: 0.95rem;
}
.ailabel-list-empty { color: var(--text-faint); }
.ailabel-review { color: var(--text); font-size: 0.95rem; }
.ailabel-notes {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.95rem;
}
.ailabel-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
}
.ailabel-footer-key {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  font-family: var(--font-heading);
  color: var(--text-faint);
  margin-right: 0.5rem;
}
.ailabel-footer-val { color: var(--text-muted); }
.ailabel-footer-rubric { color: var(--accent); border-bottom: 1px solid var(--accent-dim); }

/* ── AI Transparency Label — crypto block ──────────── */
.ailabel-section-crypto {}
.ailabel-vector-row {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.ailabel-vector-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.ailabel-vector {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  word-break: break-all;
  display: block;
}
.ailabel-sig {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-card);
}
.ailabel-sig summary {
  cursor: pointer;
  padding: 0.6rem 0.9rem;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  list-style: none;
  user-select: none;
}
.ailabel-sig summary::-webkit-details-marker { display: none; }
.ailabel-sig summary::before {
  content: "▸ ";
  color: var(--text-faint);
}
.ailabel-sig[open] summary::before { content: "▾ "; }
.ailabel-sig .ailabel-sig-summary-hide { display: none; }
.ailabel-sig[open] .ailabel-sig-summary-show { display: none; }
.ailabel-sig[open] .ailabel-sig-summary-hide { display: inline; }
.ailabel-sig-block {
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--border);
  overflow-x: auto;
}
.ailabel-sig-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  white-space: pre;
}
.ailabel-kv-crypto {
  margin: 0.5rem 0 1rem;
}
.ailabel-kv-crypto dd code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}
.ailabel-verify-link {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}
.ailabel-unsigned-note {
  color: var(--text-faint);
  font-size: 0.88rem;
  font-style: italic;
}
.ailabel-verify-intro {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-top: 0.75rem;
}
.ailabel-verify-steps {
  list-style: decimal;
  margin-left: 1.5rem;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ailabel-verify-steps li p {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.ailabel-legend-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
}
.ailabel-legend-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.9rem;
}
.ailabel-legend-table th,
.ailabel-legend-table td {
  text-align: left;
  padding: 0.5rem 0.8rem;
  border-bottom: 1px solid var(--border);
}
.ailabel-legend-table th {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  font-weight: 600;
}
.ailabel-legend-table td:first-child {
  width: 4rem;
}
.ailabel-legend-table td code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: var(--accent);
  background: rgba(165, 192, 255, 0.06);
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
}
.ailabel-legend-table td:last-child {
  color: var(--text);
}
.ailabel-section-title code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--accent);
  font-size: 0.85rem;
  margin-right: 0.3rem;
}

/* ── AI Transparency Label — embeddable badge ──────── */
.ai-label-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--border-hover);
  border-radius: 6px;
  background: rgba(165, 192, 255, 0.05);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.ai-label-badge:hover {
  border-color: var(--accent-dim);
  background: rgba(165, 192, 255, 0.1);
  opacity: 1;
}
.ai-label-badge-key {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  font-size: 0.68rem;
}
.ai-label-badge-id {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ai-label-badge-sub {
  color: var(--text-muted);
  letter-spacing: 0.02em;
  border-left: 1px solid var(--border-hover);
  padding-left: 0.65rem;
}
.ai-label-badge-unknown { opacity: 0.55; }

/* ── AI Transparency Label — article footer disclosure ─ */
.article-ai-label {
  margin-top: 3rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(165, 192, 255, 0.03);
}
.article-ai-label-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-heading);
  text-decoration: none;
  border-bottom: none !important;
}
.article-ai-label-key {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}
.article-ai-label-id {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.article-ai-label-body {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem;
}
.article-ai-label-inv {
  color: var(--text);
  font-weight: 500;
}
.article-ai-label-sep {
  color: var(--text-faint);
}
.article-ai-label-verify {
  color: var(--accent);
  border-bottom: 1px solid var(--accent-dim);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.article-ai-label-vector {
  display: block;
  margin-top: 0.6rem;
  padding: 0.45rem 0.7rem;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.74rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ── AI Transparency Label — generator ─────────────── */
.ailabel-gen-wrap {
  max-width: 1200px;
  margin: 0 auto;
}
.ailabel-gen-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.ailabel-gen-intro {
  color: var(--text-muted);
  max-width: 720px;
  margin-top: 0.75rem;
  line-height: 1.6;
  font-size: 0.95rem;
}
.ailabel-gen-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 2.5rem;
  align-items: start;
}
.ailabel-gen-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ailabel-gen-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.ailabel-gen-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
}
.ailabel-gen-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: -0.15rem;
}
.ailabel-gen-form input[type="text"],
.ailabel-gen-form input[type="url"],
.ailabel-gen-form input[type="datetime-local"],
.ailabel-gen-form select,
.ailabel-gen-form textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-family: var(--font);
  font-size: 0.92rem;
  width: 100%;
  transition: border-color 0.2s;
}
.ailabel-gen-form input:hover,
.ailabel-gen-form select:hover,
.ailabel-gen-form textarea:hover { border-color: var(--border-hover); }
.ailabel-gen-form textarea { font-family: var(--font); resize: vertical; min-height: 5rem; }
.ailabel-gen-row {
  display: flex;
  gap: 0.5rem;
}
.ailabel-gen-row input { flex: 1; }
.ailabel-gen-btn,
.ailabel-gen-btn-secondary {
  background: rgba(165, 192, 255, 0.08);
  border: 1px solid var(--border-hover);
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 0.5rem 0.9rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ailabel-gen-btn:hover,
.ailabel-gen-btn-secondary:hover {
  background: rgba(165, 192, 255, 0.16);
  border-color: var(--accent-dim);
}
.ailabel-gen-btn-secondary { padding: 0.5rem 0.75rem; }
.ailabel-gen-fieldset {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ailabel-gen-fieldset legend {
  padding: 0 0.4rem;
}
.ailabel-gen-radio,
.ailabel-gen-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}
.ailabel-gen-radio input,
.ailabel-gen-check input {
  accent-color: var(--accent);
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}
.ailabel-gen-outputs {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.ailabel-gen-out {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-card);
  overflow: hidden;
}
.ailabel-gen-out-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(165, 192, 255, 0.03);
}
.ailabel-gen-out-head h3 {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin: 0;
}
.ailabel-gen-out-actions {
  display: flex;
  gap: 0.4rem;
}
.ailabel-gen-out pre {
  margin: 0;
  padding: 0.9rem 1rem;
  overflow-x: auto;
}
.ailabel-gen-out code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.ailabel-gen-out-path {
  padding: 0 1rem 0.75rem;
  font-size: 0.75rem;
  color: var(--text-faint);
}
.ailabel-gen-out-path code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(165, 192, 255, 0.06);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

@media (max-width: 900px) {
  .ailabel-gen-grid { grid-template-columns: 1fr; }
  .ailabel-gen-outputs { position: static; max-height: none; }
  .ailabel-section-split { grid-template-columns: 1fr; gap: 1.5rem; }
}
