/* StampBack — shared styles
   Layout: dropdown header, full-width hero, cards, feature splits, closing band.
   Colours come from the StampBack Media logo (play icon + wordmark). Change tokens here, not in pages. */

/* ---------- Fonts (self-hosted, SIL Open Font Licence) ---------- */
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 700; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 800; font-display: swap; src: url(fonts/plus-jakarta-sans-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url(fonts/source-sans-3-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-style: italic; font-display: swap; src: url(fonts/source-sans-3-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url(fonts/source-sans-3-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url(fonts/source-sans-3-latin-700-normal.woff2) format("woff2"); }

:root {
  /* Brand colours — sampled from the StampBack Media logo (20 Oct 2026) */
  --navy: #00132e;        /* "StampBack" wordmark + tagline */
  --navy-2: #0a2348;
  --mid: #003c85;         /* gradient midpoint between navy and blue */
  --blue: #006ffb;        /* play-icon blue: accents, rules, focus ring */
  --blue-ink: #0064c2;    /* "Media" blue: buttons + links, 5.8:1 with white */
  --blue-deep: #004b93;
  --cyan: #0196ec;        /* play-icon cyan */
  --cyan-ink: #0270ad;
  --teal: #038574;        /* play-icon teal */
  --teal-ink: #02624f;
  --green: #32c377;       /* play-icon green: decorative / on dark only */
  --green-ink: #17784a;
  --amber: #fdab01;       /* play-icon amber: highlights on dark */
  --orange: #fd6b00;      /* play-icon orange: decorative only */
  --orange-ink: #a84300;
  --spectrum: linear-gradient(90deg, #038574 0%, #32c377 20%, #fdab01 40%, #fd6b00 60%, #006ffb 80%, #0196ec 100%);
  --paper: #ffffff;
  --soft: #f3f6fa;
  --tint: #e6f0fb;
  --line: #dbe3ee;
  --text: #13213a;
  --muted: #4a5a70;
  --ph: #9a4a05; --ph-bg: #fff6e6;
  --radius: 10px;
  --pill: 999px;
  --max: 1200px;
  --head: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  --body: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,19,46,.06), 0 8px 24px rgba(0,19,46,.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); font-size: 1.125rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 800; color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; }
h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.4rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--blue-ink); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.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; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 64em) { .container { padding: 0 1.5rem; } }

/* ---------- Skip link ---------- */
.skip { position: absolute; left: 1rem; top: -100px; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 700; text-decoration: none; }
.skip:focus { top: .75rem; color: #fff; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); box-shadow: 0 1px 0 var(--line); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--spectrum); pointer-events: none; }
.site-header__inner { max-width: var(--max); margin: 0 auto; padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { flex-shrink: 0; border-radius: 6px; }
.brand img { height: 26px; width: auto; }
@media (min-width: 26em) { .brand img { height: 30px; } }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; padding: 0 1rem;
  font: 700 1rem var(--body); color: var(--navy); background: none; border: 1.5px solid var(--line); border-radius: var(--pill); cursor: pointer;
}
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, background-color .2s; }
.menu-toggle__bars { position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav panel */
.nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 16px 32px rgba(0,19,46,.12); padding: .25rem 1rem 1.25rem; max-height: calc(100vh - 120px); overflow-y: auto; }
.nav[hidden] { display: none; }
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__item { border-bottom: 1px solid var(--line); position: relative; }
.nav__row { display: flex; align-items: center; justify-content: space-between; }
.nav__link { flex: 1; display: block; padding: .85rem .25rem; font-family: var(--head); font-weight: 700; font-size: 1rem; color: var(--navy); text-decoration: none; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--blue-ink); }
.sub-toggle { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 8px; color: var(--navy); cursor: pointer; }
.sub-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
.nav__item.is-open > .nav__row .sub-toggle svg { transform: rotate(180deg); }
.sub { list-style: none; margin: 0 0 .75rem; padding: 0 0 0 .75rem; border-left: 3px solid var(--tint); display: none; }
.nav__item.is-open > .sub { display: block; }
.sub a { display: block; padding: .55rem .5rem; color: var(--text); text-decoration: none; font-weight: 600; }
.sub a:hover, .sub a[aria-current="page"] { color: var(--blue-ink); }
.sub__note { display: block; font-weight: 400; font-size: .9rem; color: var(--muted); }
.nav .btn { width: 100%; margin-top: 1rem; }

.no-js .menu-toggle { display: none; }
.no-js .nav { position: static; box-shadow: none; padding: 0; max-height: none; }
.no-js .site-header__inner { flex-wrap: wrap; }
.no-js .sub-toggle { display: none; }
.no-js .nav__item:focus-within > .sub, .no-js .nav__item:hover > .sub { display: block; }

@media (min-width: 70em) {
  .site-header__inner { padding: .9rem 1.5rem; }
  .brand img { height: 34px; }
  .menu-toggle { display: none; }
  .nav, .nav[hidden] { display: flex; align-items: center; gap: 1.25rem; position: static; padding: 0; border: 0; box-shadow: none; background: none; max-height: none; overflow: visible; }
  .nav__list { display: flex; gap: 0; }
  .nav__item { border: 0; }
  .nav__link { padding: .7rem .2rem .7rem .7rem; font-size: .98rem; position: relative; }
  .nav__item:not(.has-sub) .nav__link { padding-right: .7rem; }
  .nav__link::after { content: ""; position: absolute; left: .7rem; right: .2rem; bottom: .3rem; height: 3px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
  .nav__item:not(.has-sub) .nav__link::after { right: .7rem; }
  .nav__link[aria-current="page"]::after, .nav__link:hover::after { transform: scaleX(1); }
  .sub-toggle { width: 28px; height: 36px; }
  .sub {
    position: absolute; top: 100%; left: 0; min-width: 270px; margin: 0; padding: .5rem;
    background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--blue); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow);
  }
  .nav__item.has-sub:hover > .sub { display: block; }
  .sub a { padding: .6rem .75rem; border-radius: 8px; }
  .sub a:hover { background: var(--soft); }
  .nav .btn { width: auto; margin: 0; }
  .no-js .nav { position: static; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px; padding: 0 1.4rem; border-radius: var(--pill); font: 700 1rem var(--body); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background-color .15s, color .15s, border-color .15s; }
.btn--primary { background: var(--blue-ink); color: #fff; }
.btn--primary:hover { background: var(--blue-deep); color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--tint); color: var(--navy); }
.btn--outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--outline-light { border-color: #fff; color: #fff; background: transparent; }
.btn--outline-light:hover { background: #fff; color: var(--navy); }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.link-more { font-weight: 700; text-decoration: none; display: inline-flex; gap: .35rem; align-items: center; }
.link-more::after { content: "→"; transition: transform .15s; }
.link-more:hover::after { transform: translateX(3px); }

/* ---------- Hero (home): full-width image with overlaid stacked text ---------- */
.hero {
  position: relative; isolation: isolate; color: #fff; overflow: hidden;
  min-height: clamp(420px, 62vh, 620px); display: flex; align-items: center;
  /* Replace hero-fallback with a real photo: background-image: url(hero.jpg) */
  background: radial-gradient(120% 90% at 85% 40%, var(--blue) 0%, var(--mid) 38%, var(--navy) 75%);
}
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(brand-mark.png) no-repeat right -60px center / min(560px, 60vw); opacity: .18; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,19,46,.85) 0%, rgba(0,19,46,.35) 60%, rgba(0,19,46,0) 100%); }
.hero__inner { max-width: var(--max); margin: 0 auto; padding: 4rem 1rem; width: 100%; }
@media (min-width: 64em) { .hero__inner { padding: 5rem 1.5rem; } }
.hero h1 { color: #fff; max-width: 15ch; font-size: clamp(2.3rem, 1.5rem + 3.6vw, 4.2rem); }
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--amber); }
.hero__sub { font-style: italic; font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem); color: #dce8fb; max-width: 36rem; }
.hero__credit { position: absolute; right: 1rem; bottom: .75rem; font-size: .8rem; color: rgba(255,255,255,.75); }

/* Inner page banner */
.banner { position: relative; isolation: isolate; color: #fff; background: linear-gradient(110deg, var(--navy) 0%, var(--mid) 55%, var(--blue-ink) 100%); overflow: hidden; }
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(brand-mark.png) no-repeat right 4% center / 260px; opacity: .14; }
.banner--green { background: linear-gradient(110deg, var(--navy) 0%, var(--teal-ink) 60%, var(--teal) 100%); }
.banner__inner { max-width: var(--max); margin: 0 auto; padding: 3rem 1rem 3.25rem; }
@media (min-width: 64em) { .banner__inner { padding: 4.25rem 1.5rem 4.5rem; } }
.banner h1 { color: #fff; margin-bottom: .3em; }
.banner p { font-style: italic; font-size: 1.25rem; color: #dce8fb; max-width: 44rem; margin: 0; }
.crumbs { font-size: .95rem; margin-bottom: 1rem; color: #c9d8f2; }
.crumbs a { color: #fff; }
.crumbs span[aria-hidden] { margin: 0 .4rem; }

/* ---------- Sections ---------- */
.section { padding: 3.5rem 0; }
@media (min-width: 64em) { .section { padding: 5rem 0; } }
.section--soft { background: var(--soft); }
.section--tint { background: var(--tint); }
.section-title { text-align: center; max-width: 48rem; margin: 0 auto 2.5rem; }
.section-title h2 { margin-bottom: .35em; }
.section-title h2::after { content: ""; display: block; width: 64px; height: 4px; border-radius: 2px; margin: .55em auto 0; background: var(--spectrum); }
.section-title .tagline { font-weight: 700; font-size: 1.2rem; color: var(--navy); margin: 0; }
.section-title p { color: var(--muted); }
.section-foot { text-align: center; margin-top: 2.5rem; }
.prose { max-width: 46rem; }
.prose--center { margin: 0 auto; text-align: center; }
.lead { font-size: 1.25rem; color: var(--muted); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 1.5rem; }
@media (min-width: 36em) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Thumbnails (placeholder art until real stills exist) ---------- */
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; }
.thumb--blue { background: linear-gradient(135deg, var(--mid), var(--blue)); }
.thumb--green { background: linear-gradient(135deg, var(--teal-ink), var(--green)); }
.thumb--navy { background: linear-gradient(135deg, var(--navy), var(--navy-2)); }
.thumb--cyan { background: linear-gradient(135deg, var(--blue-ink), var(--cyan)); }
.thumb--amber { background: linear-gradient(135deg, var(--orange-ink), var(--amber)); }
.thumb--sq { aspect-ratio: 1; border-radius: var(--radius); }
.thumb__play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }
.thumb__play::before { content: ""; border-left: 18px solid var(--blue-ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent; margin-left: 5px; }
.thumb__icon { font-family: var(--head); font-weight: 800; font-size: 2.2rem; opacity: .95; }
.thumb__label { position: absolute; left: .6rem; bottom: .5rem; font-size: .78rem; background: rgba(0,19,46,.55); padding: .1rem .5rem; border-radius: 6px; }

/* ---------- Topic / video cards ---------- */
.tcard { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.tcard:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(0,19,46,.06), 0 14px 32px rgba(0,19,46,.12); }
.tcard__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.tcard h3 { margin: 0; font-size: 1.15rem; }
.tcard h3 a { color: var(--navy); text-decoration: none; }
.tcard h3 a::before { content: ""; position: absolute; inset: 0; } /* whole card clickable */
.tcard { position: relative; }
.tcard h3 a:hover { color: var(--blue-ink); }
.tcard hr { border: 0; border-top: 2px solid var(--line); margin: .8rem 0; width: 100%; }
.tcard__meta { font-weight: 700; color: var(--blue-ink); margin: 0; }
.tcard p { color: var(--muted); }
.tcard p:last-child { margin-bottom: 0; }

/* Plain info card */
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.card > :last-child { margin-bottom: 0; }
.card__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-family: var(--head); font-weight: 800; color: #fff; margin-bottom: 1rem; background: var(--blue-ink); }
.card__icon--navy { background: var(--navy); } .card__icon--green { background: var(--green-ink); } .card__icon--cyan { background: var(--cyan-ink); } .card__icon--teal { background: var(--teal-ink); } .card__icon--orange { background: var(--orange-ink); }
.card .link-more { margin-top: auto; padding-top: .5rem; }
.list { padding-left: 1.2rem; margin: 0 0 1em; } .list li { margin-bottom: .3em; }

/* ---------- Feature split with pull quote ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64em) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } .split--rev > :first-child { order: 2; } }
.pull { font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--navy); border-left: 5px solid var(--green); padding-left: 1.25rem; margin: 1.5rem 0; }
.photo-ph { aspect-ratio: 4 / 3; border-radius: var(--radius); background: repeating-linear-gradient(45deg, #eef3f9, #eef3f9 14px, #e4ecf6 14px, #e4ecf6 28px); border: 2px dashed #c3cfe1; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--muted); font-weight: 600; }

/* ---------- Chips (sectors) ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; list-style: none; padding: 0; margin: 0; }
.chips li { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--pill); padding: .6rem 1.2rem; font-weight: 700; color: var(--navy); }

/* ---------- Project rows (stacked list, square thumb left) ---------- */
.prow { display: grid; gap: 1.25rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.prow:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 48em) { .prow { grid-template-columns: 220px 1fr; gap: 2rem; align-items: start; } }
.prow h3 { font-size: 1.4rem; }
.prow__tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .6rem; }

.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: .2rem .7rem; border-radius: var(--pill); background: var(--tint); color: var(--blue-deep); }
.badge--green { background: #e3f6ec; color: var(--green-ink); }
.badge--amber { background: var(--ph-bg); color: var(--ph); }
.badge--navy { background: var(--navy); color: #fff; }

/* Filter / jump bar */
.jump { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; list-style: none; padding: 0; margin: 0 0 2rem; }
.jump a { display: inline-block; padding: .5rem 1.1rem; border-radius: var(--pill); border: 1.5px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); background: var(--paper); }
.jump a:hover { border-color: var(--blue); color: var(--blue-ink); }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; counter-reset: s; }
@media (min-width: 36em) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--blue-ink); color: #fff; font-family: var(--head); font-weight: 800; margin-bottom: .9rem; }
.steps p { margin: 0; color: var(--muted); }

/* Impilo motto */
.motto { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-family: var(--head); font-weight: 800; font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 1.5rem 0 0; color: #fff; }
.motto span:nth-child(1) { color: #8fd3ff; } .motto span:nth-child(2) { color: #fff; } .motto span:nth-child(3) { color: #8ee6b5; }
.trust { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; border-top: 5px solid var(--green); }

/* ---------- Placeholders: delete the element or class once content is approved ---------- */
.ph { background: var(--ph-bg); border: 1px dashed var(--ph); color: #6e3504; border-radius: 6px; padding: .05em .4em; font-style: normal; font-weight: 600; font-size: .92em; }
.ph-block { background: var(--ph-bg); border: 1px dashed var(--ph); color: #6e3504; border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1.5rem 0 0; font-size: 1rem; }
.ph-block::before { content: "Placeholder · "; font-weight: 700; }
.on-dark .ph, .closing .ph, .site-footer .ph, .hero .ph, .banner .ph { background: rgba(255,246,230,.12); color: #ffd99a; border-color: #ffd99a; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.25rem; }
.field label, .field legend { display: block; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.hint { display: block; font-size: .95rem; color: var(--muted); margin: -.15rem 0 .45rem; }
.field input[type=text], .field input[type=email], .field select, .field textarea { width: 100%; font: inherit; color: var(--text); background: #fff; border: 1.5px solid #b3bfd1; border-radius: 10px; padding: .7rem .85rem; min-height: 50px; }
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.req { color: #b42318; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.checks { display: grid; gap: .5rem; } @media (min-width: 36em) { .checks { grid-template-columns: 1fr 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400 !important; color: var(--text) !important; }
.check input { width: 20px; height: 20px; margin-top: .25rem; flex-shrink: 0; accent-color: var(--blue-ink); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: var(--soft); border-left: 4px solid var(--blue); border-radius: 8px; padding: 1rem 1.25rem; font-size: 1rem; }
.form-wrap { display: grid; gap: 2.5rem; } @media (min-width: 64em) { .form-wrap { grid-template-columns: 1.6fr 1fr; gap: 4rem; } }
.panel { background: var(--soft); border-radius: var(--radius); padding: 1.75rem; }

/* ---------- Closing band ---------- */
.closing { position: relative; background: linear-gradient(120deg, var(--blue-ink) 0%, var(--mid) 60%, var(--navy) 100%); color: #e2ecfb; }
.closing::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--spectrum); }
.closing h2 { color: #fff; }
.closing__grid { display: grid; gap: 2rem; }
@media (min-width: 48em) { .closing__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .closing__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.closing h3 { color: #fff; font-size: 1.05rem; }
.closing a:not(.btn) { color: #fff; }
.closing ul { list-style: none; padding: 0; margin: 0; } .closing li { margin-bottom: .45rem; }
.closing__tag { font-family: var(--head); font-weight: 800; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); color: #fff; line-height: 1.15; margin-bottom: .5rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #a9b9d4; font-size: .95rem; }
.site-footer__brand { max-width: var(--max); margin: 0 auto; padding: 2rem 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer__brand img { width: min(320px, 100%); height: auto; }
@media (min-width: 48em) { .site-footer__brand { padding: 2.25rem 1.5rem 1.25rem; } }
.site-footer__inner { max-width: var(--max); margin: 0 auto; padding: 1.5rem 1rem; display: flex; flex-wrap: wrap; gap: .75rem 2rem; align-items: center; justify-content: space-between; }
.site-footer p { margin: 0; }
.site-footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0; padding: 0; }
.site-footer a { color: #fff; text-decoration: none; } .site-footer a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
.nav__link.is-active { color: var(--blue-ink); }
@media (min-width: 70em) { .nav__link.is-active::after { transform: scaleX(1); } }
.section--tight { padding: 2.5rem 0; }

/* ---------- Brand tagline ---------- */
.eyebrow { font-family: var(--head); font-weight: 700; font-size: clamp(.72rem, .66rem + .3vw, .85rem); letter-spacing: .14em; text-transform: uppercase; margin: 0 0 1rem; color: var(--navy); }
.hero .eyebrow, .banner .eyebrow { color: #fff; }
.hero .eyebrow::before { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; margin-bottom: .9rem; background: var(--spectrum); }

/* ---------- Compact desktop header (1120–1279px): wider logo needs a tighter nav ---------- */
@media (min-width: 70em) {
  .nav__link, .nav .btn { white-space: nowrap; }
}
@media (min-width: 70em) and (max-width: 79.99em) {
  .site-header__inner { padding: .8rem 1.25rem; gap: .75rem; }
  .brand img { height: 26px; }
  .nav { gap: .75rem; }
  .nav__link { padding: .7rem .1rem .7rem .5rem; font-size: .93rem; }
  .nav__item:not(.has-sub) .nav__link { padding-right: .5rem; }
  .nav__link::after { left: .5rem; }
  .nav__item:not(.has-sub) .nav__link::after { right: .5rem; }
  .sub-toggle { width: 24px; }
  .nav .btn { padding-left: 1rem; padding-right: 1rem; font-size: .93rem; }
}

/* ---------- Very small phones (<360px) ---------- */
@media (max-width: 22.49em) {
  .site-header__inner { gap: .5rem; padding-left: .75rem; padding-right: .75rem; }
  .brand img { height: 21px; }
  .menu-toggle { padding: 0 .7rem; gap: .4rem; }
}

/* Impilo Explained keeps its own identity: no StampBack Media watermark */
.hero--impilo::before { display: none; }

/* ---------- Content update 20 Oct 2026 ---------- */
.motto--dark span:nth-child(1) { color: var(--blue-ink); } .motto--dark span:nth-child(2) { color: var(--navy); } .motto--dark span:nth-child(3) { color: var(--green-ink); }
.pull--center { max-width: 40rem; margin: 2.5rem auto 0; }
.feature-thumb { display: block; border-radius: var(--radius); }
.feature-thumb .thumb { border-radius: var(--radius); }
.split > .thumb { border-radius: var(--radius); }
.prow--solo, .prow--solo:last-child { border: 0; padding: 0; }

/* ---------- Single-page layout (20 Oct 2026) ---------- */
html { scroll-padding-top: 76px; }

.subhead { text-align: center; font-size: clamp(1.3rem, 1.15rem + .6vw, 1.7rem); margin: 3.5rem 0 .4rem; }
.subhead__note { text-align: center; color: var(--muted); max-width: 44rem; margin: 0 auto 2rem; }
.center-note { text-align: center; color: var(--muted); max-width: 46rem; margin: 2rem auto 0; }
.feature { margin-bottom: 1rem; }
.feature__title { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.2rem); margin-top: .6rem; }
.split--top { align-items: start; }
.stack { display: grid; gap: 1rem; }
.card__uses { margin-top: auto; padding-top: .5rem; font-size: 1rem; color: var(--muted); }
.card .list { font-size: 1rem; }
.card--cta { background: linear-gradient(135deg, var(--navy), var(--blue-ink)); border: 0; color: #e2ecfb; justify-content: center; }
.card--cta h3 { color: #fff; }
.card--cta .btn { align-self: flex-start; margin-top: .5rem; }
.closing__grid--2 { grid-template-columns: 1fr !important; max-width: 46rem; }
.form-wrap .panel { align-self: start; }

/* ---------- Our Projects: two featured initiatives side by side ---------- */
.projects { display: grid; gap: 1.5rem; margin-bottom: 1rem; }
@media (min-width: 56em) { .projects { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.pcard { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pcard__thumb { display: block; }
.pcard__thumb .thumb { border-radius: 0; }
.pcard__body { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
@media (min-width: 64em) { .pcard__body { padding: 1.75rem 2rem 2rem; } }
.pcard__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); margin-top: .6rem; }
.pcard .lead { font-size: 1.15rem; }
.pcard .btn-row { margin-top: auto; padding-top: 1.25rem; }
.thumb__badge { width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--blue-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* ---------- Impilo Explained learning library (26 Oct 2026) ----------
   Impilo keeps its own greens (taken from the original Impilo page) on top of the StampBack system.
   Buttons, cards, type and spacing are the shared StampBack components. */
:root { --impilo-deep: #145c2e; --impilo-green: #2a9d2a; --impilo-mint: #a6e8a6; --impilo-bg: #effaf3; }
.hero--impilo { background: radial-gradient(120% 90% at 85% 40%, var(--impilo-green) 0%, var(--impilo-deep) 40%, var(--navy) 80%); }
.hero--impilo h1 { font-size: clamp(2rem, 1.35rem + 2.7vw, 3.4rem); max-width: 18ch; }
.hero--impilo h1 .accent { color: var(--impilo-mint); }
.hero--impilo .hero__sub { font-style: normal; max-width: 38rem; }
.hero--compact { min-height: 0; }
.hero--compact .hero__inner { padding: 2.5rem 1rem 2.75rem; }
@media (min-width: 64em) { .hero--compact .hero__inner { padding: 3.25rem 1.5rem 3.5rem; } }
.hero--compact h1 { font-size: clamp(1.8rem, 1.35rem + 2vw, 2.8rem); max-width: 26ch; }
.hero__split { display: grid; gap: 2rem; align-items: center; }
.hero__art { display: none; }
@media (min-width: 52em) { .hero__split { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 3rem; } .hero__art { display: block; justify-self: center; width: min(290px, 100%); } }
.hero__art svg { width: 100%; height: auto; filter: drop-shadow(0 18px 40px rgba(0,0,0,.35)); }
.impilo-mark { font-family: var(--head); font-weight: 800; font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); letter-spacing: -.01em; color: #fff; margin: 0 0 .6rem; }
.impilo-mark span + span { color: var(--impilo-mint); }
.motto--sm { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; }

/* Thumbnails: Impilo artwork until real stills exist; real images fill the frame */
.thumb--impilo { background: linear-gradient(135deg, var(--impilo-deep), var(--impilo-green)); }
.thumb--impilo-teal { background: linear-gradient(135deg, var(--navy), var(--teal)); }
.thumb--impilo-navy { background: linear-gradient(135deg, var(--navy), var(--impilo-deep)); }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb__art { color: rgba(255,255,255,.92); display: grid; place-items: center; }
.thumb__play { position: relative; z-index: 1; transition: transform .15s; }
.thumb__label { z-index: 1; }

/* Video, category and topic cards (extend the shared .tcard) */
.tcard__media { display: block; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.tcard--actions h3 a::before { content: none; }
.tcard--actions:hover { transform: none; }
.tcard--topic .thumb { aspect-ratio: 2 / 1; }
.tcard--topic .thumb__art svg { width: 44px; height: 44px; }
.tcard__body h3 { margin: 0 0 .5rem; }
.tcard__body > .btn { margin-top: auto; align-self: flex-start; }
.tcard__count { font-weight: 700; font-size: 1rem; }
.tcard .tcard__meta { font-size: .9rem; margin: 0 0 .3rem; }
.impilo .tcard__meta { color: var(--green-ink); }
.tcard .tcard__ep { font-size: .9rem; font-weight: 700; color: var(--navy); margin: -.2rem 0 .5rem; }
.impilo .tcard__count { color: var(--green-ink); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 .75rem; }
.tcard .badges { margin-bottom: .6rem; }
.badges--dark { margin: 1rem 0 0; }
.badges--dark .badge { background: rgba(255,255,255,.14); color: #fff; }
.badges--dark .badge--amber { background: var(--amber); color: var(--navy); }
.grid--topics { grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
@media (min-width: 64em) { .grid--videos.grid--4 { grid-template-columns: repeat(4, 1fr); } }
.grid--videos .tcard p { font-size: 1rem; }

/* Featured video and responsive 16:9 player */
.feature-video { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 64em) { .feature-video { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3.5rem; } }
.player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__poster { position: absolute; inset: 0; display: block; border-radius: var(--radius); }
.player__poster .thumb, .player--pending .thumb { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.player__poster .thumb__play { width: 76px; height: 76px; }
.player__poster:hover .thumb__play, .player__poster:focus-visible .thumb__play { transform: scale(1.08); }
.player__poster:focus-visible { outline-offset: -5px; outline-color: #fff; }
.player__note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: .65rem 1rem; background: rgba(0,19,46,.78); color: #fff; font-weight: 700; font-size: 1rem; text-align: center; }

/* Learning journey: three steps with arrows between them on wider screens */
.steps.steps--3 { grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .steps.steps--3 { grid-template-columns: repeat(3, 1fr); gap: 2.25rem; }
  .steps--3 li { position: relative; }
  .steps--3 li:not(:last-child)::after { content: "→"; position: absolute; right: -1.7rem; top: 50%; transform: translateY(-50%); font-family: var(--head); font-weight: 800; font-size: 1.4rem; color: var(--green-ink); }
}
.impilo .steps li::before { background: var(--green-ink); }

/* Checklist and learning-page preview */
.checklist { list-style: none; padding: 0; margin: 0 0 1.75rem; display: grid; gap: .55rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .15em; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--green-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 75% no-repeat; }
.page-mock { display: grid; gap: .85rem; width: 100%; max-width: 30rem; justify-self: center; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border-top: 5px solid var(--green); }
.page-mock .thumb { border-radius: 8px; }
.page-mock__line { display: block; height: .7rem; border-radius: 4px; background: var(--line); flex: 1; }
.page-mock__line--title { height: 1rem; width: 70%; flex: none; background: #b9c7d9; }
.page-mock__line--short { width: 55%; flex: none; }
.page-mock__point { display: flex; gap: .6rem; align-items: center; }
.page-mock__point .page-mock__line--short { width: 45%; }
.page-mock__dot { width: 1rem; height: 1rem; border-radius: 50%; background: var(--green-ink); flex-shrink: 0; }
.page-mock__related { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-top: .25rem; }
.page-mock__related .thumb__art svg { width: 26px; height: 26px; }

/* Learning Library and category pages */
.lib-block + .lib-block { margin-top: 3.5rem; }
.lib-block__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--line); }
.lib-block__head h2 { margin-bottom: .3em; }
.lib-block__head p { margin: 0; color: var(--muted); max-width: 46rem; }
.notice--impilo { margin-top: 2.5rem; border-left-color: var(--green); }

/* Video learning page */
.watch { display: grid; gap: 2.5rem; }
@media (min-width: 64em) { .watch { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.watch__main h2 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-top: 2rem; }
.watch__yt { margin: .85rem 0 0; font-weight: 700; }
.watch__meta { margin: .5rem 0 0; color: var(--muted); font-size: 1rem; }
.watch__aside { display: grid; gap: 1.25rem; align-content: start; }
.watch__aside h2 { font-size: 1.35rem; margin: 0; }
.watch__aside .btn { justify-self: start; }
.review { background: var(--impilo-bg); border-left: 4px solid var(--green); border-radius: 8px; padding: 1rem 1.25rem; margin-top: 2rem; }
.review h2 { font-size: 1.1rem !important; margin: 0 0 .35rem !important; }
.review p { margin: 0; }
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
@media (min-width: 48em) { .mini-list--cols { grid-template-columns: repeat(2, 1fr); } }
.mini { position: relative; display: grid; grid-template-columns: 8.5rem 1fr; gap: .9rem; align-items: start; }
.mini .thumb { border-radius: 8px; }
.mini .thumb__art svg { width: 30px; height: 30px; }
.mini .thumb__play { width: 34px; height: 34px; }
.mini .thumb__play::before { border-left-width: 11px; border-top-width: 7px; border-bottom-width: 7px; margin-left: 3px; }
.mini .thumb__label { font-size: .7rem; left: .35rem; bottom: .3rem; }
.mini a { font-family: var(--head); font-weight: 700; font-size: 1rem; line-height: 1.3; color: var(--navy); text-decoration: none; }
.mini a::before { content: ""; position: absolute; inset: 0; }
.mini a:hover { color: var(--blue-ink); }
.mini p { margin: .2rem 0 0; font-size: .92rem; color: var(--muted); }

/* ---------- Impilo Explained as one page (27 Oct 2026) ----------
   Video tiles: thumbnail left, one or two paragraphs right, link to the video on YouTube. */
.tcard__media .thumb { border-radius: var(--radius) var(--radius) 0 0; }
.vtiles { display: grid; }
.vtile { display: grid; gap: 1rem 1.75rem; padding: 1.5rem 0; border-top: 1px solid var(--line); align-items: start; }
.vtiles .vtile:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 40em) { .vtile { grid-template-columns: minmax(0, 240px) minmax(0, 1fr); } }
@media (min-width: 64em) { .vtile { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 1rem 2.25rem; } }
.vtile__media { display: block; border-radius: var(--radius); }
.vtile__media .thumb { border-radius: var(--radius); }
a.vtile__media:hover .thumb__play, a.vtile__media:focus-visible .thumb__play { transform: scale(1.1); }
.vtile__body { max-width: 46rem; }
.vtile__body p { margin: 0 0 .75rem; }
.vtile__meta { font-size: .92rem; font-weight: 700; color: var(--green-ink); margin: 0 0 .3rem !important; }
.vtile__title { font-family: var(--head); font-weight: 800; font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); color: var(--navy); line-height: 1.25; margin: 0 0 .6rem; }
.vtile__action { margin: 1rem 0 0 !important; }
.vtile__link { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font-weight: 700; }
.vtile__link::after { content: "→"; transition: transform .15s; }
.vtile__link:hover::after { transform: translateX(3px); }
.vtile__review { font-size: .92rem; color: var(--muted); background: var(--impilo-bg); border-left: 4px solid var(--green); border-radius: 6px; padding: .5rem .8rem; }
.vtile--featured { border: 0; padding: 0; }
@media (min-width: 64em) { .vtile--featured { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; } }
.vtile--featured .vtile__title { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.1rem); }
.vtile--featured .thumb__play { width: 76px; height: 76px; }
#videos .lib-block__head h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); margin-bottom: .3em; }
