/*----------------------------------------*/
/* USB Solutions — Storytelling Home
/* Namespace: .st-*  (independent of style.css pages)
/* Dials: VARIANCE 8 / MOTION 7 / DENSITY 3
/*----------------------------------------*/
:root {
  --st-ink: #0B1F33;
  --st-ink-2: #10293F;
  --st-paper: #F4F7FA;
  --st-card: #FFFFFF;
  --st-navy: #174674;
  --st-signal: #05679C;
  --st-grant: #00B37E;
  --st-line: rgba(11, 31, 51, 0.14);
  --st-line-inv: rgba(255, 255, 255, 0.16);
  --st-muted: #54677A;
  --st-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --st-font-display: "Archivo", "Sarabun", sans-serif;
  --st-font-body: "Sarabun", sans-serif;
  --st-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

.st-page {
  background: var(--st-paper);
  color: var(--st-ink);
  font-family: var(--st-font-body);
  overflow-x: clip;
}

.st-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding-left: clamp(1.1rem, 4vw, 3rem);
  padding-right: clamp(1.1rem, 4vw, 3rem);
}

/* Reveal on scroll */
.st-rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--st-ease), transform 0.9s var(--st-ease);
}
.st-rv.in {
  opacity: 1;
  transform: none;
}
.st-rv-d1 { transition-delay: 0.08s; }
.st-rv-d2 { transition-delay: 0.16s; }
.st-rv-d3 { transition-delay: 0.24s; }
.st-rv-d4 { transition-delay: 0.32s; }

/*----------------------------------------*/
/* Hero
/*----------------------------------------*/
.st-hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: flex-end;
  background:
    radial-gradient(110% 80% at 82% -10%, rgba(5, 103, 156, 0.28) 0%, transparent 55%),
    linear-gradient(180deg, var(--st-ink-2) 0%, var(--st-ink) 100%);
  color: #fff;
  overflow: hidden;
}

.st-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1.4px),
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 34px 34px, 34px 34px;
  background-position: 0 0, 17px 17px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 55%, transparent 96%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9) 55%, transparent 96%);
}

/* scan sweep */
.st-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18%;
  height: 18%;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 179, 126, 0.05) 70%, rgba(0, 179, 126, 0.13) 100%);
  border-bottom: 1px solid rgba(0, 179, 126, 0.28);
  animation: st-sweep 7s var(--st-ease) infinite;
  pointer-events: none;
}
@keyframes st-sweep {
  0%   { transform: translateY(-30%); opacity: 0; }
  12%  { opacity: 1; }
  62%  { transform: translateY(430%); opacity: 1; }
  78%  { opacity: 0; }
  100% { transform: translateY(-30%); opacity: 0; }
}

.st-hero .st-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 120px;
  padding-bottom: clamp(2.2rem, 6vh, 4.5rem);
}

.st-eyebrow {
  font-family: var(--st-font-mono);
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 0.9em;
  margin-bottom: clamp(1.2rem, 3vh, 2rem);
}
.st-eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--st-grant);
}

.st-h1 {
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 118%;
  text-transform: uppercase;
  color: #fff;
  font-size: clamp(2.5rem, 8.2vw, 6.4rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(1.2rem, 3vh, 2rem);
  max-width: 15ch;
}
.st-h1 .hl {
  display: block;
  overflow: hidden;
}
.st-h1 .hl > span {
  display: block;
  transform: translateY(112%);
  animation: st-linereveal 0.9s var(--st-ease) forwards;
}
.st-h1 .hl:nth-child(2) > span { animation-delay: 0.12s; }
.st-h1 .hl:nth-child(3) > span { animation-delay: 0.24s; }
.st-h1 .accent {
  color: var(--st-grant);
}
.st-h1 em { font-style: normal; }
@keyframes st-linereveal {
  to { transform: translateY(0); }
}

.st-hero-sub {
  max-width: 54ch;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: clamp(1.6rem, 4vh, 2.4rem);
}

.st-hero-cta {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}

/* hero buttons reuse site-btn where possible */
.st-hero .site-btn.sb-light,
.st-hero .site-btn.sb-solid {
  border-radius: 999px;
  padding: 16px 30px;
  min-width: 0;
}
.st-hero .site-btn.sb-solid {
  background: var(--st-grant);
  border-color: var(--st-grant);
  color: var(--st-ink);
}
.st-hero .site-btn.sb-solid:hover {
  background: #00C98D;
  border-color: #00C98D;
  color: var(--st-ink);
}

/* live scan demo (decorative) */
.st-scan {
  margin-top: clamp(2rem, 6vh, 3.4rem);
  border: 1px solid var(--st-line-inv);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 14px 18px;
  font-family: var(--st-font-mono);
  font-size: clamp(0.72rem, 1.5vw, 0.85rem);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
}
.st-scan-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--st-grant);
  box-shadow: 0 0 0 0 rgba(0, 179, 126, 0.5);
  animation: st-ping 2.2s ease-out infinite;
  flex: none;
}
@keyframes st-ping {
  0%   { box-shadow: 0 0 0 0 rgba(0, 179, 126, 0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(0, 179, 126, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 179, 126, 0); }
}
.st-scan-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,0.85); }
.st-scan-text.ok { color: var(--st-grant); }

/* scroll hint */
.st-scrollhint {
  position: absolute;
  right: clamp(1.1rem, 4vw, 3rem);
  bottom: 26px;
  z-index: 2;
  writing-mode: vertical-rl;
  font-family: var(--st-font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
}
.st-scrollhint::after {
  content: "";
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0.55), transparent);
  animation: st-drop 1.8s ease-in-out infinite;
}
@keyframes st-drop {
  0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

/*----------------------------------------*/
/* Chapters shell + sticky credential rail
/*----------------------------------------*/
.st-story {
  position: relative;
}
.st-board {
  display: grid;
  grid-template-columns: minmax(300px, 380px) 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.st-rail {
  position: sticky;
  top: 96px;
  padding: 3.2rem 0 2rem;
}
.st-chapters {
  min-width: 0;
  padding: 3.2rem 0 2rem;
  display: grid;
  gap: clamp(5rem, 14vh, 9rem);
}

/* chapter header */
.st-chap-head {
  margin-bottom: clamp(1.4rem, 3vh, 2rem);
}
.st-chap-num {
  font-family: var(--st-font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--st-signal);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 0.9rem;
}
.st-chap-num em {
  font-style: normal;
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.6rem, 5vw, 4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(11, 31, 51, 0.32);
  letter-spacing: 0;
}
.st-h2 {
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}
.st-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.7;
  color: var(--st-muted);
  max-width: 58ch;
}

/* ticket divider between chapters */
.st-ticket {
  height: 0;
  border-top: 2px dashed rgba(11, 31, 51, 0.18);
  position: relative;
  margin: 0;
}
.st-ticket::before,
.st-ticket::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--st-paper);
  border: 2px dashed rgba(11, 31, 51, 0.18);
}
.st-ticket::before { left: -11px; }
.st-ticket::after  { right: -11px; }

/*----------------------------------------*/
/* Credential card (signature)
/*----------------------------------------*/
.st-cred {
  background: var(--st-card);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11, 31, 51, 0.16), 0 2px 0 rgba(11, 31, 51, 0.06);
  overflow: hidden;
  border: 1px solid rgba(11, 31, 51, 0.08);
  transform: rotate(-1.2deg);
  transition: transform 0.6s var(--st-ease);
}
.st-rail:hover .st-cred { transform: rotate(0deg) translateY(-4px); }

.st-cred-band {
  background: repeating-linear-gradient(-45deg, var(--st-navy) 0 14px, var(--st-signal) 14px 28px);
  height: 64px;
  position: relative;
}
.st-cred-band::after {
  content: "";
  position: absolute;
  inset: auto 14px 10px 14px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.35);
}

.st-cred-body {
  padding: 1.1rem 1.25rem 1.25rem;
  font-family: var(--st-font-mono);
}
.st-cred-title {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--st-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}
.st-cred-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 1rem;
  align-items: end;
}
.st-field { min-width: 0; }
.st-field dt {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  color: var(--st-muted);
  text-transform: uppercase;
}
.st-field dd {
  margin: 2px 0 10px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--st-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-field dd.fill {
  color: #B9C4CE;
  letter-spacing: 0.14em;
}

.st-qr {
  grid-row: span 3;
  width: 84px;
  height: 84px;
  padding: 7px;
  border: 1px solid rgba(11, 31, 51, 0.16);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  opacity: 0.18;
  filter: grayscale(1);
  transition: opacity 0.5s var(--st-ease), filter 0.5s var(--st-ease);
}
.st-qr svg { display: block; width: 100%; height: 100%; }

/* scanline over qr while validating */
.st-qr::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--st-grant);
  box-shadow: 0 0 12px rgba(0, 179, 126, 0.8);
  opacity: 0;
}
[data-state="scanning"] .st-qr::after {
  animation: st-qrlinescan 1.1s ease-in-out infinite alternate;
  opacity: 1;
}
@keyframes st-qrlinescan {
  from { transform: translateY(6px); }
  to   { transform: translateY(66px); }
}

/* status strip */
.st-cred-status {
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 2px dashed rgba(11, 31, 51, 0.16);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--st-muted);
}
.st-pill {
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}
[data-state="blank"]    .st-status-val { color: #98A6B3; }
[data-state="filled"]   .st-status-val { color: var(--st-signal); }
[data-state="scanning"] .st-status-val { color: var(--st-signal); }
[data-state="valid"]    .st-status-val { color: var(--st-grant); border-color: var(--st-grant); background: rgba(0, 179, 126, 0.08); }

/* states: fill fields + activate QR */
[data-state="blank"] .st-fill-target { color: #B9C4CE; letter-spacing: 0.14em; }
[data-state="blank"] .st-fill-name::after  { content: "········"; }
[data-state="blank"] .st-fill-firm::after  { content: "········"; }
[data-state="blank"] .st-fill-role::after  { content: "········"; }
[data-state="filled"] .st-fill-name::before,
[data-state="scanning"] .st-fill-name::before,
[data-state="valid"] .st-fill-name::before { content: "PÉREZ, ANA"; }
[data-state="filled"] .st-fill-firm::before,
[data-state="scanning"] .st-fill-firm::before,
[data-state="valid"] .st-fill-firm::before { content: "GRUPO ANDINO S.A."; }
[data-state="filled"] .st-fill-role::before,
[data-state="scanning"] .st-fill-role::before,
[data-state="valid"] .st-fill-role::before { content: "EXPOSITOR · NIVEL 3"; }
[data-state="filled"] .st-qr,
[data-state="scanning"] .st-qr,
[data-state="valid"] .st-qr { opacity: 1; filter: none; }
[data-state="valid"] .st-qr svg .qr-live { fill: var(--st-grant); }

/* stamp (final CTA) */
.st-stamp {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.st-stamp span {
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 112%;
  text-transform: uppercase;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem);
  letter-spacing: 0.06em;
  color: var(--st-grant);
  border: 3px solid var(--st-grant);
  border-radius: 10px;
  padding: 0.5em 0.9em;
  background: rgba(244, 247, 250, 0.88);
  transform: scale(2.4) rotate(-24deg);
  opacity: 0;
}
[data-state="stamp"] .st-cred { transform: rotate(-1.2deg) scale(1.02); }
[data-state="stamp"] .st-stamp span {
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
  transform: scale(1) rotate(-8deg);
  opacity: 1;
}

/*----------------------------------------*/
/* Chapter 01 — problem stats
/*----------------------------------------*/
.st-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 1.8rem;
}
.st-stat {
  border-top: 3px solid var(--st-ink);
  padding-top: 1rem;
}
.st-stat b {
  display: block;
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 118%;
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.st-stat span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--st-muted);
}

/*----------------------------------------*/
/* Chapter 02 — flow steps (real sequence)
/*----------------------------------------*/
.st-flow {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  position: relative;
}
.st-flow::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, rgba(5,103,156,0.35), rgba(5,103,156,0.08));
}
.st-step {
  position: relative;
  padding: 0 0 1.9rem 64px;
}
.st-step:last-child { padding-bottom: 0; }
.st-step-n {
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--st-paper);
  border: 2px solid var(--st-signal);
  color: var(--st-signal);
  font-family: var(--st-font-display);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 1rem;
  z-index: 1;
}
.st-step h3 {
  font-family: var(--st-font-display);
  font-weight: 700;
  font-stretch: 108%;
  text-transform: uppercase;
  font-size: 1.06rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.35rem;
}
.st-step p {
  margin: 0;
  color: var(--st-muted);
  font-size: 0.97rem;
  line-height: 1.65;
  max-width: 52ch;
}
.st-step p b { color: var(--st-ink); font-weight: 600; }

/*----------------------------------------*/
/* Chapter 03 — deliverables bento
/*----------------------------------------*/
.st-bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
  margin-top: 1.6rem;
}
.st-cell {
  grid-column: span 2;
  background: var(--st-card);
  border: 1px solid rgba(11, 31, 51, 0.09);
  border-radius: 16px;
  padding: 1.3rem 1.25rem 1.35rem;
  box-shadow: 0 10px 26px rgba(11, 31, 51, 0.07);
  transition: transform 0.35s var(--st-ease), box-shadow 0.35s var(--st-ease);
}
.st-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(11, 31, 51, 0.12);
}
.st-cell.wide { grid-column: span 3; }
.st-cell i.fa {
  font-size: 1.35rem;
  color: var(--st-signal);
  margin-bottom: 0.7rem;
  display: inline-block;
}
.st-cell h3 {
  font-family: var(--st-font-display);
  font-weight: 700;
  font-stretch: 106%;
  text-transform: uppercase;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  margin: 0 0 0.4rem;
}
.st-cell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--st-muted);
}

/*----------------------------------------*/
/* Chapter 04 — beyond the door
/*----------------------------------------*/
.st-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.st-panel {
  background: var(--st-card);
  border: 1px solid rgba(11, 31, 51, 0.09);
  border-radius: 16px;
  padding: 1.4rem 1.35rem;
  box-shadow: 0 10px 26px rgba(11, 31, 51, 0.07);
}
.st-panel-tag {
  font-family: var(--st-font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--st-signal);
  margin-bottom: 0.8rem;
  display: block;
}
.st-panel h3 {
  font-family: var(--st-font-display);
  font-weight: 700;
  font-stretch: 108%;
  text-transform: uppercase;
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
}
.st-panel p {
  margin: 0 0 0.9rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--st-muted);
}
.st-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.st-panel li {
  font-family: var(--st-font-mono);
  font-size: 0.8rem;
  padding: 0.5rem 0;
  border-top: 1px dashed rgba(11, 31, 51, 0.16);
  color: var(--st-ink);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.st-panel li b { color: var(--st-grant); font-weight: 600; white-space: nowrap; }

/*----------------------------------------*/
/* Chapter 05 — proof
/*----------------------------------------*/
.st-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 1.6rem;
}
.st-count-card {
  background: var(--st-navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.1rem 1.1rem;
}
.st-count-card b {
  display: block;
  font-family: var(--st-font-display);
  font-weight: 800;
  font-stretch: 116%;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.st-count-card span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
}

/*----------------------------------------*/
/* Final CTA (dark mirror)
/*----------------------------------------*/
.st-final {
  position: relative;
  background:
    radial-gradient(90% 90% at 15% 110%, rgba(5, 103, 156, 0.30) 0%, transparent 55%),
    linear-gradient(180deg, var(--st-ink) 0%, var(--st-ink-2) 100%);
  color: #fff;
  padding: clamp(4.5rem, 12vh, 8rem) 0 clamp(5rem, 14vh, 9rem);
  overflow: hidden;
}
.st-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.4px);
  background-size: 34px 34px;
  mask-image: linear-gradient(0deg, rgba(0,0,0,0.9) 40%, transparent 95%);
  -webkit-mask-image: linear-gradient(0deg, rgba(0,0,0,0.9) 40%, transparent 95%);
}
.st-final .st-wrap { position: relative; z-index: 2; }
.st-final .st-h2 { color: #fff; max-width: 20ch; }
.st-final .st-lede { color: rgba(255, 255, 255, 0.78); }
.st-final-cta {
  margin-top: 2.2rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
  align-items: center;
}
.st-final .site-btn { border-radius: 999px; padding: 16px 30px; min-width: 0; }
.st-final .site-btn.sb-solid {
  background: var(--st-grant);
  border-color: var(--st-grant);
  color: var(--st-ink);
}
.st-final .site-btn.sb-solid:hover { background: #00C98D; border-color: #00C98D; color: var(--st-ink); }
.st-wa-inline {
  font-family: var(--st-font-mono);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.st-wa-inline i { color: var(--st-grant); font-size: 1.05rem; }
.st-wa-inline:hover { color: #fff; }

/*----------------------------------------*/
/* Responsive
/*----------------------------------------*/
@media (max-width: 1023px) {
  .st-board {
    grid-template-columns: 1fr;
  }
  .st-rail {
    position: static;
    order: -1;
    padding-top: 0;
    margin-bottom: 2.6rem;
  }
  .st-chapters {
    order: 2;
    padding-top: 0;
    gap: 4.5rem;
  }
  /* la credencial abre la historia en móvil: se ve vacía y el relato la llena */
}

@media (max-width: 767px) {
  .st-stats { grid-template-columns: 1fr; gap: 1.1rem; }
  .st-bento { grid-template-columns: 1fr; }
  .st-cell, .st-cell.wide { grid-column: span 1; }
  .st-split { grid-template-columns: 1fr; }
  .st-scrollhint { display: none; }
  .st-h1 .hl { display: inline; overflow: visible; }
  .st-h1 .hl > span { display: inline; transform: none; animation: none; }
  .st-h1 .hl { margin-right: 0.35em; }
  .st-h1 { max-width: none; }
  .st-cred { transform: none; }
}

/*----------------------------------------*/
/* Reduced motion
/*----------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  .st-rv { opacity: 1; transform: none; transition: none; }
  .st-hero::after,
  .st-scan-dot,
  .st-scrollhint::after { animation: none; }
  .st-h1 .hl > span { transform: none; animation: none; }
  [data-state="scanning"] .st-qr::after { animation: none; opacity: 0; }
  .st-stamp span,
  [data-state="stamp"] .st-stamp span { transition: none; }
}
