/*
 * framework.css - shared visual system for the Agentic AI on AWS for Executive
 * microsite. Ported and re-themed from the reference shared framework. Colours come only from theme.css tokens.
 *
 * Layers: base, hero, tab bar, cards/tiles/tags, tables, callouts,
 * floating controls (nav drawer, home, presentation, theme), footer,
 * presentation mode, reduced motion.
 */

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--color-link); }
a:hover { color: var(--color-link-hover); }
img, svg { max-width: 100%; }
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 2000;
  background: var(--color-primary); color: var(--color-on-primary);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-radius: 4px; }
/* The hidden attribute always wins over a component display rule
 * (a display:flex banner with [hidden] used to show up empty). */
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--font-mono); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: var(--hero-text);
  background:
    radial-gradient(900px 380px at 18% -10%, var(--hero-glow), transparent 60%),
    radial-gradient(700px 300px at 100% 0%, var(--hero-glow-2), transparent 55%),
    linear-gradient(160deg, var(--hero-base-2), var(--hero-base));
  border-bottom: 3px solid var(--hero-rule);
  padding: clamp(84px, 9vw, 104px) 0 clamp(40px, 6vw, 72px);
}
.hero__inner { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.hero__copy { min-width: 0; }
/* Optional illustration on the right (desktop only). Pages add .hero--art. */
.hero__art { display: none; }
@media (min-width: 1024px) {
  .hero--art .hero__inner {
    display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 40px; align-items: center;
  }
  .hero--art .hero__art { display: block; }
  .hero__art svg { width: 100%; height: auto; display: block; max-height: 380px; }
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--hero-eyebrow);
  margin: 0 0 18px;
}
/* Home keeps its pill (event + date). Module pages use .hero__kicker instead:
 * eyebrow and a short duration on one line, no pill, so nothing in the hero
 * looks like a button. Section navigation lives only in the sticky tab bar. */
.hero__pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  color: var(--hero-text-muted);
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border);
  padding: 6px 14px; border-radius: 999px; margin: 0 0 20px;
  max-width: 100%; flex-wrap: wrap; white-space: normal; overflow-wrap: anywhere;
}
.hero__kicker {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  margin: 0 0 18px;
}
.hero__kicker .hero__eyebrow { margin: 0; }
.hero__meta {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 500; letter-spacing: .08em;
  color: var(--hero-text-muted);
  padding-left: 14px; border-left: 1px solid var(--hero-chip-border);
}
.hero h1 {
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  font-weight: 800; letter-spacing: -.02em; max-width: 18ch;
  margin: 0 0 .4em;
}
.hero h1 .accent { color: var(--color-accent-on-dark); }
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--hero-text-muted); max-width: 60ch; margin: 0 0 28px;
  overflow-wrap: break-word;
}
.hero__copy > .hero__sub:last-child { margin-bottom: 0; }
/* Pause control for any hero that moves on its own (scene.js un-hides it). Shared by every scene page. */
.hero--art .hero__inner { position: relative; }
.hero__scene-ctl { display: none; }
@media (min-width: 1024px) {
  .hero__scene-ctl:not([hidden]) {
    display: inline-block; position: absolute; right: 24px; bottom: -34px;
    background: none; border: 0; padding: 4px 0; cursor: pointer;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; color: var(--hero-text-muted);
  }
  .hero__scene-ctl:hover { color: var(--hero-text); text-decoration: underline; }
}
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.hero__chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--hero-chip-bg); border: 1px solid var(--hero-chip-border);
  color: var(--hero-text); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.hero__chip .num {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
}
.hero__chip .sep { color: var(--hero-text-muted); } /* subtle was 3.6:1 on the chip over the red glow */

/* ---------------- Tab bar (centred row of pills) ----------------
 * .tab-bar is the sticky band; .tab-nav[role=tablist] is the pill row inside
 * it and is the horizontal scroller. The fixed fab clusters (menu + home on
 * the left, presentation + theme on the right) must never cover a pill once
 * the bar sticks, so:
 *   >= 1024px  the band sticks at top:0, full width, with side gutters as
 *              wide as a fab cluster (--tab-bar-gutter). The fabs sit inside
 *              those gutters and the pills are centred between them.
 *   <  1024px  the gutters would leave too little room, so the band sticks
 *              just below the fab row instead (top: --tab-bar-below-fabs).
 * When the pills do not fit they scroll sideways with scroll-snap; the edges
 * fade only on the side that has more pills (tabs.js sets data-more-left /
 * data-more-right; without JS both edges fade). */
.tab-bar {
  --tab-bar-gutter: 0px;
  --tab-bar-below-fabs: 64px;
  position: sticky; top: 0; z-index: 90;
  padding: 0 var(--tab-bar-gutter);
  background: var(--tab-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tab-border);
}
.tab-nav {
  --fade-l: 20px; --fade-r: 20px;
  display: flex; gap: 8px; justify-content: safe center; align-items: center;
  max-width: 1240px; margin: 0 auto; padding: 12px 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x proximity; scroll-padding-inline: 20px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, var(--mask-solid) var(--fade-l), var(--mask-solid) calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, var(--mask-solid) var(--fade-l), var(--mask-solid) calc(100% - var(--fade-r)), transparent 100%);
}
.tab-nav::-webkit-scrollbar { display: none; }
.tab-nav[data-more-left="false"] { --fade-l: 0px; }
.tab-nav[data-more-right="false"] { --fade-r: 0px; }
/* Gutter = fab cluster (16px inset + 2 x 40px + 8px gap = 104px) + 16px air. */
@media (min-width: 1024px) { .tab-bar { --tab-bar-gutter: 120px; } }
@media (max-width: 1023.98px) { .tab-bar { top: var(--tab-bar-below-fabs); } }
@media (max-width: 640px) { .tab-bar { --tab-bar-below-fabs: 58px; } }
.tab-nav button {
  flex: 0 0 auto; scroll-snap-align: center;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  border: 1.5px solid var(--tab-pill-border); background: var(--tab-pill-bg);
  font-family: var(--font-body); font-size: 14px; font-weight: 600; line-height: 1.2;
  color: var(--tab-text); cursor: pointer; white-space: nowrap;
  transition: color .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.tab-nav button:hover { color: var(--color-text); border-color: var(--tab-pill-hover-border); }
.tab-nav button[aria-selected="true"] {
  background: var(--tab-pill-active-bg); border-color: var(--tab-pill-active-bg);
  color: var(--tab-pill-active-text); box-shadow: 0 4px 14px var(--tab-pill-shadow);
}
.tab-nav .tab-num {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none;
  border-radius: 50%; background: var(--tab-num-bg); color: var(--tab-num-text);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.tab-nav button[aria-selected="true"] .tab-num {
  background: var(--tab-pill-active-num-bg); color: var(--tab-pill-active-text);
}
.tab-nav .tab-ico { display: inline-flex; width: 16px; height: 16px; flex: none; }
.tab-nav .tab-ico svg { width: 16px; height: 16px; }
/* >= 1024px: slightly tighter pills so all six fit between the gutters at 1440px. */
@media (min-width: 1024px) {
  .tab-nav { gap: 6px; }
  .tab-nav button { gap: 7px; padding: 8px 14px 8px 8px; font-size: 13.5px; }
  .tab-nav .tab-num { width: 22px; height: 22px; }
}
/* Any icon span outside the tab bar (drawer, cards) stays icon-sized too. */
.tab-ico, .tab-ico svg { width: 16px; height: 16px; flex: none; }
.nav-drawer .tab-ico { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .tab-nav { justify-content: flex-start; padding: 10px 20px; }
}
.tab-panel { display: none; animation: tabIn .35s var(--ease); }
/* Any scroll that lands on a panel (a #panel-N deep link, a hero chip, a tab
 * switch while the bar is stuck) stops with the panel fully below the stuck
 * bar plus 12px air. framework/tabs.js keeps --tab-offset (sticky top + bar
 * height) exact; the fallbacks below match the bar at each breakpoint. */
:root { --tab-offset: 65px; }
@media (max-width: 1023.98px) { :root { --tab-offset: 125px; } }
@media (max-width: 640px) { :root { --tab-offset: 116px; } }
.tab-panel { scroll-margin-top: calc(var(--tab-offset) + 12px); }
.tab-panel.is-active { display: block; }
@keyframes tabIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.panel-wrap { max-width: 1120px; margin: 0 auto; padding: 36px 24px 80px; }

/* section heading inside a panel */
.panel-head { margin-bottom: 22px; }
.panel-head .kicker {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-primary); font-weight: 600;
}
.panel-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 6px 0 4px; }
.panel-head p { color: var(--color-text-muted); max-width: 70ch; }

/* ---------------- Cards + tiles + tags ---------------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.card-grid > * { min-width: 0; }
.card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* A featured card spans two columns so a 7-card grid of 4 fills 2 full rows. */
.card-grid .card.is-featured { grid-column: span 2; }
.card {
  position: relative;
  background: var(--color-surface);
  background-image: linear-gradient(155deg, var(--card-tint-top), var(--card-tint-bottom) 72%);
  border: 1px solid var(--color-border);
  border-radius: 16px; padding: 22px;
  box-shadow: 0 1px 2px var(--color-shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.card, .card.is-link { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card.is-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px var(--color-shadow);
  border-color: var(--color-border-strong);
}
.card h3 { font-size: 1.12rem; margin: 14px 0 8px; }
.card p { color: var(--color-text-muted); margin: 0 0 12px; font-size: .97rem; }
.card p strong { color: var(--color-text); font-weight: 700; }
.icon-tile {
  display: inline-grid; place-items: center; width: 46px; height: 46px; flex: none;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--tile-a, var(--tile-red-a)), var(--tile-b, var(--tile-red-b)));
  color: var(--tile-ink, var(--color-primary));
}
.icon-tile.amber { --tile-a: var(--tile-amber-a); --tile-b: var(--tile-amber-b); --tile-ink: var(--tint-amber-ink); }
.icon-tile svg { width: 24px; height: 24px; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 600; line-height: 1.4;
  color: var(--tag-ink, var(--color-primary)); background: var(--tag-bg, var(--color-primary-soft));
  padding: 4px 9px; border-radius: 6px; white-space: nowrap; max-width: 100%;
}
/* Tint palette: a card picks one; its tile and tag follow. Tokens in theme.css. */
.tint-red   { --card-tint-top: var(--tint-red-a);   --card-tint-bottom: var(--tint-red-b);   --tile-a: var(--tint-red-tile-a);   --tile-b: var(--tint-red-tile-b);   --tile-ink: var(--tint-red-ink);   --tag-ink: var(--tint-red-ink);   --tag-bg: var(--tint-red-tag); }
.tint-amber { --card-tint-top: var(--tint-amber-a); --card-tint-bottom: var(--tint-amber-b); --tile-a: var(--tint-amber-tile-a); --tile-b: var(--tint-amber-tile-b); --tile-ink: var(--tint-amber-ink); --tag-ink: var(--tint-amber-ink); --tag-bg: var(--tint-amber-tag); }
.tint-slate { --card-tint-top: var(--tint-slate-a); --card-tint-bottom: var(--tint-slate-b); --tile-a: var(--tint-slate-tile-a); --tile-b: var(--tint-slate-tile-b); --tile-ink: var(--tint-slate-ink); --tag-ink: var(--tint-slate-ink); --tag-bg: var(--tint-slate-tag); }
.tint-rose  { --card-tint-top: var(--tint-rose-a);  --card-tint-bottom: var(--tint-rose-b);  --tile-a: var(--tint-rose-tile-a);  --tile-b: var(--tint-rose-tile-b);  --tile-ink: var(--tint-rose-ink);  --tag-ink: var(--tint-rose-ink);  --tag-bg: var(--tint-rose-tag); }
.tint-stone { --card-tint-top: var(--tint-stone-a); --card-tint-bottom: var(--tint-stone-b); --tile-a: var(--tint-stone-tile-a); --tile-b: var(--tint-stone-tile-b); --tile-ink: var(--tint-stone-ink); --tag-ink: var(--tint-stone-ink); --tag-bg: var(--tint-stone-tag); }
.tag.amber { --tag-ink: var(--tint-amber-ink); --tag-bg: var(--tint-amber-tag); }
/* primary-strong, not primary: --color-primary on a red-tinted card was
 * 4.48:1 in the light theme. primary-strong is darker in the light theme and
 * lighter in the dark theme, so the label clears AA on every tint in both. */
.card-cta {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: .95rem; color: var(--color-primary-strong); text-decoration: none;
}
.card-cta svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
a.card:hover .card-cta svg, .card-cta:hover svg { transform: translateX(3px); }

/* Banner / start-the-journey card */
.banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
  background:
    radial-gradient(500px 200px at 90% -40%, var(--hero-glow-2), transparent 70%),
    linear-gradient(135deg, var(--hero-base-2), var(--hero-base));
  color: var(--hero-text);
  border: 1px solid var(--hero-card-border);
  border-radius: 20px; padding: 28px 30px; max-width: 100%;
}
.banner__body { flex: 1 1 280px; min-width: 0; }
.banner h2 { color: var(--hero-text); font-size: 1.5rem; margin: 0 0 6px; }
.banner p { color: var(--hero-text-muted); margin: 0; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: 13px 22px; border-radius: 12px; border: 0; cursor: pointer; text-decoration: none;
  max-width: 100%; white-space: normal; text-align: left;
  background: var(--color-primary); color: var(--color-on-primary);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.btn:hover { background: var(--color-primary-strong); color: var(--color-on-primary); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--color-primary); border: 1.5px solid var(--color-primary); }
.btn.ghost:hover { background: var(--color-primary-soft); }
.btn svg { width: 17px; height: 17px; }

/* ---------------- Problem / concept blocks ---------------- */
.problem {
  border-left: 4px solid var(--color-primary);
  background: var(--color-surface-tint);
  border-radius: 0 14px 14px 0; padding: 20px 24px; margin: 0 0 24px;
}
.problem h3 { margin-top: 0; }
.lead { font-size: 1.1rem; color: var(--color-text); }

/* ---------------- Entrance motion ----------------
 * Card grids (and any .stagger list) rise in one after another whenever they
 * appear: on page load, and again each time their tab panel is shown
 * (display:none -> block restarts CSS animations). fill-mode is backwards so
 * the hover lift on linked cards still works afterwards. */
.card-grid > *, .stagger > * { animation: riseIn .55s var(--ease) backwards; }
.card-grid > :nth-child(2), .stagger > :nth-child(2) { animation-delay: .07s; }
.card-grid > :nth-child(3), .stagger > :nth-child(3) { animation-delay: .14s; }
.card-grid > :nth-child(4), .stagger > :nth-child(4) { animation-delay: .21s; }
.card-grid > :nth-child(5), .stagger > :nth-child(5) { animation-delay: .28s; }
.card-grid > :nth-child(6), .stagger > :nth-child(6) { animation-delay: .35s; }
.card-grid > :nth-child(7), .stagger > :nth-child(7) { animation-delay: .42s; }
.card-grid > :nth-child(n+8), .stagger > :nth-child(n+8) { animation-delay: .49s; }
@keyframes riseIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
/* ---------------- Stat strip (numbers count up via framework/motion.js) ---------------- */
.stat-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 24px; }
.stat {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 14px;
  padding: 18px 20px; min-width: 0; box-shadow: 0 1px 2px var(--color-shadow);
}
.stat__num { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.8rem, 3.2vw, 2.4rem); line-height: 1.1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.stat__lbl { display: block; color: var(--color-text-muted); font-size: .92rem; margin-top: 4px; }
/* ---------------- One-line takeaway ---------------- */
.takeaway {
  display: flex; gap: 12px; align-items: center; margin: 24px 0 0;
  border-left: 4px solid var(--color-primary); background: var(--color-surface-tint);
  border-radius: 0 12px 12px 0; padding: 14px 18px;
  font-weight: 600; color: var(--color-text);
}
.takeaway svg { width: 20px; height: 20px; flex: none; color: var(--color-primary); }
.takeaway p { margin: 0; }
/* "Tell me more" collapsible reuses the details.tech look */
details.more { border: 1px solid var(--color-border); border-radius: 12px; padding: 0 18px; margin: 18px 0 0; background: var(--color-surface); }
details.more > summary {
  cursor: pointer; font-weight: 700; padding: 13px 0; list-style: none;
  display: flex; align-items: center; gap: 8px; color: var(--color-text);
}
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: '+'; font-family: var(--font-mono); color: var(--color-primary); font-weight: 700; }
details.more[open] > summary::before { content: '\2212'; }
details.more > *:not(summary) { margin: 0 0 14px; color: var(--color-text-muted); }
details.more ul { padding-left: 1.2rem; }
details.more li { margin-bottom: 6px; }
details.more strong { color: var(--color-text); }
@media (max-width: 760px) { .stat-strip { grid-template-columns: minmax(0, 1fr); } }
/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--table-border); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; }
table.data thead th {
  background: var(--table-head-bg); color: var(--table-head-text);
  text-align: left; padding: 12px 14px; font-weight: 700;
}
table.data td, table.data th { padding: 11px 14px; border-top: 1px solid var(--table-border); vertical-align: top; }
table.data tbody tr:nth-child(even) { background: var(--table-row-alt); }
table.data code { font-family: var(--font-mono); font-size: .88em; }

/* ---------------- Callouts ---------------- */
.callout {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--callout-info-border);
  background: var(--callout-info-bg); color: var(--callout-info-text);
  border-radius: 14px; padding: 18px 20px; margin: 22px 0;
}
.callout .callout__icon { flex: none; width: 22px; height: 22px; color: var(--callout-info-border); margin-top: 2px; }
.callout h4 { margin: 0 0 4px; color: inherit; }
.callout p { margin: 0; color: inherit; }
.callout.note { border-color: var(--callout-note-border); background: var(--callout-note-bg); color: var(--callout-note-text); }
.callout.note .callout__icon { color: var(--callout-note-border); }

/* ---------------- Tech detail collapsible ---------------- */
details.tech {
  border: 1px solid var(--color-border); border-radius: 12px;
  padding: 0 18px; margin: 18px 0; background: var(--color-surface);
}
details.tech > summary {
  cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none;
  display: flex; align-items: center; gap: 8px; color: var(--color-text);
}
details.tech > summary::-webkit-details-marker { display: none; }
details.tech > summary::before { content: '+'; font-family: var(--font-mono); color: var(--color-primary); font-weight: 700; }
details.tech[open] > summary::before { content: '\2212'; }
details.tech > *:not(summary) { margin-bottom: 16px; }

/* Floating controls, nav drawer and footer live in chrome.css so the
 * legacy pages can share the same shell without the rest of this file. */
/* ---------------- Presentation mode ---------------- */
body.present-mode { font-size: 20px; }
body.present-mode .hero { padding-top: clamp(40px, 5vw, 72px); }
body.present-mode .tab-bar { top: 0; }
body.present-mode .panel-wrap { max-width: 1320px; padding: 48px 40px 96px; }
body.present-mode .hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
body.present-mode .panel-head h2 { font-size: clamp(2rem, 4vw, 3rem); }
body.present-mode h3 { font-size: 1.5rem; }
body.present-mode .card p, body.present-mode p { font-size: 1.1rem; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid .card.is-featured { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container, .hero__inner, .panel-wrap { padding-left: 20px; padding-right: 20px; }
  .card-grid.cols-2, .card-grid.cols-3, .card-grid.cols-4 { grid-template-columns: minmax(0, 1fr); }
  .tab-nav button { font-size: 13px; padding: 7px 14px 7px 7px; }
  .banner { padding: 22px 20px; }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .tab-panel, .card-grid > *, .stagger > * { animation: none; }
}

/* no-js fallback: show every tab panel */
html.no-js .tab-panel { display: block; }
html.no-js .tab-bar { position: static; }
