:root {
  --bg: #090b10;
  --bg-alt: #0d1017;
  --surface: #12161f;
  --border: #232838;
  --text: #f2f3f7;
  --text-muted: #98a0b3;
  --accent: #2dd4bf;
  --accent-soft: rgba(45, 212, 191, 0.12);
  --gold: #d8c07a;
  --max-width: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

:root[data-theme="light"] {
  --bg: #faf9f6;
  --bg-alt: #f1efe9;
  --surface: #ffffff;
  --border: #e4e1d8;
  --text: #16181d;
  --text-muted: #5b5f6b;
  --accent: #0f9d8f;
  --accent-soft: rgba(15, 157, 143, 0.1);
  --gold: #a3872f;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #faf9f6;
    --bg-alt: #f1efe9;
    --surface: #ffffff;
    --border: #e4e1d8;
    --text: #16181d;
    --text-muted: #5b5f6b;
    --accent: #0f9d8f;
    --accent-soft: rgba(15, 157, 143, 0.1);
    --gold: #a3872f;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

strong { color: var(--text); }

.bg-fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 12% 8%, var(--accent-soft), transparent 38%),
    radial-gradient(circle at 88% 22%, rgba(216, 192, 122, 0.08), transparent 42%);
}

/* HEADER / NAV */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.brand-badge.small { width: 26px; height: 26px; font-size: 0.68rem; }

.brand-name {
  font-weight: 700;
  font-size: 1rem;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 26px;
  margin: 0 auto;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--accent); }

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
}

.nav-social a { transition: color 0.2s ease; }
.nav-social a:hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  display: block;
}

/* SECTIONS */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px;
  position: relative;
  z-index: 1;
}

.section-alt { background: var(--bg-alt); }

.eyebrow-label {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 22px;
}

.section-lede {
  color: var(--text-muted);
  max-width: 680px;
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.grad-text {
  background: linear-gradient(90deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-text-2 {
  background: linear-gradient(90deg, var(--gold), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; margin-left: auto; margin-right: auto; }

/* HERO */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 100px 24px 80px;
  width: 100%;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 26px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 20px;
}

.hero-lede {
  max-width: 560px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

.hero-actions.center { justify-content: center; margin-bottom: 40px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  /* So a <button> carrying .btn looks identical to an <a> carrying it. The
     variants below re-apply their own background, border and colour. */
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #052420;
}

.btn-primary:hover { transform: translateY(-2px); }

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }

.btn-block { width: 100%; justify-content: center; }

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { display: flex; flex-direction: column; gap: 4px; }

.stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--mono);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hero-photo {
  position: relative;
  justify-self: center;
}

.hero-photo img {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
}

.hero-photo::after {
  content: "";
  position: absolute;
  top: -10px;
  right: -10px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 56px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover { transform: translateY(-4px); border-color: var(--accent); }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
}

.card h3 { font-size: 1.02rem; margin-bottom: 8px; }

.card p { color: var(--text-muted); font-size: 0.9rem; }

.skills-block, .publications, .interests-block { margin-bottom: 48px; }

.skills-block:last-child, .publications:last-child, .interests-block:last-child { margin-bottom: 0; }

.skills-title {
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.pub-list a {
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 4px;
  display: inline-block;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.pub-list a:hover { border-color: var(--accent); color: var(--accent); }

/* TIMELINE */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 28px;
  border-left: 2px solid var(--border);
  margin-left: 9px;
  padding-left: 32px;
}

.tl-item { position: relative; }

.tl-marker {
  position: absolute;
  left: -38px;
  top: 30px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.tl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  transition: border-color 0.2s ease;
}

.tl-card:hover { border-color: var(--accent); }

.tl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 10px;
}

.tl-date {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 6px;
}

.tl-card h3 { font-size: 1.15rem; margin-bottom: 4px; }

.tl-org { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 12px; }

.tl-desc { color: var(--text-muted); max-width: 680px; margin-bottom: 16px; }

.tl-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.tag {
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* MUSIC */
.music-section { position: relative; overflow: hidden; }

.music-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
  margin-bottom: 48px;
}

.music-cards { grid-template-columns: 1fr; margin-bottom: 0; }

.music-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  height: fit-content;
}

.music-stats { display: flex; flex-direction: column; gap: 20px; }

/* LANGUAGES */
.lang-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.lang-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.lang-name { font-weight: 600; }
.lang-level { font-size: 0.8rem; color: var(--accent); font-family: var(--mono); }

/* ADVISORY */
.advisory-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.advisory-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 24px;
  transition: border-color 0.2s ease;
}

.advisory-item:hover { border-color: var(--accent); }

.advisory-item .card-icon { margin-bottom: 0; flex-shrink: 0; }

.advisory-item h3 { font-size: 1rem; margin-bottom: 6px; }

.advisory-item p { color: var(--text-muted); font-size: 0.92rem; }

/* CONTACT */
.contact-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-link {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover { transform: translateY(-3px); border-color: var(--accent); }

.contact-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  font-weight: 600;
}

.contact-value { font-size: 1rem; font-weight: 600; }

.contact .section-title { margin-bottom: 16px; }

/* FOOTER */
.site-footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* REVEAL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-photo img { width: min(240px, 70vw); margin: 0 auto; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .cards { grid-template-columns: 1fr; }
  .music-layout { grid-template-columns: 1fr; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-links { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px;
    gap: 18px;
    transform: translateY(-120%);
    transition: transform 0.25s ease;
    z-index: 40;
  }

  .nav-links.open { transform: translateY(0); }

  .nav-toggle { display: flex; }

  .nav-social { display: none; }

  .hero-inner { padding-top: 90px; }

  .section-inner { padding: 72px 20px; }

  .timeline { padding-left: 26px; margin-left: 4px; }

  .tl-marker { left: -32px; }

  .lang-grid { grid-template-columns: 1fr; }
}

/* LATEST ON X WIDGET (external, loaded from post-widget.onrender.com/widget.js) */
.x-widget { max-width: 480px; }

.x-widget .pw-widget {
  font: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 0;
  max-width: none;
}

.x-widget .pw-widget li { border-bottom-color: var(--border); }

.x-widget .pw-widget a { color: var(--text); }

.x-widget .pw-widget a:hover { color: var(--accent); }

.x-widget .pw-widget .pw-date { color: var(--text-muted); }

.x-widget .pw-widget .pw-err { color: var(--gold); }

.x-widget .pw-widget .pw-loading { color: var(--text-muted); }

.x-widget-fallback {
  max-width: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.x-widget-fallback p {
  color: var(--text-muted);
  margin-bottom: 14px;
}

/* ---------- AI MATURITY SCAN ----------
   The banner on the home page and the frame it expands into, shared with
   ai-maturity-report.html. The scan itself lives in its own Space and arrives
   as an iframe; everything here is the wrapper around it. */

/* The section thesis sits directly above the banner, after the cards and
   publications, so it needs the air a section opener would have had. */
.scan-thesis { margin-top: 72px; }

.scan-cta {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 44px 40px;
  margin-top: 12px;
}

/* A gradient hairline across the top, and a soft accent glow behind the
   left-hand text — enough to read as a promoted block without a loud panel. */
.scan-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}

.scan-cta::after {
  content: '';
  position: absolute;
  top: -140px;
  left: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, var(--accent-soft), transparent 68%);
  pointer-events: none;
}

.scan-cta-head {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.scan-cta-copy { flex: 1 1 380px; min-width: 0; }

.scan-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.scan-kicker b {
  color: #052420;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.scan-cta h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
}

.scan-cta p {
  color: var(--text-muted);
  margin-top: 14px;
  max-width: 56ch;
}

.scan-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: 0 0 auto;
}

.scan-facts {
  position: relative;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.scan-facts li { display: flex; align-items: center; gap: 8px; }
.scan-facts li::before { content: '—'; color: var(--accent); }

/* The iframe mount. Hidden until the visitor asks for it, so the home page
   costs nothing extra to load and the Space is only woken on intent. */
.scan-mount {
  position: relative;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

.scan-mount[hidden] { display: none; }

.scan-mount-loading {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 26px 0;
}

/* The scan renders its own paper-coloured card, so it sits on a light surface
   in both themes rather than fighting the dark page around it. */
.scan-frame {
  background: #edefea;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.scan-frame iframe { display: block; }

/* ---------- the standalone page ---------- */

.scan-page .section-inner { padding-top: 130px; }

.scan-page .scan-facts { border-top: none; padding-top: 0; margin-bottom: 30px; }

.scan-note {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 68ch;
}

.scan-note a { color: var(--accent); }

@media (max-width: 680px) {
  .scan-cta { padding: 30px 22px; border-radius: 16px; }
  .scan-actions { width: 100%; }
  .scan-actions .btn { flex: 1 1 auto; justify-content: center; }
  .scan-page .section-inner,
  .aiotc-page .section-inner { padding-top: 110px; }
}

/* ---------- AI ON THE CLOCK ----------
   The series archive. Same palette and type as the rest of the site — the
   carousel images carry the series' own identity, so the page around them
   stays quiet. Editorial rhythm comes from spacing and rules, not colour. */

.nav-links a.active { color: var(--accent); }

/* Nine nav items overflow before the mobile breakpoint bites. */
@media (max-width: 1180px) and (min-width: 901px) {
  .nav-links { gap: 17px; }
  .nav-links a { font-size: 0.84rem; }
}

.aiotc-page .section-inner { padding-top: 130px; }

.aiotc-tagline {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: -8px;
  margin-bottom: 34px;
}

.aiotc-intro { max-width: 660px; }
.aiotc-intro p { color: var(--text-muted); margin-bottom: 16px; }
.aiotc-intro strong { color: var(--text); }

/* ---------- the list ---------- */

.aiotc-list {
  list-style: none;
  margin-top: 46px;
  border-top: 1px solid var(--border);
}

.aiotc-item { border-bottom: 1px solid var(--border); }

.aiotc-item a {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0 22px;
  align-items: baseline;
  padding: 26px 0 26px 0;
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}

.aiotc-item a:hover {
  border-left-color: var(--accent);
  padding-left: 18px;
  background: var(--bg-alt);
}

.aiotc-num {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aiotc-item h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.aiotc-summary {
  grid-column: 2;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 7px;
  max-width: 58ch;
}

.aiotc-meta {
  grid-column: 3;
  grid-row: 1;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

.aiotc-cat { color: var(--gold); display: block; }

/* ---------- a single post ---------- */

.aiotc-article { max-width: 720px; }

.aiotc-kicker {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.aiotc-kicker b { color: var(--gold); font-weight: 500; }

.aiotc-article h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 20px;
}

.aiotc-standfirst {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 38px;
}

.aiotc-body > p { margin-bottom: 20px; line-height: 1.75; }
.aiotc-body h2 {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 40px 0 14px;
}
.aiotc-body ul, .aiotc-body ol { margin: 0 0 22px 20px; }
.aiotc-body li { margin-bottom: 9px; line-height: 1.7; }
.aiotc-body a { color: var(--accent); border-bottom: 1px solid transparent; }
.aiotc-body a:hover { border-bottom-color: var(--accent); }
.aiotc-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.aiotc-body blockquote {
  border-left: 2px solid var(--gold);
  padding-left: 18px;
  margin: 0 0 22px;
  color: var(--text-muted);
}

/* The carousel slides, stacked. No lightbox — they are read, not browsed. */
.aiotc-slides { margin: 34px 0 40px; display: flex; flex-direction: column; gap: 14px; }
.aiotc-slides img {
  width: 100%;
  /* The width/height attributes on the tag reserve space while the image loads.
     height:auto is what stops the browser treating that height as literal and
     squashing the picture to the wrong shape. */
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  /* A slide that has not been exported yet — or a mistyped path — shows as an
     empty frame rather than a broken-image icon. */
  background: var(--bg-alt);
  min-height: 140px;
}
.aiotc-slides figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.aiotc-download {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  margin: -18px 0 40px;
}
.aiotc-download a {
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
}
.aiotc-download a:hover { color: var(--accent); border-color: var(--accent); }

.aiotc-sources {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.aiotc-sources h2 {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.aiotc-sources ul { list-style: none; }
.aiotc-sources li { margin-bottom: 9px; font-size: 0.95rem; }
.aiotc-sources a { color: var(--accent); }

/* CTA to the maturity scan, at the foot of every post. */
.aiotc-cta {
  margin-top: 46px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.aiotc-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--gold));
}
.aiotc-cta h2 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.aiotc-cta p { color: var(--text-muted); margin-bottom: 18px; max-width: 52ch; }

/* previous / next */
.aiotc-pager {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.aiotc-pager span {
  display: block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.aiotc-pager a:hover { color: var(--accent); }
.aiotc-pager .next { text-align: right; margin-left: auto; }

.aiotc-backlink {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 26px;
  display: inline-block;
}
.aiotc-backlink:hover { color: var(--accent); }

@media (max-width: 680px) {
  .aiotc-item a { grid-template-columns: 46px 1fr; gap: 0 14px; }
  .aiotc-meta { grid-column: 2; grid-row: auto; text-align: left; margin-top: 10px; }
  .aiotc-cat { display: inline; }
  .aiotc-cat::after { content: ' · '; }
  .aiotc-summary { grid-column: 2; }
  .aiotc-cta { padding: 22px; }
}

.aiotc-flag {
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.aiotc-hero { margin: 34px 0 0; }
.aiotc-hero img {
  width: 100%;
  height: auto;
  max-width: 420px;
  border: 1px solid var(--border);
  border-radius: 10px;
}

/* The download line carries two links once a post is live on LinkedIn. */
.aiotc-download a + a { margin-left: 18px; }
.aiotc-download a + a::before {
  content: '·';
  margin-right: 18px;
  color: var(--border);
  border: none;
}

/* ── AI on the Clock: shared section navigation ──────────────────────────
   Pulse is generated, Bites is hand-written. The nav is defined once here so
   the two halves cannot drift apart visually. */
.aiotc-nav {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin: 0 0 2.2rem;
}
.aiotc-nav .home {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-right: .3rem;
}
.aiotc-nav .home:hover { color: var(--accent); }
.aiotc-nav a.tab {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-decoration: none;
  padding: .38rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.aiotc-nav a.tab:hover { border-color: var(--accent); color: var(--accent); }
.aiotc-nav a.tab.on {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.aiotc-nav .blurb { font-size: .78rem; color: var(--text-muted); }
@media (max-width: 560px) { .aiotc-nav .blurb { display: none; } }
