/* ==========================================================================
   Inter Mundos — Design tokens & base styles
   "Dark Tech Advisory" direction — dark mode, glassmorphic bento cards,
   drifting gradient mesh, glowing accents. Chosen by Tilo from 5 directions.
   One consistent nav/footer across every page (home + the dedicated
   Podcast and Newsletter pages) — everything (color, type, spacing) is
   driven by the variables below.
   ========================================================================== */

:root {
  /* --- Color palette --- */
  --bg: #0b1512;          /* base page background — near-black green */
  --bg2: #0f1f1a;         /* slightly lifted panel background */
  --bg3: #132922;         /* card/alt-section background */
  --paper: #f2eadd;       /* warm off-white — primary text on dark */
  --ink-soft: #c9d3cd;    /* secondary text */
  --muted: #8fa398;       /* tertiary / meta text */
  --terracotta: #d9683f;
  --terracotta-d: #b5502f;
  --green: #1c6b4f;
  --green-soft: #3d8a6a;
  --gold: #f2c94c;
  --gold-dark: #c99a1f;
  --line: rgba(242, 234, 221, 0.12);
  --line-strong: rgba(242, 234, 221, 0.22);
  --glass: rgba(242, 234, 221, 0.05);
  --glass-strong: rgba(242, 234, 221, 0.09);
  --white: #ffffff;

  /* --- Type --- */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* --- Spacing scale --- */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6rem;

  /* --- Layout --- */
  --max-width: 1160px;
  --radius: 16px;
  --nav-h: 76px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--paper);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.14;
  margin: 0 0 var(--space-2);
  font-weight: 600;
  color: var(--paper);
}

h1 { font-size: clamp(2.4rem, 3.2vw + 1.4rem, 3.6rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 var(--space-2); color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
  position: relative;
}

section[id] { scroll-margin-top: calc(var(--nav-h) + 14px); }

.section { padding: var(--space-6) 0; position: relative; }
.section-alt { background: var(--bg2); }
.section-tight { padding: var(--space-5) 0; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: var(--space-1);
  display: inline-block;
}

.eyebrow-brand {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 0.35rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  color: var(--paper);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--terracotta), var(--terracotta-d));
  color: #fff;
  box-shadow: 0 10px 26px -10px rgba(217, 104, 63, 0.55);
  border-color: transparent;
}
.btn-primary:hover { box-shadow: 0 14px 32px -10px rgba(217, 104, 63, 0.7); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--paper); }
.btn-outline:hover { background: var(--glass); border-color: var(--gold); color: var(--paper); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }

/* --- Floating glass nav --- */
.nav-shell {
  position: fixed;
  top: 16px;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-3);
  pointer-events: none;
}
header.site-header {
  pointer-events: auto;
  width: 100%;
  max-width: var(--max-width);
  background: rgba(242, 234, 221, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(11, 21, 18, 0.08);
  border-radius: 999px;
  box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.55);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.6rem 0.55rem 1.1rem;
  gap: var(--space-2);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  color: var(--bg3);
  white-space: nowrap;
}
.logo:hover { color: var(--bg3); }
.logo img { width: 28px; height: auto; filter: drop-shadow(0 1px 4px rgba(11, 21, 18, 0.18)); }

nav.main-nav { display: flex; align-items: center; gap: var(--space-3); }
nav.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.3rem;
  margin: 0;
  padding: 0;
}
nav.main-nav a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--green);
  transition: color 0.15s ease;
}
nav.main-nav a:hover, nav.main-nav a[aria-current="true"] { color: var(--terracotta-d); }

.lang-switch { display: flex; gap: 0.3rem; font-size: 0.8rem; font-weight: 600; }
.lang-switch a {
  text-decoration: none;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  color: var(--green);
}
.lang-switch a[aria-current="true"] { background: var(--bg3); color: var(--paper); }

/* --- Nav divider + Podcast/Newsletter link treatment ---
   These two jump to a different page rather than scrolling the current
   one, so they're set apart from the in-page anchors: a thin divider,
   then a small warm pill instead of plain text. */
nav.main-nav ul { align-items: center; }
.nav-divider { width: 1px; height: 18px; background: rgba(11, 21, 18, 0.14); margin: 0 0.15rem; }
nav.main-nav a.nav-page-link {
  color: var(--terracotta-d);
  font-weight: 700;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(217, 104, 63, 0.1);
  transition: background 0.15s ease, color 0.15s ease;
}
nav.main-nav a.nav-page-link:hover,
nav.main-nav a.nav-page-link[aria-current="true"] {
  background: rgba(217, 104, 63, 0.2);
  color: var(--terracotta-d);
}

/* --- Language dropdown: globe trigger + English/Português menu --- */
.lang-dropdown { position: relative; }
.lang-trigger {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: transparent; color: var(--green);
  cursor: pointer; transition: background 0.15s ease, color 0.15s ease;
}
.lang-trigger:hover, .lang-trigger[aria-expanded="true"] {
  background: rgba(11, 21, 18, 0.08); color: var(--terracotta-d);
}
.lang-trigger svg { width: 19px; height: 19px; }
.lang-menu {
  position: absolute; top: calc(100% + 12px); right: 0; min-width: 155px;
  background: var(--paper); border: 1px solid rgba(11, 21, 18, 0.1); border-radius: 12px;
  box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.4);
  padding: 0.4rem; display: flex; flex-direction: column; gap: 0.1rem;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 5;
}
.lang-dropdown.open .lang-menu { opacity: 1; transform: none; pointer-events: auto; }
.lang-menu a {
  padding: 0.55rem 0.75rem; border-radius: 8px; font-size: 0.88rem; font-weight: 600;
  color: var(--bg3); text-decoration: none;
}
.lang-menu a:hover { background: rgba(11, 21, 18, 0.07); }
.lang-menu a[aria-current="true"] { background: var(--bg3); color: var(--paper); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: 0.2rem;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--bg3);
  position: relative;
  transition: 0.2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

#mobile-nav-layer {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  padding: 100px var(--space-4) var(--space-4);
  transform: translateY(-100%);
  transition: transform 0.28s ease;
}
#mobile-nav-layer.open { transform: translateY(0); }
#mobile-nav-layer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
#mobile-nav-layer a { text-decoration: none; font-family: var(--font-display); font-size: 1.6rem; color: var(--paper); }
#mobile-nav-layer .lang-switch { margin-top: var(--space-4); display: flex; gap: 0.4rem; }
#mobile-nav-layer .lang-switch a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}
#mobile-nav-layer .lang-switch a[aria-current="true"] {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--bg);
}
#mobile-nav-layer .nav-divider { width: 100%; height: 1px; background: var(--line); margin: -0.6rem 0 0; }
#mobile-nav-layer a.nav-page-link { color: var(--gold); }

@media (max-width: 860px) {
  nav.main-nav > ul, nav.main-nav > .lang-dropdown { display: none; }
  .nav-toggle { display: block; }
}

/* --- Back-to-top rail --- */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 26px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.6);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
}
.to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.to-top:hover { background: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* --- Drifting gradient mesh (hero background texture) --- */
.mesh { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.45; }
.blob-1 { width: 480px; height: 480px; background: radial-gradient(circle, var(--terracotta), transparent 70%); top: -140px; left: -100px; animation: drift1 13s ease-in-out infinite; }
.blob-2 { width: 420px; height: 420px; background: radial-gradient(circle, var(--green), transparent 70%); top: 40px; right: -120px; animation: drift2 15s ease-in-out infinite; }
.blob-3 { width: 340px; height: 340px; background: radial-gradient(circle, var(--gold), transparent 70%); bottom: -140px; left: 36%; opacity: 0.24; animation: drift1 17s ease-in-out infinite reverse; }
@keyframes drift1 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(36px, 26px) scale(1.1); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-26px, 18px) scale(0.95); } }

/* --- Hero --- */
.hero {
  padding: calc(var(--nav-h) + var(--space-5)) 0 var(--space-5);
  position: relative;
  overflow: hidden;
}
.hero-inner { max-width: 760px; position: relative; z-index: 2; }
.hero .lead, .lead { font-size: 1.1rem; max-width: 600px; }
.glow-line {
  width: 64px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--terracotta), var(--gold));
  margin: var(--space-2) 0 var(--space-3);
  box-shadow: 0 0 14px rgba(242, 201, 76, 0.5);
  animation: grow 1.6s ease-out;
}
@keyframes grow { from { width: 0; } to { width: 64px; } }

.hero-byline { display: flex; align-items: center; gap: 0.7rem; margin-top: var(--space-4); }
.hero-byline img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg2); box-shadow: 0 2px 10px rgba(0,0,0,0.5); }
.hero-byline span { font-size: 0.92rem; color: var(--ink-soft); }
.hero-byline strong { color: var(--paper); }

.hero-media { border-radius: 20px; overflow: hidden; box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6); aspect-ratio: 16/11.5; position: relative; z-index: 2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-5); align-items: center; position: relative; z-index: 2; }

/* --- Cross-link banner (top of Podcast / Newsletter pages) --- */
.crosslink {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-4);
}
.crosslink span { font-size: 0.92rem; color: var(--ink-soft); }
.crosslink a { font-weight: 700; font-size: 0.92rem; display: inline-flex; align-items: center; gap: 0.4rem; }

/* --- Grids / bento --- */
.grid { display: grid; gap: var(--space-3); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.bento { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-auto-rows: auto; gap: var(--space-3); }
.bento .big { grid-row: span 2; }
.bento .wide { grid-column: span 2; }
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento .big, .bento .wide { grid-column: span 1; grid-row: span 1; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: calc(var(--nav-h) + var(--space-4)); }
}

/* --- Glass cards --- */
.card {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 20px 40px -22px rgba(0,0,0,0.6); }
.card h3 { margin-bottom: var(--space-1); }
.card p { margin-bottom: 0; }
.card .meta {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--gold); display: block; margin-bottom: 0.5rem;
}

/* --- Stat ring (portfolio numbers) --- */
.stat-ring { position: relative; width: 74px; height: 74px; margin-bottom: var(--space-2); }
.stat-ring svg { transform: rotate(-90deg); }
.stat-ring circle { fill: none; stroke-width: 5; }
.stat-ring .bgc { stroke: var(--line); }
.stat-ring .fgc { stroke: var(--gold); stroke-linecap: round; stroke-dasharray: 190; stroke-dashoffset: 190; animation: draw 2s ease-out forwards 0.3s; }
@keyframes draw { to { stroke-dashoffset: 38; } }
.stat-ring .val { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 700; color: var(--paper); }

/* --- Service list (legacy, kept for reference) --- */
.service-group { border-top: 1px solid var(--line); padding: var(--space-3) 0; }
.service-group:first-of-type { border-top: none; }
.service-group h3 { color: var(--paper); }
.service-tags, .tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: var(--space-1); }
.service-tags span, .tag-row span {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.83rem;
  color: var(--ink-soft);
}

/* --- Fluid service blocks: smaller cards that fade in/out on scroll --- */
.service-blocks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--space-3);
  margin-top: 2rem;
}
.service-block {
  background: var(--bg3);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  border-radius: 12px;
  padding: var(--space-3);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease, border-color 0.15s ease;
}
.service-block.in-view { opacity: 1; transform: translateY(0); }
.service-block:hover { border-left-color: var(--gold); }
.service-block h3 { color: var(--paper); font-size: 1.08rem; margin-bottom: 0.4rem; }
.service-block p { font-size: 0.9rem; margin-bottom: 0.6rem; }
@media (prefers-reduced-motion: reduce) {
  .service-block { transition: none; opacity: 1; transform: none; }
}

/* --- Engagement-model cards (Advisory / Project-Based Consulting / Workshops) --- */
.engagement-cards { margin-bottom: 1.5rem; }

/* --- Group labels: split "engagement model" from "areas of activity",
   and mark the older Portfolio entries as earlier chapters --- */
.group-label {
  font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin-bottom: 1.2rem; display: flex; align-items: center; gap: 0.7rem;
}
.group-label::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* --- Portfolio card icon + logo slot --- */
.portfolio-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--glass-strong); border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); margin-bottom: 0.9rem;
}
.portfolio-icon svg { width: 21px; height: 21px; }
.portfolio-name-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; flex-wrap: wrap; }
.portfolio-name-row h3 { margin: 0; }
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 6px;
  padding: 0.18rem 0.5rem; background: var(--glass);
}
.logo-slot:has(img) {
  border: 1px solid rgba(0,0,0,0.06); background: var(--paper); padding: 0.28rem 0.6rem;
}
.logo-slot img { display: block; max-height: 20px; width: auto; }
.func-list { list-style: none; margin: 0.6rem 0 0.8rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.35rem 0.8rem; }
.func-list li { font-size: 0.85rem; color: var(--ink-soft); display: flex; align-items: center; gap: 0.45rem; }
.func-list li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

/* --- Portfolio cards: warm cream, matching the header pill --- */
/* Real company logos sit better on a light card than in their own boxed-off
   chip, so the card itself becomes the "backing" and .logo-slot goes bare. */
#portfolio .bento .card, #portfolio .grid-4 .card {
  background: var(--paper); border-color: rgba(11, 21, 18, 0.08);
}
#portfolio .bento .card:hover, #portfolio .grid-4 .card:hover {
  border-color: rgba(11, 21, 18, 0.16); box-shadow: 0 20px 40px -22px rgba(0, 0, 0, 0.35);
}
#portfolio .bento .card h3, #portfolio .grid-4 .card h3 { color: var(--bg3); }
#portfolio .bento .card p, #portfolio .grid-4 .card p { color: #3d4d46; }
#portfolio .bento .card .meta, #portfolio .grid-4 .card .meta { color: var(--terracotta-d); }
#portfolio .bento .card .portfolio-icon, #portfolio .grid-4 .card .portfolio-icon {
  background: rgba(11, 21, 18, 0.06); border-color: rgba(11, 21, 18, 0.1); color: var(--terracotta-d);
}
#portfolio .bento .card .logo-slot, #portfolio .grid-4 .card .logo-slot {
  background: transparent; border: none; padding: 0;
}
#portfolio .bento .card .func-list li, #portfolio .grid-4 .card .func-list li { color: #3d4d46; }
#portfolio .bento .card .tag-row span, #portfolio .grid-4 .card .tag-row span {
  background: rgba(11, 21, 18, 0.06); border-color: rgba(11, 21, 18, 0.12); color: var(--bg3);
}

/* --- Industries strip --- */
.industry-strip {
  margin-top: var(--space-4); text-align: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-4) var(--space-3);
}
.industry-strip h4 {
  font-family: var(--font-body); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600; margin-bottom: var(--space-2);
}
.industry-strip .tag-row { justify-content: center; margin-top: 0; }
.industry-strip .tag-row span {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--glass-strong); border-color: var(--line-strong); padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  font-size: 0.85rem; font-weight: 600; color: var(--paper);
}
.industry-strip .tag-row svg { width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }

/* --- Edge / differentiator section (experience + intercultural range) --- */
.edge-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-5); align-items: center; }
.edge-copy .lead { max-width: 520px; margin-bottom: 0; }
.edge-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3); }
.edge-stat {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3);
}
.edge-stat .num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(2.1rem, 2.6vw + 1rem, 2.8rem);
  color: var(--paper); line-height: 1; display: block; margin-bottom: 0.35rem;
}
.edge-stat .label { font-size: 0.85rem; color: var(--muted); line-height: 1.35; }
.edge-footnote { font-size: 0.8rem; color: var(--muted); margin-top: var(--space-2); }
@media (max-width: 860px) {
  .edge-grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* --- "Stay tuned" placeholder card --- */
.stay-tuned {
  border: 1px dashed var(--line-strong);
  background: var(--glass);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.stay-tuned img { width: 44px; height: auto; flex-shrink: 0; opacity: 0.9; }
.stay-tuned h3 { margin-bottom: 0.2rem; }
.stay-tuned p { margin-bottom: 0; font-size: 0.95rem; }

/* --- Ring avatar (placeholder for episode/guest portraits) --- */
.ring-avatar {
  width: 60px; height: 60px; border-radius: 50%; padding: 3px; flex-shrink: 0;
  background: conic-gradient(var(--gold), var(--terracotta), var(--green-soft), var(--gold));
  animation: spin 6s linear infinite;
}
.ring-avatar.lg { width: 84px; height: 84px; padding: 4px; }
.ring-avatar.static { animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-avatar .in {
  width: 100%; height: 100%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--green-soft), var(--bg3) 72%);
  display: flex; align-items: center; justify-content: center;
}
.ring-avatar .in svg { width: 42%; height: 42%; stroke: var(--ink-soft); }
.ring-avatar .in.host { background: radial-gradient(circle at 35% 30%, var(--gold-dark), var(--bg3) 72%); }

/* --- Episode / issue cards --- */
.ep-card {
  display: flex; gap: var(--space-3); align-items: flex-start;
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); margin-bottom: var(--space-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.ep-card .ep-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--muted); width: 34px; flex-shrink: 0; }
.ep-card .ep-body { flex: 1; }
.ep-card .ep-format { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 0.3rem; }
.ep-card h4 { margin: 0 0 0.15rem; font-family: var(--font-display); font-size: 1.2rem; }
.ep-card .ep-role { font-size: 0.85rem; color: var(--terracotta); font-weight: 600; margin-bottom: 0.5rem; display: block; }
.ep-card p { font-size: 0.92rem; margin-bottom: 0.6rem; }
.ep-card .link-row { display: flex; flex-wrap: wrap; gap: 1rem; font-size: 0.85rem; font-weight: 600; }
.ep-card.placeholder { opacity: 0.62; }
.ep-card .soon-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.2rem 0.6rem; color: var(--muted); margin-left: 0.6rem;
}

.issue-card {
  background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius);
  padding: var(--space-3); margin-bottom: var(--space-3);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.issue-card .issue-date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.issue-card h4 { margin: 0.3rem 0 0.5rem; font-family: var(--font-display); font-size: 1.2rem; }
.issue-card p { font-size: 0.92rem; margin-bottom: 0.4rem; }
.issue-card .soon-tag {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  background: var(--glass-strong); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 0.2rem 0.6rem; color: var(--muted);
}
.issue-card a { font-size: 0.85rem; font-weight: 600; }

/* --- Form --- */
form.stack { display: flex; flex-direction: column; gap: var(--space-2); max-width: 480px; }
input, textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--glass);
  color: var(--paper);
}
input::placeholder, textarea::placeholder { color: var(--muted); }
label { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.25rem; display: block; color: var(--paper); }

.form-thanks {
  max-width: 480px;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  border-radius: 10px;
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  color: var(--paper);
  font-size: 0.92rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.form-thanks.visible { opacity: 1; }

/* --- Footer --- */
footer.site-footer {
  border-top: 1px solid var(--line);
  padding: var(--space-5) 0 var(--space-4);
  margin-top: var(--space-5);
  background: var(--bg2);
  color: var(--ink-soft);
}
footer.site-footer a { color: var(--ink-soft); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold); }
footer.site-footer .foot-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); }
footer.site-footer .foot-col h4 {
  font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--gold); margin-bottom: var(--space-1);
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; }
footer.site-footer li { margin-bottom: 0.4rem; font-size: 0.92rem; opacity: 0.85; }
.foot-bottom {
  margin-top: var(--space-4); padding-top: var(--space-2); border-top: 1px solid var(--line);
  font-size: 0.8rem; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
}
footer.site-footer .foot-bottom .foot-privacy {
  color: var(--gold); font-weight: 700; text-decoration: underline; text-underline-offset: 3px;
}
footer.site-footer .foot-bottom .foot-privacy:hover { color: var(--terracotta); }

/* ==========================================================================
   Newsletter article / long-form components
   Ported from the "Between Worlds" newsletter style guide: highlighted
   facts and figures, quote cards with a photo or ring-avatar, drop caps,
   and a keyword-headline timeline, all on the site's own tokens above.
   Use inside <article class="article-shell">.
   ========================================================================== */
.article-shell { max-width: 700px; margin: 0 auto; }
.article-shell > .section-alt-note { margin-bottom: var(--space-4); }
.article-meta {
  display: flex; align-items: center; gap: 0.8rem; margin: 1.4rem 0 2.2rem;
  font-size: 0.88rem; color: var(--muted);
}
.article-meta strong { color: var(--paper); }
.article-meta .dot { opacity: 0.5; }
.article-body { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; }
.article-body p { margin: 0 0 1.3rem; }
.article-body h2 {
  font-size: clamp(1.4rem, 1.4vw + 1rem, 1.75rem); color: var(--paper);
  margin: 2.6rem 0 1rem;
}
.article-body.with-dropcap > p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; float: left;
  line-height: 0.82; margin: 0.05em 0.12em 0 0; color: var(--gold);
}
.article-body mark {
  background: rgba(242, 201, 76, 0.32); box-decoration-break: clone; -webkit-box-decoration-break: clone;
  border-radius: 3px; color: var(--paper); padding: 0.12em 0.2em; margin: 0 -0.1em;
}
.article-body strong { color: var(--paper); }
.article-caveat {
  font-size: 0.82rem; color: var(--muted); border-left: 2px solid var(--line-strong);
  padding-left: 0.9rem; margin: 1.6rem 0 2rem;
}

/* -- big stat + gauge -- */
.stat-block {
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  padding: 2rem clamp(1.2rem, 3vw, 2.2rem); margin: 2.2rem 0;
}
.stat-block .stat-label { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.stat-row { display: flex; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.stat-num {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 4.4rem);
  color: var(--paper); line-height: 0.9; white-space: nowrap;
}
.stat-num sup { font-size: 0.34em; font-weight: 600; color: var(--muted); margin-left: 0.15em; top: -0.4em; position: relative; }
.gauge-wrap { flex: 1; min-width: 200px; }
.gauge-track {
  height: 18px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--line);
  overflow: hidden; display: flex;
}
.gauge-fill { height: 100%; border-radius: 999px 0 0 999px; background: linear-gradient(90deg, var(--terracotta), var(--terracotta-d)); }
.gauge-caption { display: flex; justify-content: space-between; margin-top: 0.55rem; font-size: 0.76rem; color: var(--muted); }

/* -- segmented comparison bars -- */
.stack-rows { display: flex; flex-direction: column; gap: 1.3rem; margin: 1.8rem 0 2.2rem; }
.stack-row { display: grid; grid-template-columns: 128px 1fr; gap: 1rem; align-items: center; }
.stack-row .rlabel { font-weight: 700; font-size: 0.9rem; color: var(--paper); }
.stack-row .rlabel span { display: block; font-weight: 400; font-size: 0.76rem; color: var(--muted); margin-top: 0.1rem; }
.stack-bar { display: flex; height: 40px; border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.stack-seg { display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 700; font-size: 0.92rem; color: var(--bg); }
.seg-a { background: var(--gold); }
.seg-b { background: var(--green-soft); color: var(--bg2); }
.seg-c { background: var(--glass-strong); color: var(--ink-soft); }

/* -- quote card with photo / ring-avatar -- */
.quote-card {
  display: grid; grid-template-columns: 128px 1fr; gap: 1.8rem; align-items: center;
  background: var(--glass); border: 1px solid var(--line); border-radius: 20px;
  padding: 1.8rem clamp(1.2rem, 3vw, 2.2rem); margin: 2.2rem 0;
}
.quote-card .ring-avatar { margin: 0 auto; }
.qmark { font-family: var(--font-display); font-size: 2.6rem; color: var(--terracotta); line-height: 0.6; margin-bottom: 0.2rem; display: block; }
.quote-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--paper); line-height: 1.4; }
.quote-by { margin-top: 0.9rem; font-size: 0.82rem; color: var(--muted); }
.quote-by strong { color: var(--paper); display: block; font-size: 0.9rem; margin-bottom: 0.1rem; }

/* -- keyword headline + timeline -- */
.kw-headline { font-size: clamp(1.5rem, 2.4vw + 0.9rem, 2.1rem); margin: 2.6rem 0 1.8rem; color: var(--paper); }
.kw-headline .accent { color: var(--terracotta); }
.timeline { position: relative; padding-top: 1.4rem; margin-bottom: 2rem; }
.timeline::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 0; border-top: 2px dotted var(--line-strong); }
.timeline-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tl-item { position: relative; padding-top: 0.9rem; }
.tl-item::before {
  content: ""; position: absolute; top: -6px; left: 0; width: 10px; height: 10px; border-radius: 50%;
  background: var(--terracotta); border: 2px solid var(--bg);
}
.tl-time { font-size: 0.7rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.tl-title { font-size: 0.84rem; color: var(--paper); margin-top: 0.3rem; line-height: 1.3; }

/* -- reveal-on-scroll (article stat/gauge/bar rows) -- */
.reveal-once { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-once.in-view { opacity: 1; transform: none; }
.reveal-once.in-view .gauge-fill { width: var(--fill, 60%); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-once .gauge-fill { width: 0; }
.reveal-once.in-view .stack-seg { width: var(--w); transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.reveal-once .stack-seg { width: 0; }

.preview-banner {
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
  background: var(--glass-strong); border: 1px dashed var(--line-strong); border-radius: 12px;
  padding: 0.8rem 1.1rem; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 2rem;
}
.preview-banner strong { color: var(--gold); }

@media (max-width: 720px) {
  .quote-card { grid-template-columns: 1fr; text-align: center; }
  .stack-row { grid-template-columns: 1fr; }
  .timeline-row { grid-template-columns: repeat(2, 1fr); row-gap: 1.6rem; }
  .timeline::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-once, .reveal-once .gauge-fill, .reveal-once .stack-seg { transition: none; opacity: 1; transform: none; }
  .reveal-once .gauge-fill { width: var(--fill, 60%); }
  .reveal-once .stack-seg { width: var(--w); }
}
