@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');
:root{--ink:#101712;--paper:#f4f1e8;--muted:rgba(16,23,18,.66);--chapter:#4d82b8;--chapter-dark:#183b5c;--chapter-soft:#dbe9f6}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:"DM Sans",sans-serif;overflow-x:hidden}a{color:inherit}.chapter-nav{position:fixed;top:0;left:0;right:0;z-index:100;display:flex;justify-content:space-between;align-items:center;padding:22px 5vw;background:rgba(244,241,232,.82);backdrop-filter:blur(16px);border-bottom:1px solid rgba(16,23,18,.08)}.chapter-brand,.back-link{text-decoration:none;font-family:"Space Grotesk",sans-serif;font-weight:700}.chapter-brand{font-size:.82rem;letter-spacing:.05em}.chapter-brand span{opacity:.5}.back-link{display:inline-flex;gap:10px;padding:10px 16px;border:1px solid rgba(16,23,18,.18);border-radius:999px;font-size:.72rem;transition:.3s}.back-link:hover{background:var(--ink);color:#fff;transform:translateX(-4px)}
.chapter-hero{min-height:92vh;padding:150px 7vw 80px;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:6vw;position:relative;overflow:hidden}.chapter-hero:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:var(--chapter-soft);right:-180px;top:-180px}.chapter-kicker,.section-label{font-family:"Space Grotesk",sans-serif;font-size:.72rem;font-weight:700;letter-spacing:.13em;text-transform:uppercase;opacity:.66}.chapter-hero h1{margin:18px 0 24px;font-family:"Space Grotesk",sans-serif;font-size:clamp(3.2rem,7vw,7.5rem);line-height:.86;letter-spacing:-.065em;position:relative}.chapter-hero p{max-width:650px;color:var(--muted);font-size:1.08rem;line-height:1.75;position:relative}.hero-orb{aspect-ratio:1;border-radius:50%;background:radial-gradient(circle at 32% 25%,rgba(255,255,255,.7),transparent 20%),radial-gradient(circle at 55% 55%,var(--chapter),var(--chapter-dark));box-shadow:0 35px 90px rgba(16,23,18,.18);position:relative}.hero-orb:after{content:attr(data-label);position:absolute;left:9%;right:9%;bottom:9%;padding:12px 16px;border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(10px);font-family:"Space Grotesk";font-size:.68rem;font-weight:700;letter-spacing:.1em;text-align:center}
.chapter-section{padding:120px 7vw}.section-inner{max-width:1250px;margin:auto}.vision-grid,.coordinator-grid{display:grid;grid-template-columns:.8fr 1.2fr;gap:8vw;align-items:start}.vision-grid h2,.coordinator-copy h2,.cabinet-heading h2{margin:14px 0;font-family:"Space Grotesk";font-size:clamp(2.7rem,5vw,5.4rem);line-height:.92;letter-spacing:-.06em}.vision-copy{font-size:1.05rem;line-height:1.8;color:var(--muted)}.vision-quote{margin:0 0 32px;color:var(--ink);font-family:"Space Grotesk";font-size:clamp(1.7rem,3vw,3rem);line-height:1.05;letter-spacing:-.04em}
.coordinator-section{background:#101712;color:#fff}.coordinator-grid{grid-template-columns:.8fr 1.2fr;align-items:center}.coordinator-photo{aspect-ratio:4/5;border-radius:28px;background:linear-gradient(145deg,var(--chapter),var(--chapter-dark));display:grid;place-items:center;font-family:"Space Grotesk";font-size:5rem;font-weight:700;color:rgba(255,255,255,.88)}.coordinator-name{display:inline-block;padding:9px 14px;border-radius:999px;background:var(--chapter);color:#fff;font-family:"Space Grotesk";font-size:.75rem;font-weight:700;letter-spacing:.06em}.coordinator-message{color:rgba(255,255,255,.7);line-height:1.85;max-width:720px}
.cabinet-heading{display:flex;justify-content:space-between;gap:40px;align-items:end;margin-bottom:45px}.cabinet-heading p{max-width:500px;margin:0;color:var(--muted);line-height:1.7}.cabinet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.cabinet-card{min-height:320px;padding:25px;border-radius:24px;display:flex;flex-direction:column;justify-content:flex-end;transition:.4s cubic-bezier(.22,1,.36,1)}.cabinet-card:hover{transform:translateY(-7px);box-shadow:0 22px 50px rgba(16,23,18,.15)}.cabinet-card small{font-family:"Space Grotesk";font-weight:700;font-size:.68rem;letter-spacing:.1em;opacity:.7}.cabinet-card h3{margin:12px 0 5px;font-family:"Space Grotesk";font-size:1.5rem;letter-spacing:-.04em}.cabinet-card p{margin:0 0 20px;opacity:.7;font-size:.85rem}.portfolio-button{display:flex;align-items:center;justify-content:space-between;width:100%;padding:11px 13px;border:0;border-radius:999px;background:rgba(255,255,255,.78);color:var(--ink);cursor:pointer;font-family:"Space Grotesk";font-weight:700;font-size:.72rem;transition:.3s}.portfolio-button:hover{background:#101712;color:#fff}.portfolio-button b{transition:.35s}.portfolio-button:hover b{transform:translate(4px,-4px)}.cabinet-1{background:#8fbf45}.cabinet-2{background:#4d82b8;color:#fff}.cabinet-3{background:#39a89a}.cabinet-4{background:#c9a7df}.cabinet-5{background:#e59b72}.cabinet-6{background:#8fb6d8}.cabinet-7{background:#d98aa5}.cabinet-8{background:#86bd8a}
.chapter-footer{padding:55px 7vw;background:#101712;color:#fff;display:flex;justify-content:space-between;gap:30px;flex-wrap:wrap}.chapter-footer a{text-decoration:none}.portfolio-modal{position:fixed;inset:0;z-index:300;display:none;place-items:center;padding:30px;background:rgba(5,8,6,.9);backdrop-filter:blur(14px)}.portfolio-modal.open{display:grid}.portfolio-window{width:min(900px,95vw);max-height:92vh;position:relative;background:#f4f1e8;border-radius:26px;overflow:auto}.portfolio-close{position:absolute;right:18px;top:18px;width:44px;height:44px;border:0;border-radius:50%;background:#101712;color:#fff;font-size:1.5rem;cursor:pointer;z-index:2}.poster-placeholder{min-height:600px;padding:70px;display:grid;place-items:center;text-align:center;font-family:"Space Grotesk";font-size:clamp(2rem,5vw,4rem);line-height:.95;background:linear-gradient(145deg,var(--chapter-soft),#fff)}#posterRole{font-size:.7rem;letter-spacing:.12em;opacity:.6}
@media(max-width:950px){.chapter-hero,.vision-grid,.coordinator-grid{grid-template-columns:1fr}.hero-orb{max-width:520px;width:100%;margin:auto}.cabinet-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.chapter-nav{padding:16px 5vw}.chapter-hero{padding:125px 6vw 70px}.chapter-section{padding:85px 6vw}.chapter-hero h1{font-size:3.3rem}.cabinet-grid{grid-template-columns:1fr}.cabinet-card{min-height:280px}.poster-placeholder{min-height:500px;padding:40px 25px}}


/* =========================================================
   CHAPTER PAGE VISUAL UPGRADE
   ========================================================= */

body{
  background:
    radial-gradient(circle at 8% 15%,rgba(255,255,255,.9),transparent 28%),
    radial-gradient(circle at 90% 45%,var(--chapter-soft),transparent 25%),
    var(--paper);
}

.chapter-page{
  isolation:isolate;
}

.chapter-hero{
  min-height:100vh;
  background:
    linear-gradient(135deg,rgba(255,255,255,.42),transparent 55%),
    var(--paper);
}

.chapter-hero:after{
  content:"";
  position:absolute;
  width:180px;
  height:180px;
  right:17%;
  bottom:9%;
  border:1px solid var(--chapter);
  border-radius:50%;
  opacity:.12;
  box-shadow:
    0 0 0 28px rgba(255,255,255,.12),
    0 0 0 58px rgba(255,255,255,.08);
  pointer-events:none;
}

.chapter-kicker{
  color:var(--chapter-dark);
  opacity:.85;
}

.chapter-hero h1{
  text-wrap:balance;
}

.chapter-hero h1:after{
  content:"";
  display:block;
  width:76px;
  height:5px;
  margin-top:30px;
  border-radius:999px;
  background:var(--chapter);
}

.hero-orb{
  transform:rotate(-5deg);
  transition:transform .8s cubic-bezier(.22,1,.36,1),box-shadow .8s ease;
}
.hero-orb:hover{
  transform:rotate(0deg) scale(1.025);
  box-shadow:0 45px 110px rgba(16,23,18,.22);
}

.chapter-section{
  position:relative;
}

.chapter-section:nth-of-type(2){
  background:
    linear-gradient(180deg,rgba(255,255,255,.55),rgba(255,255,255,.18));
}

.chapter-section:nth-of-type(2):before{
  content:"";
  position:absolute;
  left:7vw;
  right:7vw;
  top:0;
  height:1px;
  background:linear-gradient(90deg,transparent,var(--chapter),transparent);
  opacity:.35;
}

.vision-grid{
  position:relative;
}

.vision-grid:after{
  content:"";
  position:absolute;
  right:0;
  top:-55px;
  width:130px;
  height:130px;
  border-radius:50%;
  background:var(--chapter-soft);
  opacity:.7;
  z-index:-1;
}

.vision-grid h2 span,
.cabinet-heading h2 span{
  color:var(--chapter);
}

.vision-copy{
  position:relative;
  padding:34px 38px;
  border-left:4px solid var(--chapter);
  background:rgba(255,255,255,.48);
  border-radius:0 24px 24px 0;
  box-shadow:0 18px 45px rgba(16,23,18,.055);
}

.vision-quote{
  position:relative;
}

.vision-quote:before{
  content:"“";
  position:absolute;
  left:-24px;
  top:-30px;
  font-size:5rem;
  line-height:1;
  color:var(--chapter);
  opacity:.22;
}

.coordinator-section{
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%,var(--chapter-dark),transparent 25%),
    #101712;
}

.coordinator-section:before,
.coordinator-section:after{
  content:"";
  position:absolute;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.08);
  pointer-events:none;
}
.coordinator-section:before{
  width:500px;height:500px;
  right:-260px;top:-180px;
}
.coordinator-section:after{
  width:280px;height:280px;
  left:-160px;bottom:-150px;
}

.coordinator-photo{
  position:relative;
  box-shadow:0 28px 80px rgba(0,0,0,.28);
  border:1px solid rgba(255,255,255,.1);
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.coordinator-photo:hover{
  transform:translateY(-8px) rotate(-1deg);
}

.coordinator-copy{
  position:relative;
  z-index:1;
}

.coordinator-copy h2{
  color:#fff;
}

.coordinator-copy h2:after{
  content:"";
  display:block;
  width:70px;
  height:4px;
  margin-top:28px;
  border-radius:999px;
  background:var(--chapter);
}

.coordinator-name{
  box-shadow:0 8px 24px rgba(0,0,0,.2);
}

.cabinet-heading{
  position:relative;
}

.cabinet-heading:after{
  content:"";
  position:absolute;
  width:90px;height:90px;
  right:0;top:0;
  border-radius:50%;
  background:var(--chapter-soft);
  opacity:.55;
  z-index:-1;
}

.cabinet-card{
  border:1px solid rgba(16,23,18,.08);
  box-shadow:0 12px 30px rgba(16,23,18,.06);
  position:relative;
  overflow:hidden;
}

.cabinet-card:before{
  content:"";
  position:absolute;
  width:130px;height:130px;
  border-radius:50%;
  right:-55px;top:-55px;
  background:rgba(255,255,255,.18);
  transition:transform .6s cubic-bezier(.22,1,.36,1);
}
.cabinet-card:hover:before{
  transform:scale(1.45);
}

.cabinet-card small,
.cabinet-card h3,
.cabinet-card p,
.cabinet-card .portfolio-button{
  position:relative;
  z-index:1;
}

.portfolio-button{
  box-shadow:0 5px 18px rgba(16,23,18,.08);
}

.chapter-footer{
  position:relative;
  overflow:hidden;
}
.chapter-footer:before{
  content:"";
  position:absolute;
  width:300px;height:300px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:50%;
  right:-100px;top:-160px;
}
.chapter-footer a{
  transition:transform .35s cubic-bezier(.22,1,.36,1),color .3s ease;
}
.chapter-footer a:hover{
  transform:translateX(-5px);
  color:var(--chapter);
}

/* Gentle section reveal */
.chapter-hero > div,
.vision-grid > *,
.coordinator-grid > *,
.cabinet-heading > *,
.cabinet-card{
  animation:chapterReveal .85s both;
}
.chapter-hero > div:nth-child(2){animation-delay:.12s}
.vision-grid > :nth-child(2){animation-delay:.12s}
.coordinator-grid > :nth-child(2){animation-delay:.12s}
.cabinet-card:nth-child(2){animation-delay:.04s}
.cabinet-card:nth-child(3){animation-delay:.08s}
.cabinet-card:nth-child(4){animation-delay:.12s}
.cabinet-card:nth-child(5){animation-delay:.16s}
.cabinet-card:nth-child(6){animation-delay:.20s}
.cabinet-card:nth-child(7){animation-delay:.24s}
.cabinet-card:nth-child(8){animation-delay:.28s}

@keyframes chapterReveal{
  from{opacity:0;transform:translateY(18px)}
  to{opacity:1;transform:translateY(0)}
}

/* Rustling leaves cursor */
.leaf-cursor{
  position:fixed;
  z-index:1000;
  pointer-events:none;
  width:14px;
  height:9px;
  border-radius:100% 0 100% 0;
  transform-origin:center;
  opacity:.88;
  animation:chapterLeafRustle .95s cubic-bezier(.22,1,.36,1) forwards;
  box-shadow:0 2px 5px rgba(0,0,0,.12);
}
@keyframes chapterLeafRustle{
  0%{
    opacity:0;
    transform:translate(0,0) rotate(0deg) scale(.5);
  }
  18%{
    opacity:.9;
    transform:translate(var(--leaf-x),var(--leaf-y))
      rotate(calc(var(--leaf-rotation) * .35)) scale(1);
  }
  100%{
    opacity:0;
    transform:translate(var(--leaf-x-end),var(--leaf-y-end))
      rotate(var(--leaf-rotation)) scale(.35);
  }
}

@media(max-width:600px){
  .vision-copy{padding:28px 25px 28px 30px}
  .chapter-hero:after{display:none}
  .cabinet-heading:after{width:60px;height:60px}
}

/* =========================================================
   FULL-BLEED CHAPTER HERO VIDEO
   ========================================================= */

.chapter-hero.chapter-hero-video {
  min-height: 92vh;
  height: 92vh;
  padding: 0 7vw;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #101712;
}

.chapter-hero.chapter-hero-video::before,
.chapter-hero.chapter-hero-video::after {
  display: none;
}

.chapter-hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.chapter-hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.035);
  filter: saturate(.88) contrast(.94);
}

.chapter-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg,
      rgba(7,18,13,.86) 0%,
      rgba(7,18,13,.62) 32%,
      rgba(7,18,13,.20) 66%,
      rgba(7,18,13,.34) 100%),
    linear-gradient(0deg,
      rgba(7,18,13,.52),
      transparent 42%,
      rgba(7,18,13,.22));
}

.chapter-hero-shade::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--chapter);
  opacity: .12;
  mix-blend-mode: multiply;
}

.chapter-hero-content {
  width: min(850px, 80vw);
  position: relative;
  z-index: 2;
  color: #fff;
  padding-top: 60px;
}

.chapter-hero-content .chapter-kicker {
  color: rgba(255,255,255,.82);
  opacity: 1;
}

.chapter-hero-content h1 {
  max-width: 900px;
  margin: 18px 0 25px;
  color: #fff;
  text-shadow: 0 12px 40px rgba(0,0,0,.28);
}

.chapter-hero-content h1::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin-top: 30px;
  border-radius: 999px;
  background: var(--chapter);
  box-shadow: 0 0 22px color-mix(in srgb, var(--chapter) 55%, transparent);
}

.chapter-hero-content p {
  max-width: 680px;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.75;
  text-shadow: 0 4px 18px rgba(0,0,0,.25);
}

.chapter-video-label {
  position: absolute;
  z-index: 3;
  right: 7vw;
  bottom: 58px;
  padding: 14px 22px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(14px);
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .11em;
  box-shadow: 0 15px 35px rgba(0,0,0,.14);
}

.chapter-video-status {
  position: absolute;
  z-index: 3;
  left: 7vw;
  bottom: 58px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.72);
  font-family: "Space Grotesk", sans-serif;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
}

.chapter-video-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--chapter);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--chapter) 18%, transparent);
  animation: chapterVideoPulse 2s ease-in-out infinite;
}

@keyframes chapterVideoPulse {
  0%,100% { opacity: .55; transform: scale(.9); }
  50% { opacity: 1; transform: scale(1.15); }
}

@media (max-width: 950px) {
  .chapter-hero.chapter-hero-video {
    min-height: 88vh;
    height: 88vh;
    padding: 0 6vw;
  }

  .chapter-hero-content {
    width: min(760px, 88vw);
  }

  .chapter-video-label {
    right: 6vw;
    bottom: 38px;
  }

  .chapter-video-status {
    left: 6vw;
    bottom: 38px;
  }
}

@media (max-width: 600px) {
  .chapter-hero.chapter-hero-video {
    min-height: 82vh;
    height: 82vh;
    padding: 0 6vw;
  }

  .chapter-hero-media video {
    object-position: 58% center;
    transform: scale(1.08);
  }

  .chapter-hero-shade {
    background:
      linear-gradient(90deg,
        rgba(7,18,13,.84),
        rgba(7,18,13,.38)),
      linear-gradient(0deg,
        rgba(7,18,13,.65),
        transparent 50%);
  }

  .chapter-hero-content {
    width: 100%;
    padding-top: 45px;
  }

  .chapter-hero-content h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }

  .chapter-hero-content p {
    font-size: .95rem;
    line-height: 1.65;
  }

  .chapter-video-label {
    right: 6vw;
    bottom: 27px;
    padding: 11px 15px;
    font-size: .55rem;
    max-width: 62vw;
    text-align: center;
  }

  .chapter-video-status {
    left: 6vw;
    bottom: 28px;
    font-size: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chapter-video-status span {
    animation: none;
  }
}
/* ==========================================================
   ENSC STUDENT CABINET
   MAIN WEBSITE STUDENT EXECUTIVE BOARD STYLE
   ========================================================== */

.chapter-cabinet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}


/* ==========================================================
   CABINET CARD
   ========================================================== */

.chapter-cabinet-grid .board-card {
  position: relative;

  min-width: 0;
  min-height: 240px;

  padding: 26px;

  border-radius: 23px;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  cursor: pointer;

  opacity: 1;
  transform: none;

  box-shadow: none;

  transition:
    transform .35s ease,
    box-shadow .35s ease;
}


/* Main board style hover */

.chapter-cabinet-grid .board-card:hover {
  transform: translateY(-7px);

  box-shadow:
    0 18px 35px rgba(16,23,18,.12);
}


/* ==========================================================
   CARD COLOURS
   ENSC = GREEN FAMILY
   ========================================================== */

.chapter-cabinet-grid .board-card.green {
  background: #8fbf45;
  color: #101712;
}

.chapter-cabinet-grid .board-card.purple {
  background: #a08bc7;
  color: #101712;
}

.chapter-cabinet-grid .board-card.pink {
  background: #e78bae;
  color: #101712;
}

.chapter-cabinet-grid .board-card.blue {
  background: #78a9c7;
  color: #101712;
}


/* ==========================================================
   ROLE
   ========================================================== */

.chapter-cabinet-grid .board-card small {
  display: block;

  margin: 0;

  font-size: .61rem;

  line-height: 1.35;

  letter-spacing: .15em;

  font-weight: 700;

  color: #101712;
}


/* ==========================================================
   STUDENT NAME
   ========================================================== */

.chapter-cabinet-grid .board-card h3 {
  margin-top: 45px;
  margin-bottom: 0;

  font-family:
    "Space Grotesk",
    sans-serif;

  font-size: 1.4rem;

  font-weight: 700;

  line-height: 1.05;

  letter-spacing: -.02em;

  color: #101712;
}


/* ==========================================================
   CABINET LABEL
   ========================================================== */

.chapter-cabinet-grid .board-card p {
  margin-top: 6px;
  margin-bottom: 0;

  font-size: .68rem;

  line-height: 1.4;

  color: #535b56;
}


/* ==========================================================
   PROFILE BUTTON
   Same structure as main Student Executive Board
   ========================================================== */

.chapter-cabinet-grid .profile-card-cta {

  position: absolute;

  left: 26px;
  bottom: 22px;

  width: 132px;
  height: 38px;

  padding: 0 10px;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 8px;

  border: 1px solid #101712;

  border-radius: 999px;

  background: #101712;

  color: #fff;

  font-family: inherit;

  font-size: .62rem;

  font-weight: 700;

  line-height: 1;

  cursor: pointer;

  z-index: 5;

  transition:
    transform .3s ease,
    background .4s ease,
    color .35s ease,
    border-color .35s ease,
    box-shadow .4s ease;
}


/* Button text */

.chapter-cabinet-grid .profile-card-cta span {
  display: inline-block;

  margin: 0;

  line-height: 1;
}


/* Circular arrow */

.chapter-cabinet-grid .profile-card-cta b {

  width: 23px;
  height: 23px;

  margin: 0;

  display: inline-flex;

  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border-radius: 50%;

  background: #8fbf45;

  color: #101712;

  font-size: .8rem;

  line-height: 1;

  transition:
    transform .35s ease,
    background .35s ease,
    color .35s ease;
}


/* ==========================================================
   PROFILE BUTTON HOVER
   ========================================================== */

.chapter-cabinet-grid .profile-card-cta:hover {

  transform: translateY(-3px);

  background:
    linear-gradient(
      110deg,
      #8fbf45 0%,
      #dfff43 35%,
      #ff77ad 100%
    );

  border-color: transparent;

  color: #101712;

  box-shadow:
    0 10px 25px rgba(255,119,173,.20),
    0 4px 12px rgba(117,169,0,.14);
}


/* Arrow movement */

.chapter-cabinet-grid .profile-card-cta:hover b {

  transform:
    translate(2px,-2px)
    rotate(45deg);
}


/* ==========================================================
   CARD FOCUS
   Keyboard accessibility
   ========================================================== */

.chapter-cabinet-grid .board-card:focus-visible {

  outline:
    3px solid #101712;

  outline-offset:
    4px;
}


/* ==========================================================
   MOBILE / TABLET
   ========================================================== */

@media (max-width: 1000px) {

  .chapter-cabinet-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


@media (max-width: 600px) {

  .chapter-cabinet-grid {
    grid-template-columns:
      1fr;
  }

  .chapter-cabinet-grid .board-card {

    min-height: 240px;

    padding: 26px;
  }

}


/* ==========================================================
   SHARED CHAPTER CABINET COLOUR VARIANTS
   ENSC = green, HWRM = blue, THM = teal
   ========================================================== */

/* HWRM */
.chapter-page-hwrm .chapter-cabinet-grid .board-card.blue,
body.hwrm-page .chapter-cabinet-grid .board-card.blue {
  background:#4d82b8;
  color:#fff;
}

.chapter-page-hwrm .chapter-cabinet-grid .board-card.blue h3,
.chapter-page-hwrm .chapter-cabinet-grid .board-card.blue small,
body.hwrm-page .chapter-cabinet-grid .board-card.blue h3,
body.hwrm-page .chapter-cabinet-grid .board-card.blue small {
  color:#fff;
}

.chapter-page-hwrm .chapter-cabinet-grid .profile-card-cta b,
body.hwrm-page .chapter-cabinet-grid .profile-card-cta b {
  background:#bfe2ff;
}

/* THM */
.chapter-page-thm .chapter-cabinet-grid .board-card.teal,
body.thm-page .chapter-cabinet-grid .board-card.teal {
  background:#39a89a;
  color:#101712;
}

.chapter-page-thm .chapter-cabinet-grid .profile-card-cta b,
body.thm-page .chapter-cabinet-grid .profile-card-cta b {
  background:#bcece6;
}

/* If the chapter HTML uses the chapter root variable rather than a body class,
   these generic classes can also be used directly. */
.chapter-cabinet-grid .board-card.teal {
  background:#39a89a;
  color:#101712;
}

.chapter-cabinet-grid .board-card.teal .profile-card-cta b {
  background:#bcece6;
}

.chapter-cabinet-grid .board-card.hwrm-blue {
  background:#4d82b8;
  color:#fff;
}

.chapter-cabinet-grid .board-card.hwrm-blue small,
.chapter-cabinet-grid .board-card.hwrm-blue h3 {
  color:#fff;
}

.chapter-cabinet-grid .board-card.hwrm-blue .profile-card-cta b {
  background:#bfe2ff;
}

/* Keep the original green ENSC palette. */
.chapter-cabinet-grid .board-card.green {
  background:#8fbf45;
  color:#101712;
}

.chapter-cabinet-grid .board-card.green .profile-card-cta b {
  background:#d7f28c;
}
/* ==========================================================
   STUDENT CABINET PROFILE MODAL
   ========================================================== */

.leadership-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .35s ease,
    visibility .35s ease;
}

.leadership-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.leadership-modal-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(7, 14, 10, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.leadership-profile {
  position: relative;
  z-index: 2;

  width: min(900px, 94vw);
  min-height: 480px;

  display: grid;
  grid-template-columns: .85fr 1.15fr;

  overflow: hidden;

  border-radius: 28px;

  background: #f5f6f0;

  box-shadow:
    0 35px 100px rgba(0,0,0,.35);

  transform: translateY(24px) scale(.97);

  transition:
    transform .45s cubic-bezier(.22,1,.36,1);
}

.leadership-modal.open .leadership-profile {
  transform: translateY(0) scale(1);
}


/* Close button */

.leadership-profile-close {
  position: absolute;
  top: 18px;
  right: 18px;

  z-index: 5;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 50%;

  background: #101712;
  color: #fff;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  transition:
    transform .35s ease,
    background .3s ease,
    color .3s ease;
}

.leadership-profile-close:hover {
  transform: rotate(90deg);

  background: var(--chapter);
  color: #101712;
}


/* Portrait side */

.leadership-profile-visual {
  min-height: 480px;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(
      circle at 30% 25%,
      rgba(255,255,255,.5),
      transparent 30%
    ),
    var(--chapter-soft);
}

.leadership-profile-portrait {
  width: 100%;
  height: 100%;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.leadership-profile-placeholder {
  width: 155px;
  height: 155px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--chapter);
  color: #101712;

  font-size: 46px;
  font-weight: 700;

  box-shadow:
    0 20px 45px rgba(16,23,18,.16);
}

.leadership-profile-image {
  display: none;
}

.leadership-profile-portrait img {
  display: none;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

.leadership-profile-portrait img.loaded {
  display: block;
}


/* Profile content */

.leadership-profile-content {
  padding: 72px 52px 52px;

  display: flex;
  flex-direction: column;
  justify-content: center;
}

.leadership-profile-role {
  margin-bottom: 8px;

  color: var(--chapter-dark);

  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .16em;

  text-transform: uppercase;
}

.leadership-profile-chapter {
  margin-bottom: 14px;

  color: #747b75;

  font-size: .72rem;
}

.leadership-profile-content h2 {
  margin: 0 0 15px;

  color: #101712;

  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: .95;
  letter-spacing: -.045em;
}

.leadership-profile-content p {
  max-width: 520px;

  margin: 0;

  color: #59615b;

  font-size: .95rem;
  line-height: 1.7;
}


/* Portfolio button */

.student-portfolio-button {
  width: max-content;

  margin-top: 30px;

  padding: 12px 18px 12px 20px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  border: 0;
  border-radius: 999px;

  background: #101712;
  color: #fff;

  font: inherit;
  font-size: .7rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    transform .3s ease,
    background .3s ease,
    color .3s ease;
}

.student-portfolio-button b {
  width: 25px;
  height: 25px;

  display: grid;
  place-items: center;

  border-radius: 50%;

  background: var(--chapter);
  color: #101712;

  transition:
    transform .35s ease;
}

.student-portfolio-button:hover {
  transform: translateY(-3px);

  background: var(--chapter);
  color: #101712;
}

.student-portfolio-button:hover b {
  transform:
    translate(2px,-2px)
    rotate(45deg);
}


/* ==========================================================
   STUDENT PORTFOLIO POSTER MODAL
   ========================================================== */

.student-portfolio-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity .3s ease,
    visibility .3s ease;
}

.student-portfolio-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.student-portfolio-backdrop {
  position: absolute;
  inset: 0;

  background: rgba(7,14,10,.82);

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.student-portfolio-window {
  position: relative;
  z-index: 2;

  width: min(650px, 92vw);
  max-height: 92vh;

  transform: scale(.96);

  transition:
    transform .4s cubic-bezier(.22,1,.36,1);
}

.student-portfolio-modal.open
.student-portfolio-window {
  transform: scale(1);
}


/* Portfolio close */

.student-portfolio-close {
  position: absolute;

  top: -12px;
  right: -12px;

  z-index: 5;

  width: 42px;
  height: 42px;

  border: 0;
  border-radius: 50%;

  background: #fff;
  color: #101712;

  font-size: 25px;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(0,0,0,.2);

  transition:
    transform .35s ease,
    background .3s ease;
}

.student-portfolio-close:hover {
  transform: rotate(90deg);

  background: var(--chapter);
}


/* Poster */

.student-portfolio-frame {
  position: relative;

  width: 100%;
  aspect-ratio: 3 / 4;

  max-height: 88vh;

  overflow: hidden;

  border-radius: 20px;

  background: #f2f4ed;

  box-shadow:
    0 30px 90px rgba(0,0,0,.4);
}

.student-portfolio-frame img {
  display: none;

  width: 100%;
  height: 100%;

  object-fit: contain;
}

.student-portfolio-frame img.loaded {
  display: block;
}


/* Poster placeholder */

.student-poster-placeholder {
  position: absolute;
  inset: 0;

  display: grid;
  place-content: center;

  gap: 12px;

  padding: 30px;

  text-align: center;

  background:
    radial-gradient(
      circle at 25% 20%,
      rgba(255,255,255,.7),
      transparent 28%
    ),
    linear-gradient(
      135deg,
      var(--chapter-soft),
      #f8f9f4
    );

  color: #101712;
}

.student-poster-placeholder span {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.student-poster-placeholder strong {
  font-family: "Space Grotesk", sans-serif;

  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1;

  letter-spacing: -.04em;
}

.student-poster-placeholder small {
  color: #606860;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 700px) {

  .leadership-modal {
    padding: 12px;
  }

  .leadership-profile {
    width: 100%;

    grid-template-columns: 1fr;

    max-height: 92vh;

    overflow-y: auto;

    border-radius: 22px;
  }

  .leadership-profile-visual {
    min-height: 230px;
  }

  .leadership-profile-placeholder {
    width: 110px;
    height: 110px;

    font-size: 34px;
  }

  .leadership-profile-content {
    padding: 32px 26px 30px;
  }

  .leadership-profile-content h2 {
    font-size: 2.5rem;
  }

  .student-portfolio-window {
    width: 94vw;
  }

  .student-portfolio-frame {
    max-height: 84vh;
  }

  .student-portfolio-close {
    top: 8px;
    right: 8px;
  }
}
/* ==========================================================
   BACK TO CREW BUTTON
   ========================================================== */

.leadership-profile-back {
  width: max-content;

  margin-top: 18px;

  padding: 12px 20px;

  display: inline-flex;
  align-items: center;
  gap: 12px;

  border: 1px solid #101712;
  border-radius: 999px;

  background: transparent;
  color: #101712;

  font: inherit;
  font-size: .7rem;
  font-weight: 700;

  cursor: pointer;

  transition:
    background .35s ease,
    color .35s ease,
    transform .35s ease,
    border-color .35s ease;
}

.leadership-profile-back::before {
  content: "←";

  font-size: 1rem;

  transition:
    transform .35s ease;
}

.leadership-profile-back:hover {
  background: #101712;
  color: #fff;

  transform: translateY(-3px);
}

.leadership-profile-back:hover::before {
  transform: translateX(-4px);
}
/* ==========================================================
   CHAPTER-SPECIFIC STUDENT CABINET COLOURS
   IMPORTANT:
   - ENSC uses the default chapter page (no special body class required)
   - HWRM uses <body class="hwrm-page">
   - THM uses <body class="thm-page">
   - Profile buttons are intentionally NOT changed here.
   ========================================================== */


/* ==========================================================
   ENSC
   Seven different green shades
   ========================================================== */

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(1) {
  background: #315C32 !important;
  color: #fff !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(2) {
  background: #477A3C !important;
  color: #fff !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(3) {
  background: #649B45 !important;
  color: #fff !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(4) {
  background: #8FBF45 !important;
  color: #101712 !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(5) {
  background: #A8C96F !important;
  color: #101712 !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(6) {
  background: #BBD98B !important;
  color: #101712 !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(7) {
  background: #D5E8B2 !important;
  color: #101712 !important;
}


/* ENSC text contrast */

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(-n+3) small,
body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(-n+3) h3,
body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(-n+3) p {
  color: #fff !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(n+4) small,
body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(n+4) h3 {
  color: #101712 !important;
}

body:not(.hwrm-page):not(.thm-page) .chapter-cabinet-grid .board-card:nth-child(n+4) p {
  color: rgba(16,23,18,.68) !important;
}


/* ==========================================================
   HWRM
   Seven different blue shades
   ========================================================== */

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(1) {
  background: #174A70 !important;
  color: #fff !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(2) {
  background: #24658F !important;
  color: #fff !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(3) {
  background: #347EAA !important;
  color: #fff !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(4) {
  background: #4D82B8 !important;
  color: #fff !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(5) {
  background: #6099C4 !important;
  color: #101712 !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(6) {
  background: #82B2D1 !important;
  color: #101712 !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(7) {
  background: #B6D4E7 !important;
  color: #101712 !important;
}


/* HWRM text contrast */

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(-n+4) small,
body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(-n+4) h3,
body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(-n+4) p {
  color: #fff !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(n+5) small,
body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(n+5) h3 {
  color: #101712 !important;
}

body.hwrm-page .chapter-cabinet-grid .board-card:nth-child(n+5) p {
  color: rgba(16,23,18,.68) !important;
}


/* ==========================================================
   THM
   Seven different teal / coastal shades
   ========================================================== */

body.thm-page .chapter-cabinet-grid .board-card:nth-child(1) {
  background: #145B55 !important;
  color: #fff !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(2) {
  background: #247A72 !important;
  color: #fff !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(3) {
  background: #2F9187 !important;
  color: #fff !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(4) {
  background: #39A89A !important;
  color: #101712 !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(5) {
  background: #55B7AC !important;
  color: #101712 !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(6) {
  background: #78C8C0 !important;
  color: #101712 !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(7) {
  background: #B2DFDA !important;
  color: #101712 !important;
}


/* THM text contrast */

body.thm-page .chapter-cabinet-grid .board-card:nth-child(-n+3) small,
body.thm-page .chapter-cabinet-grid .board-card:nth-child(-n+3) h3,
body.thm-page .chapter-cabinet-grid .board-card:nth-child(-n+3) p {
  color: #fff !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(n+4) small,
body.thm-page .chapter-cabinet-grid .board-card:nth-child(n+4) h3 {
  color: #101712 !important;
}

body.thm-page .chapter-cabinet-grid .board-card:nth-child(n+4) p {
  color: rgba(16,23,18,.68) !important;
}


/* ==========================================================
   Keep the existing profile button styling unchanged
   ========================================================== */
   /* HWRM - profile button arrow */

body.hwrm-page .chapter-cabinet-grid .profile-card-cta b {
    background: #bfe2ff !important;
    color: #183b5c !important;
}
/* THM - profile button arrow */

body.thm-page .chapter-cabinet-grid .profile-card-cta b {
    background: #bcece6 !important;
    color: #073c37 !important;
}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 58px;
    right: 20px;
  }

  .chapter-hero-video .chapter-video-status {
    bottom: 20px;
    left: 20px;
  }

}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 58px;
    right: 20px;
  }

  .chapter-hero-video .chapter-video-status {
    bottom: 20px;
    left: auto;
    right: 20px;
  }

}
/* ==========================================================
   MOBILE - STUDENT CABINET HEADING
   ========================================================== */

@media (max-width: 700px) {

  .cabinet-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;

    text-align: center;
  }

  .cabinet-heading > div {
    width: 100%;
    text-align: center;
  }

  .cabinet-heading .section-label {
    text-align: center;
    margin-bottom: 18px;
  }

  .cabinet-heading h2 {
    margin: 0 auto;

    text-align: center;

    font-size: clamp(3.2rem, 15vw, 4.8rem);
    line-height: .88;
    letter-spacing: -.05em;
  }

  .cabinet-heading h2 br {
    display: none;
  }

  .cabinet-heading h2 span {
    display: block;
  }

  .cabinet-heading > p {
    width: 100%;
    max-width: 330px;

    margin: 0 auto;

    text-align: center;

    font-size: 1rem;
    line-height: 1.6;
  }

}
/* Remove decorative quotation mark from vision quote */

.vision-quote::before,
.vision-quote::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 72px;
  }

  .chapter-hero-video .chapter-video-status {
    bottom: 20px;
  }

}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 62px;
  }

  .chapter-hero-video .chapter-video-status {
    bottom: 18px;
  }

}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 52px;

    padding: 10px 18px;

    font-size: 0.58rem;
    line-height: 1.25;

    max-width: 270px;
  }

}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 52px;

    padding: 9px 16px;

    max-width: 245px;

    font-size: 0.56rem;
    line-height: 1.2;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-hero-video .chapter-video-label {
    bottom: 52px;
    padding: 9px 16px;
    max-width: 245px;
    font-size: 0.56rem;
    line-height: 1.2;
  }

}
/* ==========================================================
   CHAPTER LOGO PLACEHOLDER
   ========================================================== */

.chapter-logo-placeholder {
  width: 86px;
  height: 86px;

  display: flex;
  align-items: center;
  justify-content: center;

  margin-bottom: 28px;

  border: 2px solid rgba(255,255,255,.85);
  border-radius: 50%;

  background: rgba(255,255,255,.12);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #fff;

  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;

  box-shadow:
    0 10px 30px rgba(0,0,0,.18);

  transition:
    transform .35s ease,
    background .35s ease;
}

.chapter-logo-placeholder:hover {
  transform: scale(1.06);

  background: rgba(255,255,255,.2);
}
@media (max-width: 700px) {

  .chapter-logo-placeholder {
    width: 64px;
    height: 64px;

    margin-bottom: 20px;

    font-size: .6rem;
  }

}
@media (max-width: 700px) {

  .chapter-hero-video .chapter-video-label {
    bottom: 35px;

    padding: 7px 13px;

    font-size: 0.52rem;
    line-height: 1.15;

    max-width: 220px;
    white-space: nowrap;
  }

  .chapter-hero-video .chapter-video-status {
    bottom: 12px;
  }

}
/* ==========================================================
   HWRM MOBILE HERO FIX
   ========================================================== */

@media (max-width: 700px) {

  /* Move HWRM logo fully inside the hero */
  body.hwrm-page .chapter-logo-placeholder {
    margin-top: 24px;
    margin-bottom: 18px;

    width: 64px;
    height: 64px;
  }


  /* Move the HWRM pill lower and make it more compact */
  body.hwrm-page .chapter-video-label {
    bottom: 42px;

    padding: 7px 16px;

    font-size: 0.54rem;
    line-height: 1.15;

    max-width: 190px;
    white-space: nowrap;
  }


  /* Keep ambient status underneath the pill */
  body.hwrm-page .chapter-video-status {
    bottom: 12px;
  }

}
/* ==========================================================
   HWRM MOBILE HERO - MORE COMPACT
   ========================================================== */

@media (max-width: 700px) {

  body.hwrm-page .chapter-hero-content {
    padding-left: 26px;
    padding-right: 26px;
  }

  /* Logo */
  body.hwrm-page .chapter-logo-placeholder {
    width: 50px;
    height: 50px;

    margin-top: 12px;
    margin-bottom: 12px;

    font-size: 0.48rem;
  }

  /* Chapter number */
  body.hwrm-page .chapter-kicker {
    font-size: 0.58rem;
    letter-spacing: 0.10em;
    margin-bottom: 12px;
  }

  /* Main title */
  body.hwrm-page .chapter-hero-content h1 {
    font-size: 2.35rem;
    line-height: 0.9;
    letter-spacing: -0.045em;

    max-width: 300px;
  }

  /* Green/blue accent line */
  body.hwrm-page .chapter-hero-content h1::after {
    width: 80px;
    height: 5px;
    margin-top: 18px;
  }

  /* Description */
  body.hwrm-page .chapter-hero-content > p {
    margin-top: 18px;

    font-size: 0.82rem;
    line-height: 1.35;

    max-width: 265px;
  }

  /* Water resources pill */
  body.hwrm-page .chapter-video-label {
    bottom: 43px;

    padding: 6px 13px;

    max-width: 170px;

    font-size: 0.46rem;
    line-height: 1.15;
  }

  /* Ambient chapter film */
  body.hwrm-page .chapter-video-status {
    bottom: 11px;

    font-size: 0.47rem;
  }

}
/* ==========================================================
   HWRM MOBILE HERO - FORCE LEFT ALIGNMENT
   ========================================================== */

@media (max-width: 700px) {

  body.hwrm-page .chapter-hero-content {
    position: absolute !important;

    left: 0 !important;
    right: auto !important;

    width: 100% !important;
    max-width: none !important;

    padding-left: 26px !important;
    padding-right: 26px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;

    text-align: left !important;
  }

  body.hwrm-page .chapter-logo-placeholder {
    margin-left: 0 !important;
    margin-right: 0 !important;

    align-self: flex-start !important;
  }

  body.hwrm-page .chapter-kicker {
    width: 100% !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    text-align: left !important;
    align-self: flex-start !important;
  }

  body.hwrm-page .chapter-hero-content h1 {
    width: 100% !important;
    max-width: 310px !important;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left !important;
    align-self: flex-start !important;
  }

  body.hwrm-page .chapter-hero-content > p {
    width: 100% !important;
    max-width: 270px !important;

    margin-left: 0 !important;
    margin-right: auto !important;

    text-align: left !important;
    align-self: flex-start !important;
  }

}
@media (max-width: 700px) {

  body.hwrm-page .chapter-video-label {
    bottom: 32px !important;
  }

  body.hwrm-page .chapter-video-status {
    bottom: 12px !important;
  }

}
@media (max-width: 700px) {

  body.hwrm-page .chapter-logo-placeholder {
    width: 58px !important;
    height: 58px !important;
    font-size: 0.52rem !important;
  }

}
/* ==========================================================
   THM MOBILE HERO FIX
   ========================================================== */

@media (max-width: 700px) {

  /* Move THM logo properly into the hero */
  body.thm-page .chapter-logo-placeholder {
    width: 58px !important;
    height: 58px !important;

    margin-top: 18px !important;
    margin-bottom: 16px !important;

    font-size: 0.52rem !important;

    flex-shrink: 0;
  }


  /* Move THM pill down, away from description */
  body.thm-page .chapter-video-label {
    bottom: 32px !important;

    padding: 7px 14px !important;

    max-width: 235px !important;

    font-size: 0.52rem !important;
    line-height: 1.15 !important;

    white-space: nowrap;
  }


  /* Keep ambient status at the bottom */
  body.thm-page .chapter-video-status {
    bottom: 12px !important;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-video-label {
    bottom: 24px !important;

    padding: 6px 12px !important;
    max-width: 205px !important;

    font-size: 0.46rem !important;
    line-height: 1.1 !important;
    white-space: nowrap;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-hero-content h1 {
    font-size: 2.45rem !important;
    line-height: 0.91 !important;
    letter-spacing: -0.045em !important;

    max-width: 300px !important;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-hero-content > p {
    font-size: 0.82rem !important;
    line-height: 1.35 !important;

    transform: translateY(-6px);

    max-width: 285px !important;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-video-label {
    bottom: 32px !important;
  }

  body.thm-page .chapter-video-status {
    bottom: 12px !important;
  }

}
@media (max-width: 700px) {

  body.thm-page .chapter-logo-placeholder {
    width: 64px !important;
    height: 64px !important;

    font-size: 0.55rem !important;
  }

}
/* ==========================================================
   HWRM DESKTOP HERO - FINAL SPACING & SCALE
   ========================================================== */

@media (min-width: 701px) {

  /* Slightly reduce the overall hero typography */
  body.hwrm-page .chapter-hero-content h1 {
    font-size: clamp(5rem, 6.2vw, 7.2rem) !important;
    line-height: 0.91 !important;
    letter-spacing: -0.055em !important;
  }

  body.hwrm-page .chapter-hero-content > p {
    font-size: 1.05rem !important;
    line-height: 1.45 !important;

    margin-top: 28px !important;

    max-width: 560px !important;
  }

  /* Keep metadata safely above the bottom controls */
  body.hwrm-page .chapter-hero-content {
    padding-bottom: 105px !important;
  }

  /* Pill */
  body.hwrm-page .chapter-video-label {
    bottom: 48px !important;
  }

  /* Ambient chapter film */
  body.hwrm-page .chapter-video-status {
    bottom: 20px !important;
  }

}
@media (min-width: 701px) {

  body.hwrm-page .chapter-logo-placeholder {
    margin-top: 50px !important;
  }

}
.chapter-logo-placeholder {
  overflow: hidden;
}

.chapter-logo-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 50%;
}
/* ==========================================================
   CHAPTER COORDINATOR PHOTOS
   ========================================================== */

.coordinator-photo {
  overflow: hidden;
}

.coordinator-photo img {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

/* Mobile */

@media (max-width: 700px) {

  .coordinator-photo img {
    object-position: center;
  }

}
/* ==========================================================
   CHAPTER LOGO INSIDE CIRCULAR PROFILE PORTRAIT
   ========================================================== */

.leadership-profile-portrait {
  position: relative !important;
  width: 230px !important;
  height: 230px !important;
  min-width: 230px !important;
  min-height: 230px !important;

  border-radius: 50% !important;
  overflow: hidden !important;

  display: grid !important;
  place-items: center !important;
}

/* Logo/image must stay INSIDE the circle */
.leadership-profile-portrait img {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  max-width: none !important;
  max-height: none !important;

  object-fit: cover !important;
  object-position: center !important;

  border-radius: 50% !important;

  display: block !important;
}

/* Hide image until JavaScript confirms it loaded */
.leadership-profile-portrait img:not(.loaded) {
  opacity: 0 !important;
}

/* Initials placeholder */
.leadership-profile-placeholder {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  border-radius: 50% !important;

  display: grid;
  place-items: center;
}
@media (max-width: 600px) {

  .leadership-profile-portrait {
    width: 170px !important;
    height: 170px !important;
    min-width: 170px !important;
    min-height: 170px !important;
  }

  .leadership-profile-portrait img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }

}
/* ==========================================================
   CLEAN PORTFOLIO POSTER MODAL
   ========================================================== */

.student-portfolio-window {
  position: relative !important;

  width: auto !important;
  max-width: 92vw !important;

  height: auto !important;
  max-height: 94vh !important;

  padding: 0 !important;

  overflow: visible !important;

  background: transparent !important;

  border-radius: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.student-portfolio-frame {
  position: relative !important;

  width: auto !important;
  height: auto !important;

  max-width: 88vw !important;
  max-height: 90vh !important;

  overflow: hidden !important;

  border-radius: 22px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: transparent !important;
}

.student-portfolio-frame img {
  display: block !important;

  width: auto !important;
  height: auto !important;

  max-width: 88vw !important;
  max-height: 90vh !important;

  object-fit: contain !important;

  margin: 0 !important;

  border-radius: 22px !important;
}

/* Close button sits OUTSIDE the poster clipping */
.student-portfolio-close {
  position: absolute !important;

  top: -18px !important;
  right: -18px !important;

  z-index: 100 !important;

  width: 52px !important;
  height: 52px !important;

  border-radius: 50% !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  padding: 0 !important;

  font-size: 30px !important;
  line-height: 1 !important;

  border: none !important;

  cursor: pointer !important;
}

/* Placeholder */
.student-poster-placeholder {
  position: absolute !important;
  inset: 0 !important;

  width: 100% !important;
  height: 100% !important;

  display: grid;
  place-items: center;

  border-radius: 22px !important;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 600px) {

  .student-portfolio-window {
    max-width: 92vw !important;
    max-height: 92vh !important;
  }

  .student-portfolio-frame {
    max-width: 88vw !important;
    max-height: 86vh !important;

    border-radius: 16px !important;
  }

  .student-portfolio-frame img {
    max-width: 88vw !important;
    max-height: 86vh !important;

    border-radius: 16px !important;
  }

  .student-portfolio-close {
    top: -14px !important;
    right: -14px !important;

    width: 44px !important;
    height: 44px !important;

    font-size: 25px !important;
  }

}
/* ==========================================================
   PREVENT PORTFOLIO PLACEHOLDER FLASH ON CLOSE
   ========================================================== */

/* Keep the poster layer above the placeholder */
.student-portfolio-frame {
  position: relative !important;
}

.student-portfolio-frame img {
  position: relative !important;
  z-index: 2 !important;
}

/* Keep placeholder underneath the poster */
.student-poster-placeholder {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1 !important;
}

/* While the portfolio modal is closing, hide the placeholder */
.student-portfolio-modal:not(.open) .student-poster-placeholder {
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Never show an unloaded placeholder during the closing state */
.student-portfolio-modal:not(.open) .student-portfolio-frame {
  background: transparent !important;
}
/* ==========================================================
   THM YOUTH WING SECTION
   ========================================================== */

body.thm-page .thm-youth-wing-section {
  background:
    linear-gradient(
      180deg,
      rgba(57, 168, 154, 0.07),
      rgba(255, 255, 255, 0.25)
    );
  border-top: 1px solid rgba(57, 168, 154, 0.2);
}

body.thm-page .thm-youth-wing-section .cabinet-heading {
  margin-bottom: 45px;
}

body.thm-page .thm-youth-wing-grid {
  margin-top: 10px;
}

body.thm-page .thm-youth-wing-section .section-label {
  color: var(--chapter-dark);
}
/* ==========================================================
   THM YOUTH WING - FOREST GREEN PALETTE
   ========================================================== */

body.thm-page .thm-youth-wing-grid .board-card:nth-child(1) {
  background: #174C3C !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(2) {
  background: #246B50 !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(3) {
  background: #6FAF8E !important;
  color: #102B20 !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(4) {
  background: #D7EBDD !important;
  color: #102B20 !important;
}

/* Text colours */
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+2) small,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+2) h3,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+2) p {
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(n+3) small,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(n+3) h3 {
  color: #102B20 !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(n+3) p {
  color: #294A3B !important;
}

/* Profile button accent */
body.thm-page .thm-youth-wing-grid .profile-card-cta b {
  background: #B7E4C7 !important;
}
/* ==========================================================
   THM YOUTH WING - SEVEN COLOUR PALETTE
   Applies only to Youth Wing cards
   ========================================================== */

body.thm-page .thm-youth-wing-grid .board-card:nth-child(1) {
  background: #13A89E !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(2) {
  background: #7655C9 !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(3) {
  background: #F07861 !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(4) {
  background: #3979D6 !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(5) {
  background: #55A86B !important;
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(6) {
  background: #E9A23B !important;
  color: #17251C !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(7) {
  background: #D95783 !important;
  color: #FFFFFF !important;
}

/* Ensure text is readable on all seven cards */
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+5) small,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+5) h3,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(-n+5) p,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(7) small,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(7) h3,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(7) p {
  color: #FFFFFF !important;
}

body.thm-page .thm-youth-wing-grid .board-card:nth-child(6) small,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(6) h3,
body.thm-page .thm-youth-wing-grid .board-card:nth-child(6) p {
  color: #17251C !important;
}

/* Consistent profile-button accent */
body.thm-page .thm-youth-wing-grid .profile-card-cta b {
  background: #FFFFFF !important;
  color: #173D35 !important;
}