/* QutSur — Content pages shared stylesheet */

:root {
  --bg: #fafaf8;
  --navy: #171327;          /* brand ink */
  --red: #e4261c;           /* brand red — graphics, borders, large text */
  --red-deep: #b81c12;      /* legible red for small text on light bg */
  --amber: #f5bc16;         /* brand yellow */
  --amber-text: #7d5c04;    /* legible gold for small text on light bg */
  --amber-bg: #fff8e6;
  --lavender: #aaa3d3;      /* brand lavender */
  --lavender-text: #514777;
  --cream: #fff5ca;         /* brand cream surface */
  --muted: #666e80;
  --border: rgba(23,19,39,0.1);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --pad-x: clamp(1.75rem, 5vw, 4rem);
  --nav-h: 58px;
  /* Named containers — use these instead of ad-hoc max-widths */
  --measure-prose: 720px;
  --measure-wide: 1200px;
  --measure-full: 1640px;
}

/* Section accent system — color-coded wayfinding.
   Each page sets one class on <body>. */
body.acc-amber    { --acc: var(--amber);    --acc-text: var(--amber-text); }
body.acc-red      { --acc: var(--red);      --acc-text: var(--red-deep); }
body.acc-lavender { --acc: var(--lavender); --acc-text: var(--lavender-text); }
body.acc-ink      { --acc: var(--navy);     --acc-text: var(--navy); }

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

html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--navy);
  min-height: 100vh;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E");
  background-size: 250px 250px;
  opacity: 0.5;
}

/* ── Nav ─────────────────────────────────── */
.page-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease;
}

/* Toggled by js/nav-hide.js: hide on scroll-down, reveal on scroll-up */
.page-nav.nav-hidden { transform: translateY(-100%); }

/* Brand: creature mark + wordmark, links home */
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-mark {
  height: 26px;
  width: auto;
  display: block;
  transition: transform 0.25s cubic-bezier(0.16,1,0.3,1);
}
.nav-brand:hover .nav-mark { transform: rotate(-6deg) scale(1.06); }

.nav-word {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}

/* Global section links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.6rem);
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  position: relative;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 0.35rem 0;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--navy); }

/* Active page: Miró dot underneath in the section accent */
.nav-link[aria-current="page"] { color: var(--navy); font-weight: 600; }
.nav-link[aria-current="page"]::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -3px;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: var(--acc, var(--red));
  border-radius: 47% 53% 51% 49%;
}

.nav-link-map {
  color: var(--navy);
  border: 1px solid rgba(23,19,39,0.22);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link-map:hover { color: var(--red-deep); border-color: var(--red); }

/* Learning-ladder nav: numbered step badge before each link */
.nav-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15rem; height: 1.15rem; margin-right: 0.4rem;
  font-size: 0.58rem; font-weight: 700; line-height: 1;
  color: var(--muted);
  border: 1px solid var(--border); border-radius: 50%;
  font-variant-numeric: tabular-nums;
}
.nav-link[aria-current="page"] .nav-num {
  color: #fff; background: var(--acc, var(--navy)); border-color: var(--acc, var(--navy));
}
.nav-link-map .nav-num { margin-right: 0.3rem; border-color: rgba(23,19,39,0.22); }

/* "Involucrate" call-to-action pill (last item in the ladder) */
.nav-cta {
  flex-shrink: 0; white-space: nowrap;
  font-size: 0.64rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: var(--navy); text-decoration: none;
  padding: 0.42rem 0.9rem; border-radius: 999px;
  transition: background 0.2s;
}
.nav-cta:hover { background: #2a2342; }

/* Prev/next "ladder" funnel at the foot of every rung */
.step-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  max-width: var(--measure-wide);
  margin: 3rem auto 0; padding: 2rem var(--pad-x) 0;
  border-top: 1px solid var(--border);
}
.step-link { text-decoration: none; display: flex; flex-direction: column; gap: 0.25rem; max-width: 47%; }
.step-next { margin-left: auto; text-align: right; }
.step-dir { font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.step-name {
  font-family: var(--font-display); font-size: 1.2rem; color: var(--navy);
  display: flex; align-items: center; gap: 0.45rem; line-height: 1.15;
}
.step-next .step-name { justify-content: flex-end; }
.step-name .nav-num { width: 1.3rem; height: 1.3rem; font-size: 0.62rem; }
.step-link:hover .step-name { color: var(--acc-text, var(--navy)); }
@media (max-width: 640px) {
  .step-name { font-size: 0.98rem; }
  .step-nav { padding-top: 1.4rem; }
  .nav-num { width: 1.05rem; height: 1.05rem; font-size: 0.54rem; }
}

/* ── Page header ─────────────────────────── */
/* Full-measure on desktop: titles run on one line, no forced breaks */
.page-header {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) var(--pad-x) 2.5rem;
  max-width: 1440px;
  animation: pg-reveal 0.8s cubic-bezier(0.16,1,0.3,1) both 0.05s;
}

/* Section accent rule above the eyebrow */
.page-header::before {
  content: '';
  display: block;
  width: 3.25rem;
  height: 3px;
  background: var(--acc, var(--red));
  border-radius: 2px;
  margin-bottom: 1.1rem;
}

.page-eyebrow {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 1rem;
}

/* Miró three-dot brand signature (used under page subtitles) */
.page-dots {
  display: inline-flex;
  gap: 5px;
  margin-top: 1.4rem;
}
.page-dots span {
  width: 7px;
  height: 7px;
  border-radius: 47% 53% 51% 49%;
  display: block;
}
.page-dots span:nth-child(1) { background: var(--navy); }
.page-dots span:nth-child(2) { background: #c8920a; }
.page-dots span:nth-child(3) { background: #d63b2a; }

/* ── Background brand decorations (subpages) ── */
.logo-bg-page {
  position: fixed;
  top: 50%;
  right: -6%;
  transform: translateY(-50%) rotate(4deg);
  width: min(42vw, 480px);
  height: auto;
  pointer-events: none;
  z-index: 0;
  filter: saturate(0.15) brightness(0.85);
  opacity: 0.05;
}

.pg-blob {
  position: fixed;
  pointer-events: none;
  z-index: 0;
}

.pg-blob-a {
  width: min(48vw, 560px);
  height: min(48vw, 560px);
  top: -18%;
  right: -10%;
  border: 1.5px solid rgba(23,19,39,0.06);
  border-radius: 61% 39% 53% 47% / 54% 47% 53% 46%;
}

.pg-blob-b {
  width: min(26vw, 300px);
  height: min(26vw, 300px);
  bottom: -10%;
  left: -6%;
  border: 1px solid rgba(23,19,39,0.05);
  border-radius: 47% 53% 40% 60% / 55% 44% 56% 45%;
}

/* satellite dot on the large blob ring */
.pg-blob-a::after {
  content: '';
  position: absolute;
  top: 12%;
  left: 4%;
  width: 9px;
  height: 9px;
  background: #c8920a;
  border-radius: 47% 53% 51% 49%;
}

/* keep page content above decorations */
.page-header, .cards-section, .manifesto-body, .source-line, .page-footer {
  position: relative;
  z-index: 2;
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.page-title em {
  font-style: italic;
  color: var(--red);
}

.page-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: #565d70;
  line-height: 1.6;
  max-width: 80ch;
}

/* Compact page title (per-industry detail H1) */
.page-title--compact { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.7rem; }

/* Screen-reader-only (visually hidden but announced) */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Cards ───────────────────────────────── */
.cards-section {
  padding: 1rem var(--pad-x) 5rem;
  animation: pg-reveal 0.9s cubic-bezier(0.16,1,0.3,1) both 0.2s;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
  max-width: var(--measure-wide);
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--acc, var(--amber));
  border-radius: 0 3px 3px 0;
  padding: 1.6rem 1.75rem;
  transition: box-shadow 0.22s, transform 0.22s;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(23,19,39,0.09);
  transform: translateY(-3px);
}

.card.card-wide {
  grid-column: 1 / -1;
  border-left-color: var(--red);
  background: var(--navy);
  color: #fff;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  flex-wrap: wrap;
}

.card-cat {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.card.card-wide .card-cat { color: rgba(255,255,255,0.45); }

.chip {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
}

/* Status chips in brand palette (AA at chip size; no Material colors) */
.chip-deployed { background: rgba(23,19,39,0.07); color: var(--navy); }
.chip-urgent   { background: rgba(228,38,28,0.09); color: var(--red-deep); }
.chip-pilot    { background: var(--amber-bg); color: var(--amber-text); }
.chip-research { background: rgba(23,19,39,0.06); color: var(--muted); }
.chip-now      { background: rgba(170,163,211,0.22); color: var(--lavender-text); }

.card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 0.7rem;
}

.card.card-wide .card-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  margin-bottom: 1rem;
}

.card-text {
  font-size: 0.865rem;
  line-height: 1.72;
  color: #3a4060;
  margin-bottom: 1rem;
}

.card.card-wide .card-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: var(--measure-prose);
}

.card-stat {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(23,19,39,0.07);
}

.stat-n {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--red);
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.stat-l {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.35;
}

/* ── Applications call-to-action ─────────── */
.app-cta {
  position: relative;
  z-index: 2;
  padding: 1rem var(--pad-x) 3.5rem;
  max-width: var(--measure-wide);
}
.app-cta-inner {
  background: var(--navy);
  border-left: 3px solid var(--red);
  border-radius: 0 4px 4px 0;
  padding: clamp(2rem, 4vw, 3rem) clamp(1.75rem, 4vw, 3.25rem);
  max-width: 860px;
}
.app-cta-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 0.9rem;
}
.app-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  font-weight: 300;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 1rem;
}
.app-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-style: italic;
  color: rgba(255,255,255,0.72);
  line-height: 1.65;
  max-width: 660px;
  margin-bottom: 1.75rem;
}
.app-cta-btn {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--amber);
  text-decoration: none;
  padding: 0.85rem 1.5rem;
  border-radius: 3px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.app-cta-btn:hover {
  background: #ffd34d;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23,19,39,0.25);
}
/* Secondary line under the CTA button (soft alternative action) */
.app-cta-alt { margin-top: 1.4rem; font-size: 0.82rem; line-height: 1.5; color: rgba(255,255,255,0.65); }
.app-cta-alt a { color: var(--amber); text-decoration: none; border-bottom: 1px solid rgba(245,188,22,0.4); }
.app-cta-alt a:hover { color: #ffd34d; }

/* ── Source line ─────────────────────────── */
.source-line {
  padding: 0 var(--pad-x) 3rem;
  max-width: var(--measure-wide);
}

.source-line p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.6;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

/* ── Page footer ─────────────────────────── */
.page-footer {
  padding: 1.75rem var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}

.footer-mark {
  height: 22px;
  width: auto;
  display: block;
}

.footer-nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.footer-nav a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  display: inline-block;
  padding: 0.5rem 0;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--red); }

.footer-copy {
  font-size: 0.68rem;
  color: #545b6e;
  letter-spacing: 0.05em;
}

/* ── Animation ───────────────────────────── */
@keyframes pg-reveal {
  from { opacity: 0; transform: translateY(1rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ──────────────────────────── */
/* Mid widths: compress the ladder so no item (esp. the Involucrate CTA)
   silently disappears behind the hidden-scrollbar overflow */
@media (min-width: 769px) and (max-width: 1120px) {
  .nav-links { gap: 0.75rem; }
  .nav-link { font-size: 0.62rem; letter-spacing: 0.06em; }
  .nav-num { margin-right: 0.25rem; }
  .nav-cta { font-size: 0.6rem; padding: 0.38rem 0.7rem; }
  .lang-btn { padding: 0.3rem 0.3rem; }
}
/* Narrow-desktop band: drop the number badges so the lang switcher never clips */
@media (min-width: 769px) and (max-width: 900px) {
  .nav-num { display: none; }
  .nav-links { gap: 0.6rem; }
}

@media (max-width: 768px) {
  /* Two-row nav: brand on top, links wrap below — everything visible.
     Tap targets ≥34px; js/nav-hide.js reclaims the space while reading. */
  :root { --nav-h: 118px; }
  .page-nav {
    /* auto height: 4 stacked rows overflow the fixed 118px and clipped the
       brand at the top edge; content offsets still derive from --nav-h */
    height: auto;
    min-height: var(--nav-h);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.4rem;
    padding-top: 0.6rem;
    padding-bottom: 0.5rem;
    /* near-opaque, no blur: continuous backdrop-filter janks budget GPUs */
    background: rgba(250,250,248,0.97);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-mark { height: 22px; }
  .nav-links {
    flex-wrap: wrap;
    overflow-x: visible;
    width: 100%;
    gap: 0.2rem 1.1rem;
  }
  .nav-link { font-size: 0.68rem; padding: 0.72rem 0.2rem; }
  .nav-link-map { padding: 0.45rem 0.8rem; }

  /* Active dot inline — the absolute dot collides with wrapped rows */
  .nav-link[aria-current="page"]::after {
    position: static;
    display: inline-block;
    margin-left: 6px;
    transform: none;
    vertical-align: middle;
  }

  /* Grain overlay off: full-viewport fixed compositing layer on long scrolls */
  body::after { display: none; }

  /* Typography floors for phone reading */
  .page-subtitle { font-size: 1.15rem; color: #565d70; }
  .card-text { font-size: 0.95rem; }
  .stat-l { font-size: 0.8rem; color: #5b6275; }
  .chip, .card-cat { font-size: 0.65rem; }
  .chip { padding: 0.25rem 0.55rem; }
  .source-line p { font-size: 0.78rem; }

  .cards-grid { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .footer-nav { gap: 0.25rem 1.25rem; }
  .footer-nav a { font-size: 0.78rem; }
  .nav-label, .nav-other { display: none; }
  .logo-bg-page { width: 70vw; opacity: 0.04; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; }
}

/* Accessibility: visible focus */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ── Filter strip (applications page) ─────
   Sticky: stays visible while scrolling 36 cards */
.filter-strip {
  position: sticky;
  top: var(--nav-h);
  z-index: 50;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  padding: 1rem 0;
  background: rgba(250,250,248,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.filter-group { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.filter-group-label {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.15rem;
}
.filter-sep { width: 1px; height: 1.5rem; background: var(--border); flex-shrink: 0; }
.filter-chip {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  background: none;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-chip:hover { border-color: var(--navy); color: var(--navy); }
.filter-chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-count { font-size: 0.7rem; color: var(--muted); margin-left: auto; white-space: nowrap; }

/* Application tiles */
.app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  max-width: var(--measure-wide);
}
.app-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 2px solid transparent;
  padding: 1.2rem 1.4rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.app-tile:hover { box-shadow: 0 6px 24px rgba(23,19,39,0.09); transform: translateY(-2px); }
.app-tile-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}
.app-badges { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.domain-badge {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #545b6e;
}
.readiness-tag {
  font-size: 0.58rem;
  color: #545b6e;
  white-space: nowrap;
  flex-shrink: 0;
}
.readiness-tag.urgent { color: var(--red); font-weight: 600; }
.app-tile h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.app-tile p { font-size: 0.875rem; line-height: 1.68; color: #4a5068; flex: 1; }
.app-sectors {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(23,19,39,0.06);
}
.app-sector {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #545b6e;
  background: rgba(23,19,39,0.05);
  padding: 0.12rem 0.45rem;
}

/* ── Application domains (newcomer-first sections) ── */
.app-domain { max-width: var(--measure-wide); margin: 0 0 4.5rem; }
.app-domain:last-of-type { margin-bottom: 1.5rem; }
.domain-head { max-width: 780px; margin-bottom: 1.8rem; }
.domain-eyebrow {
  font-family: var(--font-body);
  font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--acc-text); margin-bottom: 0.6rem;
}
.domain-eyebrow .dnum { color: var(--muted); font-variant-numeric: tabular-nums; }
.domain-head h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem); color: var(--navy);
  line-height: 1.08; margin-bottom: 0.7rem;
}
.domain-intro { font-size: 0.95rem; line-height: 1.72; color: #4a5068; max-width: 66ch; }

/* Capabilities band — the universal / global layer */
.cap-band { margin: 0 0 2.4rem; }
.cap-band-eyebrow {
  font-size: 0.58rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem;
}
.cap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
  gap: 0.8rem;
}
.cap-card {
  background: #fff; border: 1px solid var(--border);
  border-left: 2px solid var(--acc);
  padding: 1rem 1.1rem; display: flex; flex-direction: column;
}
.cap-card h4 {
  font-family: var(--font-display); font-weight: 500; font-size: 1.05rem;
  color: var(--navy); line-height: 1.18; margin-bottom: 0.4rem;
}
.cap-card > p { font-size: 0.875rem; line-height: 1.6; color: #4a5068; }
.cap-ex { font-size: 0.68rem !important; color: var(--muted); margin-top: 0.5rem; }
.cap-maturity {
  margin-top: 0.7rem; padding-top: 0.5rem;
  border-top: 1px solid rgba(23,19,39,0.06);
  font-size: 0.56rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: #545b6e;
}

/* LATAM sub-block label within a domain */
.latam-label {
  font-family: var(--font-body); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 1rem; display: flex; align-items: baseline; gap: 0.5rem; flex-wrap: wrap;
}
.latam-label .ll-note {
  font-weight: 400; letter-spacing: 0; text-transform: none;
  font-size: 0.78rem; color: #545b6e;
}

/* ── Manifesto ───────────────────────────── */
.manifesto-body { max-width: var(--measure-prose); padding: 0 var(--pad-x) 5rem; }
.manifesto-section { margin-bottom: 3.5rem; }
.manifesto-n {
  display: block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-deep);
  margin-bottom: 0.75rem;
}
.manifesto-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--navy);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}
.manifesto-h2 em { color: var(--red); font-style: italic; }
.manifesto-p {
  font-size: 0.93rem;
  line-height: 1.88;
  color: #3a4060;
  margin-bottom: 1rem;
}
.pull-quote {
  border-left: 3px solid var(--red);
  background: rgba(255,245,202,0.45);
  padding: 1.25rem 1.75rem;
  margin: 1.75rem 0;
}
.pull-quote-text {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  font-style: italic;
  font-weight: 300;
  color: var(--navy);
  line-height: 1.5;
}
.manifesto-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 1.75rem 0;
}
.manifesto-data-n {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
  letter-spacing: -0.02em;
}
.manifesto-data-l {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 0.2rem;
}
.manifesto-closing {
  background: var(--navy);
  padding: 2.75rem 3rem;
  border-left: 3px solid var(--red);
  margin-top: 2rem;
}
.manifesto-closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 300;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.manifesto-closing-text {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-style: italic;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.manifesto-closing-cta {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid rgba(245,188,22,0.5);
  border-radius: 2px;
  padding: 0.85rem 1.4rem;
  margin-top: 0.5rem;
  transition: color 0.2s, border-color 0.2s;
}
.manifesto-closing-cta:hover { color: #fff; border-color: rgba(255,255,255,0.5); }

@media (max-width: 768px) {
  .manifesto-data { grid-template-columns: 1fr; gap: 1rem; }
  .manifesto-closing { padding: 2rem 1.5rem; }
  .manifesto-p { font-size: 1rem; line-height: 1.8; }
  .manifesto-data-l { font-size: 0.8rem; color: #5b6275; }

  /* Filter: not sticky on mobile (nav + 4 wrapped rows would cover ~35% of
     the viewport); bigger chips for thumbs */
  .filter-strip { position: static; gap: 0.5rem; padding: 0.6rem 0 1rem; }
  .filter-sep { display: none; }
  .filter-count { margin-left: 0; width: 100%; }
  .filter-chip {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.9rem;
    font-size: 0.7rem;
  }
  .app-grid { grid-template-columns: 1fr; }

  /* Card taxonomy legibility */
  .domain-badge, .app-sector { font-size: 0.62rem; }
  .app-tile p { font-size: 0.92rem; line-height: 1.62; }
  .readiness-tag { font-size: 0.66rem; color: rgba(74,80,104,0.85); }
}

/* ── "¿Qué son las tecnologías cuánticas?" — editorial reading layout ──
   Single 720px column (shares .manifesto-body) for dwell/readability. */
.lead-p {
  font-size: 1.02rem;
  line-height: 1.9;
  color: #3a4060;
}
.bridge-p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--navy);
  margin: 1.6rem 0 0.25rem;
}
.bridge-p strong { color: var(--red-deep); font-weight: 600; }

/* The four pillars — numbered, color-coded by brand palette */
.pillars { margin-top: 2.25rem; }

.pillar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
}

.pillar-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}
.pillar-num {
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--p-acc, var(--amber-text));
  flex-shrink: 0;
}
.pillar-label {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.pillar-standfirst {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.6vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.32;
  color: var(--navy);
  margin-bottom: 1.1rem;
  max-width: 38ch;
}
.pillar-p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: #3a4060;
  margin-bottom: 0.9rem;
}
.pillar-p:last-child { margin-bottom: 0; }
.pillar-p strong { color: var(--navy); font-weight: 600; }

.pillar.p-amber    { --p-acc: var(--amber-text); }
.pillar.p-lavender { --p-acc: var(--lavender-text); }
.pillar.p-red      { --p-acc: var(--red-deep); }
.pillar.p-ink      { --p-acc: var(--navy); }

@media (max-width: 768px) {
  .lead-p, .bridge-p { font-size: 1.05rem; line-height: 1.82; }
  .pillar { padding: 2rem 0; }
  .pillar-num { font-size: 2rem; }
  .pillar-p { font-size: 1rem; line-height: 1.78; }
}

/* ════════ "¿Qué es quantum?" — full-width editorial layout ════════ */

/* Language switcher in the page nav (mirrors the landing) */
.lang-switcher { display: flex; align-items: center; gap: 0.05rem; }
.lang-switcher .sep { color: rgba(23,19,39,0.2); font-size: 0.7rem; }
.lang-btn {
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.3rem 0.45rem;
  transition: color 0.2s ease;
}
.lang-btn:hover { color: var(--navy); }
.lang-btn.active { color: var(--red-deep); }

/* Wide centered container — uses the full screen on desktop */
.qt-wrap {
  position: relative;
  z-index: 2;
  max-width: var(--measure-full);
  margin: 0 auto;
  padding: calc(var(--nav-h) + 3.75rem) var(--pad-x) 0;
  animation: pg-reveal 0.8s cubic-bezier(0.16,1,0.3,1) both 0.05s;
}

/* Hero: full-width thesis title (deliberate break at the dash), then a
   two-column band with the lead and the paradigm quote */
.qt-hero {
  display: block;
  padding-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.qt-hero-lead::before {
  content: '';
  display: block;
  width: 3.25rem; height: 3px;
  background: var(--acc, var(--red));
  border-radius: 2px;
  margin-bottom: 1.1rem;
}
/* Title sized to sit on ONE line across the full width on desktop
   (longest language ~51 chars); wraps naturally only on small screens */
.qt-hero .page-title {
  font-size: clamp(2.4rem, 4.2vw, 4.2rem);
  letter-spacing: -0.02em;
  margin-bottom: 1.4rem;
}
.qt-hero .page-subtitle { max-width: 90ch; }
.qt-hero-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  margin-top: clamp(1.6rem, 3vw, 2.5rem);
}
.qt-hero .lead-p {
  font-size: clamp(1.05rem, 1.25vw, 1.3rem);
  line-height: 1.85;
  margin-bottom: 0;
}
.qt-hero .pull-quote { margin: 0; }
.qt-hero .pull-quote-text { font-size: clamp(1.2rem, 1.6vw, 1.75rem); line-height: 1.5; }

/* Bridge — full-width lead-in to the four pillars */
.qt-bridge {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--navy);
  max-width: 30ch;
  padding: clamp(2rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3vw, 2.75rem);
  border-top: 1px solid var(--border);
}
.qt-bridge strong { color: var(--red-deep); font-weight: 500; }

/* Pillars — 2×2 grid on desktop */
.qt-pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2.5rem, 4vw, 4rem) clamp(3rem, 6vw, 6.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}
.qt-pillars .pillar { border-top: none; padding: 0; }
.pillar-rule {
  width: 2.5rem; height: 3px;
  background: var(--p-acc, var(--amber-text));
  border-radius: 2px;
  margin-bottom: 1.2rem;
}
.qt-pillars .pillar-num { font-size: clamp(2.4rem, 2.9vw, 3.2rem); }
.qt-pillars .pillar-standfirst {
  font-size: clamp(1.35rem, 1.85vw, 1.9rem);
  margin-bottom: 1.25rem;
}
.qt-pillars .pillar-p {
  font-size: clamp(1rem, 1.02vw, 1.05rem);
  line-height: 1.82;
  max-width: 78ch;
}

/* CTA spans the wide container instead of its own narrow box */
.qt-cta { max-width: none; padding-left: 0; padding-right: 0; }

@media (max-width: 980px) {
  .qt-hero { padding-bottom: 2.5rem; }
  .qt-hero-intro { grid-template-columns: 1fr; gap: 1.5rem; }
  .qt-hero .page-subtitle { max-width: 100%; }
  .qt-bridge { max-width: 100%; }
  .qt-pillars { grid-template-columns: 1fr; gap: 2.75rem; }
}

/* ════════ Applications: shared (hub + per-industry) ════════ */

/* Bridge rung 1 → rung 2 */
.app-bridge {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.35rem, 2.2vw, 2rem); line-height: 1.4;
  color: var(--navy); max-width: 40ch; margin: 0.25rem 0 2.6rem;
}
.app-bridge strong { color: var(--red-deep); font-weight: 500; }

/* Quantum-domain badge — colors bridge to rung 1 (/quantum-tech) */
.q-badge {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 0.15rem 0.45rem; border-radius: 2px;
  white-space: nowrap;
}
.q-badge[data-q="computing"]     { background: var(--amber-bg); color: var(--amber-text); }
.q-badge[data-q="sensing"]       { background: rgba(170,163,211,0.2); color: var(--lavender-text); }
.q-badge[data-q="simulation"]    { background: rgba(23,19,39,0.07); color: var(--navy); }
.q-badge[data-q="communication"] { background: rgba(228,38,28,0.09); color: var(--red-deep); }

/* Maturity: 3-dot scale + label */
.mat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; white-space: nowrap; flex-shrink: 0; color: var(--muted);
}
.mat-dots { display: inline-flex; gap: 3px; }
/* empty = ring, filled = solid (opacity trick failed non-text contrast) */
.mat-dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid currentColor; opacity: 0.6; }
.mat[data-m="investigacion"] { color: var(--muted); }
.mat[data-m="investigacion"] .mat-dots i:nth-child(1),
.mat[data-m="piloto"] .mat-dots i:nth-child(-n+2),
.mat[data-m="comercial"] .mat-dots i { background: currentColor; opacity: 1; }
.mat[data-m="piloto"] { color: var(--amber-text); }
.mat[data-m="comercial"] { color: var(--navy); }

/* App tile top border by quantum domain */
.app-tile[data-qdomain="computing"]     { border-top-color: var(--amber); }
.app-tile[data-qdomain="sensing"]       { border-top-color: var(--lavender); }
.app-tile[data-qdomain="simulation"]    { border-top-color: var(--navy); }
.app-tile[data-qdomain="communication"] { border-top-color: var(--red); }

/* Legend: editorial masthead */
.app-legend {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.9rem 2.4rem;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 1.15rem 0; margin: 0 0 3.2rem;
}
.legend-title { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.15rem; color: var(--navy); margin-right: auto; }
.legend-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.legend-label { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-right: 0.35rem; }
.app-legend .mat { font-size: 0.7rem; }
.app-legend .mat-dots i { width: 8px; height: 8px; }
@media (max-width: 720px) { .legend-title { margin-right: 0; width: 100%; } }

/* ── Industry hub (icon grid) ── */
.ind-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem; max-width: var(--measure-wide);
}
.ind-card {
  background: #fff; border: 1px solid var(--border); border-top: 2px solid transparent;
  padding: 1.5rem 1.4rem 1.3rem; display: flex; flex-direction: column;
  text-decoration: none; color: inherit;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.ind-card:hover { box-shadow: 0 8px 28px rgba(23,19,39,0.1); transform: translateY(-3px); border-top-color: var(--acc, var(--navy)); }
.ind-icon { width: 34px; height: 34px; color: var(--acc-text, var(--navy)); margin-bottom: 1rem; }
.ind-n { font-family: var(--font-body); font-size: 0.6rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ind-name { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; line-height: 1.14; color: var(--navy); margin: 0.15rem 0 0.5rem; }
.ind-teaser { font-size: 0.875rem; line-height: 1.55; color: #4a5068; flex: 1; }
.ind-meta {
  margin-top: 1rem; padding-top: 0.7rem; border-top: 1px solid rgba(23,19,39,0.06);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.68rem; color: var(--muted);
}
.ind-meta .ind-go { color: var(--acc-text, var(--navy)); font-weight: 600; transition: transform 0.2s; }
.ind-card:hover .ind-go { transform: translateX(3px); }

/* Back-to-hub link (per-industry pages) */
.app-back {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--muted); text-decoration: none; margin-bottom: 1.2rem;
  transition: color 0.15s;
}
.app-back:hover { color: var(--acc-text, var(--navy)); }
