/* Golden State Warriors / Chase Center microsite &middot; thin overlay on brand.css + pepsico.css + pg.css.
 * Same palette as pepsico: enmovil green + enmovil blue. No custom gsw tokens.
 * Only page-specific bits: hero chain strip, GSW logo sizing, story cards.
 */

/* GSW logo · addressee mark, never dominant */
body[data-brand="gsw"] .opening__pepsi {
  height: clamp(40px, 5.5vw, 72px);
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 768px) {
  body[data-brand="gsw"] .opening__pepsi { height: clamp(32px, 6vw, 52px); }
}

/* Hero · brand logo aligned with the briefing line, headline/tagline below */
.opening__pin > .container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "context  brand"
    "headline headline"
    "tagline  tagline"
    "strip    strip";
  column-gap: 32px;
  row-gap: 22px;
  align-items: center;
}
.opening__pin .opening__context  { grid-area: context; margin-bottom: 0; align-self: center; }
.opening__pin .opening__headline { grid-area: headline; }
.opening__pin .opening__tagline  { grid-area: tagline; }
.opening__pin .chain-strip       { grid-area: strip; margin: 48px 0 16px; }
.opening__brand-anchor {
  grid-area: brand;
  align-self: center;
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
@media (max-width: 1023px) {
  .opening__pin > .container { grid-template-columns: 1fr auto; }
}

/* Top-nav addressee mark · hidden until past hero */
.micro-nav__gsw {
  height: 18px;
  width: auto;
  border-radius: 4px;
  opacity: 0.92;
}
.micro-nav__meta {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.32s ease;
}
.micro-nav__meta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Superscript citation &middot; microscopic, muted, readable on hover */
sup:has(.sup-cite) { font-size: 100%; vertical-align: baseline; line-height: 0; }
.sup-cite {
  display: inline-block;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.4em;
  opacity: 0.45;
  text-decoration: none;
  padding: 0 0.5px;
  vertical-align: 0.5em;
  line-height: 0;
  transition: color 0.2s, opacity 0.2s;
}
.sup-cite:hover { color: var(--enmovil-green); opacity: 1; }

/* ==================== HERO CHAIN STRIP ====================
 * Static six-node supply chain that sits quietly in the hero.
 * Animates ONCE on load: line draws, nodes stagger-fade, one soft flow pass, then rests.
 */
.chain-strip {
  position: relative;
  margin: 44px 0 32px;
  padding: 28px 0 8px;
}
.chain-strip svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 760px;
  overflow: visible;
}
.chain-strip__line {
  fill: none;
  stroke: var(--enmovil-blue);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.35;
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
}
.chain-strip__flow {
  fill: none;
  stroke: var(--enmovil-green);
  stroke-width: 2.4;
  stroke-linecap: round;
  opacity: 0;
}
.chain-strip__node-group {
  opacity: 0;
  transform-origin: center;
  transform-box: fill-box;
}
.chain-strip__node-ring {
  fill: #FFFFFF;
  stroke: rgba(32, 116, 155, 0.22);
  stroke-width: 1.4;
}
.chain-strip__node-ring--accent {
  stroke: var(--enmovil-green);
  stroke-width: 1.8;
}
.chain-strip__node-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  fill: var(--enmovil-ink);
  font-weight: 600;
  text-anchor: middle;
}
.chain-strip__node-sub {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  fill: var(--text-muted);
  font-weight: 500;
  text-anchor: middle;
}
@media (prefers-reduced-motion: reduce) {
  .chain-strip__line { stroke-dashoffset: 0; opacity: 0.35; }
  .chain-strip__node-group { opacity: 1; }
  .chain-strip__flow { display: none; }
}

/* ==================== ANCHOR QUOTE STACK ==================== */
.quote-stack {
  margin-top: 36px;
  display: grid;
  gap: 14px;
  max-width: 720px;
}
.quote-stack__item {
  padding: 18px 22px;
  background: rgba(89, 192, 152, 0.06);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 10px 10px 0;
}
.quote-stack__item--lead {
  background: rgba(32, 116, 155, 0.07);
  border-left-color: var(--enmovil-blue);
}
.quote-stack__text {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  font-weight: 600;
  line-height: 1.45;
  color: var(--enmovil-ink);
  letter-spacing: -0.005em;
}
.quote-stack__attr {
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==================== FOOTPRINT CHIPS ==================== */
.footprint-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.footprint-chip {
  padding: 22px 22px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  transition: border-color 0.2s, transform 0.3s var(--ease-out);
}
.footprint-chip:hover {
  border-color: var(--enmovil-green);
  transform: translateY(-2px);
}
.footprint-chip__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  color: var(--enmovil-blue-deep);
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.footprint-chip__unit {
  font-size: 0.5em;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 6px;
  letter-spacing: -0.01em;
}
.footprint-chip__label {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Caddie strip &middot; introduces the product narrative */
.caddie-strip {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 26px;
  background: linear-gradient(135deg, rgba(89, 192, 152, 0.08), rgba(32, 116, 155, 0.06));
  border: 1px solid rgba(89, 192, 152, 0.22);
  border-radius: 14px;
  flex-wrap: wrap;
}
.caddie-strip__pill {
  flex-shrink: 0;
  padding: 6px 16px;
  background: var(--enmovil-ink);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
}
.caddie-strip__text {
  flex: 1;
  min-width: 240px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.6;
}
.caddie-strip__text strong { color: var(--enmovil-ink); font-weight: 700; }

/* ==================== PROBLEM CARDS ==================== */
.problem-trio {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.problem-card {
  padding: 30px 28px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.problem-card:hover {
  border-color: var(--enmovil-green);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.1);
}
.problem-card__num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--enmovil-blue);
  font-weight: 700;
  text-transform: uppercase;
}
.problem-card__title {
  margin-top: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--enmovil-ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.problem-card__body {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.problem-card__anchor {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.55;
}
.problem-card__anchor strong { color: var(--enmovil-green); font-weight: 700; }

/* ==================== PROBLEM CARD · FLOW STRIP ==================== */
.problem-card__flow {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-soft);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.problem-card__step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.problem-card__step-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.problem-card__step-icon svg { width: 16px; height: 16px; }
.problem-card__step-body { min-width: 0; }
.problem-card__step-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 4px;
}
.problem-card__step-text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.5;
}
.problem-card__step-text strong { font-weight: 700; color: var(--enmovil-ink); }
.problem-card__arrow {
  margin: 2px 0 2px 13px;
  width: 2px;
  height: 10px;
  background: var(--border-soft);
  border-radius: 1px;
}
.problem-card__step--today .problem-card__step-icon { background: #FFF4E0; color: #B86E00; }
.problem-card__step--today .problem-card__step-label { color: #B86E00; }
.problem-card__step--cost .problem-card__step-icon { background: #FDE6E8; color: #B91C26; }
.problem-card__step--cost .problem-card__step-label { color: #B91C26; }
.problem-card__step--fix .problem-card__step-icon { background: var(--enmovil-green-soft); color: var(--enmovil-green); }
.problem-card__step--fix .problem-card__step-label { color: var(--enmovil-green); }

/* Subgrid alignment: same row positions for num / title / today / cost / caddie across cards in a row */
@supports (grid-template-rows: subgrid) {
  .problem-trio { grid-auto-rows: auto; row-gap: 20px; }
  .problem-card {
    display: grid;
    grid-template-rows: subgrid;
    grid-row: span 5;
    row-gap: 0;
  }
  .problem-card__num   { grid-row: 1; align-self: start; }
  .problem-card__title { grid-row: 2; align-self: start; }
  .problem-card__flow {
    grid-row: 3 / span 3;
    display: grid;
    grid-template-rows: subgrid;
    row-gap: 28px;
  }
  .problem-card__arrow { display: none; }
  .problem-card__step--today { grid-row: 1; align-self: start; }
  .problem-card__step--cost  { grid-row: 2; align-self: start; }
  .problem-card__step--fix   { grid-row: 3; align-self: start; }
}

/* ==================== IMPACT TILES ==================== */
.impact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.impact-tile {
  padding: 26px 24px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.06);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.impact-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.12);
}
.impact-tile::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--enmovil-green);
}
.impact-tile--accent::before { background: var(--enmovil-blue); }
.impact-tile__tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}
.impact-tile__big {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  color: var(--enmovil-green);
  letter-spacing: -0.035em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.impact-tile--accent .impact-tile__big { color: var(--enmovil-blue-deep); }
.impact-tile__unit {
  font-size: 0.42em;
  color: var(--text-muted);
  font-weight: 700;
  margin-left: 4px;
}
.impact-tile__label {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.impact-tile__source {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
}
.impact-tile__source a { color: var(--enmovil-blue); text-decoration: underline; text-underline-offset: 2px; }

/* ==================== CUSTOMER STORY CARDS ==================== */
.story-stack {
  margin-top: 44px;
  display: grid;
  gap: 18px;
}
.story-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 30px 32px;
  background: #FFFFFF;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s, box-shadow 0.3s;
}
.story-card:hover {
  border-color: var(--enmovil-green);
  box-shadow: 0 14px 30px -12px rgba(15, 23, 42, 0.1);
}
@media (max-width: 900px) {
  .story-card { grid-template-columns: 1fr; gap: 20px; padding: 26px; }
}
.story-card__left { display: flex; flex-direction: column; gap: 12px; }
.story-card__badge {
  display: inline-flex;
  padding: 6px 12px;
  background: var(--enmovil-blue);
  color: white;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  align-self: flex-start;
}
.story-card__who {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--enmovil-ink);
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.story-card__tag {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.55;
}
.story-card__right { display: flex; flex-direction: column; gap: 14px; }
.story-card__line { display: grid; grid-template-columns: 90px 1fr; gap: 18px; align-items: baseline; }
@media (max-width: 540px) { .story-card__line { grid-template-columns: 1fr; gap: 4px; } }
.story-card__line-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--enmovil-green);
  letter-spacing: 0.12em;
  font-weight: 700;
  text-transform: uppercase;
}
.story-card__line-text {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.55;
}
.story-card__line-text strong { color: var(--enmovil-ink); font-weight: 700; }
.story-card__transfer {
  margin-top: 6px;
  padding: 14px 18px;
  background: rgba(89, 192, 152, 0.08);
  border-left: 3px solid var(--enmovil-green);
  border-radius: 0 10px 10px 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--enmovil-ink);
  line-height: 1.5;
}

/* Ask CTA active feedback */
body[data-brand="gsw"] .btn--primary:active { transform: scale(0.97); }
