/* =========================================================
   ORVIA — Personality layer
   Adds editorial warmth on top of rebuild.css / style-v2.css
   Palette references only existing CSS custom properties.
   ========================================================= */

:root {
  /* Warm accents that already sit on-brand */
  --p-cream:      #F6EFDF;
  --p-cream-2:    #EFE6D0;
  --p-oak:        #A47148;
  --p-oak-soft:   #C8A578;
  --p-navy-ink:   #0B2450;
  --p-gold:       #EAAA00;
  --p-gold-deep:  #C48B00;
  --p-plum:       #6A2E4F;
  --p-sage:       #6E8B6A;
  --p-shadow:     0 22px 60px -30px rgba(11,36,80,.35);
}

/* ---------- Colour meaning strip (ORVIA brand palette) ---- */
.p-colourstrip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  margin: 2rem 0 3rem;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 22px 60px -30px rgba(11,36,80,.35);
}
.p-colourstrip .p-cs {
  padding: 1.8rem 1.35rem 1.9rem;
  color: #FFFFFF;
  font-family: inherit;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.p-colourstrip .p-cs b {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: #FFFFFF;
  opacity: .95;
  display: block;
  margin: 0;
  line-height: 1;
}
.p-colourstrip .p-cs h4 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.25;
  margin: 0;
  font-weight: 700;
  color: #FFFFFF !important;
  min-height: 3.2em;
  display: block;
}
.p-colourstrip .p-cs p {
  font-size: .95rem;
  line-height: 1.5;
  margin: 0;
  color: #FFFFFF;
  font-weight: 400;
  opacity: .92;
  margin-top: auto;
}
/* ORVIA ecosystem palette — locked v1.2 */
.p-cs.cs-navy  { background: #0B2450; }  /* Oversight   — navy   */
.p-cs.cs-plum  { background: #82418F; }  /* Academy     — purple */
.p-cs.cs-oak   { background: #E74612; }  /* Foundation  — orange */
.p-cs.cs-gold  { background: #EAAA00; color: #0B2450; }  /* Safeguarding — gold, navy text */
.p-cs.cs-gold h4, .p-cs.cs-gold b, .p-cs.cs-gold p { color: #0B2450 !important; }
.p-cs.cs-sage  { background: #2B929D; }  /* Threshold   — teal   */
.p-cs.cs-forest{ background: #2E7D32; }  /* Witness Room — green */

@media (max-width: 860px) {
  .p-colourstrip { grid-template-columns: repeat(2, 1fr); }
  .p-cs.cs-sage  { grid-column: auto; }
  .p-colourstrip .p-cs { min-height: 220px; }
  .p-colourstrip .p-cs h4 { min-height: 0; }
}
@media (max-width: 480px) {
  .p-colourstrip { grid-template-columns: 1fr; }
  .p-cs.cs-sage  { grid-column: auto; }
  .p-colourstrip .p-cs { min-height: 0; padding: 1.4rem 1.2rem 1.5rem; }
}

/* ---------- Colour-strip v2 (card layout with icons) ------ */
.p-eco-section { margin: 1.5rem auto 3rem; }
.p-eco-title {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  margin: .4rem 0 1.8rem;
  color: #0B2450;
  font-weight: 700;
}
.p-ecogrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin: 0;
}
.p-eco {
  border-radius: 20px;
  padding: 1.6rem 1.3rem 1.7rem;
  color: #FFFFFF;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .65rem;
  min-height: 300px;
  box-shadow: 0 18px 40px -22px rgba(11,36,80,.35);
  position: relative;
}
.p-eco-tag {
  font-size: .68rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.92);
  margin-bottom: .3rem;
}
.p-eco-icon {
  width: 68px;
  height: 68px;
  color: rgba(255,255,255,.92);
  display: block;
  margin: .1rem 0 .3rem;
}
.p-eco-icon svg { width: 100%; height: 100%; }
.p-eco-h {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.28rem;
  line-height: 1.25;
  font-weight: 600;
  color: #FFFFFF;
  margin: 0;
}
.p-eco-h::after {
  content: '';
  display: block;
  width: 34px;
  height: 1px;
  background: rgba(255,255,255,.55);
  margin: .7rem auto 0;
}
.p-eco-body {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255,255,255,.92);
  margin: 0;
  margin-top: auto;
  max-width: 22ch;
}

/* Colour tokens per card */
.p-eco--navy   { background: #0B2450; }
.p-eco--teal   { background: #2B929D; }
.p-eco--gold   { background: #EAAA00; color: #0B2450; }
.p-eco--gold .p-eco-tag,
.p-eco--gold .p-eco-h,
.p-eco--gold .p-eco-body { color: #0B2450; }
.p-eco--gold .p-eco-tag { color: rgba(11,36,80,.85); }
.p-eco--gold .p-eco-icon { color: rgba(11,36,80,.9); }
.p-eco--gold .p-eco-h::after { background: rgba(11,36,80,.45); }
.p-eco--purple { background: #82418F; }
.p-eco--orange { background: #E74612; }

@media (max-width: 980px) {
  .p-ecogrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .p-ecogrid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-eco { min-height: 260px; padding: 1.4rem 1.1rem 1.4rem; }
}
@media (max-width: 460px) {
  .p-ecogrid { grid-template-columns: 1fr; }
  .p-eco { min-height: 0; }
}

/* ---------- Armed Forces Covenant band -------------------- */
.p-covenant {
  background: #F4EFE6;
  border: 1px solid rgba(11,36,80,.10);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 1.4rem;
  align-items: center;
  margin: 2rem 0 2.5rem;
}
.p-covenant-badge {
  width: 96px; height: 96px;
  display: flex; align-items: center; justify-content: center;
  color: #0B2450;
  background: #FFFFFF;
  border-radius: 50%;
  border: 2px solid #0B2450;
  flex-shrink: 0;
}
.p-covenant-badge svg { width: 62px; height: 62px; }
.p-covenant h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: #0B2450;
  font-size: 1.3rem;
  margin: 0 0 .35rem;
  line-height: 1.25;
}
.p-covenant p {
  color: #333;
  font-size: .98rem;
  line-height: 1.55;
  margin: 0;
  max-width: 62ch;
}
.p-covenant-mark {
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #0B2450;
  font-weight: 700;
  text-align: right;
  line-height: 1.3;
}
@media (max-width: 720px) {
  .p-covenant {
    grid-template-columns: 72px 1fr;
    padding: 1.3rem 1.2rem;
    gap: 1rem;
  }
  .p-covenant-badge { width: 72px; height: 72px; }
  .p-covenant-badge svg { width: 46px; height: 46px; }
  .p-covenant-mark { grid-column: 1 / -1; text-align: left; margin-top: .3rem; }
}

/* ---------- Editorial break image ------------------------- */
.p-break {
  position: relative;
  margin: 3.5rem 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--p-shadow);
}
.p-break img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.p-break.tall img  { max-height: 640px; object-fit: cover; }
.p-break.wide img  { aspect-ratio: 16 / 9; }

.p-break figcaption {
  position: absolute;
  left: 1.4rem;
  bottom: 1.2rem;
  background: rgba(11,36,80,.82);
  color: #F8F4EA;
  padding: .55rem .9rem;
  border-radius: 8px;
  font-size: .82rem;
  letter-spacing: .04em;
  max-width: min(560px, 82%);
  line-height: 1.35;
  backdrop-filter: blur(6px);
}

/* ---------- Pull-quote (editorial) ------------------------ */
.p-pullquote {
  margin: 3rem auto;
  max-width: 780px;
  padding: 2rem 1.6rem 1.6rem;
  border-left: 4px solid var(--p-gold);
  background: linear-gradient(180deg, var(--p-cream), var(--p-cream-2));
  border-radius: 0 14px 14px 0;
  position: relative;
}
.p-pullquote::before {
  content: "\201C";
  position: absolute;
  top: -.4rem; left: 1rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 4.5rem;
  color: var(--p-gold);
  line-height: 1;
  opacity: .55;
}
.p-pullquote blockquote {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--p-navy-ink);
  font-weight: 500;
}
.p-pullquote cite {
  display: block;
  margin-top: .9rem;
  font-style: normal;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--p-oak);
  font-weight: 600;
}

/* ---------- Side-by-side image + text --------------------- */
.p-split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 3.5rem 0;
}
.p-split.flip { grid-template-columns: 1fr 1.05fr; }
.p-split.flip .p-split-img { order: 2; }
.p-split .p-split-img {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--p-shadow);
}
.p-split .p-split-img img { display:block; width:100%; height:auto; }
.p-split h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 .8rem;
  color: var(--p-navy-ink);
}
.p-split p { line-height: 1.65; margin: 0 0 .8rem; }
.p-split .p-eyebrow {
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--p-oak);
  font-weight: 600;
  margin: 0 0 .7rem;
}
@media (max-width: 820px) {
  .p-split, .p-split.flip { grid-template-columns: 1fr; gap: 1.6rem; }
  .p-split.flip .p-split-img { order: 0; }
}

/* ---------- Oversized numeric moment ---------------------- */
.p-bignum {
  margin: 3rem 0;
  padding: 2.5rem 2rem;
  background: var(--p-navy-ink);
  border-radius: 18px;
  color: #F8F4EA;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
}
.p-bignum .n {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(4rem, 10vw, 7rem);
  line-height: .95;
  color: var(--p-gold);
  font-weight: 600;
  letter-spacing: -.02em;
}
.p-bignum h3 {
  margin: 0 0 .4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.4rem;
  line-height: 1.25;
  color: #F8F4EA;
}
.p-bignum p {
  margin: 0;
  opacity: .88;
  line-height: 1.55;
  max-width: 60ch;
}
@media (max-width: 640px) {
  .p-bignum { grid-template-columns: 1fr; gap: .6rem; padding: 2rem 1.5rem; }
}

/* ---------- Video placeholder (swap tomorrow) ------------- */
.p-video-placeholder {
  margin: 3rem 0;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(1200px 400px at 20% 30%, rgba(234,170,0,.18), transparent 60%),
    linear-gradient(135deg, #0B2450 0%, #05122A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F8F4EA;
  box-shadow: var(--p-shadow);
}
.p-video-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(234,170,0,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.p-video-placeholder .pv-play {
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--p-gold);
  display: grid; place-items: center;
  box-shadow: 0 20px 60px -10px rgba(234,170,0,.55);
  position: relative;
  z-index: 1;
}
.p-video-placeholder .pv-play::after {
  content: "";
  border-left: 22px solid var(--p-navy-ink);
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  margin-left: 8px;
}
.p-video-placeholder .pv-label {
  position: absolute;
  bottom: 1.2rem;
  left: 1.4rem;
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .8;
  z-index: 1;
}
.p-video-placeholder .pv-title {
  position: absolute;
  top: 1.4rem;
  left: 1.4rem;
  right: 1.4rem;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.25;
  max-width: 24ch;
  z-index: 1;
}

/* ---------- Section eyebrow (editorial rhythm) ------------ */
.p-eyebrow-lg {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--p-oak);
  font-weight: 700;
  padding: .3rem 0;
  border-top: 2px solid var(--p-oak);
  margin-bottom: 1rem;
}

/* ---------- Warm tone panel (soft cream block) ------------ */
.p-warmpanel {
  background: var(--p-cream);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  margin: 3rem 0;
  border-left: 6px solid var(--p-oak);
}
.p-warmpanel h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1.6rem;
  line-height: 1.2;
  margin: 0 0 .8rem;
  color: var(--p-navy-ink);
}
.p-warmpanel p { line-height: 1.65; margin: 0 0 .8rem; color: #2a2a2a; }
.p-warmpanel p:last-child { margin-bottom: 0; }

/* =========================================================
   ORVIA — Threshold + Membership page redesign v1.0
   Hero, flowchart, tier cards, comparison, accordion, trust
   ========================================================= */

/* ---- Rich hero (both pages) ---- */
.p-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #F6EFDF 0%, #EFE6D0 100%);
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
}
.p-hero .p-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.p-hero .p-eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--navy);
  background: rgba(234,170,0,.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.p-hero h1 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 18px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.p-hero .p-sub {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #333;
  margin: 0 0 28px;
  max-width: 560px;
}
.p-hero .p-hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.p-hero .p-hero-img {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: 0 30px 70px -30px rgba(11,36,80,.45);
  background: #E4DDCB;
}
.p-hero .p-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.p-hero .p-hero-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11,36,80,.12));
}
.p-hero .p-badge {
  position: absolute; bottom: 20px; left: 20px;
  background: rgba(255,255,255,.94);
  color: var(--navy);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .p-hero { padding: 60px 0 72px; }
  .p-hero .p-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .p-hero .p-hero-img { aspect-ratio: 5/4; }
}

/* ---- Reassurance strip (chips under hero) ---- */
.p-reassure {
  background: var(--navy);
  color: #fff;
  padding: 22px 0;
}
.p-reassure .p-reassure-row {
  display: flex;
  gap: 28px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.p-reassure .p-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  letter-spacing: .04em;
  font-weight: 500;
}
.p-reassure .p-chip svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }

/* ---- Section headers ---- */
.p-sect { padding: 84px 0; }
.p-sect.p-sect-ivory { background: var(--ivory); }
.p-sect.p-sect-cream { background: #F6EFDF; }
.p-sect-head {
  max-width: 780px;
  margin: 0 auto 3rem;
  text-align: center;
}
.p-sect-head .p-eyebrow-sm {
  display: inline-block;
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-hover);
  margin-bottom: 12px;
}
.p-sect-head h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  color: var(--navy);
  margin: 0 0 14px;
  font-weight: 700;
}
.p-sect-head p {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
}

/* ---- Threshold flowchart (6 stages) ---- */
.p-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin-top: 1rem;
  position: relative;
}
.p-flow .p-stage {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  box-shadow: 0 2px 4px rgba(11,36,80,.03);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-flow .p-stage:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -20px rgba(11,36,80,.25); }
.p-flow .p-stage-num {
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--threshold);
}
.p-flow .p-stage-ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(43,146,157,.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--threshold);
}
.p-flow .p-stage-ico svg { width: 24px; height: 24px; }
.p-flow .p-stage h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--navy);
  margin: 4px 0 4px;
  font-weight: 700;
}
.p-flow .p-stage p {
  font-size: .88rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0;
}
.p-flow .p-stage::after {
  content: '';
  position: absolute;
  right: -18px;
  top: 40%;
  width: 18px;
  height: 2px;
  background: var(--line-strong);
}
.p-flow .p-stage:last-child::after { display: none; }
@media (max-width: 1100px) {
  .p-flow { grid-template-columns: repeat(3, 1fr); }
  .p-flow .p-stage:nth-child(3)::after { display: none; }
}
@media (max-width: 700px) {
  .p-flow { grid-template-columns: 1fr 1fr; gap: 14px; }
  .p-flow .p-stage:nth-child(2n)::after { display: none; }
}
@media (max-width: 460px) {
  .p-flow { grid-template-columns: 1fr; }
  .p-flow .p-stage::after { display: none; }
}

/* ---- Benefit / audience cards (icon-led) ---- */
.p-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}
.p-benefit {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.p-benefit:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -20px rgba(11,36,80,.22); border-color: var(--gold); }
.p-benefit .p-ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: rgba(11,36,80,.06);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  margin-bottom: 18px;
}
.p-benefit .p-ico svg { width: 28px; height: 28px; }
.p-benefit.tone-gold .p-ico { background: rgba(234,170,0,.15); color: #C48B00; }
.p-benefit.tone-teal .p-ico { background: rgba(43,146,157,.12); color: var(--threshold); }
.p-benefit.tone-purple .p-ico { background: rgba(130,65,143,.12); color: var(--academy); }
.p-benefit.tone-orange .p-ico { background: rgba(231,70,18,.10); color: var(--foundation); }
.p-benefit h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.18rem;
  color: var(--navy);
  margin: 0 0 8px;
  font-weight: 700;
  line-height: 1.25;
}
.p-benefit p {
  font-size: .95rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}

/* ---- Audience cards ---- */
.p-audience {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-aud {
  background: #fff;
  border-radius: 16px;
  padding: 28px 26px 30px;
  border-top: 4px solid var(--navy);
  box-shadow: 0 6px 22px -12px rgba(11,36,80,.15);
}
.p-aud.aud-teal { border-top-color: var(--threshold); }
.p-aud.aud-gold { border-top-color: var(--gold); }
.p-aud.aud-purple { border-top-color: var(--academy); }
.p-aud h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.32rem;
  color: var(--navy);
  margin: 0 0 12px;
  font-weight: 700;
}
.p-aud p { font-size: .95rem; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.p-aud p:last-of-type { margin-bottom: 0; }
@media (max-width: 820px) { .p-audience { grid-template-columns: 1fr; } }

/* ---- Video slot ---- */
.p-video {
  background: var(--navy);
  border-radius: 20px;
  padding: 0;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  max-width: 960px;
  margin: 0 auto;
  box-shadow: 0 30px 60px -25px rgba(11,36,80,.5);
}
.p-video-inner {
  text-align: center; padding: 40px;
  background: linear-gradient(135deg, rgba(11,36,80,.65), rgba(43,146,157,.5));
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
}
.p-video .p-play {
  width: 82px; height: 82px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .25s ease;
}
.p-video .p-play:hover { transform: scale(1.06); }
.p-video .p-play svg { width: 34px; height: 34px; margin-left: 4px; }
.p-video h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  margin: 0;
  color: #fff;
  font-weight: 700;
}
.p-video p { margin: 0; opacity: .88; font-size: .95rem; max-width: 460px; }

/* ---- Accordion ---- */
.p-accordion { max-width: 820px; margin: 0 auto; }
.p-acc-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease;
}
.p-acc-item[open] { box-shadow: 0 16px 40px -20px rgba(11,36,80,.2); border-color: var(--gold); }
.p-acc-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
}
.p-acc-item summary::-webkit-details-marker { display: none; }
.p-acc-item summary::after {
  content: '+';
  font-family: Arial, sans-serif;
  font-size: 1.6rem;
  color: var(--gold-hover);
  font-weight: 400;
  transition: transform .2s ease;
}
.p-acc-item[open] summary::after { content: '−'; transform: rotate(0); }
.p-acc-item .p-acc-body {
  padding: 4px 24px 24px;
  font-size: .98rem;
  line-height: 1.65;
  color: var(--ink-2);
}
.p-acc-item .p-acc-body p { margin: 0 0 12px; }
.p-acc-item .p-acc-body p:last-child { margin-bottom: 0; }

/* ---- Tier cards (Membership) ---- */
.p-tiers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 1rem;
}
.p-tier {
  background: #fff;
  border-radius: 20px;
  padding: 36px 28px 32px;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  box-shadow: 0 4px 10px rgba(11,36,80,.03);
}
.p-tier:hover { transform: translateY(-6px); box-shadow: 0 24px 60px -25px rgba(11,36,80,.3); }
.p-tier.p-tier-featured {
  border: 2px solid var(--gold);
  box-shadow: 0 20px 50px -22px rgba(234,170,0,.55);
  transform: translateY(-6px);
}
.p-tier.p-tier-featured::before {
  content: 'Most fitted';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
}
.p-tier .p-tier-name {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin: 0 0 6px;
  font-weight: 700;
}
.p-tier .p-tier-tag {
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-hover);
  margin-bottom: 18px;
}
.p-tier .p-tier-price {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 2.1rem;
  color: var(--navy);
  font-weight: 700;
  margin: 0 0 4px;
  line-height: 1;
}
.p-tier .p-tier-price small { font-size: .95rem; color: var(--ink-muted); font-weight: 400; }
.p-tier .p-tier-desc {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 12px 0 20px;
}
.p-tier ul.p-tier-feats {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  flex-grow: 1;
}
.p-tier ul.p-tier-feats li {
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink-2);
  padding-left: 26px;
  position: relative;
  margin-bottom: 12px;
}
.p-tier ul.p-tier-feats li::before {
  content: '';
  position: absolute; left: 0; top: 5px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(43,146,157,.15);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path fill='%232B929D' d='M7.5 13.5L4 10l-1.4 1.4L7.5 16.3l10-10L16.1 5z'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}
.p-tier .p-tier-cta { margin-top: auto; text-align: center; }
.p-tier .p-tier-cta .btn { width: 100%; justify-content: center; text-align: center; }
@media (max-width: 1100px) { .p-tiers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .p-tiers { grid-template-columns: 1fr; } .p-tier.p-tier-featured { transform: none; } }

/* ---- Comparison table ---- */
.p-compare-wrap {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 30px -18px rgba(11,36,80,.15);
}
.p-compare {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: .95rem;
}
.p-compare thead th {
  background: var(--navy);
  color: #fff;
  padding: 20px 18px;
  text-align: left;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  border-bottom: 3px solid var(--gold);
}
.p-compare thead th:first-child { border-top-left-radius: 20px; background: var(--navy-2); }
.p-compare thead th:last-child { border-top-right-radius: 20px; }
.p-compare thead th.p-featured { background: linear-gradient(180deg, var(--navy), #163778); position: relative; }
.p-compare thead th.p-featured::before {
  content: 'Recommended';
  position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy);
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font); font-size: .62rem;
  letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
}
.p-compare tbody td, .p-compare tbody th {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.p-compare tbody th {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
  background: var(--ivory);
  font-family: var(--font);
  width: 32%;
}
.p-compare tbody tr:last-child td, .p-compare tbody tr:last-child th { border-bottom: none; }
.p-compare tbody td.p-check { text-align: center; }
.p-compare tbody td.p-check::before { content: '✓'; color: var(--threshold); font-size: 1.2rem; font-weight: 700; }
.p-compare tbody td.p-dash { text-align: center; color: var(--ink-faint); }
.p-compare tbody td.p-dash::before { content: '—'; }
.p-compare tbody td.p-add { text-align: center; font-size: .8rem; color: var(--gold-hover); font-weight: 600; }
.p-compare tbody tr:hover td { background: rgba(234,170,0,.04); }

/* ---- Trust / proof strip ---- */
.p-trust {
  background: var(--navy);
  padding: 72px 0;
  color: #fff;
}
.p-trust .p-sect-head p { color: rgba(255,255,255,.78); }
.p-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  margin-top: 40px;
}
.p-trust .p-tstat {
  padding: 8px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.p-trust .p-tstat-num {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 3rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
  display: block;
}
.p-trust .p-tstat-lbl {
  font-size: .92rem;
  color: rgba(255,255,255,.85);
  line-height: 1.5;
  letter-spacing: .02em;
  display: block;
  max-width: 200px;
}
@media (max-width: 780px) { .p-trust-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ---- CTA banner (bottom-of-page) ---- */
.p-cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #163778 100%);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.p-cta-band h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: #fff;
  margin: 0 0 14px;
  font-weight: 700;
}
.p-cta-band p {
  color: rgba(255,255,255,.85);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 28px;
  line-height: 1.55;
}
.p-cta-band .p-hero-ctas { justify-content: center; }

/* ---- Subscription lockup hero ---- */
.p-sub-lockup {
  display: inline-block;
  margin-bottom: 18px;
  background: #fff;
  padding: 16px 22px;
  border-radius: 16px;
  box-shadow: 0 10px 26px -18px rgba(11,36,80,.35);
}
.p-sub-lockup img { height: 68px; width: auto; display: block; }

/* ---- Report gallery (Membership deliverables) ---- */
.p-report-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-report-gallery figure {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease;
}
.p-report-gallery figure:hover { transform: translateY(-4px); box-shadow: 0 20px 50px -25px rgba(11,36,80,.3); }
.p-report-gallery img { width: 100%; height: 240px; object-fit: cover; display: block; }
.p-report-gallery figcaption {
  padding: 16px 20px;
  font-size: .92rem;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  background: #fff;
}
@media (max-width: 820px) { .p-report-gallery { grid-template-columns: 1fr; } .p-report-gallery img { height: 220px; } }

/* ---- Sector chips ---- */
.p-sector-row {
  display: flex; flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 1.5rem;
}
.p-sector-row .p-sc {
  background: #fff;
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: .9rem;
  color: var(--navy);
  font-weight: 500;
  transition: border-color .2s ease, background .2s ease;
}
.p-sector-row .p-sc:hover { border-color: var(--gold); background: rgba(234,170,0,.08); }

/* ============================================================
   ORVIA ACADEMY — page-specific components (added 4 Aug 2026)
   ============================================================ */

/* ---- Academy hero variant with real classroom photo ---- */
.p-hero.hero-academy {
  background: linear-gradient(180deg, #F6F1E7 0%, #EBE5D6 100%);
}
.p-hero.hero-academy .p-hero-media img {
  aspect-ratio: 4 / 3;
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(11,36,80,.28);
}

/* ---- Educate. Empower. Elevate. tri-word band ---- */
.p-eee {
  background: var(--navy);
  color: #fff;
  padding: 40px 0;
  text-align: center;
}
.p-eee-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 40px;
  flex-wrap: wrap;
}
.p-eee-word {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
}
.p-eee-word.w-teal { color: var(--teal); }
.p-eee-word.w-gold { color: var(--gold); }
.p-eee-word.w-purple { color: #B98CD1; }
.p-eee-word .dot { color: rgba(255,255,255,.35); margin: 0 4px; }
@media (max-width: 640px) { .p-eee-row { gap: 20px; } .p-eee-word { font-size: 1.35rem; } }

/* ---- Academy pathway showcase (single detailed poster) ---- */
.p-pathway {
  background: var(--ivory);
  padding: 96px 0;
}
.p-pathway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}
.p-pathway-copy h3 {
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1.4rem;
  color: var(--navy);
  margin: 0 0 12px;
}
.p-pathway-copy p { color: var(--ink-2); line-height: 1.7; }
.p-pathway-copy ul { list-style: none; padding: 0; margin: 24px 0 0; }
.p-pathway-copy li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid rgba(11,36,80,.08);
  color: var(--ink-2);
}
.p-pathway-copy li:last-child { border-bottom: 0; }
.p-pathway-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border: 2px solid var(--teal);
  border-radius: 50%;
}
.p-pathway-poster {
  background: #fff;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 25px 60px -20px rgba(11,36,80,.25);
}
.p-pathway-poster img { width: 100%; height: auto; display: block; border-radius: 8px; }
@media (max-width: 900px) {
  .p-pathway-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---- Level collateral gallery (per programme) ---- */
.p-level-showcase {
  background: #fff;
  padding: 96px 0;
}
.p-level-showcase.bg-ivory { background: var(--ivory); }
.p-level-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.p-level-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 72px;
  padding: 0 16px;
  background: var(--navy);
  color: #fff;
  font-family: 'Source Serif 4', Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 12px;
  letter-spacing: .08em;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}
.p-level-badge.b-teal { background: var(--teal); }
.p-level-badge.b-gold { background: var(--gold); color: var(--navy); }
.p-level-badge.b-purple { background: #82418F; }
.p-level-title h2 {
  font-family: 'Source Serif 4', Georgia, serif;
  color: var(--navy);
  margin: 0 0 4px;
  font-size: 2rem;
}
.p-level-title .p-level-sub {
  color: var(--ink-2);
  font-size: 1rem;
  margin: 0;
}
.p-level-body {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}
.p-level-copy p { color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.p-level-copy ul { list-style: none; padding: 0; margin: 20px 0 0; }
.p-level-copy li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--ink-2);
}
.p-level-copy li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.p-level-showcase-img {
  background: #fff;
  border: 1px solid rgba(11,36,80,.08);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 20px 50px -20px rgba(11,36,80,.18);
}
.p-level-showcase.bg-ivory .p-level-showcase-img { background: #fff; }
.p-level-showcase-img img { width: 100%; height: auto; display: block; border-radius: 8px; }
.p-level-caption {
  display: block;
  margin-top: 16px;
  font-size: .85rem;
  color: var(--ink-3);
  text-align: center;
  font-style: italic;
}
@media (max-width: 900px) {
  .p-level-body { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- Photo band (edge-to-edge classroom image) ---- */
.p-photoband {
  position: relative;
  height: 520px;
  overflow: hidden;
}
.p-photoband img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-photoband-caption {
  position: absolute;
  bottom: 32px;
  left: 32px;
  background: rgba(11,36,80,.9);
  color: #fff;
  padding: 16px 24px;
  border-radius: 8px;
  max-width: 480px;
  font-size: .95rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .p-photoband { height: 340px; }
  .p-photoband-caption { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

/* ---- Development-state notice band ---- */
.p-devstate {
  background: linear-gradient(90deg, #FCF3D9 0%, #F6E9C0 100%);
  border-left: 4px solid var(--gold);
  padding: 24px 32px;
  border-radius: 4px;
  margin: 40px 0;
}
.p-devstate strong { color: var(--navy); font-family: 'Source Serif 4', Georgia, serif; font-size: 1.1rem; display: block; margin-bottom: 8px; }
.p-devstate p { color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---- Academy figure caption ---- */
.p-figcap {
  display: block;
  text-align: center;
  color: var(--ink-3);
  font-size: .82rem;
  margin-top: 12px;
  font-style: italic;
  letter-spacing: .02em;
}
