/* Domenico personal hub — page composition & responsive behaviour.
   Builds the scrolling narrative from the design-system primitives. */

/* ---- Base / reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;   /* anchors land clear of the sticky nav */
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--selection); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 10px 16px;
  text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; }

:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }

.container {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.u-cobalt { color: var(--cobalt); }
.u-paper  { color: var(--paper); }

/* ============================================================= NAV = */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(233, 229, 215, .82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-soft),
              padding var(--dur-mid) var(--ease-soft);
}
.nav.is-scrolled { border-bottom-color: rgba(14, 14, 12, .1); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px var(--gutter);
  transition: padding var(--dur-mid) var(--ease-soft);
}
.nav.is-scrolled .nav__inner { padding-block: 15px; }
/* Reading progress — hairline cobalt bar pinned to the nav's bottom edge
   (the nav is always paper, so the bar stays visible on every pane). */
.nav__progress {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--cobalt);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.nav { position: sticky; }   /* (re-assert for the absolute child) */
.nav__brand { text-decoration: none; }
.nav__right { display: flex; align-items: center; gap: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  transition: color var(--dur-fast);
}
@media (hover: hover) { .nav__links a:hover { color: var(--cobalt); } }
.nav__links a.is-active { color: var(--cobalt); }   /* scrollspy: current section */
/* Language switcher — segmented mono control, active segment = cobalt fill */
.lang-switch {
  display: inline-flex;
  border: 1px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .06em;
}
.lang-switch a {
  padding: 7px 10px;
  color: var(--ink);
  text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.lang-switch a + a { border-left: 1px solid var(--ink); }
.lang-switch a[aria-current="page"] { background: var(--cobalt); color: var(--paper); }
@media (hover: hover) { .lang-switch a:not([aria-current="page"]):hover { background: var(--cobalt-tint); } }

/* Hamburger — hidden until mobile */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}
.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--ink);
  transition: transform var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}

/* ===================================================== MOBILE MENU = */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  padding: 22px var(--gutter) 40px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--dur-mid) var(--ease-soft),
              transform var(--dur-mid) var(--ease-soft),
              visibility var(--dur-mid);
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; }
body.menu-open { overflow: hidden; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mobile-menu__close {
  width: 46px; height: 46px;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: clamp(24px, 8vh, 64px);
}
.mobile-menu__links a {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(30px, 9vw, 46px);
  letter-spacing: -.015em;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
}
.mobile-menu__links a .u-cobalt { transition: none; }
.mobile-menu__lang { margin-top: auto; }
.mobile-menu__lang .lang-switch { font-size: 14px; }
.mobile-menu__lang .lang-switch a { padding: 15px 18px; }  /* ≥44px touch target */

/* =========================================================== HERO = */
.section { padding-block: clamp(64px, 9vh, 118px); }   /* base (paper) sections */
.section--hero { padding-block: clamp(48px, 9vh, 110px) 90px; }
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-sub);
  margin-bottom: 34px;
}
.rule { flex: none; width: 44px; height: 1px; background: var(--cobalt); }
.rotator { color: var(--cobalt); display: inline-block; transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }
.rotator.is-out { opacity: 0; transform: translateY(-.12em); }
.hero__title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: clamp(50px, 8vw, 118px);
  line-height: 1.04;
  letter-spacing: -.02em;
  margin: 0;
  padding-bottom: .14em;
  max-width: 15ch;
  overflow-wrap: break-word;   /* safety: never let a long keyword overflow */
}
.hero__lead {
  margin: 72px 0 0;
  max-width: 50ch;
  font-size: 20px;
  line-height: 1.58;
  color: var(--ink-sub);
}
.cta { display: flex; flex-wrap: wrap; gap: 14px; }
.section--hero .cta { margin-top: 52px; }

/* ================================================ MATRIX (bordered grid) = */
/* Connected grid of cells sharing 1px hairlines — used for work-lines,
   the spaces trajectory, advisory modes and the Diseño Cívico cards.
   Borders & muted text follow the pane via --line / --sub. */
.section--chapter { padding-block: clamp(70px, 10vh, 130px); }
.lines {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line, var(--ink));
  border-left: 1px solid var(--line, var(--ink));
}
.lines--3 { grid-template-columns: repeat(3, 1fr); }
.line {
  min-width: 0;   /* let the grid track shrink below its content min-width */
  padding: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--line, var(--ink));
  border-right: 1px solid var(--line, var(--ink));
  transition: background var(--dur-fast) var(--ease-out);
}
/* Linked work-lines are a real <a> wrapping the whole card. */
.line--link { text-decoration: none; color: inherit; cursor: pointer; }
@media (hover: hover) { .line--link:hover { background: var(--cobalt-tint); } }
.line__ext { margin-left: 9px; font-size: .6em; color: var(--sh-accent, var(--cobalt)); vertical-align: middle; }
.line__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 14px; margin-bottom: 16px; }
.line__n { font-family: var(--font-mono); font-size: 12px; color: var(--sub, var(--ink-sub)); letter-spacing: .1em; }
.line__dot { flex: none; width: 9px; height: 9px; border-radius: 999px; background: var(--sh-accent, var(--cobalt)); }
.line__t { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: clamp(21px, 2.2vw, 28px); margin: 0; letter-spacing: -.01em; overflow-wrap: break-word; }
.line__d { font-size: 15px; line-height: 1.6; color: var(--sub, var(--ink-sub)); margin: 0; max-width: 46ch; }
.line__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.line__tags .tag { font-size: 11px; padding: 6px 10px; border-color: var(--line, var(--ink)); color: inherit; white-space: normal; }

/* ================================================ SECTION LEAD (statement + para) = */
.sec-lead {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  margin-bottom: clamp(36px, 4vw, 52px);
}
.sec-lead__p { padding-top: .35em; }   /* optical align with the display cap-height */
.sec-lead__h {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.05;
  letter-spacing: -.018em;
  margin: 0;
  text-wrap: balance;
}
.sec-lead__h .u-accent { color: var(--sh-accent, var(--cobalt)); }
.sec-lead__p { font-size: 17px; line-height: 1.62; color: var(--sub, var(--ink-sub)); margin: 0; }

/* ================================================ FEED STATUS (live signal) = */
/* "Latest 3 · ongoing production" row above content grids: a pulsing dot in
   the pane accent + a mono label. Tells visitors the feed is alive and these
   are only the newest entries. */
.feed-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.feed-status__latest { color: inherit; }
.feed-status__sep { color: var(--sub, var(--ink-sub)); }
.feed-status__ongoing { color: var(--sub, var(--ink-sub)); }
.pulse {
  position: relative;
  flex: none;
  width: 8px; height: 8px;
  border-radius: 999px;
  color: var(--sh-accent, var(--cobalt));
  background: currentColor;
}
@media (prefers-reduced-motion: no-preference) {
  .pulse::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 999px;
    border: 1px solid currentColor;
    opacity: 0;
    animation: pulse-ring 2.2s var(--ease-out) infinite;
  }
  @keyframes pulse-ring {
    0%   { transform: scale(.45); opacity: .9; }
    70%  { transform: scale(1.35); opacity: 0; }
    100% { transform: scale(1.35); opacity: 0; }
  }
}

/* ================================================ CARD BOXES (separate) = */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card-box {
  border: 1px solid var(--line, var(--ink));
  padding: 26px; min-height: 180px;
  display: flex; flex-direction: column;
}
/* Whole card is a link out to the platform — the landing is a doorway. */
.card-box--link {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}
.card-box__ext {
  position: absolute;
  top: 14px; right: 16px;
  font-size: 13px;
  color: var(--sub, var(--ink-sub));
  transition: color var(--dur-fast), transform var(--dur-fast) var(--ease-out);
}
@media (hover: hover) {
  .card-box--link:hover {
    transform: translateY(-3px);
    background: var(--tint, var(--cobalt-tint));
    border-color: var(--sh-accent, var(--cobalt));
  }
  .card-box--link:hover .card-box__ext {
    color: var(--sh-accent, var(--cobalt));
    transform: translate(2px, -2px);
  }
}
.card-box__t { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 19px; line-height: 1.16; margin: 0 0 10px; padding-right: 18px; text-wrap: balance; }
.card-box__d { font-size: 14px; line-height: 1.55; color: var(--sub, var(--ink-sub)); margin: 0; }
.card-box__date { margin-top: auto; padding-top: 16px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--sub, var(--ink-sub)); }

/* ================================================ LINK CTA (text link) = */
/* The section CTA is a bare mono text link — action + destination in one
   line, in the pane's accent, with a hairline underline that inks in on
   hover and an arrow that slides. Same scheme in every section; the only
   filled button left is the hero's primary. */
.cta-row { margin-top: clamp(24px, 3vw, 36px); }
.link-cta {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13.5px;
  letter-spacing: .05em;
  color: var(--sh-accent, var(--cobalt));
  text-decoration: none;
  /* generous tap area without disturbing the visual rhythm */
  padding-block: 13px;
  margin-block: -7px;
}
.link-cta__label {
  border-bottom: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  padding-bottom: 4px;
  transition: border-color var(--dur-fast) var(--ease-out);
}
@supports not (color: color-mix(in srgb, red 40%, transparent)) {
  .link-cta__label { border-bottom-color: currentColor; }
}
.link-cta__arrow { transition: transform var(--dur-fast) var(--ease-out); }
@media (hover: hover) {
  .link-cta:hover .link-cta__label { border-bottom-color: currentColor; }
  .link-cta:hover .link-cta__arrow { transform: translateX(4px); }
}
/* ================================================ FEATURE / TWO-UP = */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-2--lead { grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 4vw, 64px); }   /* same ratio AND gap as .sec-lead → columns line up */

/* Plain feature = hairline-bordered block (two-up comparisons). */
.feature { border: 1px solid var(--line, var(--ink)); padding: clamp(24px, 3vw, 40px); }
.feature__eyebrow { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--sh-accent, var(--cobalt)); margin: 0 0 14px; }
.feature__t { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: clamp(22px, 2.5vw, 31px); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 12px; text-wrap: balance; }
.feature__d { font-size: 15px; line-height: 1.6; color: var(--sub, var(--ink-sub)); margin: 0 0 18px; }
.feature__quote { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 20px; line-height: 1.22; margin: 0 0 18px; }
.feature__note { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; color: var(--sub, var(--ink-sub)); }
.feature .cta { margin-top: 4px; }

/* Highlight feature = tone-INVERTED card (the system's "depth by inversion,
   not fill/shadow"). On a colour pane → cream card; on a paper section → ink
   card. Lighter and more editorial than a solid cobalt block. */
.feature--card { border: none; padding: clamp(26px, 3vw, 44px); }
.feature--solo { max-width: 760px; }             /* standalone cards read as cards, not bands */
.pane .feature--card {
  background: var(--paper); color: var(--ink);
  --sub: var(--ink-sub); --card-accent: var(--cobalt);
}
.section .feature--card {
  background: var(--ink); color: var(--paper);
  --sub: var(--paper-sub); --card-accent: var(--cobalt-lo);
}
.feature--card .feature__eyebrow { color: var(--card-accent); }
.feature--card .feature__t,
.feature--card .feature__quote { color: inherit; }
.feature--card .feature__d { color: var(--sub); }
.feature--card .feature__note { color: var(--sub); }
.feature--card .link-cta { color: var(--card-accent); }

/* Small utilities */
.stack-list { display: flex; flex-direction: column; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.stack-list li { font-size: 15px; line-height: 1.5; color: var(--sub, var(--ink-sub)); padding-left: 18px; position: relative; }
.stack-list li::before { content: '—'; position: absolute; left: 0; color: var(--sh-accent, var(--cobalt)); }
.sub-head { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--sub, var(--ink-sub)); margin: clamp(40px,5vw,64px) 0 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags .tag { border-color: var(--line, var(--ink)); color: inherit; white-space: normal; }
.section-cta { margin-top: clamp(28px, 3vw, 40px); }

/* ==================================================== PANES (bands) */
.pane--warm {
  background: var(--cobalt);
  color: var(--paper);
  padding-block: clamp(80px, 11vh, 140px);
  --tint: rgba(255, 255, 255, .08);
  --sub: var(--periwinkle);
  --line: var(--hairline-warm);
  --sh-accent: var(--paper);
  --sh-line: var(--paper);
  --sh-sub: var(--periwinkle);
}
.pane--deep {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(80px, 11vh, 140px);
  --tint: rgba(255, 255, 255, .05);
  --sub: var(--paper-sub);
  --line: var(--hairline-deep);
  --sh-accent: var(--cobalt-lo);
  --sh-line: var(--hairline-deep-2);
  --sh-sub: var(--paper-sub);
}
.pane--nature {
  background: var(--forest);
  color: var(--forest-fg);
  padding-block: clamp(80px, 11vh, 140px);
  --tint: rgba(255, 255, 255, .05);
  --sub: var(--forest-sub);
  --line: rgba(239, 237, 224, .16);
  --sh-accent: var(--lime);
  --sh-line: rgba(239, 237, 224, .5);
  --sh-sub: var(--forest-sub);
}
.pane--night {
  background: var(--night);
  color: var(--night-fg);
  padding-block: clamp(80px, 11vh, 140px);
  --tint: rgba(255, 255, 255, .06);
  --sub: var(--night-sub);
  --line: rgba(236, 234, 246, .14);
  --sh-accent: var(--night-accent);
  --sh-line: rgba(236, 234, 246, .45);
  --sh-sub: var(--night-sub);
}

/* ===================================== SCROLL COLOUR WASH (backdrop) = */
/* A single fixed backdrop sits behind everything and cross-fades its
   colour as each section reaches the viewport centre. Progressive
   enhancement: only active when JS runs AND motion is allowed
   (body.has-wash); otherwise every pane keeps its own solid colour. */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;                 /* behind content; needs body bg transparent */
  background: var(--paper);
  transition: background-color .8s var(--ease-soft);
}
body.has-wash { background: transparent; }
body.has-wash .section,
body.has-wash .pane { background: transparent; }

/* Warm band content */
.warm-intro {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 44px;
}
.warm-intro__h {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0;
}
.warm-intro__p { font-size: 18px; line-height: 1.6; color: var(--periwinkle); margin: 0; }

.episodes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.episode {
  border: 1px solid var(--hairline-warm);
  padding: 26px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  transition: background var(--dur-fast) var(--ease-out);
}
@media (hover: hover) { .episode:hover { background: var(--warm-tint); } }
.episode__t { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: 19px; line-height: 1.14; margin: 0; }
.episode__date { margin-top: auto; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; color: var(--periwinkle); }

/* ======================================================== CONTACT = */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.eyebrow-cobalt {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--sh-accent, var(--cobalt));
  margin-bottom: 18px;
}
.contact__h {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -.018em;
  margin: 0 0 28px;
}
.advisory { border: 1px solid var(--paper); padding: 36px; background: var(--paper); color: var(--ink); }
.advisory__h { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: 30px; margin: 0 0 12px; }
.advisory__p { font-size: 15px; line-height: 1.6; color: var(--ink-sub); margin: 0; }

/* ========================================================= FOOTER = */
.footer {
  background: var(--ink);
  color: var(--paper-sub);
  border-top: 1px solid var(--hairline-warm);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
}

/* ========================================================= REVEAL = */
/* Reveals only hide when JS is active (html.js) — so a failed/slow script
   never leaves the page blank; without JS every .reveal is fully visible. */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(var(--reveal-dist));
    transition: opacity var(--dur-mid) var(--ease-out),
                transform var(--dur-mid) var(--ease-out);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }

  /* Staggered variant for grids: children cascade in one after another,
     giving the card walls a sense of rhythm instead of a single block pop. */
  .js .reveal-stagger > * {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .55s var(--ease-out), transform .55s var(--ease-out);
  }
  .js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
  .js .reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
  .js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .12s; }
  .js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .20s; }
  .js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .28s; }
}

/* ===================================================== RESPONSIVE = */
@media (max-width: 820px) {
  .nav__links, .nav__right .lang-switch { display: none; }
  .nav__toggle { display: flex; }
  body.menu-open .nav__toggle-bar:nth-child(1) { transform: translateY(3.75px) rotate(45deg); }
  body.menu-open .nav__toggle-bar:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }

  .section--hero { padding-block: clamp(28px, 5vh, 56px) 64px; }
  .hero__lead { margin-top: 48px; font-size: 18px; }
  .section--hero .cta { margin-top: 40px; }

  .lines, .lines--3 { grid-template-columns: 1fr; }
  .line { padding: 26px; }

  .warm-intro { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .episodes { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .sec-lead { grid-template-columns: 1fr; gap: 18px; align-items: start; }
  .feed-status { letter-spacing: .12em; font-size: 11px; }
  .link-cta { font-size: 13px; }
  .cards { grid-template-columns: 1fr; }
  .grid-2, .grid-2--lead { grid-template-columns: 1fr; }

  .cta .btn { flex: 1 1 auto; justify-content: center; }
}

@media (max-width: 520px) {
  /* The longest hero keyword ("comunidades") is unbreakable and, at the
     desktop clamp minimum, wider than a phone. Scale the headline to the
     viewport so it always fits without an ugly mid-word break. */
  .hero__title { font-size: clamp(32px, 9.5vw, 46px); }

  .section-header { flex-direction: column; align-items: stretch; gap: 14px; }
  .section-header__rule { width: 100%; }
}
