/* ==========================================================================
   Academic Partner (Co-organizer) page (#3086) — CompEdTech 2027 palette,
   Poppins + Inter, the same tokens as sponsors-exhibitors/.
   Standalone page: Bootstrap 5.3 for form controls only, everything else here.
   ========================================================================== */
:root {
  --brand: #df2531;
  --brand-dark: #b0161f;
  --brand-deep: #7d0d14;
  --brand-soft: #fdecee;
  --brand-glow: #ff6b74;
  --ink: #14141a;
  --muted: #5d5d68;
  --muted-2: #8a8a95;
  --line: #e9e9ee;
  --bg: #ffffff;
  --bg-soft: #f7f7fa;
  --dark: #0b0b0e;
  --panel: #1e1e25;
  --gold: #c9a227;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --font-head: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-border-radius: var(--radius-sm);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid rgba(223, 37, 49, .45); outline-offset: 2px;
}
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); color: inherit; }
p, figure, dl, dd { margin: 0; }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }

.ap-wrap { width: 100%; max-width: 1232px; margin: 0 auto; padding: 0 16px; }
.ap-section { padding: 96px 0; }
.ap-soft { background: var(--bg-soft); }
.ap-h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; text-wrap: balance; }
.ap-h3 { font-size: 24px; line-height: 1.3; font-weight: 600; }
.ap-head { margin-bottom: 44px; max-width: 680px; }
.ap-head p, .ap-lead { margin-top: 14px; font-size: 17px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

.ap-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-size: 19px;
}

/* ---- buttons ---- */
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font: 600 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.ap-btn--sm { padding: 12px 20px; }
.ap-btn--block { width: 100%; }
.ap-btn--primary { background: var(--brand); color: #fff; }
.ap-btn--primary:hover { background: var(--brand-dark); color: #fff; }
.ap-btn--ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.ap-btn--ghost:hover { background: #fff; color: var(--ink); }

/* ---- nav ---- */
.ap-nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.ap-nav__inner { display: flex; align-items: center; gap: 24px; min-height: 80px; }
.ap-nav__logo img { display: block; width: 172px; height: auto; }
.ap-nav__links { display: flex; gap: 30px; margin-left: auto; }
.ap-nav__links a { color: var(--ink); font-weight: 500; font-size: 15px; text-decoration: none; }
.ap-nav__links a:hover { color: var(--brand); }

/* ==========================================================================
   Hero: the past conference behind, the backdrop with the partner's name in front
   ========================================================================== */
.ap-hero { position: relative; isolation: isolate; color: #fff; background: var(--dark); padding: 88px 0 0; overflow: hidden; }
.ap-hero__media { position: absolute; inset: 0; z-index: -1; }
.ap-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.ap-hero__media::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 14, .95) 0%, rgba(11, 11, 14, .86) 45%, rgba(11, 11, 14, .62) 100%),
    linear-gradient(0deg, rgba(11, 11, 14, .96) 0%, rgba(11, 11, 14, 0) 45%);
}
.ap-hero__inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr); gap: 56px; align-items: center; padding-bottom: 72px; }
.ap-hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--brand-glow); }
.ap-hero__kicker::before { content: ''; width: 28px; height: 2px; background: var(--brand); }
/* The headline is a full sentence, so it is set at sentence size, not poster size:
   fluid between phone and desktop, keeping the CTAs on the first screen. */
.ap-hero h1 { margin-top: 18px; font-size: clamp(26px, 1.5vw + 19px, 42px); line-height: 1.16; font-weight: 700; letter-spacing: -.02em; text-wrap: pretty; }
.ap-nowrap { white-space: nowrap; }
.ap-hero h1 .ap-hero__sub { display: block; margin-top: 8px; font-size: max(.6em, 17px); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }
.ap-hero__lead { margin-top: 22px; max-width: 56ch; font-size: 18px; line-height: 1.65; color: #d4d4dc; }
.ap-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* the conference backdrop, as printed for the stage */
.ap-banner {
  position: relative; color: var(--ink); background: #fff; border-radius: var(--radius);
  padding: 26px 26px 22px; box-shadow: 0 30px 70px rgba(0, 0, 0, .45);
  border-top: 8px solid var(--brand);
}
.ap-banner::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 120px; border-radius: 0 0 50% 50% / 0 0 30px 30px;
  background: linear-gradient(120deg, var(--brand-soft), #fff 70%); z-index: 0;
}
.ap-banner > * { position: relative; }
.ap-banner__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.ap-banner__top img { width: 150px; height: auto; }
.ap-banner__top span { text-align: right; font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--brand-dark); }
.ap-banner__conf { margin-top: 20px; font-family: var(--font-head); font-size: 15px; line-height: 1.35; color: var(--muted); }
.ap-banner__conf strong { display: block; margin-top: 2px; font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.ap-banner__credits { display: grid; grid-template-columns: 1fr 1.35fr; gap: 12px; margin-top: 22px; }
.ap-banner__credits > div { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.ap-banner__credits dt { font-size: 12px; font-weight: 500; color: var(--muted); }
.ap-banner__credits dd { margin-top: 2px; font-family: var(--font-head); font-weight: 600; font-size: 15px; line-height: 1.3; }
.ap-banner__slot { background: var(--brand-soft) !important; outline: 2px dashed var(--brand); outline-offset: -2px; }
.ap-banner__slot dd { color: var(--brand-dark); min-height: 1.3em; }
.ap-banner__name { display: inline-block; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.ap-banner__name.is-out { opacity: 0; transform: translateY(6px); }
.ap-banner figcaption { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--muted); }

.ap-facts {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
}
.ap-facts > div { padding: 22px 20px 26px 0; }
.ap-facts > div + div { padding-left: 20px; border-left: 1px solid rgba(255, 255, 255, .12); }
.ap-facts dt { font-size: 13px; color: #9c9ca8; }
.ap-facts dd { margin-top: 4px; font-weight: 600; font-size: 15px; line-height: 1.4; }

/* ---- four headline benefits ---- */
.ap-highlights { padding: 72px 0; }
.ap-highlights__list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px; }
.ap-highlights__list li { padding-top: 22px; border-top: 2px solid var(--ink); }
.ap-highlights__list i { font-size: 26px; color: var(--brand); }
.ap-highlights__list h2 { margin-top: 14px; font-size: 19px; line-height: 1.3; font-weight: 600; }
.ap-highlights__list p { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* ---- benefits tabs ---- */
.ap-tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 28px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.ap-tab {
  min-height: 46px; padding: 0 24px; border: 0; border-radius: 999px; background: transparent;
  font: 600 15px/1 var(--font-body); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s;
}
.ap-tab:hover { color: var(--brand); }
.ap-tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.ap-panel { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); background: #fff; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.ap-panel[hidden] { display: none; }
.ap-panel__photo img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.ap-panel__body { padding: 44px 44px 40px; }
.ap-panel__intro { margin-top: 8px; color: var(--muted); }
.ap-checks { margin-top: 24px; display: grid; gap: 14px; }
.ap-checks li { display: flex; gap: 12px; line-height: 1.5; }
.ap-checks i { color: var(--brand); font-size: 19px; line-height: 1.3; flex: 0 0 auto; }
.ap-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---- roles: conference name badges ---- */
.ap-roles { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 64px; align-items: start; }
.ap-roles__photo { margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; }
.ap-roles__photo img { display: block; width: 100%; aspect-ratio: 6 / 5; object-fit: cover; }
.ap-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ap-badge {
  position: relative; display: flex; flex-direction: column; min-height: 168px; padding: 0 20px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden;
}
.ap-badge__strip {
  margin: 0 -20px 18px; padding: 10px 20px 10px 44px; position: relative;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .02em;
}
.ap-badge__strip::before { /* the lanyard slot */
  content: ''; position: absolute; left: 18px; top: 50%; width: 16px; height: 6px; margin-top: -3px; border-radius: 3px; background: rgba(255, 255, 255, .85);
}
.ap-badge__role { font-family: var(--font-head); font-weight: 600; font-size: 19px; line-height: 1.25; }
.ap-badge__who { margin-top: 4px; font-size: 14px; color: var(--muted); }
.ap-badge__perk { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #8a6d12; }
.ap-badge__perk i { color: var(--gold); }
.ap-badge:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---- responsibilities ---- */
.ap-dark { background: var(--dark); color: #fff; }
.ap-dark .ap-lead { color: #b9b9c4; }
.ap-duties { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.ap-duties__min { display: flex; align-items: center; gap: 18px; margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .14); }
.ap-duties__min strong { font-family: var(--font-head); white-space: nowrap; font-size: 72px; line-height: 1; font-weight: 700; color: var(--brand-glow); letter-spacing: -.03em; }
.ap-duties__min span { max-width: 18ch; color: #d4d4dc; line-height: 1.45; }
.ap-duties__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.ap-duties__list li { display: flex; gap: 12px; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); line-height: 1.5; color: #e4e4ea; }
.ap-duties__list i { color: var(--brand-glow); font-size: 18px; line-height: 1.35; }

/* ---- how it works: a real sequence ---- */
.ap-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: none; position: relative; }
.ap-steps::before { content: ''; position: absolute; left: 24px; right: calc((100% - 96px) / 4 - 24px); top: 24px; height: 2px; background: repeating-linear-gradient(90deg, var(--brand) 0 8px, transparent 8px 14px); }
.ap-steps li { position: relative; }
.ap-steps__n {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 20px; box-shadow: 0 0 0 8px #fff;
}
.ap-steps h3 { margin-top: 22px; font-size: 20px; font-weight: 600; }
.ap-steps p { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---- fees ---- */
.ap-fees { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.ap-fees__notes { margin-top: 26px; display: grid; gap: 12px; }
.ap-fees__notes li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.ap-fees__notes li::before { content: ''; position: absolute; left: 0; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
/* No scroll container on wide screens: the table fits, and overflow-x:auto alone also turns on a
   vertical scrollbar that Windows draws for a 1px overflow. Phones scroll sideways only (below). */
.ap-table-wrap { overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.ap-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ap-table th, .ap-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.ap-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); }
.ap-table thead th:last-child { color: var(--brand-dark); }
.ap-table tbody th { font-family: var(--font-head); font-weight: 600; vertical-align: top; }
.ap-table tbody tr:last-child td, .ap-table tbody tr:last-child th { border-bottom: 0; }
.ap-table__group td, .ap-table__group th { border-top: 2px solid var(--line); }
.ap-table__was { color: var(--muted); }
.ap-table__now { font-weight: 700; color: var(--brand-dark); background: var(--brand-soft); }

/* ---- photos ---- */
.ap-mosaic { display: grid; grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 240px 240px; gap: 14px; }
.ap-mosaic figure { border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.ap-mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ap-mosaic__a { grid-row: 1 / 3; }

/* ---- FAQ ---- */
.ap-faq { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 56px; align-items: start; }
.ap-faq__list details { border-bottom: 1px solid #dcdce3; }
.ap-faq__list details:first-child { border-top: 1px solid #dcdce3; }
.ap-faq__list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0;
  font-family: var(--font-head); font-weight: 600; font-size: 18px; line-height: 1.35; cursor: pointer; list-style: none;
}
.ap-faq__list summary::-webkit-details-marker { display: none; }
.ap-faq__list summary i { flex: 0 0 auto; color: var(--brand); transition: transform .25s var(--ease); }
.ap-faq__list details[open] summary i { transform: rotate(45deg); }
.ap-faq__list details p { padding: 0 40px 24px 0; color: var(--muted); max-width: 68ch; }

/* ---- form ---- */
.ap-form { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.ap-contact { margin-top: 32px; display: grid; gap: 16px; }
.ap-contact li { display: flex; align-items: center; gap: 14px; line-height: 1.5; }
.ap-contact a { color: var(--ink); font-weight: 600; text-decoration: none; }
.ap-contact a:hover { color: var(--brand); }
.ap-form__card { background: #fff; border-radius: var(--radius-lg); padding: 36px; border: 1px solid var(--line); box-shadow: 0 18px 44px rgba(20, 20, 26, .07); }
.ap-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; margin-bottom: 22px; }
.ap-fields__full { grid-column: 1 / -1; }
.ap-form__card .form-label { font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.ap-form__card .form-control, .ap-form__card .form-select { padding: .7rem .85rem; border-color: #d9d9e0; font-size: 15px; }
.ap-form__card .form-select { padding-right: 2.25rem; }
.ap-form__card .form-control:focus, .ap-form__card .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(223, 37, 49, .15); }
.ap-form__card .req { color: var(--brand); }
.ap-form__card .cf-turnstile { margin-bottom: 14px; }
.ap-consent { margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.ap-form__card .iti { display: block; width: 100%; }
.ap-form__card .iti__country-container { z-index: 3; }
.ap-form__card .iti__dropdown-content { border-radius: var(--radius-sm); }

/* missing answers: a list at the top, the fields themselves in red (as on sponsors-exhibitors/) */
.ap-errors {
  margin-bottom: 24px; padding: 14px 18px;
  border: 1px solid #f3c2c6; border-left: 4px solid #dc3545; border-radius: var(--radius-sm);
  background: #fff5f6; color: #842029;
}
.ap-errors:focus { outline: none; box-shadow: 0 0 0 3px rgba(220, 53, 69, .2); }
.ap-errors p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-weight: 600; }
.ap-errors ul { margin: 0; padding-left: 1.6rem; list-style: disc; }
.ap-errors a { color: #b02a37; text-decoration: underline; }
.was-validated .form-control:invalid, .was-validated .form-select:invalid { background-color: #fff8f8; }
.was-validated div:has(> .form-control:invalid) > .form-label,
.was-validated div:has(> .form-select:invalid) > .form-label,
.was-validated div:has(> .iti > .form-control:invalid) > .form-label { color: #dc3545; }
.was-validated .iti:has(.form-control:invalid) ~ .ap-phone-error { display: block; }
.ap-form__card .was-validated .form-control:valid, .ap-form__card .was-validated .form-select:valid { border-color: #d9d9e0; background-image: none; }
.ap-form__card .was-validated .form-control:valid { padding-right: .85rem; }
.ap-form__card .was-validated .form-select:valid { background-image: var(--bs-form-select-bg-img); }

/* ---- partner stories slider (right before the footer) ---- */
.ap-stories { background: var(--bg-soft); overflow: hidden; }
.ap-stories__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.ap-stories__nav { display: flex; gap: 10px; flex: 0 0 auto; }
.ap-arrow {
  width: 50px; height: 50px; border-radius: 50%; border: 1.5px solid #cfcfd8; background: #fff; color: var(--ink);
  font-size: 18px; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s;
}
.ap-arrow:hover:not(:disabled) { background: var(--ink); border-color: var(--ink); color: #fff; }
.ap-arrow:disabled { opacity: .35; cursor: default; }
.ap-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 20px) / 4); gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 4px 2px 8px;
}
.ap-track::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: reduce) { .ap-track { scroll-behavior: auto; } }
.ap-story { /* relative: keeps the link's visually-hidden text inside the track's clip */
  position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding: 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); transition: border-color .2s;
}
.ap-story:hover { border-color: #d3d3dc; }
.ap-story__logo { display: flex; align-items: center; justify-content: center; height: 108px; margin-bottom: 20px; padding: 10px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.ap-story__logo img { max-height: 88px; max-width: 80%; width: auto; object-fit: contain; }
.ap-story__scheme { font-size: 13px; font-weight: 600; color: var(--brand-dark); line-height: 1.4; }
.ap-story__name { margin-top: 8px; font-size: 18px; line-height: 1.3; font-weight: 600; }
.ap-story__meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--muted); }
.ap-story__link { margin-top: auto; padding-top: 18px; font-weight: 600; font-size: 14px; text-decoration: none; }
.ap-story__link:hover { text-decoration: underline; }
.ap-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.ap-dots span { width: 8px; height: 8px; border-radius: 4px; background: #cfcfd8; transition: width .3s var(--ease), background-color .3s; }
.ap-dots span.is-on { width: 26px; background: var(--brand); }
.ap-stories__more { margin-top: 18px; text-align: center; font-weight: 600; font-size: 15px; }

/* ---- footer ---- */
.ap-footer { background: var(--dark); color: #9c9ca8; font-size: 14px; padding: 28px 0; }
.ap-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.ap-footer a { color: #d0d0d8; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1199.98px) {
  .ap-nav__links { gap: 22px; }
  .ap-track { grid-auto-columns: calc((100% - 2 * 20px) / 3); }
}
@media (max-width: 991.98px) {
  .ap-section { padding: 72px 0; }
  .ap-nav__links { display: none; }
  .ap-nav__inner { justify-content: space-between; }
  .ap-hero { padding-top: 64px; }
  .ap-hero__inner, .ap-roles, .ap-duties, .ap-fees, .ap-faq, .ap-form { grid-template-columns: 1fr; gap: 40px; }
  .ap-hero__media::after { background: linear-gradient(0deg, rgba(11, 11, 14, .96) 10%, rgba(11, 11, 14, .78) 100%); }
  .ap-banner { max-width: 520px; }
  .ap-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ap-facts > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .ap-facts > div:nth-child(n+4) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .ap-highlights__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ap-panel { grid-template-columns: 1fr; }
  .ap-panel__photo img { min-height: 0; aspect-ratio: 16 / 9; }
  .ap-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 44px; }
  .ap-steps::before { display: none; }
  .ap-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 280px 180px 180px; }
  .ap-mosaic__a { grid-column: 1 / -1; grid-row: 1; }
  .ap-mosaic__e { display: none; }
  .ap-mosaic__b { grid-row: 2; } .ap-mosaic__c { grid-row: 2; }
  .ap-mosaic__d { grid-column: 1 / -1; grid-row: 3; }
  .ap-track { grid-auto-columns: calc((100% - 20px) / 2); }
}
@media (max-width: 575.98px) {
  .ap-section { padding: 60px 0; }
  .ap-nav__inner { min-height: 68px; gap: 12px; }
  .ap-nav__logo img { width: 136px; }
  .ap-nav .ap-btn--sm { padding: 10px 14px; font-size: 14px; }
  .ap-hero { padding-top: 48px; }
  .ap-hero__inner { padding-bottom: 48px; }
  .ap-hero__lead { font-size: 16px; }
  .ap-hero__ctas .ap-btn { width: 100%; }
  .ap-banner { padding: 20px 18px 18px; }
  .ap-banner__top img { width: 120px; }
  .ap-banner__credits { grid-template-columns: 1fr; }
  .ap-facts { grid-template-columns: 1fr 1fr; }
  .ap-facts > div, .ap-facts > div + div { padding: 16px 12px 16px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .ap-facts > div:nth-child(even) { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .12); }
  .ap-facts > div:last-child { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
  .ap-highlights { padding: 56px 0; }
  .ap-highlights__list { grid-template-columns: 1fr; gap: 28px; }
  .ap-tabs { display: flex; width: 100%; }
  .ap-tab { flex: 1 1 0; padding: 0 10px; }
  .ap-panel__body { padding: 26px 20px; }
  .ap-badges { grid-template-columns: 1fr; }
  .ap-badge { min-height: 0; }
  .ap-duties__list { grid-template-columns: 1fr; }
  .ap-duties__min strong { font-size: 56px; }
  .ap-steps { grid-template-columns: 1fr; row-gap: 28px; }
  .ap-steps li { display: grid; grid-template-columns: 50px 1fr; column-gap: 18px; }
  .ap-steps h3 { margin-top: 10px; }
  .ap-steps p { grid-column: 2; }
  .ap-table th, .ap-table td { padding: 13px 12px; font-size: 14px; }
  .ap-mosaic { grid-template-rows: 220px 140px 160px; gap: 10px; }
  .ap-faq__list summary { font-size: 16px; }
  .ap-faq__list details p { padding-right: 0; }
  .ap-form__card { padding: 24px 18px; }
  .ap-fields { grid-template-columns: 1fr; }
  .ap-stories__head { flex-direction: column; align-items: flex-start; }
  .ap-track { grid-auto-columns: 84%; }
}

@media (max-width: 575.98px) {
  .ap-table-wrap { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
}

/* ==========================================================================
   Hero, second pass: red glow, partner logos, "no fee" seal, tilted backdrop
   ========================================================================== */
.ap-hero::before { /* a warm stage light behind the backdrop card */
  content: ''; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70vw; max-width: 900px; aspect-ratio: 1;
  background: radial-gradient(closest-side, rgba(223, 37, 49, .38), rgba(223, 37, 49, 0) 70%);
  pointer-events: none;
}
.ap-hero::after { /* fine dot grid over the photo, fading out to the left */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%);
}
.ap-hero__kicker {
  padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(223, 37, 49, .16); border: 1px solid rgba(255, 107, 116, .35);
  color: #ffb3b8; font-size: 14px;
}
.ap-hero__kicker::before { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-glow); box-shadow: 0 0 0 0 rgba(255, 107, 116, .7); animation: ap-pulse 2.2s infinite; }
.ap-hero__ctas .bi { transition: transform .25s var(--ease); }
.ap-hero__ctas .ap-btn--primary { box-shadow: 0 14px 34px rgba(223, 37, 49, .4); }
.ap-hero__ctas .ap-btn--primary:hover .bi { transform: translateX(4px); }

.ap-hero__proof { display: flex; align-items: center; gap: 16px; margin-top: 36px; max-width: 560px; }
.ap-hero__logos { display: flex; flex: 0 0 auto; }
.ap-hero__logos li { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 2px solid var(--dark); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.ap-hero__logos li + li { margin-left: -12px; }
.ap-hero__logos img { width: 80%; height: 80%; object-fit: contain; }
.ap-hero__proof p { font-size: 14px; line-height: 1.5; color: #b9b9c4; }

.ap-hero__visual { position: relative; perspective: 1400px; }
.ap-banner { transform: rotateY(-9deg) rotateX(4deg); transform-origin: 60% 50%; transition: transform .6s var(--ease); }
.ap-hero__card:hover .ap-banner { transform: none; }
.ap-seal {
  position: absolute; z-index: 2; right: -30px; bottom: -44px; width: 112px; height: 112px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: var(--brand); color: #fff; font: 600 12px/1.2 var(--font-body);
  box-shadow: 0 16px 36px rgba(223, 37, 49, .45), inset 0 0 0 5px var(--brand), inset 0 0 0 6px rgba(255, 255, 255, .55);
  transform: rotate(-12deg);
}
.ap-seal span { font-family: var(--font-head); font-size: 26px; font-weight: 700; line-height: 1; }

/* ---- hero entrance: one orchestrated sequence on load ---- */
@keyframes ap-up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes ap-card { from { opacity: 0; transform: translateY(40px) rotateY(-22deg) rotateX(8deg); } to { opacity: 1; transform: rotateY(-9deg) rotateX(4deg); } }
@keyframes ap-seal-in { 0% { opacity: 0; transform: scale(.4) rotate(-40deg); } 70% { transform: scale(1.08) rotate(-8deg); } 100% { opacity: 1; transform: rotate(-12deg); } }
@keyframes ap-zoom { from { transform: scale(1.14); } to { transform: scale(1.04); } }
.ap-hero__media img { filter: blur(3px) saturate(1.15); transform: scale(1.04); }
@keyframes ap-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 116, .7); } 70% { box-shadow: 0 0 0 10px rgba(255, 107, 116, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 107, 116, 0); } }

.ap-hero__media img { animation: ap-zoom 2.6s var(--ease) both; }
.ap-hero__text > * { animation: ap-up .8s var(--ease) both; }
.ap-hero__text > :nth-child(2) { animation-delay: .1s; }
.ap-hero__text > :nth-child(3) { animation-delay: .22s; }
.ap-hero__text > :nth-child(4) { animation-delay: .34s; }
.ap-hero__text > :nth-child(5) { animation-delay: .46s; }
.ap-banner { animation: ap-card 1.1s .3s var(--ease) backwards; }
.ap-seal { animation: ap-seal-in .8s 1s var(--ease) backwards; }
.ap-facts { animation: ap-up .8s .6s var(--ease) both; }

/* ---- every other section: fades up as it scrolls into view (partner.js adds .is-in) ---- */
.js-reveal .ap-reveal { opacity: 0; transform: translateY(30px); transition: opacity .75s var(--ease), transform .75s var(--ease); transition-delay: var(--ap-d, 0ms); }
.js-reveal .ap-reveal.is-in { opacity: 1; transform: none; }
.ap-panel.is-switching { animation: ap-up .5s var(--ease) both; }
.ap-mosaic img { transition: transform .8s var(--ease); }
.ap-mosaic figure:hover img { transform: scale(1.05); }
.ap-badge { transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.ap-badge:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20, 20, 26, .08); }
.ap-story { transition: transform .3s var(--ease), border-color .2s, box-shadow .3s var(--ease); }
.ap-story:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(20, 20, 26, .08); }

@media (max-width: 991.98px) {
  .ap-banner, .ap-hero__visual:hover .ap-banner { transform: none; }
  @keyframes ap-card { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
  .ap-seal { right: -8px; bottom: -40px; width: 96px; height: 96px; font-size: 11px; }
  .ap-seal span { font-size: 22px; }
}
@media (max-width: 575.98px) {
  .ap-hero__proof { flex-direction: column; align-items: flex-start; gap: 12px; }
  .ap-seal { right: -4px; bottom: -36px; width: 84px; height: 84px; }
}
@media (prefers-reduced-motion: reduce) {
  .ap-hero__media img, .ap-hero__text > *, .ap-banner, .ap-seal, .ap-facts, .ap-panel.is-switching, .ap-hero__kicker::before { animation: none !important; }
  .ap-banner { transform: none; }
  .ap-mosaic img, .ap-badge, .ap-story { transition: none; }
  .ap-mosaic figure:hover img, .ap-badge:hover, .ap-story:hover { transform: none; }
}
.ap-hero__visual .ap-banner figcaption { padding-right: 84px; }
@media (max-width: 575.98px) { .ap-hero__visual .ap-banner figcaption { padding-right: 70px; } }

/* partner logos sit under the backdrop card, clear of the seal (#3086 v3) */
.ap-hero__visual .ap-hero__proof { margin-top: 72px; max-width: none; padding: 16px 18px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(6px); animation: ap-up .8s 1.1s var(--ease) backwards; }
@media (max-width: 991.98px) { .ap-hero__visual .ap-hero__proof { margin-top: 64px; max-width: 520px; } }
@media (max-width: 575.98px) { .ap-hero__visual .ap-hero__proof { margin-top: 56px; } }
@media (prefers-reduced-motion: reduce) { .ap-hero__visual .ap-hero__proof { animation: none; } }
.ap-hero__card { position: relative; } /* the seal sits on the card corner, not the column */
