/* /sponsorship modules (release 296, owner 21 Oct 2026: "really take the sponsorship page to the next level, as we're about to
   run paid traffic through here"). Loaded only by sponsorship.html. Tokens follow site.css and brand-surfaces.css. */
.sp-page {
  --sp-ink: var(--ink, #111);
  --sp-muted: var(--muted, #575b62);
  --sp-line: #dfe4e9;
  --sp-blue: #2467ff;
  --sp-coral: var(--brand-coral, #e8483f);
  --sp-teal: var(--brand-teal, #00bdb2);
  --sp-violet: var(--brand-violet, #7752ff);
  --sp-night: #0b0c10;
}

/* Shared headings */
.sp-page .sp-heading { display: grid; gap: 14px; max-width: 48rem; margin-bottom: 0; }
.sp-page .sp-heading .eyebrow { margin: 0; }
.sp-page .sp-heading h2 { margin: 0; }
.sp-page .sp-sub { margin: 0; color: var(--sp-muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.55; }

/* Hero */
.sp-hero .sp-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.sp-hero-proof { display: flex; align-items: center; gap: 10px; margin: 26px 0 0; color: var(--sp-ink); font-size: 15px; font-weight: 500; line-height: 1.4; }
.sp-hero-proof::before { content: ''; flex: none; width: 8px; height: 8px; background: var(--sp-coral); }

/* As seen on */
.sp-press { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 18px 40px; padding-block: 26px; border-top: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-press-label { margin: 0; color: var(--sp-muted); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.sp-press-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin: 0; padding: 0; list-style: none; }
.sp-press-logos img { display: block; width: auto; height: 26px; max-width: 120px; object-fit: contain; filter: grayscale(1); opacity: .78; }
.sp-press-logos img.sp-press--dark { filter: brightness(0); }
.sp-press-logos img.sp-press--afr { height: 20px; max-width: none; aspect-ratio: 9 / 1; object-fit: cover; object-position: center; }

/* The 2026 record */
.sp-record { background: var(--sp-night); color: #fff; padding-block: clamp(56px, 8vw, 112px); }
.sp-record .sp-heading h2 { color: #fff; font-size: clamp(32px, 3.5vw, 48px); line-height: 1.08; letter-spacing: -.035em; text-wrap: balance; }
.sp-record .eyebrow { color: #cfd3dc; }
.sp-record-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: clamp(32px, 4vw, 56px); background: #262832; border: 1px solid #262832; }
.sp-record-grid > article { display: flex; flex-direction: column; gap: 12px; min-height: 240px; padding: clamp(22px, 2.4vw, 34px); background: var(--sp-night); }
.sp-record-meta { margin: 0; color: #aab0bd; font-size: 13px; letter-spacing: .06em; line-height: 1.45; text-transform: uppercase; }
.sp-record-number { margin: auto 0 0; font-size: clamp(52px, 6vw, 96px); font-weight: 500; letter-spacing: -.05em; line-height: .95; }
.sp-record-status { display: inline-flex; align-items: center; gap: 10px; margin: 0; color: var(--sp-teal); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.sp-record-status::before { content: ''; width: 8px; height: 8px; background: currentColor; }
.sp-record-fact .sp-record-text { margin: 0; color: #cfd3dc; font-size: 15px; line-height: 1.5; }

/* Inside the room: photo mosaic */
.sp-mosaic {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(104px, 11vw, 170px);
  grid-template-areas:
    "a a a a a a a a b b b b"
    "a a a a a a a a b b b b"
    "c c c c d d d d b b b b"
    "c c c c d d d d e e e e"
    "f f f f f f f f e e e e"
    "f f f f f f f f e e e e";
  gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(28px, 3vw, 44px);
}
.sp-tile { position: relative; margin: 0; overflow: hidden; background: #e9ebef; }
.sp-tile:nth-child(1) { grid-area: a; } .sp-tile:nth-child(2) { grid-area: b; } .sp-tile:nth-child(3) { grid-area: c; }
.sp-tile:nth-child(4) { grid-area: d; } .sp-tile:nth-child(5) { grid-area: e; } .sp-tile:nth-child(6) { grid-area: f; }
.sp-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.sp-tile figcaption { position: absolute; left: 0; bottom: 0; max-width: calc(100% - 24px); padding: 9px 14px; background: #fff; color: var(--sp-ink); font-size: 13px; line-height: 1.3; }
.sp-mosaic-note { margin: 14px 0 0; color: var(--sp-muted); font-size: 13px; }

/* Why partners choose this room */
.sp-why-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(26px, 3vw, 40px); border-top: 1px solid var(--sp-line); }
.sp-why-grid article { padding: 28px 26px 30px; border-right: 1px solid var(--sp-line); }
.sp-why-grid article:first-child { padding-left: 0; }
.sp-why-grid article:last-child { padding-right: 0; border-right: 0; }
.sp-why-grid h3 { margin: 22px 0 10px; font-size: clamp(20px, 1.6vw, 24px); letter-spacing: -.02em; line-height: 1.2; }
.sp-why-grid p { margin: 0; color: var(--sp-muted); line-height: 1.6; }
.sp-mark { display: grid; grid-template-columns: repeat(2, 8px); gap: 3px; }
.sp-mark i { width: 8px; height: 8px; background: var(--sp-blue); }
.sp-mark i:nth-child(2) { background: var(--sp-coral); }
.sp-mark i:nth-child(3) { background: var(--sp-teal); grid-column: 2; }

/* Packages */
.sp-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(28px, 3vw, 44px); }
.sp-tier { display: flex; flex-direction: column; gap: 16px; padding: clamp(22px, 2vw, 30px); background: #fff; border: 1px solid var(--sp-line); }
.sp-tier header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sp-tier h3 { margin: 0; font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -.03em; }
.sp-chip { padding: 5px 8px; background: #eef2ff; color: #1b3fa8; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.sp-tier > p { margin: 0; color: var(--sp-muted); line-height: 1.55; }
.sp-tier dl { display: grid; margin: 0; border-top: 1px solid var(--sp-line); }
.sp-tier dl div { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--sp-line); }
.sp-tier dt { padding-top: 2px; color: var(--sp-muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.sp-tier dd { margin: 0; font-size: 15px; line-height: 1.4; }
.sp-tier .text-link { margin-top: auto; }
.sp-tier--lead { background: var(--sp-night); border-color: var(--sp-night); color: #fff; }
.sp-tier--lead > p, .sp-tier--lead dt { color: #b9bfcb; }
.sp-tier--lead dl, .sp-tier--lead dl div { border-color: #2a2d37; }
.sp-tier--lead .sp-chip { background: var(--sp-coral); color: #fff; }
.sp-tier--lead .text-link { color: #fff; }
.sp-tier-note { margin: 22px 0 0; color: var(--sp-muted); line-height: 1.55; }

/* The tour */
.sp-city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(18px, 1.8vw, 26px) clamp(12px, 1.4vw, 20px); margin: clamp(28px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.sp-city-grid a { display: grid; gap: 4px; color: inherit; text-decoration: none; }
.sp-city-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 12px; object-fit: cover; }
.sp-city-date { color: var(--sp-coral); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.sp-city-grid strong { font-size: clamp(20px, 1.6vw, 24px); font-weight: 500; letter-spacing: -.02em; }
.sp-city-venue { color: var(--sp-muted); font-size: 15px; }
.sp-city-grid a:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; }

/* Partners on the 2026 tour */
.sp-logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--sp-line); border-left: 1px solid var(--sp-line); }
.sp-logo-wall li { display: grid; place-items: center; min-height: clamp(84px, 8vw, 112px); padding: 18px 22px; border-right: 1px solid var(--sp-line); border-bottom: 1px solid var(--sp-line); }
.sp-logo-wall img { display: block; width: auto; height: auto; max-width: 100%; max-height: 40px; object-fit: contain; filter: grayscale(1); opacity: .86; }
.sp-logo-wall img.sp-logo--inv { filter: grayscale(1) invert(1); }
.sp-logo-wall img.sp-logo--sq { max-height: 60px; }

/* How it works */
.sp-step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); margin: clamp(26px, 3vw, 40px) 0 0; padding: 0; list-style: none; }
.sp-step-list li { padding-top: 20px; border-top: 2px solid var(--sp-ink); }
.sp-step-n { color: var(--sp-blue); font-size: 13px; font-weight: 600; letter-spacing: .1em; }
.sp-step-list h3 { margin: 12px 0 8px; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; }
.sp-step-list p { margin: 0; color: var(--sp-muted); line-height: 1.55; }

/* Questions partners ask */
.sp-faq-list { max-width: 58rem; margin-top: clamp(22px, 3vw, 36px); border-top: 1px solid var(--sp-line); }
.sp-faq-list details { border-bottom: 1px solid var(--sp-line); }
.sp-faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 16px 0; cursor: pointer; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; list-style: none; }
.sp-faq-list summary::-webkit-details-marker { display: none; }
.sp-faq-list summary::after { content: ''; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat; }
.sp-faq-list details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat; }
.sp-faq-list summary:focus-visible { outline: 2px solid var(--sp-blue); outline-offset: 4px; }
.sp-faq-list details p { max-width: 46rem; margin: 0 0 22px; color: var(--sp-muted); line-height: 1.65; }

/* Phones: a "Request the prospectus" bar once the hero button has scrolled away (sponsorship.js) */
.sp-sticky { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; transform: translateY(160%); transition: transform .3s ease; }
.sp-sticky.is-on { transform: none; }

@media (hover: hover) {
  .sp-tile:hover img { transform: scale(1.03); }
  .sp-city-grid a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
}
@media (max-width: 1100px) {
  .sp-tier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .sp-record-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-why-grid article, .sp-why-grid article:first-child, .sp-why-grid article:last-child { padding: 26px 22px 28px 0; border-right: 0; border-bottom: 1px solid var(--sp-line); }
  .sp-why-grid article:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--sp-line); }
  .sp-logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sp-city-grid, .sp-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 761px) {
  .sp-sticky { display: none; }
}
@media (max-width: 760px) {
  .sp-press { grid-template-columns: 1fr; }
  .sp-press-logos { justify-content: flex-start; gap: 16px 24px; }
  .sp-press-logos img { height: 20px; } .sp-press-logos img.sp-press--afr { height: 15px; }
  .sp-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 42vw;
    grid-template-areas: "a a" "b c" "b d" "e f" "e f";
  }
  .sp-tile figcaption { padding: 7px 10px; font-size: 12px; }
  .sp-logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sp-logo-wall li { min-height: 76px; padding: 14px; }
  .sp-logo-wall img { max-height: 30px; }
  .sp-logo-wall img.sp-logo--sq { max-height: 44px; }
}
@media (max-width: 600px) {
  .sp-tier-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sp-record-grid, .sp-why-grid { grid-template-columns: 1fr; }
  .sp-record-grid > article { min-height: 0; }
  .sp-why-grid article, .sp-why-grid article:nth-child(even) { padding: 24px 0; border-left: 0; }
  .sp-step-list { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-tile img, .sp-sticky { transition: none; }
}

/* ---------------------------------------------------------------- hero film (release 303, owner 22 Oct 2026)
   The "Sponsors Hero - A Loop v2" film runs full bleed behind the copy, as in the owner's "page fit" board: copy on the left
   over a dark wash, people on the right. The still (the film's first frame) is the first paint and the fallback. */
.sp-hero--video { position: relative; isolation: isolate; display: flex; align-items: center; min-height: clamp(640px, 100svh, 980px); padding: 150px 0 76px; overflow: hidden; background: #08090c; color: #fff; }
.sp-hero--video .sp-hero-media { position: absolute; inset: 0; z-index: -2; }
.sp-hero--video .sp-hero-still img,
.sp-hero--video .sp-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 60% 50%; }
.sp-hero--video .sp-hero-video { opacity: 0; transition: opacity .7s ease; }
.sp-hero--video .sp-hero-video.is-playing { opacity: 1; }
.sp-hero--video::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 9, 12, .86) 0%, rgba(8, 9, 12, .68) 32%, rgba(8, 9, 12, .26) 62%, rgba(8, 9, 12, .1) 100%),
    linear-gradient(180deg, rgba(8, 9, 12, .55) 0%, rgba(8, 9, 12, 0) 24%, rgba(8, 9, 12, 0) 72%, rgba(8, 9, 12, .62) 100%); }
.sp-hero--video .sp-hero-inner { position: relative; }
.sp-hero--video .sp-hero-copy { max-width: 720px; }
.sp-hero--video .eyebrow { color: #fff; }
/* Two lines, as on the board: "Meet the people / putting AI to work." Outfit sets "Meet the people" at about 6.4em and
   "putting AI to work." at about 7.3em, so 8.6em breaks after "people". */
.sp-hero--video h1 { max-width: 8.6em; color: #fff; font-size: clamp(44px, 4.6vw, 72px); text-wrap: wrap; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.sp-hero--video .lede { color: #dfe3ea; }
.sp-hero--video .text-link { color: #fff; }
.sp-hero--video .sp-hero-proof { color: #fff; }

.sp-hero-toggle { position: absolute; right: max(24px, calc((100vw - 1280px) / 2)); bottom: 22px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .42); background: rgba(8, 9, 12, .42); color: #fff; font: inherit; font-size: 13px; line-height: 1.2; cursor: pointer; }
.sp-hero-toggle[hidden] { display: none; }
.sp-hero-toggle:hover { background: rgba(8, 9, 12, .7); }
.sp-hero-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.sp-hero-toggle-icon { position: relative; width: 10px; height: 12px; }
.sp-hero-toggle-icon::before, .sp-hero-toggle-icon::after { content: ''; position: absolute; top: 0; width: 3px; height: 12px; background: currentColor; }
.sp-hero-toggle-icon::before { left: 1px; }
.sp-hero-toggle-icon::after { right: 1px; }
.sp-hero-toggle[aria-pressed="true"] .sp-hero-toggle-icon::before { left: 1px; width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent currentColor; }
.sp-hero-toggle[aria-pressed="true"] .sp-hero-toggle-icon::after { display: none; }

@media (max-width: 760px) {
  .sp-hero--video { align-items: flex-end; min-height: 0; padding: 128px 0 64px; }
  .sp-hero--video h1 { font-size: clamp(38px, 10.6vw, 46px); }
  .sp-hero--video .sp-hero-still img,
  .sp-hero--video .sp-hero-video { object-position: 64% 50%; }
  .sp-hero--video::before { background: linear-gradient(180deg, rgba(8, 9, 12, .6) 0%, rgba(8, 9, 12, .5) 38%, rgba(8, 9, 12, .8) 100%); }
  .sp-hero-toggle { right: 16px; bottom: 16px; padding: 6px 10px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .sp-hero--video .sp-hero-video { display: none; }
}

/* ---------------------------------------------------------------- at a glance (release 304, owner 22 Oct 2026)
   Replaces the dark "2026 record" band: the city pages' stats style (big Outfit figures, short labels) on white. */
.sp-stats { padding-block: clamp(52px, 7vw, 104px); background: #fff; }
.sp-stats-list { display: grid; grid-auto-columns: minmax(0, 1fr); grid-auto-flow: column; max-width: 880px; margin: 0 auto; }
.sp-stats-list > div { display: flex; flex-direction: column; align-items: center; padding: 6px clamp(16px, 3vw, 44px); text-align: center; }
.sp-stats-list > div + div { border-left: 1px solid var(--sp-line, #dedfe1); }
.sp-stats-list dt { color: #111; font-size: clamp(40px, 5.4vw, 80px); font-weight: 400; line-height: 1.02; letter-spacing: -.055em; white-space: nowrap; }
.sp-stats-list dd { margin: 14px 0 0; color: var(--sp-muted, #575b62); font-size: clamp(15px, 1.35vw, 20px); line-height: 1.35; }
@media (max-width: 560px) {
  .sp-stats-list > div { padding-inline: 10px; }
  .sp-stats-list dt { font-size: clamp(34px, 10vw, 44px); }
  .sp-stats-list dd { margin-top: 10px; font-size: 14px; }
}

/* ---------------------------------------------------------------- press row and stats, tied together (release 306, owner 22 Oct 2026)
   "Give these more padding, make them coloured, and tie in with the vertical bar. More padding on the height."
   - The media logos show in their own colours, as on the city pages (ABC's white mark is still drawn black).
   - The row gets more room, most of it on top, under the film, whose edge now does the top rule's job.
   - The stats strip's top spacing moves inside its columns, so the divider between "Sold out" and "52%" rises to meet the press
     row's bottom rule and the two sections read as one piece. */
.sp-press { padding-block: clamp(44px, 4.6vw, 64px) clamp(34px, 3.6vw, 50px); border-top: 0; }
.sp-press-logos img { filter: none; opacity: 1; }
.sp-press-logos img.sp-press--dark { filter: brightness(0); }
.sp-stats { padding-top: 0; }
.sp-stats-list > div { padding-top: clamp(52px, 7vw, 104px); }
@media (max-width: 760px) {
  .sp-press { padding-block: 36px 30px; }
  .sp-stats-list > div { padding-top: 44px; }
}

/* Release 307 (owner, 22 Oct 2026: "make it full screen"): the film fills the whole screen at every size. The 980px cap is gone
   (it left the press row showing under the film on tall desktop screens), and phones get the full screen too; if the copy is
   taller than a short screen, the hero grows to fit it. */
.sp-hero--video { min-height: 100vh; min-height: 100svh; }

/* Release 308 (owner, 22 Oct 2026): "See the packages" is now the same button as "Request the prospectus", in white, with a
   little room between them. The pair carries the hero's spacing above it, so neither button keeps its own top margin. */
.sp-hero--video .sp-hero-actions { gap: 12px 14px; margin-top: 32px; }
.sp-hero--video .sp-hero-actions .btn { margin-top: 0; }
@media (max-width: 760px) {
  .sp-hero--video .sp-hero-actions { margin-top: 26px; }
  .sp-hero--video .sp-hero-actions .btn { width: 100%; }
}

/* Release 309 (owner, 22 Oct 2026: "this sucks ... the placement, look, everything ... fix it"). The boxed "Pause film" text button
   becomes a quiet 40px square icon on the film: no border, no words on screen (the label stays for screen readers), lined up with
   the content's right edge. It brightens when hovered or focused. A pause control stays because the film loops (WCAG 2.2.2). */
.sp-hero-toggle { right: max(24px, calc((100vw - 1280px) / 2)); bottom: 32px; width: 40px; height: 40px; padding: 0; gap: 0; justify-content: center; border: 0; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; opacity: .7; transition: opacity .2s ease, background-color .2s ease; }
.sp-hero-toggle:hover, .sp-hero-toggle:focus-visible { opacity: 1; background: rgba(255, 255, 255, .24); }
.sp-hero-toggle-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* On phones the buttons fill the bottom of the film, so the icon sits top right under the header, where there is only footage. */
@media (max-width: 760px) {
  .sp-hero-toggle { top: 92px; right: 24px; bottom: auto; width: 36px; height: 36px; padding: 0; }
}
@media (prefers-reduced-motion: reduce) { .sp-hero-toggle { transition: none; } }
