/* P43 · Option A, bold editorial
   Layout: full-bleed video hero, then alternating black bands with one light
   band (the model) and one accent band (get involved). Big condensed caps
   over a quiet sans. One accent colour, swappable while we judge it against
   the video. Built on Bootstrap 5.3 grid and utilities. */

/* ---------- Fonts (self-hosted, no Google Fonts call) ---------- */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* Question marks in Inter, so they match the sans look (Akhbar's own "?" reads as a serif) */
@font-face { font-family: "p43-qmark"; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); font-weight: 400; unicode-range: U+003F; font-display: swap; }
@font-face { font-family: "p43-qmark"; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); font-weight: 500; unicode-range: U+003F; font-display: swap; }
@font-face { font-family: "p43-qmark"; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); font-weight: 600; unicode-range: U+003F; font-display: swap; }
@font-face { font-family: "p43-qmark"; src: url("../fonts/inter-latin-700-normal.woff2") format("woff2"); font-weight: 700; unicode-range: U+003F; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  color-scheme: dark;
  --p43-ink: #0A0A0A;
  --p43-ink-2: #111111;
  --p43-ink-3: #1A1A1A;
  --p43-line: #2A2A28;
  --p43-text: #F2F2EE;
  --p43-muted: #C4C4BE;
  --p43-dim: #9A9A94;
  --p43-paper: #F2F2EE;
  --p43-paper-text: #0A0A0A;
  --p43-paper-muted: #2E2E2B;
  --p43-accent: #3D7BFF;
  --p43-on-accent: #0A0A0A;

  --font-display: "Anton", Impact, "Arial Narrow Bold", "Helvetica Neue Condensed", sans-serif;
  --font-body: "p43-qmark", "akhbar-cbj", "akhbar", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --section-pad: clamp(72px, 9vw, 136px);
  --section-pad-lg: clamp(108px, 13.5vw, 204px); /* 1.5x, used from the hero down to P43 in numbers */

  /* Ask bar: fixed this far from the bottom of the screen */
  --ask-w: 540px;
  --ask-h: 52px;
  --ask-bar-bottom: 60px;
  --logo-h: 74px;

  --bs-body-bg: var(--p43-ink);
  --bs-body-color: var(--p43-text);
  --bs-body-font-family: var(--font-body);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.p43 {
  background: var(--p43-ink);
  color: var(--p43-text);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
body.p43::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 1040; background: var(--p43-ink);
}

a { color: var(--p43-text); text-underline-offset: 3px; }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 3px solid var(--p43-accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 2000;
  background: var(--p43-accent); color: var(--p43-on-accent); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* ---------- Layout helpers ---------- */
.p43-wrap {
  max-width: 1360px; margin-inline: auto;
  padding-left: calc(var(--gutter-l) + clamp(0px, 2vw, 24px));
  padding-right: calc(var(--gutter-r) + clamp(0px, 2vw, 24px));
}
.p43-band { padding-block: var(--section-pad); }
.p43-band--rule { border-top: 1px solid var(--p43-line); }
.p43-band--alt { background: var(--p43-ink-2); border-block: 1px solid var(--p43-line); }

/* ---------- Type ---------- */
.p43-display {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  line-height: 0.92; letter-spacing: -0.005em; text-wrap: balance; margin: 0;
}
.p43-h1 { font-size: clamp(52px, 7.8vw, 136px); }
.p43-h2 { font-size: clamp(44px, 6.2vw, 100px); margin-bottom: clamp(40px, 5vw, 72px); }
.p43-h3 { font-size: clamp(32px, 3.4vw, 54px); line-height: 1; }
.p43-h4 { font-size: clamp(28px, 2.4vw, 36px); line-height: 1.02; }
.p43-eyebrow {
  margin: 0 0 20px; font-size: 15px; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--p43-dim);
}
.p43-lead { font-size: clamp(20px, 1.6vw, 24px); line-height: 1.4; color: var(--p43-muted); max-width: 40ch; }
.p43-body { color: var(--p43-muted); max-width: 60ch; margin: 0; }
.p43-accent-text { color: var(--p43-accent); }

/* ---------- Buttons ---------- */
.p43-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; font-weight: 700; font-size: 18px;
  text-decoration: none; border: 1px solid var(--p43-text); color: var(--p43-text);
  background: transparent; transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
.p43-btn:hover { background: var(--p43-text); color: var(--p43-ink); }
.p43-btn--accent { background: var(--p43-accent); border-color: var(--p43-accent); color: var(--p43-on-accent); }
.p43-btn--accent:hover { background: var(--p43-text); border-color: var(--p43-text); color: var(--p43-ink); }
.p43-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Nav ---------- */
.p43-nav {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 1030;
  transition: background-color .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.p43-nav.is-scrolled, .p43-nav.is-open { background: rgba(10, 10, 10, 0.92); border-bottom-color: var(--p43-line); backdrop-filter: blur(8px); }
.p43-nav .navbar { padding-block: 14px; }
.p43-nav .p43-wrap { align-items: flex-start !important; }
.p43-logo { display: block; height: var(--logo-h); width: auto; will-change: height; }
.p43-nav .nav-link {
  color: var(--p43-text); font-weight: 500; font-size: 17px; padding: 10px 14px !important;
  min-height: 44px; display: flex; align-items: center;
}
.p43-nav .nav-link { transition: color .35s ease; text-decoration: none; }
.p43-nav .nav-link:hover, .p43-nav .nav-link:focus-visible { color: var(--p43-accent); text-decoration: none; }
.p43-nav .navbar-toggler { border: 1px solid var(--p43-text); border-radius: 0; min-width: 48px; min-height: 44px; }
.p43-nav .navbar-toggler:focus { box-shadow: none; }
@media (max-width: 991.98px) {
  .p43-nav .navbar-collapse { padding-block: 12px 8px; }
  .p43-nav .p43-btn { margin-top: 8px; width: 100%; }
}

/* ---------- Hero ---------- */
.p43-hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  padding-block: calc(130px + env(safe-area-inset-top, 0px)) calc(var(--ask-bar-bottom) + var(--ask-h) + 48px);
}
.p43-hero__media { position: absolute; inset: 0; }
.p43-hero__media video, .p43-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p43-hero__shade {
  position: absolute; inset: 0;
  /* the darker layer that keeps text legible over moving footage */
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.35) 35%, rgba(10,10,10,0.55) 70%, var(--p43-ink) 100%),
    rgba(10,10,10, var(--hero-shade, 0.3));
}
.p43-hero__inner { position: relative; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.p43-hero .p43-h1 { max-width: none; text-shadow: 0 2px 30px rgba(0,0,0,0.25); }
.p43-hero .p43-lead { color: #E6E6E1; margin: 0 auto; }
.p43-hero__intro { margin: 0; font-size: 19px; line-height: 1.45; color: #E6E6E1; }
.p43-hero__intro span { display: block; }
.p43-hero__intro strong { font-weight: 700; color: #FFFFFF; }

.p43-hero__toggle {
  position: absolute; z-index: 2;
  right: calc(var(--gutter-r) + 8px); bottom: 24px;
  width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,0.6); color: var(--p43-text); border: 1px solid rgba(242,242,238,0.5);
}
.p43-hero__toggle:hover { background: var(--p43-text); color: var(--p43-ink); }

/* ---------- Ask P43 box ---------- */
.p43-ask-slot { width: 100%; display: flex; justify-content: center; margin-top: 4px; }
.p43-ask { position: relative; width: min(var(--ask-w), 100%); margin: 0; }
.p43-ask__field {
  position: relative; display: flex; align-items: center; height: var(--ask-h);
  /* glass: light tint, heavy blur, no hairline */
  background: rgba(255,255,255,0.14); border: 0; color: #F2F2EE;
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  transition: background-color .25s ease, color .25s ease, box-shadow .2s ease;
}
.p43-ask__field:focus-within { box-shadow: 0 0 0 2px var(--p43-accent); }
.p43-ask__input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0 12px 0 18px;
  background: transparent; border: 0; color: inherit;
  font-family: var(--font-body); font-size: 18px; font-weight: 600; text-align: left;
}
.p43-ask__input:focus { outline: none; }
.p43-ask__prompts {
  position: absolute; left: 18px; right: 56px; top: 0; height: var(--ask-h); overflow: hidden;
  pointer-events: none; text-align: left; color: inherit; opacity: .9; font-size: 18px; font-weight: 600;
}
.p43-ask__track { display: flex; flex-direction: column; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.p43-ask__track span { height: var(--ask-h); line-height: var(--ask-h); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p43-ask.has-value .p43-ask__prompts, .p43-ask:focus-within .p43-ask__prompts { opacity: 0; }
.p43-ask__btn {
  flex: none; width: 38px; height: 38px; margin-right: 7px; border: 0;
  background: var(--p43-accent); color: var(--p43-on-accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.p43-ask__btn::after { content: ""; position: absolute; inset: 0; } /* whole right end is tappable */
.p43-ask__btn { position: relative; }
.p43-ask__btn:hover { background: var(--p43-text); }
.p43-ask__note { margin: 10px 0 0; font-size: 16px; color: var(--p43-muted); text-align: left; }

/* Fixed bar: never moves, just fades in and out */
.p43-askbar {
  position: fixed; z-index: 1025; left: 50%;
  bottom: calc(var(--ask-bar-bottom) + env(safe-area-inset-bottom, 0px));
  width: min(var(--ask-w), calc(100% - var(--gutter-l) - var(--gutter-r)));
  /* --ask-lift starts it halfway between the headline and the foot of the screen;
     JS lowers it 1px for every 1px scrolled until it settles at its anchor */
  transform: translate(-50%, calc(-1 * var(--ask-lift, 0px)));
  opacity: 0; pointer-events: none;
  transition: opacity .6s cubic-bezier(.23,1,.32,1), background-color .25s ease, color .25s ease;
}
.p43-askbar.is-in { opacity: 1; pointer-events: auto; }
.p43-askbar .p43-ask { width: 100%; }
/* the blur sits on the bar itself, so nothing above it cuts the glass off */
.p43-askbar {
  background: rgba(78,78,76,0.62); color: #FFFFFF;
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 14px 44px rgba(0,0,0,0.4);
}
.p43-askbar.is-light { background: rgba(246,246,247,0.72); color: rgba(0,0,0,0.8); }
.p43-askbar .p43-ask__field { background: transparent; color: inherit; backdrop-filter: none; -webkit-backdrop-filter: none; }
.p43-askbar .p43-ask__note {
  position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; padding: 10px 14px;
  background: rgba(20,20,20,0.82); color: #F2F2EE; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 575.98px) {
  :root { --ask-bar-bottom: 24px; }
}

/* ---------- Placeholder media ---------- */
.p43-ph {
  position: relative; background: var(--p43-ink-3); border: 1px solid var(--p43-line);
  display: flex; align-items: center; justify-content: center; max-width: 100%;
}
.p43-ph__label { font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p43-dim); padding: 16px; text-align: center; }
.p43-ph--43 { aspect-ratio: 4 / 3; }
.p43-media { position: relative; overflow: hidden; max-width: 100%; background: var(--p43-ink-3); }
.p43-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.p43-card:hover .p43-media img { transform: scale(1.03); }
.p43-ph--34 { aspect-ratio: 3 / 4; }
.p43-place { position: absolute; left: 18px; bottom: 14px; font-family: var(--font-display); font-size: clamp(36px, 3vw, 46px); line-height: 1; text-transform: uppercase; }
.p43-chip {
  position: absolute; left: 18px; top: 16px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 5px 10px; border: 1px solid var(--p43-text);
}
.p43-chip--live { background: var(--p43-accent); border-color: var(--p43-accent); color: var(--p43-on-accent); }

/* ---------- Sections ---------- */
.p43-split-item { height: 100%; border-top: 1px solid var(--p43-line); padding-top: 28px; }
.p43-num { font-family: var(--font-display); text-transform: uppercase; font-size: 56px; line-height: 1; color: var(--p43-accent); margin: 0 0 6px; }

.p43-stat__figure { font-family: var(--font-display); font-size: clamp(72px, 8vw, 128px); line-height: 0.9; margin: 0; font-variant-numeric: tabular-nums; }
.p43-stat__label { margin: 16px 0 0; color: var(--p43-muted); max-width: 26ch; font-size: 18px; line-height: 1.4; }

.p43-card { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.p43-card__kicker + .p43-display { margin-top: -14px; } /* label sits 6px above its title, as elsewhere */
.p43-card__kicker { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p43-accent); }

.p43-model { background: var(--p43-paper); color: var(--p43-paper-text); }
.p43-model .p43-eyebrow { color: var(--p43-paper-muted); }
.p43-steps { list-style: none; padding: 0; margin-bottom: 0; } /* keep the row's own top margin so the gap matches the dark sections */
.p43-step { display: flex; flex-direction: column; gap: 20px; height: 100%; }
.p43-step__media { position: relative; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: #D9D9D4; }
.p43-step__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.p43-step:hover .p43-step__media img { transform: scale(1.04); }
.p43-step__media::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.6) 100%); }
.p43-step__tag { position: absolute; z-index: 1; left: clamp(18px, 1.8vw, 28px); bottom: clamp(14px, 1.4vw, 22px); }
.p43-step__num {
  display: block;
  font-family: var(--font-display); font-size: clamp(72px, 6.6vw, 112px); line-height: 0.82; color: #F2F2EE;
  font-variant-numeric: tabular-nums;
}
.p43-step__text { margin: 0; color: var(--p43-paper-muted); max-width: 32ch; }
.p43-model__note { display: none; margin: clamp(48px, 5vw, 72px) 0 0; padding: 24px 28px; border: 1px solid var(--p43-paper-text); max-width: 60ch; }

.p43-project { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.p43-project h3 { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.p43-project p { margin: 0; font-size: 17px; color: var(--p43-dim); }
.p43-project .p43-url { color: var(--p43-text); font-weight: 600; }

.p43-reasons { border-top: 1px solid var(--p43-line); border-left: 1px solid var(--p43-line); }
.p43-reason {
  border-right: 1px solid var(--p43-line); border-bottom: 1px solid var(--p43-line);
  padding: 32px 28px; min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
}
.p43-reason p { margin: 0; color: var(--p43-dim); }

.p43-involve { background: var(--p43-accent); color: var(--p43-on-accent); }
.p43-involve .p43-eyebrow { color: var(--p43-on-accent); }
.p43-involve a { color: var(--p43-on-accent); }
.p43-involve :focus-visible { outline-color: var(--p43-on-accent); }
.p43-route { border-bottom: 2px solid var(--p43-on-accent); padding: 28px 24px 32px 0; display: flex; flex-direction: column; gap: 14px; height: 100%; }
.p43-route p { margin: 0; }
.p43-routes { border-top: 2px solid var(--p43-on-accent); }

.p43-footer { padding-block: clamp(72px, 9vw, 120px) calc(var(--ask-bar-bottom) + var(--ask-h) + 40px + env(safe-area-inset-bottom, 0px)); }
.p43-footer__big { font-size: clamp(64px, 12vw, 200px); line-height: 0.88; color: var(--p43-accent); }
.p43-footer__meta { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--p43-line); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; font-size: 16px; color: var(--p43-dim); }
.p43-footer__meta p { margin: 0; }
.p43-footer__logo { height: 72px; width: auto; }


@media (prefers-reduced-motion: reduce) {
  .p43-ask__track, .p43-btn { transition: none !important; animation: none !important; }
}

/* ---------- Scroll reveal (only when JS runs, so content is never stuck hidden) ---------- */
.js .p43-reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .p43-reveal.is-in { opacity: 1; transform: none; }
/* images wipe up from the bottom; the box itself stays unclipped so the observer can see it */
.js .p43-reveal--img > img { clip-path: inset(100% 0 0 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1), transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .p43-reveal--img.is-in > img { clip-path: inset(0 0 0 0); }
.js .p43-reveal--img .p43-step__num { opacity: 0; transform: translateY(24px); transition: opacity .7s ease .55s, transform .7s cubic-bezier(.2,.7,.2,1) .55s; }
.js .p43-reveal--img.is-in .p43-step__num { opacity: 1; transform: none; }
.js .p43-reveal--img::after { opacity: 0; transition: opacity .8s ease .4s; }
.js .p43-reveal--img.is-in::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .p43-reveal, .js .p43-reveal--img > img, .js .p43-reveal--img .p43-step__num, .js .p43-reveal--img::after { opacity: 1; transform: none; clip-path: none; transition: none; }
  .p43-step__media img, .p43-media img { transition: none; }
}

/* ---------- Looping lines (after the fold) ---------- */
.p43-loop { padding-block: 126px var(--section-pad-lg); overflow: hidden; } /* cards start 150px below the video pause button */
.p43-loop__stage { position: relative; --w: min(470px, 78vw); --step: calc(var(--w) * 0.81 + 32px); }
.p43-loop__list { list-style: none; margin: 0; padding: 0; }
.p43-loop__item {
  position: absolute; top: 0; left: 50%; width: var(--w); aspect-ratio: 4 / 5; overflow: hidden;
  background: var(--p43-ink-3); color: #F2F2EE; user-select: none; -webkit-user-select: none;
  transform: translateX(-50%) translateX(calc(var(--slot, 0) * var(--step))) scale(var(--sc, 0.62));
  transform-origin: center top; opacity: var(--op, 0.4); cursor: pointer;
  transition: transform .9s cubic-bezier(.7,0,.2,1), opacity .9s ease;
}
.p43-loop__item.is-focus { --sc: 1; --op: 1; cursor: grab; }
.p43-loop__item.is-near { --sc: 0.62; --op: 0.45; }
.p43-loop__item.is-far { --sc: 0.62; --op: 0; pointer-events: none; }
.p43-loop__item.no-anim { transition: none; }
.p43-loop__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.p43-loop__item::after { /* darkens the top so the type always reads */
  content: ""; position: absolute; inset: 0 0 35% 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.78) 0%, rgba(10,10,10,0.45) 55%, rgba(10,10,10,0) 100%);
}
.p43-loop__copy { position: absolute; z-index: 1; top: clamp(20px, 2.4vw, 32px); left: clamp(20px, 2.4vw, 32px); right: 20px; }
.p43-loop__num { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(36px, 3.6vw, 56px); line-height: 1; color: var(--p43-accent); font-variant-numeric: tabular-nums; }
.p43-loop__text { margin: 6px 0 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 3.4vw, 54px); line-height: 1; color: #F2F2EE; }
.p43-loop__stage.is-dragging .p43-loop__item { transition: opacity .9s ease; }
@media (prefers-reduced-motion: reduce) { .p43-loop__item { transition: none; } }

/* place cards with a photo behind the label */
.p43-ph--photo { overflow: hidden; }
.p43-ph--photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.p43-ph--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0) 55%, rgba(10,10,10,0.7) 100%); }
.p43-ph--photo .p43-chip, .p43-ph--photo .p43-place { z-index: 2; }
.p43-ph--photo .p43-chip:not(.p43-chip--live) { background: rgba(10,10,10,0.55); }


/* ---------- Stats as photo cards ---------- */
.p43-statcard { position: relative; margin: 0; aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; background: var(--p43-ink-3); }
.p43-statcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.p43-statcard:hover img { transform: scale(1.03); }
.p43-statcard::after { content: ""; position: absolute; inset: 40% 0 0 0; background: linear-gradient(180deg, rgba(10,10,10,0) 0%, rgba(10,10,10,0.55) 45%, rgba(10,10,10,0.85) 100%); }
.p43-statcard figcaption { position: absolute; z-index: 1; left: clamp(16px, 1.8vw, 26px); right: 16px; bottom: clamp(16px, 1.8vw, 24px); display: flex; flex-direction: column; gap: 6px; }
.p43-statcard__num { font-family: var(--font-display); font-size: clamp(56px, 6vw, 104px); line-height: 0.88; color: #F2F2EE; font-variant-numeric: tabular-nums; }
.p43-statcard__label { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(18px, 1.6vw, 26px); line-height: 1; color: #F2F2EE; }
@media (prefers-reduced-motion: reduce) { .p43-statcard img { transition: none; } }

/* ---------- Even gaps: a band that follows one of the same colour drops its top padding ---------- */
.p43-band--follow { padding-top: 0; }


/* ---------- Make good with us: four text cards, black on blue ---------- */
.p43-routecard { display: flex; flex-direction: column; height: 100%; color: var(--p43-on-accent); }
.p43-routecard .p43-loop__copy { position: static; flex: 1 1 auto; }
.p43-routecard .p43-loop__num { font-size: clamp(32px, 2.6vw, 44px); color: var(--p43-on-accent); }
.p43-routecard .p43-loop__text { margin: 6px 0 0; font-size: clamp(28px, 2.4vw, 40px); color: var(--p43-on-accent); }
.p43-routecard__body { margin: 14px 0 0; max-width: 30ch; font-size: 18px; line-height: 1.4; color: var(--p43-on-accent); }
.p43-involve .p43-routecard__cta {
  margin-top: 20px; align-self: flex-start;
  display: inline-flex; align-items: center; min-height: 44px; gap: 8px;
  color: var(--p43-on-accent); font-weight: 700; font-size: 18px; text-decoration: underline; text-underline-offset: 4px;
}
.p43-involve .p43-routecard__cta:hover { color: var(--p43-on-accent); text-decoration-thickness: 2px; }

/* label above the stats, in the Abroad / At home style */
.p43-num--label { margin-bottom: 28px; }

/* roomier gap between Two kinds of disruption and P43 in numbers */
.p43-band--roomy { padding-bottom: var(--section-pad-lg); }

/* ---------- Every contract makes good twice: expanding cards (after Mews) ----------
   One card open at a time, wide, with its text on a black panel that slides up over the foot of the photo.
   Everything that moves on click is width (flex-grow), transform or opacity, so it glides.
   Phones show all four open, stacked. */
.p43-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; --step-panel: 128px; --step-ease: cubic-bezier(.65,0,.35,1); }
.p43-step { position: relative; display: flex; flex-direction: column; gap: 0; height: auto; background: var(--p43-ink); overflow: hidden; }
.p43-step__media { aspect-ratio: 4 / 3; }
.p43-step__panel { background: var(--p43-ink); }
.p43-step__text { margin: 0; padding: 22px 22px 22px; max-width: 44ch; color: #F2F2EE; font-size: 19px; line-height: 1.42; }
.p43-step__hit { display: none; }

@media (min-width: 992px) {
  .p43-steps { display: flex; gap: 12px; height: clamp(460px, 38vw, 580px); }
  /* list every transition here: the scroll reveal's own rule would otherwise replace the width easing */
  .js .p43-steps .p43-step, .p43-steps .p43-step {
    flex: 1 1 0; min-width: 0; height: 100%; cursor: pointer; will-change: flex-grow;
    transition: flex-grow .9s var(--step-ease) 0s, opacity .9s ease var(--reveal-delay, 0ms), transform .9s cubic-bezier(.2,.7,.2,1) var(--reveal-delay, 0ms);
  }
  .p43-steps .p43-step.is-active { flex-grow: 2.6; cursor: default; }
  .p43-step__media { position: absolute; inset: 0; aspect-ratio: auto; }
  .p43-step__panel {
    position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: var(--step-panel); overflow: hidden;
    transform: translateY(101%); transition: transform .45s var(--step-ease);
  }
  .p43-step.is-active .p43-step__panel { transform: none; transition: transform .7s var(--step-ease) .25s; }
  .p43-step__text { min-width: 340px; opacity: 0; transition: opacity .2s ease; }
  .p43-step.is-active .p43-step__text { opacity: 1; transition: opacity .5s ease .6s; }
  .p43-step__tag { transition: transform .45s var(--step-ease); }
  .p43-step.is-active .p43-step__tag { transform: translateY(calc(-1 * var(--step-panel))); transition: transform .7s var(--step-ease) .25s; }
  .p43-step__hit {
    display: block; position: absolute; inset: 0; z-index: 3; width: 100%; padding: 0; border: 0; background: transparent; cursor: pointer;
  }
  .p43-step.is-active .p43-step__hit { pointer-events: none; }
  .p43-step__hit:focus-visible { outline: 3px solid var(--p43-accent); outline-offset: -3px; }
}
@media (prefers-reduced-motion: reduce) {
  .p43-steps .p43-step, .p43-step__panel, .p43-step__text, .p43-step__tag { transition: none !important; }
}

/* ---------- Buttons replacing the underlined arrow links ---------- */
.p43-card__btn { align-self: flex-start; }
.p43-btn--ink { border-color: var(--p43-on-accent); color: var(--p43-on-accent); background: transparent; }
.p43-btn--ink:hover, .p43-btn--ink:focus-visible { background: var(--p43-on-accent); color: var(--p43-accent); border-color: var(--p43-on-accent); }
.p43-involve .p43-routecard__cta { text-decoration: none; font-size: 18px; min-height: 52px; padding: 0 22px; margin-top: 24px; }
.p43-involve .p43-routecard__cta:hover { text-decoration: none; color: var(--p43-accent); }
.p43-btn { transition: background-color .3s ease, color .3s ease, border-color .3s ease; }

/* ---------- For government and business: same cards as Make good with us, white on black ---------- */
.p43-routecard--dark, .p43-routecard--dark .p43-loop__num, .p43-routecard--dark .p43-loop__text, .p43-routecard--dark .p43-routecard__body { color: #F2F2EE; }

/* ---------- "Coming soon" tag that follows the cursor over the top nav ---------- */
.p43-cursor-tip {
  position: fixed; left: 0; top: 0; z-index: 2000; pointer-events: none;
  padding: 10px 16px; background: var(--p43-accent); color: var(--p43-on-accent);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap;
  opacity: 0; transform: translate3d(-100px, -100px, 0) scale(0.92);
  transition: opacity .3s ease;
  will-change: transform, opacity;
}
.p43-cursor-tip.is-on { opacity: 1; }
@media (hover: none) { .p43-cursor-tip { display: none; } }

/* ---------- Akhbar baseline correction ----------
   Akhbar's font metrics carry a very deep descender, so its capitals sit about 0.22em higher in the
   line box than Inter's. When Akhbar has loaded (html.has-akhbar, set in p43.js) single-line UI text
   is nudged down by that amount so it centres in buttons, tags and the ask box. */
html.has-akhbar { --akhbar-nudge: 0.22em; }
html.has-akhbar .p43-btn { padding-top: calc(var(--akhbar-nudge) * 2); }
html.has-akhbar .p43-nav .nav-link { padding: calc(10px + var(--akhbar-nudge)) 14px calc(10px - var(--akhbar-nudge)) !important; }
html.has-akhbar .p43-chip { padding: calc(5px + var(--akhbar-nudge)) 10px calc(5px - var(--akhbar-nudge)); }
html.has-akhbar .p43-cursor-tip { padding: calc(10px + var(--akhbar-nudge)) 16px calc(10px - var(--akhbar-nudge)); }
html.has-akhbar .p43-ask__input { padding-top: calc(var(--akhbar-nudge) * 2); }
html.has-akhbar .p43-ask__prompts { transform: translateY(var(--akhbar-nudge)); }
html.has-akhbar .p43-loop__pause, html.has-akhbar .skip-link { padding-top: calc(var(--akhbar-nudge) * 2); }

/* P43 in numbers / Made good by P43: second part in white */
.p43-white { color: #F2F2EE; }

/* Where we work cards: more room under the photo, title and line kept close together */
.p43-project { gap: 0; }
.p43-project h3 { margin: 22px 0 0; line-height: 1.15; }
.p43-project p { margin: 4px 0 0; }

/* Status tags sit under the photo, above the title */
.p43-project > .p43-chip { position: static; align-self: flex-start; margin-top: 22px; }
.p43-project > .p43-chip + h3 { margin-top: 14px; }

/* Where we work: same slow hover zoom as the other photos */
.p43-ph--photo > img { transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.p43-project:hover .p43-ph--photo > img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .p43-ph--photo > img { transition: none; } }

/* ---------- Ask bar: blue Anton asterisk that turns every few seconds, like it is thinking ---------- */
.p43-ask__star {
  flex: none; display: inline-block; margin-left: 16px; position: relative; top: 0.145em; /* the Anton asterisk sits high: drop it level */
  font-family: var(--font-display); font-size: 44px; line-height: 1; width: 0.46em; text-align: center;
  color: var(--p43-accent); transform-origin: 50% 35.5%; /* the glyph's own centre, so it spins without wobbling */
  animation: p43-think 4.8s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes p43-think { 0%, 72% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.p43-ask__star + .p43-ask__input { padding-left: 12px; }
.p43-ask__field .p43-ask__star ~ .p43-ask__prompts { left: calc(16px + 0.46 * 44px + 12px); }
@media (prefers-reduced-motion: reduce) { .p43-ask__star { animation: none; } }

/* ---------- P43 pink: small, deliberate touches ---------- */
:root { --p43-pink: #D30E8C; --p43-on-pink: #FFFFFF; } /* R211 G14 B140; white text on pink reads better than black */
.p43-ask__star { color: var(--p43-pink); }
.p43-ask__btn { background: var(--p43-pink); color: var(--p43-on-pink); }
.p43-ask__btn:hover { background: #FFFFFF; color: var(--p43-ink); }
.p43-chip--next { background: var(--p43-pink); border-color: var(--p43-pink); color: var(--p43-on-pink); }
.p43-ph--photo .p43-chip--next, .p43-project > .p43-chip--next { background: var(--p43-pink); }
.p43-btn--pinkhover:hover, .p43-btn--pinkhover:focus-visible { background: var(--p43-pink); border-color: var(--p43-pink); color: var(--p43-on-pink); }

/* ---------- New logo: wide lockup ---------- */
.p43-footer__logo { height: 64px; width: auto; }

/* ---------- Inside pages: Playing for Peace, The first rung, Work with us ---------- */
.p43-pagehero { padding-block: calc(190px + env(safe-area-inset-top, 0px)) clamp(48px, 6vw, 88px); }
.p43-pagehero__inner { display: flex; flex-direction: column; align-items: flex-start; }
.p43-pagehero .p43-card__kicker { margin-bottom: 18px; }
.p43-pagehero .p43-h1 { max-width: 16ch; }
.p43-pagehero__lead { margin: clamp(24px, 3vw, 36px) 0 0; font-size: 19px; line-height: 1.45; color: var(--p43-muted); max-width: 60ch; } /* same as body copy */
.p43-wide { aspect-ratio: 21 / 9; }
@media (max-width: 767.98px) { .p43-wide { aspect-ratio: 4 / 3; } }
.p43-band--tight { padding-top: 0; }
.p43-pair { aspect-ratio: 4 / 5; }
.p43-cta-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: clamp(32px, 4vw, 48px); }
.p43-cta-band .p43-h2 { margin-bottom: 0; }

/* Work with us: contact details and form */
.p43-contact__list { display: flex; flex-direction: column; gap: 32px; border-top: 1px solid var(--p43-line); padding-top: 28px; }
.p43-contact__label { margin: 0 0 6px; font-size: 15px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--p43-accent); }
.p43-contact__value { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.45; color: var(--p43-text); } /* body copy size, kept white */
.p43-contact__value a { text-decoration: none; }
.p43-contact__value a:hover { color: var(--p43-accent); }
.p43-contact__note { margin: 0; color: var(--p43-dim); font-size: 17px; max-width: 34ch; }

.p43-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; border-top: 1px solid var(--p43-line); padding-top: 28px; }
.p43-form__full { grid-column: 1 / -1; }
@media (max-width: 575.98px) { .p43-form { grid-template-columns: minmax(0, 1fr); } }
.p43-form label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--p43-muted); }
.p43-field {
  display: block; width: 100%; min-height: 56px; padding: 14px 16px; margin: 0;
  background: var(--p43-ink-3); border: 1px solid var(--p43-line); border-radius: 0; color: var(--p43-text);
  font-family: var(--font-body); font-size: 18px; line-height: 1.4;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.p43-field::placeholder { color: var(--p43-dim); }
.p43-field:focus { outline: none; border-color: var(--p43-accent); box-shadow: 0 0 0 1px var(--p43-accent); }
.p43-field[aria-invalid="true"] { border-color: var(--p43-pink); box-shadow: 0 0 0 1px var(--p43-pink); }
textarea.p43-field { min-height: 200px; resize: vertical; }
select.p43-field {
  appearance: none; -webkit-appearance: none; padding-right: 52px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath d='M1 1l7 7 7-7' fill='none' stroke='%23F2F2EE' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center;
}
select.p43-field option { background: var(--p43-ink-2); color: var(--p43-text); }
.p43-form__err { margin: 8px 0 0; font-size: 16px; color: var(--p43-pink); }
.p43-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.p43-form__status { margin: 0; padding: 16px 20px; background: var(--p43-accent); color: var(--p43-on-accent); font-weight: 600; }
.p43-form__status:focus { outline: none; }
.p43-form__small { margin: 0; font-size: 15px; color: var(--p43-dim); }
html.has-akhbar input.p43-field, html.has-akhbar select.p43-field { padding-top: calc(14px + var(--akhbar-nudge)); padding-bottom: calc(14px - var(--akhbar-nudge)); }
.p43-nav .nav-link[aria-current="page"] { color: var(--p43-accent); }

/* Running copy on inside pages */
.p43-prose { max-width: 62ch; }
.p43-prose p { margin: 0 0 1.1em; font-size: 19px; line-height: 1.45; color: var(--p43-muted); }
.p43-prose p:last-child { margin-bottom: 0; }
.p43-cta-band .p43-card__kicker { margin-bottom: 18px; }
.p43-prose-single { max-width: 62ch; margin: clamp(24px, 3vw, 36px) 0 0; }

/* Playing for Peace: how it works stacked on the left, programme copy set large on the right */
.p43-howlist { display: flex; flex-direction: column; }
.p43-howlist__item { height: auto; border-top: 1px solid var(--p43-line); padding: 28px 0 32px; }
.p43-howlist__item:last-child { padding-bottom: 0; }
.p43-aboutcol { display: flex; flex-direction: column; }
.p43-prose--about { border-top: 1px solid var(--p43-line); padding-top: 28px; }
.p43-wcpanel { border-top: 1px solid var(--p43-line); padding-top: 28px; }
.p43-wcpanel .p43-card__kicker { margin-bottom: 18px; }
.p43-wcpanel .p43-h2 { margin-bottom: 0; }
.p43-wcpanel .p43-cta-row { margin-top: clamp(24px, 3vw, 36px); }
.p43-prose--about { margin-bottom: 48px; }
/* CTA title at the same size as "Playing for Peace in numbers" */
.p43-h2--num { font-size: 56px; line-height: 1; }

/* Mobile menu button: three thick blue bars, no box */
.p43-nav .navbar-toggler { border: 0; padding: 0; min-width: 48px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
@media (min-width: 992px) { .p43-nav .navbar-toggler { display: none; } } /* desktop shows the full nav, no menu button */
.p43-nav .navbar-toggler:focus-visible { outline: 2px solid var(--p43-accent); outline-offset: 4px; }
.p43-nav .navbar-toggler-icon {
  width: 32px; height: 26px; background-size: auto;
  background-image:
    linear-gradient(var(--p43-accent), var(--p43-accent)),
    linear-gradient(var(--p43-accent), var(--p43-accent)),
    linear-gradient(var(--p43-accent), var(--p43-accent));
  background-repeat: no-repeat;
  background-size: 100% 5px;
  background-position: 0 0, 0 50%, 0 100%;
}

/* Playing for Peace about: grid so the World Cup rule lines up with 03 */
.p43-aboutgrid { display: grid; grid-template-columns: minmax(0, 1fr); }
.p43-aboutgrid__prose { order: 4; margin-top: 16px; }
.p43-aboutgrid__wc { order: 5; }
@media (min-width: 992px) {
  .p43-aboutgrid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 48px; }
  .p43-aboutgrid__i1, .p43-aboutgrid__i2, .p43-aboutgrid__i3 { grid-column: 1 / 5; }
  .p43-aboutgrid__i1 { grid-row: 1; } .p43-aboutgrid__i2 { grid-row: 2; } .p43-aboutgrid__i3 { grid-row: 3; }
  .p43-aboutgrid__prose { grid-column: 6 / 13; grid-row: 1 / 3; margin-top: 0; align-self: start; }
  .p43-aboutgrid__wc { grid-column: 6 / 13; grid-row: 3; }
}

/* Header nav: pink for rollovers, focus and the current page */
.p43-nav .nav-link:hover, .p43-nav .nav-link:focus-visible, .p43-nav .nav-link[aria-current="page"] { color: var(--p43-pink); }
.p43-nav .p43-btn--accent:hover, .p43-nav .p43-btn--accent:focus-visible { background: var(--p43-pink); border-color: var(--p43-pink); color: var(--p43-on-pink); }
