/* /ascend/ phones (<768px): new LP1 hero (.mah1-*) and journeys section (.maj-*).
   Copied from mesa-ascend-hero-LP1_1.html and mesa-ascend-journeys-section.html.
   The programme section (.map-*) comes from ascend-lp.css. */

/* ---------- Hero (fold 1) ---------- */
.mah1{--mah1-ink:#121211;--mah1-paper:#F2EFEA;--mah1-accent:#D4B15E;--mah1-nav:64px;
  position:relative;box-sizing:border-box;display:flex;flex-direction:column;min-height:616px;
  background:var(--mah1-ink);color:var(--mah1-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){.mah1{min-height:min(calc(100svh - var(--mah1-nav)),760px)}}
.mah1 *,.mah1 *::before,.mah1 *::after{box-sizing:border-box;margin:0;padding:0}

/* photo: grows to fill whatever the phone has left; fades into the page at the top and bottom */
.mah1-photo{position:relative;flex:1 1 auto;min-height:300px;overflow:hidden}
.mah1-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 0%}
.mah1-photo::before{content:"";position:absolute;z-index:1;left:0;right:0;top:0;height:40%;pointer-events:none;
  background:linear-gradient(to bottom,var(--mah1-ink) 0%,rgba(18,18,17,.90) 30%,rgba(18,18,17,.62) 62%,rgba(18,18,17,0) 100%)}
.mah1-photo::after{content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:linear-gradient(to bottom,rgba(18,18,17,0) 84%,rgba(18,18,17,.6) 94%,var(--mah1-ink) 100%),
             linear-gradient(to right,rgba(18,18,17,.45) 0%,rgba(18,18,17,0) 16%,rgba(18,18,17,0) 84%,rgba(18,18,17,.45) 100%)}

.mah1-body{flex:none;padding:0 20px 16px}
/* the headline sits over the top of the photo on phones */
.mah1-h1{position:absolute;z-index:4;left:20px;right:20px;top:12px;
  font-size:clamp(26px,7.7vw,30px);line-height:1.1;font-weight:600;letter-spacing:-.022em;
  color:var(--mah1-paper);text-shadow:0 1px 16px rgba(18,18,17,.6)}
.mah1-h1 b{font-weight:800;color:var(--mah1-accent)}
.mah1-rest{position:relative;z-index:3;margin-top:-10px}

.mah1-chips{list-style:none;display:flex;flex-wrap:wrap;gap:6px}
.mah1-chips li{padding:6px 11px 6px 10px;border-radius:40px;background:#1c1c1a;border:.5px solid rgba(242,239,234,.24);
  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}
.mah1-chips li:first-child{font-weight:800;color:var(--mah1-accent)}

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

.mah1-ctas{display:flex;flex-direction:column;gap:10px;margin-top:16px}
.mah1-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}
.mah1-btn svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.mah1-btn--ghost{border:1px solid rgba(242,239,234,.42);color:var(--mah1-paper);background:transparent}
.mah1-btn--solid{border:1px solid var(--mah1-accent);background:var(--mah1-accent);color:var(--mah1-ink)}
.mah1-btn:focus-visible{outline:2px solid var(--mah1-paper);outline-offset:3px}
@media (hover:hover){
  .mah1-btn--ghost:hover{border-color:var(--mah1-accent);color:var(--mah1-accent)}
  .mah1-btn--solid:hover{background:var(--mah1-paper);border-color:var(--mah1-paper)}
}

/* desktop and wide tablets: copy on the left over the page colour, photo in a panel on the right */
@media (min-width:900px){
  .mah1{--mah1-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))}
  .mah1-photo{order:2;min-height:0;height:clamp(420px,42vw,560px);border-radius:24px}
  .mah1-photo img{object-position:50% 14%}
  .mah1-photo::before,.mah1-photo::after{display:none}
  .mah1-body{order:1;padding:0}
  .mah1-h1{position:static;font-size:clamp(34px,3.7vw,52px);line-height:1.07;text-shadow:none}
  .mah1-rest{margin-top:24px}
  .mah1-chips{gap:8px}
  .mah1-chips li{font-size:11.5px;padding:7px 13px 7px 12px}
  .mah1-nums{max-width:500px;gap:28px;margin-top:28px}
  .mah1-num b{height:52px;padding-bottom:10px;font-size:38px;line-height:40px}
  .mah1-num b small{font-size:19px;line-height:40px;margin-left:6px}
  .mah1-num span{margin-top:9px;font-size:14px;line-height:19px}
  .mah1-ctas{flex-direction:row;flex-wrap:wrap;gap:14px;margin-top:32px}
  .mah1-btn{flex:0 0 auto;height:54px;min-width:160px;padding:0 20px 0 22px}
}

/* ---------- Journeys (fold 3) ---------- */
.maj {
  --maj-bg: #F2EFEA;
  --maj-ink: #121211;
  --maj-card: #FBF9F6;
  --maj-line: #D5CFC4;
  --maj-chip: #4A4640;
  --maj-muted: #5F5B54;
  --maj-accent: #D4B15E;
  background: var(--maj-bg);
  color: var(--maj-ink);
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
.maj *, .maj *::before, .maj *::after { box-sizing: border-box; }
.maj-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 20px 24px; display: flex; flex-direction: column; }

.maj-title { margin: 0; font-size: 26px; line-height: 1.14; font-weight: 600; letter-spacing: -0.022em; color: var(--maj-ink); }

/* ---------- Cards ---------- */
.maj-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.maj-card { border: 1px solid var(--maj-line); border-radius: 16px; background: var(--maj-card); transition: border-color .25s, box-shadow .25s; }
.maj-card.is-open { border-color: var(--maj-accent); box-shadow: 0 4px 18px rgba(18, 18, 17, 0.07); }
.maj-head-btn {
  display: block; width: 100%; margin: 0; padding: 9px 10px 10px 13px;
  border: 0; border-radius: 16px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.maj-head-btn:focus-visible { outline: 2px solid var(--maj-ink); outline-offset: 2px; }
.maj-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.maj-q { font-size: clamp(14.5px, 4.1vw, 16px); line-height: 1.32; font-weight: 700; letter-spacing: -0.012em; }
.maj-q i { font-style: normal; font-weight: 800; color: #B8902F; }
.maj-arr {
  flex: none; width: 25px; height: 25px; margin: -2px 0; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--maj-accent); color: var(--maj-ink); transition: transform .3s;
}
.maj-arr svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.maj-card.is-open .maj-arr { transform: rotate(90deg); }

/* the outcome chip: label on its own line, one-line outcome under it */
.maj-out {
  display: block; margin-top: 7px; padding: 6px 11px 7px; border-radius: 10px;
  background: var(--maj-chip); color: rgba(242, 239, 234, 0.94);
  font-size: clamp(10.5px, 2.95vw, 11.5px); line-height: 15px; font-weight: 500;
}
.maj-out b { display: block; margin-bottom: 1px; font-size: 8.5px; line-height: 12px; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; color: #E3C377; }

/* the panel opens by animating a grid row from 0 to its content height */
.maj-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.maj-card.is-open .maj-panel { grid-template-rows: 1fr; }
.maj-clip { min-height: 0; overflow: hidden; }
.maj-body { padding: 4px 13px 14px 13px; }
.maj-lab { margin: 0 0 2px; font-size: 9.5px; line-height: 14px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--maj-muted); }
.maj-steps { list-style: none; margin: 0; padding: 0; counter-reset: maj; }
.maj-steps li { counter-increment: maj; position: relative; padding: 8px 0 8px 28px; border-top: 1px solid var(--maj-line); }
.maj-steps li:first-child { border-top: 0; }
.maj-steps li::before { content: "0" counter(maj); position: absolute; left: 0; top: 9px; font-size: 11.5px; line-height: 18px; font-weight: 800; color: #B8902F; }
.maj-steps b { display: block; font-size: 13.5px; line-height: 18px; font-weight: 700; }
.maj-steps span { display: block; margin-top: 1px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--maj-muted); }

@media (hover: hover) {
  .maj-card:hover { border-color: var(--maj-accent); }
}

/* ---------- Button ---------- */
.maj-cta { margin-top: 12px; }
.maj-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 48px; padding: 0 18px 0 20px; border-radius: 14px;
  background: var(--maj-accent); color: var(--maj-ink);
  font-family: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background .2s, color .2s;
}
.maj-btn svg { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.maj-btn:focus-visible { outline: 2px solid var(--maj-ink); outline-offset: 3px; }
@media (hover: hover) { .maj-btn:hover { background: var(--maj-ink); color: var(--maj-bg); } }

@media (prefers-reduced-motion: reduce) { .maj-card, .maj-arr, .maj-btn, .maj-panel { transition: none; } }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .maj-wrap { padding: 40px 40px 44px; }
  .maj-title { font-size: 32px; }
  .maj-list { margin-top: 22px; gap: 10px; }
  .maj-card, .maj-head-btn { border-radius: 18px; }
  .maj-head-btn { padding: 14px 14px 14px 18px; }
  .maj-q { font-size: 18px; }
  .maj-arr { width: 30px; height: 30px; }
  .maj-arr svg { width: 16px; height: 16px; }
  .maj-out { margin-top: 10px; padding: 9px 14px 10px; border-radius: 12px; font-size: 13.5px; line-height: 19px; }
  .maj-out b { font-size: 10px; line-height: 14px; margin-bottom: 2px; }
  .maj-body { padding: 4px 18px 18px; }
  .maj-lab { font-size: 11px; margin-bottom: 4px; }
  .maj-steps li { padding: 11px 0 11px 34px; }
  .maj-steps li::before { top: 12px; font-size: 13px; line-height: 21px; }
  .maj-steps b { font-size: 15.5px; line-height: 21px; }
  .maj-steps span { font-size: 14px; line-height: 20px; }
  .maj-cta { margin-top: 20px; }
  .maj-btn { display: inline-flex; min-width: 220px; height: 54px; }
}

/* ---------- Desktop: heading and button on the left, cards on the right ---------- */
@media (min-width: 1024px) {
  .maj-wrap {
    padding: 72px 32px; display: grid; align-items: start;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    grid-template-rows: auto 1fr; column-gap: 64px;
  }
  .maj-head { grid-column: 1; grid-row: 1; }
  .maj-cta { grid-column: 1; grid-row: 2; margin-top: 32px; }
  .maj-list { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
  .maj-title { font-size: 44px; line-height: 1.12; }
  .maj-q { font-size: 20px; }
  .maj-out { font-size: 14.5px; line-height: 20px; }
}

/* ---------- Overrides for ascend.css globals (h1/h2 sizes, h2 max-width) ---------- */
.mah1-h1{text-wrap:wrap}
.maj-title{max-width:none;text-wrap:wrap}
/* programme section: the _1 design drops the "In 12 months" lead and gives each panel a little more room */
.lp-m .map-body{min-height:204px}
/* phones: the journeys section replaces the old #who accordion */
@media (max-width:767px){#who{display:none}}
