/* STEM Journey 2027 — shared poster-system stylesheet. Loaded by every page under /stem-journey/.
   Builds on the site tokens in /assets/styles.css; see ../index.html for the design rationale. */
/* ==================================================================
   POSTER SYSTEM
   Palette, type and layout grammar are taken from the three campaign
   posters (zoe-dicovery-stem-*-poster.png). The site stylesheet above
   is dark-ground; this page flips to the poster's cream ground and the
   dark site header/footer bookend it. Only the chrome, behaviours and
   the light contact-form panel are inherited from the site CSS.
   ================================================================== */
:root {
  --p-cream: #f7f2e6;
  --p-cream-deep: #efe7d3;
  --p-navy: #12315c;
  --p-navy-deep: #0b2347;
  --p-green: #4d7c2a;
  --p-green-dark: #3b6420;
  --p-green-pale: #e4eed7;
  --p-sky: #d8ebf7;
  --p-sky-deep: #2d7bc9;
  --p-orange: #d9772c;
  --p-gold: #d8a633;
  --p-ink: #1f2a3a;
  --p-muted: #5a6677;
  --p-line: rgba(18, 49, 92, 0.12);
  --p-shadow: 0 18px 40px rgba(18, 49, 92, 0.12);
  --f-head: "Oswald", "Arial Narrow", sans-serif;
  --f-script: "Caveat", "Segoe Script", cursive;
  --f-body: "Manrope", sans-serif;
}

/* Override the site's dark ground. The sparkle canvas is simply not
   included on this page. */
body {
  background: var(--p-cream);
  color: var(--p-ink);
  font-family: var(--f-body);
}
.page-shell { background: var(--p-cream); }
main { overflow-x: clip; }

.p-section { padding: clamp(44px, 6vw, 84px) 0; }
.p-section--tight { padding: clamp(28px, 4vw, 56px) 0; }
.p-wrap { width: min(1180px, 92%); margin: 0 auto; }

/* ---- type ----------------------------------------------------- */
.p-h1, .p-h2, .p-h3 { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.98; margin: 0; }
.p-h1 { font-size: clamp(42px, 7.2vw, 92px); font-weight: 700; color: var(--p-navy); }
.p-h1 .p-h1-sub { display: block; color: var(--p-green); font-size: 0.78em; font-weight: 600; margin-top: 0.08em; }
.p-h2 { font-size: clamp(30px, 4.2vw, 50px); font-weight: 700; color: var(--p-navy); }
.p-h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; color: var(--p-navy); }
.p-script { font-family: var(--f-script); font-weight: 700; line-height: 1.05; }
.p-kicker { font-family: var(--f-head); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; font-size: 14px; color: var(--p-sky-deep); }
.p-lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--p-ink); max-width: 62ch; }
.p-copy { color: var(--p-muted); font-size: 16px; line-height: 1.65; }
.p-copy b { color: var(--p-ink); }

/* ---- brush-stroke band (the poster's signature device) ---------- */
.p-brush {
  position: relative;
  display: inline-block;
  padding: 0.28em 0.75em 0.3em;
  color: #fff;
  background: var(--p-green);
  clip-path: polygon(1.5% 12%, 6% 0, 31% 6%, 55% 0, 78% 7%, 99% 2%, 100% 86%, 93% 100%, 69% 92%, 44% 100%, 20% 93%, 0 100%);
  transform: rotate(-1.2deg);
  transform-origin: left center;
}
.p-brush--sm { font-size: 0.95em; }
.p-brush--navy { background: var(--p-navy); }
.p-brush--orange { background: var(--p-orange); }
.p-brush--sky { background: var(--p-sky-deep); }
.p-brush--lime { background: #7cb342; }

/* ---- buttons ---------------------------------------------------- */
.p-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.p-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(18, 49, 92, 0.18); }
.p-btn--navy { background: var(--p-navy); color: #fff; }
.p-btn--green { background: var(--p-green); color: #fff; }
.p-btn--gold { background: var(--p-gold); color: var(--p-navy-deep); }
.p-btn--outline { border-color: var(--p-navy); color: var(--p-navy); background: transparent; }

/* ---- hero ------------------------------------------------------- */
.p-hero { position: relative; padding: clamp(28px, 4vw, 48px) 0 0; }
.p-hero::before {
  /* Mountain/sky strip from the poster header, mirrored across the width. */
  content: ""; position: absolute; inset: 0 0 auto 0; height: clamp(160px, 24vw, 300px);
  background: url("/stem-journey/img/mountains.jpg") center top / auto 100% repeat-x;
  opacity: 0.55;
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 30%, transparent 100%);
  pointer-events: none;
}
.p-hero-top { position: relative; display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.p-hero-logo { width: clamp(96px, 11vw, 136px); height: auto; filter: drop-shadow(0 10px 22px rgba(18, 49, 92, 0.2)); }
.p-hero-invest { text-align: right; color: var(--p-navy); font-size: clamp(22px, 2.6vw, 34px); }
.p-hero-invest .p-underline { display: inline-block; height: 7px; width: 72%; margin-top: 2px; background: var(--p-green); clip-path: polygon(0 40%, 100% 0, 98% 100%, 2% 80%); }
.p-hero-title { position: relative; text-align: center; margin: clamp(10px, 2vw, 22px) 0 14px; }
.p-hero-tag { font-family: var(--f-body); font-weight: 600; color: var(--p-sky-deep); font-size: clamp(15px, 1.5vw, 20px); margin: 14px 0 0; }
.p-hero-tag span { padding: 0 0.5em; }
.p-hero-tag span + span { border-left: 2px solid var(--p-sky-deep); }

/* Three destination panels, captions are baked into the artwork. */
.p-panels { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: clamp(18px, 2.6vw, 30px); border: 6px solid #fff; border-radius: 10px; overflow: hidden; box-shadow: var(--p-shadow); background: #fff; }
.p-panels img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform 0.6s ease; }
.p-panels a:hover img { transform: scale(1.04); }

/* Navy fact band directly beneath, exactly as on the poster. */
.p-facts { background: var(--p-navy-deep); color: #fff; }
.p-facts-inner { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1.25fr; gap: 0; }
.p-fact { display: flex; gap: 14px; align-items: center; padding: 22px 22px; border-left: 1px solid rgba(255, 255, 255, 0.16); }
.p-fact:first-child { border-left: 0; }
.p-fact svg { flex: 0 0 auto; width: 38px; height: 38px; }
.p-fact strong { display: block; font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.03em; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.1; }
.p-fact span { display: block; font-size: 13.5px; color: #cfdcef; line-height: 1.45; }
.p-fact-quote { justify-content: center; text-align: center; font-size: clamp(19px, 1.9vw, 24px); color: #fff; }

/* ---- why / StoryBrand block ------------------------------------- */
.p-why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.p-why-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.p-reassure { font-size: 14px; color: var(--p-muted); margin: 12px 0 0; max-width: 50ch; }
.p-pillars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.p-pillar { background: #fff; border: 1px solid var(--p-line); border-radius: 14px; padding: 20px; box-shadow: 0 8px 20px rgba(18, 49, 92, 0.06); }
.p-pillar .p-kicker { display: block; margin-bottom: 6px; }
.p-pillar h3 { font-family: var(--f-head); text-transform: uppercase; font-size: 18px; margin: 0 0 6px; color: var(--p-navy); }
.p-pillar p { margin: 0; font-size: 14.5px; color: var(--p-muted); line-height: 1.55; }
.p-pillar--stem { border-top: 4px solid var(--p-sky-deep); }
.p-pillar--faith { border-top: 4px solid var(--p-orange); }
.p-pillar--history { border-top: 4px solid var(--p-navy); }
.p-pillar--lead { border-top: 4px solid var(--p-green); }

/* ---- section heads with a brush band ---------------------------- */
.p-bandhead { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-bottom: clamp(22px, 3vw, 36px); }
.p-bandhead .p-h2 { color: #fff; }
.p-bandhead-note { display: flex; align-items: center; gap: 12px; color: var(--p-ink); font-weight: 600; font-size: clamp(15px, 1.4vw, 18px); max-width: 44ch; }
.p-bandhead-note svg { flex: 0 0 auto; width: 34px; height: 34px; }
.p-pin { background: var(--p-green-pale); border-radius: 12px; padding: 12px 16px; }

/* ---- venue grid (poster: 2 rows x 6) ---------------------------- */
.p-venues { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
/* margin:0 matters: the UA default figure margin (1em 40px) would eat
   80px of every grid cell and leave each tile ~65px wide. */
.p-venue { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; border: 1px solid var(--p-line); box-shadow: 0 8px 20px rgba(18, 49, 92, 0.07); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.p-venue:hover { transform: translateY(-4px); box-shadow: var(--p-shadow); }
.p-venue img { width: 100%; aspect-ratio: 16 / 11; object-fit: cover; display: block; }
.p-venue figcaption { padding: 10px 12px 12px; text-align: center; line-height: 1.3; }
.p-venue figcaption b { display: block; color: var(--p-navy); font-size: 13px; }
.p-venue figcaption span { font-size: 12.5px; color: var(--p-muted); }

/* ---- three-step plan ------------------------------------------- */
.p-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: step; }
.p-step { position: relative; background: #fff; border: 1px solid var(--p-line); border-radius: 16px; padding: 34px 26px 26px; box-shadow: 0 8px 20px rgba(18, 49, 92, 0.06); }
.p-step::before { counter-increment: step; content: counter(step); position: absolute; top: -20px; left: 24px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--p-green); color: #fff; font-family: var(--f-head); font-weight: 700; font-size: 20px; box-shadow: 0 8px 18px rgba(77, 124, 42, 0.35); }
.p-step h3 { margin: 6px 0 8px; }
.p-step p { margin: 0; color: var(--p-muted); font-size: 15.5px; line-height: 1.6; }

/* ---- itinerary ------------------------------------------------- */
.p-legs { display: grid; gap: 12px; margin: 0; }
.p-leg { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 22px; padding: 18px 22px; background: #fff; border: 1px solid var(--p-line); border-left: 6px solid var(--p-navy); border-radius: 0 12px 12px 0; }
.p-leg:nth-child(2) { border-left-color: var(--p-sky-deep); }
.p-leg:nth-child(3) { border-left-color: var(--p-orange); }
.p-leg:nth-child(4) { border-left-color: var(--p-navy); }
.p-leg:nth-child(5) { border-left-color: var(--p-green); }
.p-leg dt { font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.03em; font-weight: 600; color: var(--p-navy); font-size: 17px; }
.p-leg dd { margin: 0; color: var(--p-muted); font-size: 15.5px; line-height: 1.6; }

/* ---- outcomes --------------------------------------------------- */
.p-split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 60px); align-items: start; }
.p-outcome { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--p-line); }
.p-outcome:first-child { border-top: 1px solid var(--p-line); }
.p-outcome-mark { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--p-green-pale); color: var(--p-green-dark); }
.p-outcome h3 { font-family: var(--f-head); text-transform: uppercase; font-size: 18px; margin: 0 0 4px; color: var(--p-navy); }
.p-outcome p { margin: 0; color: var(--p-muted); font-size: 15.5px; line-height: 1.6; }

/* ---- audience --------------------------------------------------- */
.p-pills { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.p-pills li { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--p-line); font-weight: 700; font-size: 14.5px; color: var(--p-navy); }

/* ---- sponsors (poster bottom half) ------------------------------ */
.p-sponsor-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.p-sponsor-head .p-sub { display: block; margin-top: 10px; font-size: clamp(22px, 2.6vw, 32px); color: var(--p-navy); }
.p-heartbox { display: flex; gap: 16px; align-items: center; background: var(--p-green-pale); border-radius: 18px; padding: 22px 24px; color: var(--p-green-dark); font-weight: 700; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.35; clip-path: polygon(2% 6%, 98% 0, 100% 92%, 96% 100%, 0 97%); }
.p-heartbox svg { flex: 0 0 auto; width: 48px; height: 48px; }

.p-items-head { margin: clamp(26px, 3vw, 40px) 0 18px; }
.p-items { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 14px 12px; }
.p-item { text-align: center; }
.p-item img { width: 100%; max-width: 128px; height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto 6px; display: block; mix-blend-mode: multiply; }
.p-item span { display: block; font-weight: 700; font-size: 13px; color: var(--p-navy); line-height: 1.3; }

.p-other { margin-top: clamp(22px, 3vw, 34px); background: var(--p-sky); border-radius: 16px; padding: 22px 26px; }
.p-other h3 { margin: 0 0 12px; }
.p-other ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 24px; }
.p-other li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; color: var(--p-ink); }
.p-other li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--p-green); transform: translateY(-1px); }

.p-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(26px, 3vw, 40px); }
.p-way { background: #fff; border: 1px solid var(--p-line); border-radius: 16px; padding: 26px; box-shadow: 0 8px 20px rgba(18, 49, 92, 0.06); display: flex; flex-direction: column; }
.p-way h3 { margin: 8px 0 8px; }
.p-way p { color: var(--p-muted); margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; flex: 1; }

/* ---- straight answers ------------------------------------------- */
.p-honest { background: #fff; border: 1px solid var(--p-line); border-top: 8px solid var(--p-gold); border-radius: 18px; padding: clamp(26px, 3.6vw, 44px); box-shadow: var(--p-shadow); }
.p-known { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: 24px; }
.p-known h3 { margin: 0 0 12px; }
.p-known ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.p-known li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; color: var(--p-muted); font-size: 15.5px; line-height: 1.55; }
.p-known li b { color: var(--p-ink); }
.p-yes { color: var(--p-green); font-weight: 800; }
.p-no { color: var(--p-orange); font-weight: 800; }

/* ---- form --------------------------------------------------------
   Reuses the site's light .contact-form-panel so label/privacy colours
   (which assume a light panel) are correct. */
.p-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.p-form-grid .p-span { grid-column: 1 / -1; }
.p-form-grid .cta-field { align-content: start; }
.contact-form-panel { border: 1px solid var(--p-line); }
.contact-form .cta-field select {
  width: 100%; min-height: 3.4rem; padding: 0.9rem 2.4rem 0.9rem 1rem;
  border: 1px solid rgba(18, 33, 60, 0.12); border-radius: 16px; background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2312213c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  color: var(--text-dark); font: inherit; outline: none; appearance: none;
}
.contact-form .cta-field select:focus { border-color: rgba(216, 166, 51, 0.7); box-shadow: 0 0 0 4px rgba(216, 166, 51, 0.16); }
.contact-form .cta-submit { background: var(--p-navy); color: #fff; border-radius: 999px; font-family: var(--f-head); text-transform: uppercase; letter-spacing: 0.06em; }
.p-contact-alt a { color: var(--p-sky-deep); font-weight: 700; text-decoration: underline; }

/* ---- closing band (poster footer) -------------------------------- */
.p-close { position: relative; background: var(--p-cream-deep); overflow: hidden; }
.p-close::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 100%; background: url("/stem-journey/img/mountains.jpg") center bottom / auto 100% repeat-x; opacity: 0.35; transform: scaleY(-1); -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 100%); pointer-events: none; }
.p-close-inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(22px, 3vw, 44px); align-items: center; }
.p-close-left .p-h2 { font-size: clamp(26px, 3vw, 38px); }
.p-close-left .p-script { font-size: clamp(24px, 2.6vw, 32px); color: var(--p-navy); }
.p-icons { display: flex; gap: clamp(14px, 2vw, 28px); }
.p-icon { text-align: center; width: 104px; }
.p-icon i { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 8px; border-radius: 50%; color: #fff; }
.p-icon i svg { width: 34px; height: 34px; }
.p-icon span { display: block; font-weight: 700; font-size: 13.5px; color: var(--p-navy); line-height: 1.3; }
.p-icon--navy i { background: var(--p-navy); }
.p-icon--green i { background: var(--p-green); }
.p-icon--gold i { background: var(--p-gold); }
.p-close-right { justify-self: end; text-align: left; }
.p-close-right .p-h3 { margin-bottom: 8px; }
.p-close-right a { display: flex; gap: 10px; align-items: center; color: var(--p-navy); font-weight: 600; margin: 6px 0; }
.p-close-right a svg { width: 18px; height: 18px; color: var(--p-sky-deep); }
.p-thanks { margin-top: 14px; color: var(--p-navy); font-size: clamp(22px, 2.2vw, 28px); }
.p-thanks small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 13.5px; color: var(--p-muted); }
.p-wordmark { width: 170px; height: auto; margin-bottom: 10px; border-radius: 8px; }

/* ---- responsive ------------------------------------------------- */
@media (max-width: 1060px) {
  .p-venues { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-items { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .p-facts-inner { grid-template-columns: 1fr 1fr; }
  .p-fact:nth-child(3) { border-left: 0; }
  .p-fact { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .p-fact:nth-child(-n+2) { border-top: 0; }
  .p-close-inner { grid-template-columns: 1fr; text-align: center; }
  .p-close-right { justify-self: center; }
  .p-close-right a { justify-content: center; }
  .p-icons { justify-content: center; }
}
@media (max-width: 820px) {
  .p-why, .p-split, .p-sponsor-head, .p-known, .p-form-grid { grid-template-columns: 1fr; }
  .p-steps, .p-ways { grid-template-columns: 1fr; }
  .p-venues { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-items { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .p-other ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-leg { grid-template-columns: 1fr; gap: 6px; }
  .p-hero-top { align-items: center; }
  .p-hero-invest { font-size: clamp(18px, 4.4vw, 24px); }
  /* Keep the artwork's native 16:9 when stacked — a wider ratio with
     object-fit:cover crops the captions baked into each panel. */
  .p-panels { grid-template-columns: 1fr; gap: 4px; }
}
@media (max-width: 560px) {
  .p-venues { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-other ul { grid-template-columns: 1fr; }
  .p-facts-inner { grid-template-columns: 1fr; }
  .p-fact { border-left: 0; }
  .p-fact:nth-child(-n+2) { border-top: 1px solid rgba(255, 255, 255, 0.16); }
  .p-fact:first-child { border-top: 0; }
  .p-pillars { grid-template-columns: 1fr; }
  .p-hero-tag span { display: block; padding: 2px 0; border: 0 !important; }
  .p-brush { transform: rotate(-0.8deg); }
  .p-icon { width: 92px; }
}
@media (prefers-reduced-motion: reduce) {
  .p-panels img, .p-venue, .p-btn { transition: none; }
}
