/* Training Hub theme — built from the Figma "Final Home page" frame.
   Motion: scroll reveals, gestures and the hero scrub run on Motion (assets/js/motion.min.js) from assets/js/theme.js.
   Hidden start states only apply under html.js and prefers-reduced-motion: no-preference, so content
   is always visible without JavaScript or with reduced motion. */

/* ========== tokens ========== */
:root {
  --blue: #1476eb;
  --blue-strong: #0f63c9;
  --blue-10: rgba(20, 118, 235, 0.1);
  --ink: #0b1b3f;
  --ink-warm: #27251e;
  --grey: #535353;
  --body: #475569;
  --body-warm: #706b60;
  --muted: #64748b;
  --border: #e2e8f0;
  --surface: #f8fafc;
  --violet: #ede5fa;
  --violet-soft: #efeafb;
  --sky: #d4eaff;
  --sky-soft: #e3f0fd;
  --sage: #dfeddb;
  --sage-soft: #e6f4ea;
  --shadow: 0 8px 24px rgba(11, 27, 63, 0.06);
  --pad: clamp(16px, 7.5vw, 108px);
  --font: "Poppins", system-ui, sans-serif;   /* loaded from Google Fonts in inc/setup.php */
  --font-alt: "Manrope", system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);    /* enters, exits, reveals */
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1); /* things that travel while visible */
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);   /* long quiet reveals, image scale */
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
}

/* ========== base ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--grey); font-family: var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
picture { display: contents; } /* AVIF/PNG wrapper adds no box: images size and position as if unwrapped */
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* ========== shared components ========== */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 22px; border-radius: 12px; background: var(--blue); color: #fff; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap; transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease; }
.button--sm { padding: 0 14px; height: 32px; border-radius: 10px; font-weight: 400; font-size: 14px; letter-spacing: -1px; width: 116px; justify-content: flex-start; }
.button--ghost { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.button--icon { padding: 12px 16px 12px 20px; font-size: 14px; background: #1d81f2; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 100px; background: var(--blue-10); color: var(--blue); font-size: 12px; font-weight: 600; letter-spacing: 0.96px; }
.eyebrow--plain { background: rgba(255, 255, 255, 0.15); color: var(--grey); }
.h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.3; font-weight: 600; color: var(--ink); }
.body-sm { font-size: 14px; line-height: 22px; color: var(--body); }
.kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.88px; color: var(--muted); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.section-head__group { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.section-head__sub { font-size: 16px; color: var(--body); }
.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* ========== scroll progress ========== */
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: left; pointer-events: none; } /* theme.js links scaleX to scroll */

/* ========== top band ========== */
.topband { display: flex; justify-content: space-between; align-items: center; height: 40px; padding: 0 49px 0 48px; background: var(--blue); color: #fff; font-size: 14px; letter-spacing: -0.98px; }
.topband strong { font-weight: 600; }
.topband .light { font-weight: 300; }

/* ========== header ========== */
.header { position: sticky; top: 0; z-index: 20; margin-top: 20px; background: #fff; border-bottom: 1px solid #e3e6ea; transition: box-shadow var(--t-ui) ease; }
.header.is-scrolled { box-shadow: 0 6px 20px rgba(11, 27, 63, 0.07); }
/* signed-in admins see WordPress's toolbar (32px, 46px on small screens): keep the sticky header below it */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
.header__inner { display: flex; align-items: center; max-width: 1440px; min-height: 72px; margin: 0 auto; padding: 0 40px; }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand__mark { display: grid; place-items: center; width: 42px; height: 42px; border: 2px dashed #9aa3ae; border-radius: 10px; font-family: var(--font-alt); font-weight: 800; font-size: 9px; line-height: 9.9px; color: #6b737e; text-align: center; }
.brand__text { display: flex; flex-direction: column; width: 134px; }
.brand__name { font-family: var(--font-alt); font-weight: 700; font-size: 17px; line-height: 18.7px; color: #0f1115; }
.brand__sub { font-family: var(--font-alt); font-weight: 600; font-size: 12px; line-height: 13.2px; color: #6b737e; margin-top: 3.5px; white-space: nowrap; }
.nav { position: relative; display: flex; gap: 4px; flex: 1; margin-left: clamp(24px, 17.8vw, 257px); }
.nav__link { position: relative; display: flex; align-items: center; gap: 6px; height: 72px; padding: 0 14px; font-weight: 500; font-size: 14px; line-height: 23px; color: var(--grey); }
.nav__link::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #0066b1; transform: scaleX(0); transform-origin: left; transition: transform var(--t-ui) var(--ease-out); }
.nav__link.is-active { color: #0066b1; }
.nav__link.is-active::after { transform: none; }
/* one shared underline (theme.js) glides between links instead of per-link underlines */
.nav__indicator { position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: #0066b1; pointer-events: none; }
.nav.has-indicator .nav__link::after { display: none; }
.header__actions { display: flex; align-items: center; gap: 19px; flex: none; }
.header__login { padding: 0 14px; font-weight: 500; font-size: 14px; letter-spacing: -1px; color: var(--grey); }
.menu-toggle, .mobile-nav { display: none; }

/* ========== hero (scroll-scrubbed car; theme.js adds .hero--scrub) ========== */
.hero { position: relative; }
.hero__stage { position: relative; height: 747px; overflow: hidden; }
.hero--scrub .hero__stage { position: sticky; top: var(--stick, 73px); }
.hero__media { position: absolute; left: -8px; right: -8px; top: 168px; height: 819px; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__canvas { opacity: 0; }
.hero__canvas.is-ready { opacity: 1; }
.hero__copy { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 109px 16px 0; }
.hero__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 1.5px; line-height: 23px; color: #454648; }
.hero__title { margin-top: 20px; max-width: 912px; font-weight: 600; font-size: clamp(40px, 5.2vw, 75px); line-height: 1.033; letter-spacing: -0.07em; color: var(--grey); }
.hero__title .accent { color: var(--blue); }
.hero__lead { margin-top: 28px; font-weight: 500; font-size: clamp(16px, 1.4vw, 20px); line-height: 28.5px; letter-spacing: -1px; color: #59616c; max-width: 825px; }
.lines .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.lines [data-line] { display: block; }

.search { display: flex; align-items: center; width: min(553px, 100%); height: 62px; margin-top: 55px; padding: 6px; background: #fff; border: 1px solid #d9dee4; border-radius: 14px; transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-10); }
.search__input { flex: 1; min-width: 0; height: 100%; padding: 12px 14px; border: 0; outline: 0; background: none; font-family: var(--font-alt); font-size: 16px; color: var(--ink); }
.search__input::placeholder { color: #757575; }
.search__btn { position: relative; display: flex; align-items: center; flex: none; width: 155px; height: 48px; padding: 0 22px 0 49px; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 500; font-size: 16px; line-height: 24px; transition: background-color var(--t-hover) ease; }
.search__icon { position: absolute; left: 119px; top: 13px; display: grid; place-items: center; width: 22.37px; height: 22.37px; border-radius: 5px; background: #fff; }
.search__icon img { transition: transform var(--t-hover) var(--ease-out); }

/* ========== trusted by ========== */
.trusted { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding: 48px 100px 24px; background: #fcfcfc; font-family: var(--font-alt); }
.trusted__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; }
.logos { display: grid; grid-template-columns: repeat(6, 180px); gap: 16px; margin: 0; padding: 0 16px 0 0; list-style: none; }
.logos li { display: grid; place-items: center; height: 52px; border: 1px dashed #94a3b8; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }

/* ========== learning studio ========== */
.studio { display: flex; flex-direction: column; gap: 24.762px; margin-top: 50px; padding: 38px clamp(16px, 3.7vw, 53.333px); background: #fff; }
.studio__intro { display: flex; align-items: flex-end; gap: 34px; }
.studio__intro > div { flex: 0 1 837px; display: flex; flex-direction: column; gap: 9.5px; }
.studio__eyebrow { font-size: 10.88px; letter-spacing: 1.088px; color: var(--blue); }
.studio__title { font-weight: 600; font-size: clamp(30px, 2.65vw, 38.1px); line-height: 1.1; letter-spacing: -0.04em; color: var(--ink-warm); }
.studio__lead { flex: 1; font-size: 16.19px; line-height: 1.5; color: var(--body-warm); }
.studio__grid { display: grid; grid-template-columns: 391px repeat(3, minmax(0, 1fr)); gap: 17.143px; align-items: start; }
.feature { display: flex; flex-direction: column; min-height: 364px; padding: 20px; border: 1px solid #cbcbcb; border-radius: 17px; background: #fff; overflow: hidden; transition: border-color var(--t-hover) ease; }
.feature__top { display: flex; justify-content: space-between; align-items: center; }
.feature__kicker { font-weight: 500; font-size: 11.429px; color: var(--ink-warm); }
.feature__media { display: block; flex: none; height: 219px; margin: 0 -20px; overflow: hidden; }
.feature__media img { width: 100%; height: 100%; object-fit: cover; }
.feature__title { margin-top: 11px; font-weight: 600; font-size: 22px; letter-spacing: -0.66px; color: var(--grey); }
.feature__text { margin-top: 8px; font-size: 15.238px; line-height: 1.35; letter-spacing: -0.4571px; color: var(--grey); }
.topics { display: flex; flex-direction: column; gap: 9.524px; min-width: 0; }
.topics__head { display: flex; align-items: center; gap: 9.524px; height: 43.81px; }
.topics__sym { display: grid; place-items: center; width: 32.381px; height: 32.381px; border-radius: 9.524px; flex: none; }
.topics__intro { display: flex; flex-direction: column; gap: 1.9px; flex: 1; min-width: 0; white-space: nowrap; }
.topics__name { font-weight: 600; font-size: 17.143px; color: var(--ink-warm); }
.topics__sub { font-size: 11.429px; color: var(--body-warm); overflow: hidden; text-overflow: ellipsis; }
.topics__arrow { flex: none; transition: transform var(--t-hover) var(--ease-out); }
.topic { display: flex; flex-direction: column; gap: 5.714px; height: 97.143px; padding: 17.143px; border-radius: 15.238px; transition: box-shadow var(--t-hover) ease; }
.topic__title { font-weight: 600; font-size: 17.23px; letter-spacing: -0.02em; line-height: 1.5; color: var(--ink-warm); }
.topic__text { font-size: 12.7px; line-height: 1.3; letter-spacing: -0.02em; color: var(--body-warm); }
.topics--violet .topics__sym { background: var(--violet); }
.topics--violet .topic { background: #f1eafb; }
.topics--violet .topic__title, .topics--violet .topic__text { color: var(--grey); }
.topics--blue .topics__sym, .topics--blue .topic { background: var(--sky); }
.topics--green .topics__sym, .topics--green .topic { background: var(--sage); }

/* ========== learning paths ========== */
.paths { display: flex; flex-direction: column; gap: 48px; margin-top: 39px; padding: 96px var(--pad) 104px; background: var(--surface); }
.filters { position: relative; display: flex; gap: 4px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.filters__tab { position: relative; z-index: 1; padding: 10px 18px; border-radius: 10px; font-weight: 500; font-size: 14px; color: var(--body); white-space: nowrap; transition: background-color var(--t-hover) ease, color var(--t-hover) ease; }
.filters__tab.is-active { background: var(--blue); color: #fff; font-weight: 600; }
/* one pill springs to the active tab; theme.js positions it */
.filters__pill { position: absolute; top: 6px; left: 0; height: calc(100% - 12px); width: 0; border-radius: 10px; background: var(--blue); }
.filters:not(.has-pill) .filters__pill { display: none; }
.filters.has-pill .filters__tab.is-active { background: transparent; }
.path-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.path-card.is-hidden { display: none; }
.path-card__media { position: relative; height: 236px; padding: 16px 0 0 16px; overflow: hidden; }
.path-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale 600ms var(--ease-soft); }
.path-card__media--violet { background: var(--violet-soft); }
.path-card__media--blue { background: var(--sky-soft); }
.path-card__media--green { background: var(--sage-soft); }
.badge { position: relative; display: inline-block; padding: 6px 12px; border-radius: 100px; background: rgba(255, 255, 255, 0.9); color: var(--blue); font-weight: 500; font-size: 12px; }
.path-card__body { display: flex; flex-direction: column; gap: 8px; padding: 24px; }
.path-card__title { font-weight: 600; font-size: 22px; color: var(--ink); }
.path-card__body hr { width: 100%; height: 1px; margin: 12px 0; border: 0; background: var(--border); }
.path-card__cta { display: flex; align-items: center; justify-content: space-between; font-weight: 600; font-size: 15px; color: var(--blue); }
.round-arrow { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 100px; background: var(--blue-10); transition: background-color var(--t-hover) ease; }
.round-arrow img { transition: transform var(--t-hover) var(--ease-out); }
.paths__empty { padding: 48px; border: 1px dashed var(--border); border-radius: 20px; text-align: center; color: var(--body); background: #fff; }

/* ========== what's new ========== */
.release-wrap { padding: 50px clamp(16px, 8.06vw, 116px); }
.release { display: flex; gap: 48px; padding: 56px; border-radius: 28px; background: linear-gradient(90deg, #f2f7fe, #fff); }
.release__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 300px; flex: none; }
.release__title { font-family: var(--font-alt); font-weight: 700; font-size: 40px; color: var(--grey); }
.release__text { font-family: var(--font-alt); font-size: 16px; line-height: 26px; color: rgba(83, 83, 83, 0.85); }
.release__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; flex: 1; }
.release-card { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 20px; background: #fff; transition: box-shadow var(--t-hover) ease; }
.release-card__meta { display: flex; justify-content: space-between; align-items: center; }
.release-card__meta img { transition: transform var(--t-hover) var(--ease-out); }
.release-card__title { font-weight: 700; font-size: 22px; color: var(--ink); }
.label { padding: 4px 10px; border-radius: 100px; background: var(--sky-soft); color: var(--blue); font-weight: 500; font-size: 12px; }
.label--green { background: var(--sage-soft); color: #1e7b3e; }

/* ========== best practices ========== */
.practices { display: flex; flex-direction: column; gap: 40px; padding: 0 var(--pad) 96px; background: var(--surface); }
.practices__lead { width: 400px; max-width: 100%; font-size: 15px; line-height: 24px; color: var(--body); }
.practice { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.practice__tile { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; }
.practice__tile--violet { background: var(--violet-soft); }
.practice__tile--blue { background: var(--sky-soft); }
.practice__tile--green { background: var(--sage-soft); }
.practice__title { font-weight: 600; font-size: 20px; color: var(--ink); }
.practice__link { font-weight: 600; font-size: 14px; color: var(--blue); }
.practice__link span { display: inline-block; transition: transform var(--t-hover) var(--ease-out); }

/* ========== help ========== */
.help-wrap { padding: 0 var(--pad) 32px; background: var(--surface); }
.help { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 44px 48px; border: 1px solid rgba(20, 118, 235, 0.2); border-radius: 24px; background: linear-gradient(90deg, var(--sky-soft), var(--violet-soft)); }
.help__copy { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.help__title { font-weight: 600; font-size: 28px; color: var(--ink); }
.help__text { font-size: 15px; line-height: 24px; color: var(--body); }
.help__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ========== footer ========== */
.footer { margin-top: 50px; background: var(--blue); border-top: 1px solid #e3e6ea; color: #fff; }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; max-width: 1440px; min-height: 103px; margin: 0 auto; padding: 32px 40px; font-size: 13px; line-height: 19.5px; }
.footer__nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer__nav a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 0.25em; transition: text-decoration-color var(--t-hover) ease; }

/* ========== document library ========== */
.library { padding: 72px var(--pad) 96px; background: var(--surface); min-height: 70vh; }
.library__head { margin-bottom: 40px; }
.library__tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.library__tabs { max-width: 100%; }
.library__tabs .filters__tab { display: inline-flex; align-items: center; gap: 8px; }
.library__count { min-width: 22px; padding: 1px 7px; border-radius: 100px; background: var(--surface); color: var(--muted); font-size: 12px; font-weight: 600; text-align: center; }
.library__tabs .is-active .library__count { background: rgba(255, 255, 255, 0.22); color: #fff; }
.library__search input { width: min(320px, 100%); height: 48px; padding: 0 16px; border: 1px solid var(--border); border-radius: 12px; background: #fff; font: inherit; font-size: 15px; color: var(--ink); transition: border-color var(--t-hover) ease, box-shadow var(--t-hover) ease; }
.library__search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-10); }
.library__status { margin: 24px 0 16px; font-size: 14px; color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.doc-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: #fff; border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.doc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.doc-card__title { font-size: 18px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.doc-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.doc-card__meta { margin-top: auto; font-size: 13px; color: var(--muted); }
.doc-card__actions { display: flex; gap: 8px; }
.library__empty { margin-top: 8px; }
.doc-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; font-size: 11px; font-weight: 700; letter-spacing: 0.4px; background: var(--sky-soft); color: var(--blue); flex: none; }
.doc-icon--pdf { background: #fdecea; color: #b42318; }
.doc-icon--sheet { background: var(--sage-soft); color: #1e7b3e; }
.doc-icon--slides { background: #fff1e0; color: #b25c00; }
.doc-icon--image, .doc-icon--video { background: var(--violet-soft); color: #5b3fa6; }
.button--small { padding: 10px 16px; font-size: 14px; border-radius: 10px; }

/* ========== single document ========== */
.doc-single { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; max-width: 760px; }
.doc-single__back { font-size: 14px; font-weight: 600; color: var(--blue); }
.doc-single .doc-card__top { gap: 12px; }
.doc-single .label { transition: background-color var(--t-hover) ease; }
.doc-card__title a { transition: color var(--t-hover) ease; }
.entry { font-size: 16px; line-height: 1.7; color: var(--body); }
.entry > * + * { margin-top: 1em; }
@media (hover: hover) and (pointer: fine) {
  .doc-card__title a:hover, .doc-single__back:hover { color: var(--blue-strong); }
}

/* ========== lazy rendering: off-screen sections skip layout and paint until they approach ========== */
/* intrinsic sizes are the rendered desktop content-box heights (padding is added on top), so the scrollbar does not jump */
.studio, .paths, .release-wrap, .practices, .help-wrap { content-visibility: auto; }
.studio { contain-intrinsic-size: auto 469px; }
.paths { contain-intrinsic-size: auto 672px; }
.release-wrap { contain-intrinsic-size: auto 344px; }
.practices { contain-intrinsic-size: auto 383px; }
.help-wrap { contain-intrinsic-size: auto 191px; }

/* ========== parallax: in-frame image drift (theme.js sets --py) ========== */
/* the independent `translate` property composes with reveal transforms and the hover `scale` */
[data-parallax] { translate: 0 var(--py, 0px); }
img[data-parallax] { scale: 1.12; }

/* ========== hover (pointer devices only) ========== */
@media (hover: hover) and (pointer: fine) {
  .button:hover, .search__btn:hover { background-color: var(--blue-strong); }
  .button--ghost:hover { background: #fff; border-color: var(--blue); }
  .search__btn:hover .search__icon img { transform: translate(2px, -2px); }
  .nav__link:hover { color: #0066b1; }
  .nav__link:hover::after { transform: none; }
  .header__login:hover { color: var(--ink); }
  .feature:hover { border-color: var(--blue); }
  .topics__head:hover .topics__arrow { transform: translateX(3px); }
  .topic:hover { box-shadow: 0 6px 18px rgba(11, 27, 63, 0.08); }
  .filters__tab:not(.is-active):hover { background: var(--surface); color: var(--ink); }
  .path-card:hover .path-card__media img { scale: 1.17; }
  .path-card__cta:hover .round-arrow { background: rgba(20, 118, 235, 0.18); }
  .path-card__cta:hover .round-arrow img { transform: translate(2px, -2px); }
  .release-card:hover { box-shadow: var(--shadow); }
  .release-card:hover .release-card__meta img { transform: translate(2px, -2px); }
  .practice__link:hover span { transform: translateX(4px); }
  .footer__nav a:hover { text-decoration-color: currentColor; }
}

/* ========== motion ==========
   Load animations for the first screen are CSS (they start before any script). Everything else is
   animated by Motion from theme.js; CSS only sets the start states, and only while JS + motion are welcome. */
@media (prefers-reduced-motion: no-preference) {
  /* page chrome settles in on load */
  .js .topband { animation: chrome-in 600ms var(--ease-out) both; }
  .js .header__inner > * { animation: chrome-in 700ms var(--ease-out) both; }
  .js .header__inner > :nth-child(2) { animation-delay: 80ms; }
  .js .header__inner > :nth-child(n + 3) { animation-delay: 160ms; }

  /* hero load: headline lines rise from behind their baselines, the rest fades up, the picture settles.
     fill-mode backwards releases the end state, so the scroll scrub can fade the lead and search */
  .js [data-rise] { animation: rise 800ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 90ms + 120ms); }
  .js .lines [data-line] { animation: line-up 900ms var(--ease-out) backwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
  .js .hero__img { animation: hero-settle 1600ms var(--ease-soft) 300ms both; }

  /* start states for the scroll reveals (theme.js springs them in) */
  .js [data-reveal] { opacity: 0; transform: translateY(24px); }
  .js .mask[data-reveal], .js .shutter[data-reveal], .js .release[data-reveal] { opacity: 1; transform: none; }
  .mask { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .mask__in { display: block; }
  .js .mask[data-reveal] .mask__in { transform: translateY(105%); }
  .js .shutter[data-reveal] { clip-path: inset(0 0 100% 0); }
  .js .shutter[data-reveal] img { transform: scale(1.12); }
  .js .release[data-reveal] { clip-path: inset(5% 3% round 28px); }
  .js .help[data-reveal] { transform: translateY(24px) scale(0.97); }
  .js .help[data-reveal] .help__actions > * { opacity: 0; transform: translateY(12px); }
  .js .topics__head[data-reveal] .topics__sym,
  .js .practice[data-reveal] .practice__tile { opacity: 0; transform: scale(0.8) rotate(-6deg); }
  .js .path-card[data-reveal] .path-card__media img { clip-path: inset(100% 0 0 0); }
  .js .path-card[data-reveal] .badge { opacity: 0; transform: translateY(-8px); }

  /* lazy images fade in once decoded */
  .js img[loading="lazy"] { opacity: 0; transition: opacity 700ms var(--ease-out), scale 600ms var(--ease-soft); }
  .js img[loading="lazy"].is-loaded { opacity: 1; }

  /* client logos travel slowly; paused on hover and while off screen */
  .marquee__track { animation: marquee 38s linear infinite; }
  .marquee:hover .marquee__track, .marquee.is-paused .marquee__track { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { width: 100%; }
  .logos--dup { display: none; }
  .logos { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); width: 100%; padding-right: 0; }
}
/* press feedback when Motion is unavailable (Motion's press springs replace it otherwise) */
html:not(.motion) :is(.button, .search__btn, .filters__tab):active { transform: scale(0.97); }
html:not(.motion) :is(.topic, .release-card):active { transform: scale(0.98); }

@keyframes chrome-in { from { opacity: 0; transform: translateY(-10px); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes hero-settle { from { opacity: 0; transform: scale(1.06) translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ========== responsive ========== */
@media (max-width: 1200px) {
  .studio__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto 1fr auto; column-gap: 24px; }
  .feature__top { grid-column: 1 / -1; }
  .feature__media { grid-row: 2 / 4; margin: 12px 0 0; border-radius: 12px; height: 240px; }
  .feature__title { align-self: end; }
  .release { flex-direction: column; }
  .release__intro { width: auto; }
}
@media (max-width: 1024px) {
  .nav, .header__actions { display: none; }
  .header__inner { justify-content: space-between; padding: 0 var(--pad); }
  .menu-toggle { display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; border-radius: 10px; }
  .menu-toggle__bar { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--t-ui) var(--ease-out); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:first-of-type { transform: translateY(4px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-toggle__bar:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  /* the mobile menu opens from its toggle (top right) */
  .mobile-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; gap: 4px; padding: 12px var(--pad) 20px; background: #fff; border-bottom: 1px solid #e3e6ea; box-shadow: var(--shadow); transform-origin: top right; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out); }
  .mobile-nav.is-closed { opacity: 0; transform: scale(0.97) translateY(-6px); pointer-events: none; visibility: hidden; transition: opacity var(--t-ui) var(--ease-out), transform var(--t-ui) var(--ease-out), visibility 0s var(--t-ui); }
  .mobile-nav a:not(.button) { padding: 12px 0; font-weight: 500; color: var(--grey); }
  .mobile-nav .button { margin-top: 8px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .filters { max-width: 100%; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .trusted { padding-inline: var(--pad); }
  .help { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 760px) {
  .topband { padding: 0 16px; font-size: 12px; letter-spacing: -0.4px; }
  .topband .light, .topband__right { display: none; }
  .hero__stage { height: auto; padding-bottom: 260px; }
  .hero__copy { padding-top: 56px; }
  .hero__media { top: auto; bottom: -40px; height: 360px; }
  .hero__lead { letter-spacing: -0.3px; }
  .search { margin-top: 32px; height: 58px; }
  .search__btn { width: auto; padding: 0 16px; }
  .search__icon { display: none; }
  .studio__intro { flex-direction: column; align-items: flex-start; gap: 12px; }
  .studio__intro > div { flex: none; }
  .studio__grid { grid-template-columns: 1fr; }
  .feature { display: flex; }
  .feature__media { margin: 12px 0 0; height: 200px; }
  .topic { height: auto; }
  .paths { padding-block: 64px; gap: 32px; }
  .cards3, .release__cards { grid-template-columns: 1fr; }
  .release-wrap { padding-block: 32px; }
  .release { padding: 32px 20px; }
  .release__title { font-size: 32px; }
  .practices { padding-bottom: 64px; }
  .help { padding: 32px 20px; }
  .footer__inner { flex-direction: column; padding: 28px var(--pad); }
  .library { padding-block: 48px 64px; }
  .library__search, .library__search input { width: 100%; }
}
