/* Ascend LP variants (/ascend1/, /ascend2/, /ascend3/): agency hero (.mah-*) and programme section (.map-*).
   Copied from mesa-ascend-hero-LP*.html and mesa-ascend-program-section.html. */

/* ---------- Hero (fold 1) ---------- */
.mah{--mah-ink:#121211;--mah-paper:#F2EFEA;--mah-accent:#D4B15E;--mah-nav:64px;
  box-sizing:border-box;display:flex;flex-direction:column;min-height:616px;
  background:var(--mah-ink);color:var(--mah-paper);
  font-family:"Manrope",ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased;-webkit-text-size-adjust:100%}
@supports (height:100svh){.mah{min-height:min(calc(100svh - var(--mah-nav)),760px)}}
.mah *,.mah *::before,.mah *::after{box-sizing:border-box;margin:0;padding:0}

/* photo: grows to fill whatever the phone has left, so the buttons stay on the first screen */
.mah-photo{position:relative;flex:1 1 auto;min-height:200px;overflow:hidden}
.mah-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  object-position:var(--mah-pos,50% 50%);transform:scale(var(--mah-zoom,1));transform-origin:var(--mah-origin,50% 50%)}
.mah-photo::after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(18,18,17,.30) 0%,rgba(18,18,17,0) 20%,rgba(18,18,17,0) var(--mah-g1,58%),rgba(18,18,17,.78) var(--mah-g2,82%),var(--mah-ink) 100%)}
.mah-tag{position:absolute;z-index:2;left:20px;top:14px;display:inline-flex;align-items:center;gap:7px;max-width:calc(100% - 40px);
  padding:6px 11px 6px 10px;border-radius:40px;background:rgba(18,18,17,.66);border:.5px solid rgba(242,239,234,.28);
  font-size:clamp(9px,2.7vw,10.5px);line-height:14px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:rgba(242,239,234,.92);white-space:nowrap;overflow:hidden}
.mah-tag b{font-weight:800;color:var(--mah-accent)}
.mah-tag i{flex:none;width:3px;height:3px;border-radius:50%;background:rgba(242,239,234,.6)}

/* everything under the photo; the headline is pulled up over the photo's dark lower edge */
.mah-body{position:relative;z-index:3;flex:none;margin-top:calc(-1 * var(--mah-lift,52px));padding:0 20px 16px}
.mah-h1{font-size:var(--mah-h1,clamp(29px,8.46vw,34px));line-height:1.09;font-weight:600;letter-spacing:-.022em;
  color:var(--mah-paper);text-shadow:0 1px 18px rgba(18,18,17,.55)}
.mah-h1 b{font-weight:800;color:var(--mah-accent)}
.mah-meta{list-style:none;display:flex;flex-wrap:wrap;gap:0 clamp(5px,2.3vw,9px);margin-top:10px;font-size:clamp(10.5px,3.2vw,12.5px);line-height:18px;font-weight:500;color:rgba(242,239,234,.80)}
.mah-meta li+li::before{content:"";display:inline-block;width:3px;height:3px;border-radius:50%;background:var(--mah-accent);margin-right:clamp(5px,2.3vw,9px);vertical-align:middle;position:relative;top:-1px}

.mah-logos{display:flex;align-items:center;margin-top:14px;padding:11px 0;border-top:1px solid rgba(242,239,234,.14);border-bottom:1px solid rgba(242,239,234,.14)}
.mah-logos span{flex:none;width:62px;font-size:10px;line-height:13px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:rgba(242,239,234,.6)}
.mah-logos div{flex:1;display:flex;align-items:center;justify-content:space-between}
.mah-logos img{display:block;height:27px;width:auto;opacity:.95}
.mah-logos img.mah-tall{height:31px}

.mah-nums{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:16px}
.mah-num b{display:flex;align-items:baseline;height:40px;padding-bottom:7px;border-bottom:2px solid var(--mah-accent);
  font-size:29px;line-height:32px;font-weight:700;letter-spacing:-.02em;color:var(--mah-paper);white-space:nowrap}
.mah-num b small{font-size:16px;line-height:32px;font-weight:700;letter-spacing:0;margin-left:4px}
.mah-num span{display:block;margin-top:7px;font-size:12px;line-height:15px;font-weight:500;color:rgba(242,239,234,.74)}

.mah-ctas{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.mah-btn{display:flex;align-items:center;justify-content:space-between;gap:16px;height:48px;padding:0 18px 0 20px;border-radius:14px;
  font-family:inherit;font-size:13.5px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background .2s,color .2s,border-color .2s}
.mah-btn svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mah-btn--ghost{border:1px solid rgba(242,239,234,.42);color:var(--mah-paper);background:transparent}
.mah-btn--solid{border:1px solid var(--mah-accent);background:var(--mah-accent);color:var(--mah-ink)}
.mah-btn:focus-visible{outline:2px solid var(--mah-paper);outline-offset:3px}
@media (hover:hover){
  .mah-btn--ghost:hover{border-color:var(--mah-accent);color:var(--mah-accent)}
  .mah-btn--solid:hover{background:var(--mah-paper);border-color:var(--mah-paper)}
}

/* desktop and wide tablets: copy on the left over the page colour, photo in a panel on the right */
@media (min-width:900px){
  .mah{--mah-nav:76px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center;gap:clamp(36px,5vw,72px);
    min-height:0;padding:clamp(40px,5vw,64px) max(32px,calc((100% - 1216px)/2))}
  .mah-photo{order:2;min-height:0;height:clamp(400px,40vw,540px);border-radius:24px}
  .mah-photo img{object-position:var(--mah-pos-d,var(--mah-pos,50% 50%))}
  .mah-photo::after{background:linear-gradient(to bottom,rgba(18,18,17,.34) 0%,rgba(18,18,17,0) 24%)}
  .mah-tag{left:18px;top:18px;font-size:11.5px;padding:7px 13px 7px 12px}
  .mah-body{order:1;margin-top:0;padding:0}
  .mah-h1{font-size:var(--mah-h1-d,clamp(40px,4.3vw,60px));line-height:1.06;text-shadow:none}
  .mah-meta{margin-top:18px;font-size:clamp(12.5px,1.25vw,15px);line-height:22px;gap:0 clamp(8px,1vw,12px)}
  .mah-meta li+li::before{margin-right:clamp(8px,1vw,12px)}
  .mah-logos{max-width:500px;margin-top:26px;padding:14px 0}
  .mah-logos span{width:76px;font-size:11px;line-height:14px}
  .mah-logos img{height:32px}.mah-logos img.mah-tall{height:37px}
  .mah-nums{max-width:500px;gap:28px;margin-top:28px}
  .mah-num b{height:52px;padding-bottom:10px;font-size:38px;line-height:40px}
  .mah-num b small{font-size:19px;line-height:40px;margin-left:6px}
  .mah-num span{margin-top:9px;font-size:14px;line-height:19px}
  .mah-ctas{flex-direction:row;flex-wrap:wrap;gap:14px;margin-top:32px}
  .mah-btn{flex:0 0 auto;height:54px;min-width:160px;padding:0 20px 0 22px;font-size:13.5px}
}

/* ---------- Programme (fold 2) ---------- */
.map {
  --map-bg: #121211;
  --map-row: #1a1a18;
  --map-line: #2b2a27;
  --map-open: #2d2a24;
  --map-text: #F2EFEA;
  --map-muted: rgba(242, 239, 234, 0.85);
  --map-accent: #D4B15E;
  background: var(--map-bg);
  color: var(--map-text);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.map *, .map *::before, .map *::after { box-sizing: border-box; }
.map-wrap { max-width: 1320px; margin: 0 auto; padding: 20px 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.map-eyebrow { margin: 0 0 6px; font-size: 11px; line-height: 14px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--map-accent); }
.map-title { margin: 0; font-size: 22px; line-height: 1.2; font-weight: 300; letter-spacing: -0.02em; color: #ffffff; }
.map-title b { font-weight: 600; }
.map-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; line-height: 18px; font-weight: 500; color: var(--map-muted); }
.map-meta li { display: flex; align-items: center; gap: 5px; }
.map-meta svg { flex: none; color: var(--map-accent); }
.map-lead { margin: 0 0 8px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--map-muted); }
.map-list { display: flex; flex-direction: column; gap: 6px; }
.map-item { position: relative; overflow: hidden; border: 1px solid var(--map-line); border-radius: 14px; background: var(--map-row); transition: background-color .3s, border-color .3s; }
.map-item.is-open { background: var(--map-open); border-color: var(--map-open); border-radius: 16px; }
.map-h { margin: 0; }
.map-btn:focus-visible { outline: 2px solid var(--map-accent); outline-offset: -2px; border-radius: 14px; }
.map-btn { width: 100%; min-height: 46px; padding: 0 14px; display: flex; align-items: center; gap: 12px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.map-i { flex: none; width: 18px; font-size: 12px; font-weight: 700; color: rgba(212, 177, 94, 0.75); }
.map-t { flex: 1; font-size: 15px; line-height: 20px; font-weight: 600; }
.map-v { flex: none; font-size: 13px; font-weight: 700; color: var(--map-accent); white-space: nowrap; transition: opacity .2s; }
.map-chev { flex: none; color: rgba(255, 255, 255, 0.6); transition: transform .3s; }
.map-item.is-open .map-i { color: var(--map-accent); }
.map-item.is-open .map-t { font-size: 16px; font-weight: 700; }
.map-item.is-open .map-v { opacity: 0; }
.map-item.is-open .map-chev { transform: rotate(180deg); }
.map-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.map-item.is-open .map-panel { grid-template-rows: 1fr; }
.map-clip { min-height: 0; overflow: hidden; }
.map-body { min-height: 190px; padding: 2px 14px 18px; display: flex; flex-direction: column; gap: 12px; }
.map-big { margin: 0; display: flex; align-items: flex-end; gap: 10px; font-size: 14px; line-height: 1.2; font-weight: 600; }
.map-big b { font-size: 46px; line-height: 0.95; font-weight: 700; letter-spacing: -0.03em; color: var(--map-accent); }
.map-big span { padding-bottom: 5px; }
.map-big--word b { font-size: 36px; }
.map-facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.map-facts li { display: flex; gap: 9px; font-size: 14px; line-height: 1.38; font-weight: 500; color: rgba(255, 255, 255, 0.92); }
.map-facts svg { flex: none; margin-top: 3px; color: var(--map-accent); }

/* ---------- Narrow phones ---------- */
@media (max-width: 374px) {
  .map-wrap { padding-left: 16px; padding-right: 16px; }
  .map-btn { gap: 9px; padding: 0 12px; }
  .map-t { font-size: 14px; }
  .map-item.is-open .map-t { font-size: 15px; }
  .map-v { font-size: 12px; }
  .map-body { padding-left: 12px; padding-right: 12px; }
}

@media (prefers-reduced-motion: reduce) { .map-panel, .map-chev, .map-item { transition: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .map-wrap { padding: 32px 40px 40px; gap: 20px; }
  .map-eyebrow { font-size: 12px; margin-bottom: 8px; }
  .map-title { font-size: 30px; }
  .map-meta { font-size: 15px; gap: 8px 20px; }
  .map-lead { font-size: 15px; margin-bottom: 10px; }
  .map-btn { min-height: 54px; padding: 0 20px; }
  .map-t { font-size: 17px; }
  .map-item.is-open .map-t { font-size: 18px; }
  .map-v { font-size: 15px; }
  .map-body { padding: 4px 20px 22px; min-height: 180px; }
  .map-facts li { font-size: 15px; }
}

/* ---------- Desktop: heading on the left, rows on the right ---------- */
@media (min-width: 1024px) {
  .map-wrap { max-width: 1280px; padding: 72px 32px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .map-eyebrow { font-size: 13px; margin-bottom: 12px; }
  .map-title { font-size: 44px; line-height: 1.12; }
  .map-meta { margin-top: 20px; font-size: 16px; }
  .map-body { min-height: 176px; }
  .map-big b { font-size: 56px; }
  .map-big--word b { font-size: 44px; }
}

/* ---------- Overrides for ascend.css globals (h1/h2/h3 sizes, h2 max-width) ---------- */
.mah-h1{text-wrap:wrap}
.map-title{max-width:none;text-wrap:wrap}
.map-h{font:inherit;letter-spacing:normal}

