html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* ===== 01 — Fonts & base typography ===== */
/* ==================================================
   CSS — TABLE OF CONTENTS (quick jump guide)

   Sections:
     01. Fonts & base typography
     02. Layout / Navigation
     03. Hero / Title
     04. Buttons & Controls
     05. Theses — chapter cards
     06. Editions / Chapters (small cards)
     07. Members & leader components
     08. Footer
     09. Utilities
     10. Media Queries (Responsive Styles)

   (Use your editor to search these section titles.)
   ================================================== */

@font-face {
  font-family: 'lemonmilk-bold';
  src: url('fonts/LEMONMILK-Bold.woff2') format('woff2'),
      url('fonts/LEMONMILK-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'lemonmilk-regular';
  src: url('fonts/LEMONMILK-Regular.woff2') format('woff2'),
      url('fonts/LEMONMILK-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'lemonmilk-light';
  src: url('fonts/LEMONMILK-Light.woff2') format('woff2'),
      url('fonts/LEMONMILK-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

body {
  font-family: "Albert Sans";
  background-color: #345f95;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
  padding-top: 130px;
  animation: pageLoadFade 0.6s ease-in;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

@keyframes pageLoadFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

body.fade-out {
  animation: pageExitFade 0.4s ease-out forwards;
}

@keyframes pageExitFade {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* The parent .thesis section wraps all chapter cards.
   On mobile, it becomes so tall that the IntersectionObserver's
   0.2 threshold can never be met, keeping everything at opacity: 0.
   Always show the wrapper — individual .chapter-card.reveal elements
   handle their own scroll-triggered animations. */
section.thesis.reveal {
  opacity: 1;
  transform: none;
}

/* ===== 02 — Layout / Navigation (site header) ===== */
.nav {
  background-color: #345f95; 
  padding: 20px 70px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

.nav.visible {
  transform: translateY(0);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  color: white;
  line-height: 1;
}

.logo-top {
  display: block;
  font-size: 30px;
  font-weight: bold;
  letter-spacing: 2px;
  font-family: "lemonmilk-bold";
}

.logo-bottom {
  display: block;
  font-size: 55px;
  font-weight: 700;
  letter-spacing: 6px;
  font-family: "lemonmilk-bold";
}

/* Menu */
.menu {
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
}

/* Menu links wrapper (for hamburger collapse) */
.menu-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

/* Hamburger button — hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: white;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Animate to X when open */
.hamburger.is-open .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.is-open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.menu a:not(.btn) {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

/* top underline */
.menu::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: white;
}

.menu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  transition: transform 0.3s ease;
  font-family: 'lemonmilk-regular';
}

.menu a:not(.btn):hover {
  transform: translateY(-3px);
}

.menu a.active:not(.btn) {
  background-color: #1e3a5f;
  color: white;
  transform: translateY(-3px);
  padding: 10px 15px;
  border-radius: 10px;
}

/* Button */
.menu .btn {
  background-color: white;
  color: #345f95;
  padding: 18px 15px;
  border-radius: 10px;
  font-weight: 600;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 220ms ease;
  font-family: 'lemonmilk-bold';
}

.menu .btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(18,36,60,0.08);
}

.menu .btn.active {
  background-color: #1e3a5f;
  color: white;
  transform: translateY(-3px);
  padding: 22px 20px;
} 

/* Hero section */
.hero,
.archive-hero {
  position: relative; /* stacking context for background media */
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  padding-bottom: 0px;
  overflow: hidden; /* clip the visual elements to this section */
}

body.home .hero {
  padding-bottom: 10px;
}

.hero__video {
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover; /* cover and crop responsively */
  object-position: center center;
  z-index: 0;
  pointer-events: none; /* let users interact with hero content */
  filter: brightness(0.6) contrast(0.98) saturate(0.95); /* optional: improve text contrast */
}

/* Background images for specific pages */
.about-hero-img,
.journal-hero-img,
.archive-hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  min-width: 60%;
  max-height: 80%;
  object-fit: contain;
  z-index: 0;
  opacity: 0.35;
  pointer-events: none;
}

.archive-hero-img {
  opacity: 0.2 !important;
}

.journal-hero-img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  min-width: 100% !important;
  max-height: 120% !important;
  object-fit: contain;
  z-index: 0;
  opacity: 0.25 !important;
  pointer-events: none;
}

body.about .about-hero-img,
body.archive .archive-hero-img {
  width: 100%;
  min-width: 100%;
  max-height: none;
}

/* Title container */
.title {
  position: relative;
  z-index: 1; /* keep content above background media */
  line-height: 0.85;
}

/* ENVISION */
.envision {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: 0.2rem;
  font-family: "lemonmilk-bold";
}

.the {
  font-size: clamp(80px, 20vw, 300px);
  font-weight: 700;
  letter-spacing: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 100px;
  font-family: "lemonmilk-bold";
  line-height: 0.8;
}

body.home .title .the {
  padding-left: 60px;
}

body.theses .title .the {
  padding-left: 60px;
}

/* FUTURE */
.future {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 700;
  letter-spacing: 0.2rem;
  padding-left: 250px;
  font-family: "lemonmilk-bold";
}

.journal {
  font-size: clamp(60px, 16vw, 220px);
  font-weight: 700;
  letter-spacing: 0.3rem;
  color: rgba(255, 255, 255, 0.6);
  padding-left: 60px;
  font-family: "lemonmilk-bold";
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.scroll-indicator .arrow {
  width: 15px;
  height: 15px;
  border-right: 3px solid rgba(255, 255, 255, 0.7);
  border-bottom: 3px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg);
  animation: bounceArrow 2s infinite;
}

@keyframes bounceArrow {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0) rotate(45deg);
  }
  40% {
    transform: translateY(-10px) rotate(45deg);
  }
  60% {
    transform: translateY(-5px) rotate(45deg);
  }
}

/* Main Section Background */
.chapter-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
}

/* Flex Container */
.container {
  display: flex;
  max-width: 1100px;
  width: 100%;
  gap: 0px; /* Space between the two boxes */
  align-items: center;
}

/* Media Box (Left) */
.media-box {
  flex: 55 0 55%; 
  background-color: rgba(65, 113, 172, 0.7);
  padding: 30px 30px 30px 30px;
  min-height: 560px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.home .media-box {
  min-height: auto;
}

body.home .content-box {
  height: auto;
  min-height: 560px;
}

body.home .chapter-section .container {
  align-items: stretch;
}

.placeholder {
  height: 500px;
  width: 100%;
}

body.home .media-box .placeholder {
  height: auto;
  aspect-ratio: 4 / 3;
}

.media-box img {
  display: block;
  width: 85%;
  height: auto;
  border: 4px solid #345f95;
  object-fit: contain
}

.media-box img.taga26-cover {
  width: auto;
  max-width: 100%;
}

.media-box.taga26-media {
  flex: 0 0 auto;
  width: fit-content;
  min-height: auto;
  padding: 0.2in;
}

.chapter-section.journal-pair {
  --journal-box-padding: 0.5in;
  --journal-image-max: 420px;
  --journal-box-size: calc(var(--journal-image-max) + (var(--journal-box-padding) * 2));
}

.chapter-section.journal-pair .container {
  width: fit-content;
  max-width: none;
  margin: 0 auto;
  justify-content: center;
}

.chapter-section.journal-pair .media-box.taga26-media {
  width: fit-content;
  height: auto;
  min-height: auto;
  padding: var(--journal-box-padding);
}

.chapter-section.journal-pair .content-box.journal-content {
  width: var(--journal-box-size);
  height: var(--journal-box-size);
  min-height: var(--journal-box-size);
  padding: var(--journal-box-padding);
}

.content-box.journal-content {
  flex: 0 1 360px;
  max-width: 360px;
  height: auto;
  padding: 24px 24px 28px;
}

/* Content Box (Right) */
.content-box {
  flex: 45 0 45%;
  color: white;
  background-color: #4171AC;
  padding: 30px 30px 30px 30px;
  height: 560px;
  width: 100%;
  text-align: center;
}

.content-box h2 {
  margin-bottom: 20px;
  line-height: 0.5;
  text-align: center;
}

.about-hero-container {
  display:flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.about-top {
  margin-top: 40px;
  font-weight: normal;
  font-size: 18px;
  font-family: 'lemonmilk-bold';
}

.chapter-bottom {
  display: block;
  margin-bottom: 40px;
  font-size: 25px; 
  font-weight: bold;
  font-family: 'lemonmilk-bold';
}

.chapter-icon {
  width: auto;
  height: 200px;
  margin-top: 0;
  margin-bottom: 5px;
}
.scale-up {
  scale: 1.5;
}

.content-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'albert sans';
}

/* Button Styling */
.learn-more-btn {
  display: inline-block;
  background-color: white;
  color: #345f95;
  text-decoration: none;
  padding: 12px 40px;
  border-radius: 8px;
  transition: background 180ms ease, transform 220ms ease, box-shadow 220ms ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
  font-family: 'lemonmilk-bold';
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.learn-more-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(52, 95, 149, 0.1);
  transition: left 0.3s ease;
  z-index: -1;
}

.learn-more-btn:hover {
  background-color: #fbfbfb;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(12,36,70,0.07);
} 

.learn-more-btn:hover::before {
  left: 0;
}

.theses-page-intro-header {
  max-width: 1200px;
  margin: 0 auto 50px auto;
  padding: 0 6%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}
.theses-header-group h1 {
  font-family: 'lemonmilk-bold';
  font-size: 60px;
  margin: 0;
  line-height: 1;
}

.theses-header-group p {
  font-size: 14px;
  max-width: 600px;          
  margin-top: 15px;
  line-height: 1.6;
}

.thesis {
  background-color: #345f95;
  padding: 60px 40px;
  color: white; 
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items in the section */
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.thesis-intro {
  margin-bottom: 40px;
  max-width: 800px;
  width: 100%;
}

.thesis h1 {
  font-size: min(60px, 12vw);
  text-align: center;
  font-family: 'lemonmilk-bold';
  margin: 0 auto 20px auto;
}

.thesis p {
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  max-width: 700px;
  margin: 0 auto;
}

.tracking {
 letter-spacing: 0.03em !important;
}

#trackingchapter2 {
  letter-spacing: 0.0em;
}

#tracking-archive {
  letter-spacing: 0.04em !important;
}

#tracking-2023 {
  letter-spacing: -0.02em !important;
}

#tracking-2025 {
  letter-spacing: 0.08em !important;
}

.editions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 50px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.edition-box1 {
  background-image: url('images/journals/taga25.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.edition-box2 {
  background-image: url('images/journals/taga24.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.edition-box3 {
  background-image: url('images/journals/taga23.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.edition-box4 {
  background-image: url('images/journals/taga22.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.edition-box6 {
  background-image: url('images/journals/taga20.jpeg');
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}

.editions-grid > a:last-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 15px);
}

.edition-box1, .edition-box2, .edition-box3, .edition-box4, .edition-box6 {
  color: white;
  width: 420px;
  height: 420px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0;
  min-width: 0;
  min-height: 0;
  position: relative;
} 

.edition-box1:hover, .edition-box2:hover, .edition-box3:hover, .edition-box4:hover, .edition-box6:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07);
}

.edition-bio {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(52, 95, 149, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  padding: 40px;
  text-align: center;
  z-index: 1000;
  pointer-events: none;
  max-width: 500px;
  width: 90%;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    p {
      text-align: center;
    }
}

.edition-bio.active {
  opacity: 1;
  pointer-events: auto;
}

.edition-modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.edition-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.edition-bio-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  color: #345f95;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  font-weight: bold;
}

.edition-bio-close:hover {
  transform: rotate(90deg);
}

.edition-learn-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: white;
  color: #345f95;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  z-index: 20;
  font-family: 'lemonmilk-bold';
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.edition-learn-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.edition-bio h3 {
  font-size: 28px;
  font-family: 'lemonmilk-bold';
  margin-bottom: 12px;
  color: white;
}

.edition-bio p {
  font-size: 14px;
  font-family: 'albert sans';
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
}

.edition-year {
  font-size: 100px;
  font-family: 'lemonmilk-bold';
  color: rgba(65, 113, 172, 0.5);
  position: absolute;
  bottom: -20px;
  left: 0;
}

/* ===== 06 — Chapters (compact chapter cards) ===== */
.chapters {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 30px;
  margin: 50px;
}

.chapter-box {
  color: white; 
  background-color:#4171AC;
  padding: 20px;
  display: flex; 
  flex-direction: column;
  align-items: center;
  /* height: 500px; Remove fixed height to prevent cutting off content */
  min-height: 500px; /* Ensure a good base height */
  line-height: 1.4;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.chapter-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.chapter-box:hover {
  transform: scale(1.03) translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 6;
} 

.chapter-box:hover::after {
  left: 200%;
}

.chapter-top {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: -5px;
  font-family: 'lemonmilk-bold';
}

.chapter-numbers {
  font-size: 24px;
  margin-bottom: 15px;
  font-family: 'lemonmilk-bold';
}

.chapter-box p {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 5px;
  margin-top: 5px;
  font-family: 'albert sans';
  flex-grow: 1;
}

/* ===== Theses — chapter-card list (Figma layout) ===== */
.chapter-list {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers items horizontally */
  gap: 60px;
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 6%;
  width: 100%; /* Ensure container takes full available width */
}

.chapter-card {
  position: relative;
  scroll-margin-top: 150px;
  display: flex;
  gap: 40px;
  align-items: center;
  background: linear-gradient(180deg, rgba(65,113,172,0.28), rgba(65,113,172,0.12));
  padding: 35px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.04);
  box-shadow: 0 6px 18px rgba(2,12,30,0.12);
  width: 100%; /* Cards take full width of their container */
  max-width: 1100px; /* Optional: cap the card width for readability */
  box-sizing: border-box;
}

.chapter-card.reverse { flex-direction: row-reverse; }

.chapter-media {
  position: relative;
  flex: 0 0 400px;
  max-width: 400px;
}

.chapter-media .placeholder {
  height: 450px;
  width: 100%; /* Ensure placeholder fills media container */
  background-size: cover;
  background-position: center;
  transition: transform 520ms cubic-bezier(.2,.9,.2,1), box-shadow 360ms ease;
}

#ch3-heading {
  letter-spacing: -0.02em !important;
}

.ch1-img { background-image: url('images/elements/theses/flexo.png'); }
.ch2-img { background-image: url('images/elements/theses/cosmetics.png'); }
.ch3-img { background-image: url('images/elements/theses/planner.png'); } 
.ch4-img { background-image: url('images/elements/theses/classroom.png'); }

.intro-card {
  padding: 60px 80px !important;
  background: linear-gradient(135deg, rgba(65,113,172,0.4), rgba(65,113,172,0.15));
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 12px 32px rgba(2,12,30,0.15);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.intro-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.intro-text {
  margin: 0;
  width: 100%;
  line-height: 1.8;
  letter-spacing: -0.01em !important;
  font-size: 24px;
  text-align: center;
  font-family: 'albert sans';
  font-weight: 300;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.read-btn {
  position: absolute;
  right: 18px;
  bottom: -18px;
  display: inline-block;
  background: white;
  color: #345f95;
  padding: 14px 26px;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(12,36,70,0.12);
  text-decoration: none;
  font-family: 'lemonmilk-bold';
  transform: translateY(0);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease, background-color 160ms linear;
}

/* Image Carousel styles */
.carousel-container.placeholder {
  position: relative;
  overflow: hidden;
  height: 550px; /* Matching your existing height */
  background: none; /* Remove the old gray background */
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
  will-change: transform;
}

.carousel-track img, .carousel-track video {
  width: 100%;
  height: 100%;
  flex-shrink: 0;   /* Prevents images from squishing */
  object-fit: cover; /* Ensures images fill the frame without distortion */
}

/* Maintain the "Learn More" button position */
.chapter-media .read-btn {
  z-index: 10; /* Make sure it stays on top of the sliding images */
}

.chapter-media {
  position: relative; /* Container for the buttons */
}

/* Reusing your member carousel button style but positioning inside the image */
.chapter-media .carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 36px; /* Slightly smaller for the image area */
  height: 36px;
  background: url('images/icons/arrow icon.png') no-repeat center center;
  background-size: contain;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1; /* Always visible */
  transition: opacity 0.3s ease, transform 0.2s ease;
  color: transparent;
  border: none;
  cursor: pointer;
}

.chapter-media .carousel-btn.prev { 
  left: 10px; 
  transform: translateY(-50%) rotate(180deg);
}

.chapter-media .carousel-btn.next { 
  right: 10px; 
}

.chapter-media .carousel-btn.prev:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.1);
}

.chapter-media .carousel-btn.next:hover {
  transform: translateY(-50%) scale(1.1);
}

.chapter-media .carousel-btn:disabled {
  display: none; /* Hide if there's no more images to slide to */
}







.chapter-content {
  color: white;
  flex: 1 1 560px;
}

.chapter-content h2 {
  font-size: 56px;
  margin-bottom: 18px;
  line-height: 0.9;
  font-family: 'lemonmilk-bold';
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), color 220ms ease;
  text-align: center;
  width: 100%;
}

.chapter-content p {
  width: 100%;
  max-width: 100%;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
  opacity: 0.95;
  text-align: left;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.author-card {
  overflow: hidden; /* Important for header border-radius */
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a5f;
  padding: 0; /* Remove padding from main card so header touches edges */
  border-radius: 8px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 6px 16px rgba(10,30,60,0.08);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  display: flex;
  flex-direction: column;
}

.author-card-journal {
  overflow: hidden; /* Important for header border-radius */
  background: rgba(255, 255, 255, 0.95);
  color: #1e3a5f;
  padding: 20px; /* Remove padding from main card so header touches edges */
  border-radius: 8px;
  width: 100%;
  max-width: none;
  box-shadow: 0 6px 16px rgba(10,30,60,0.08);
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), box-shadow 260ms ease;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.author-header {
  background-color: transparent;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-bottom: 2px solid rgba(52, 95, 149, 0.1); 
}

.author-header h4 {
  font-family: 'lemonmilk-bold';
  color: #345f95;
  font-size: 24px;
  margin: 0;
  flex-grow: 0;
}

.author-photos {
  display: flex;
  align-items: center;
}

.author-photos .author-img + .author-img {
  margin-left: -20px;
}

.author-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, z-index 0s;
  position: relative;
  /* Reset hover z-index behavior safely */
  z-index: 1;
}

.author-img:hover {
  transform: scale(1.1) rotate(5deg);
  z-index: 10;
}

.author-bio {
  padding: 18px 22px;
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(65, 113, 172, 0.5) transparent;
}

.author-card p,
.author-card-journal p {
  font-size: 14px;
  margin: 0;
  color: #234463;
  text-align: left;
}

/* ===== end thesis cards ===== */

/* Interactive / hover states for chapter cards (subtle, professional) */
.chapter-card {
  transition: transform 320ms cubic-bezier(.2,.9,.2,1),
              box-shadow 320ms cubic-bezier(.2,.9,.2,1);
  will-change: transform, box-shadow;
}

.chapter-card:focus-within {
  outline: 3px solid rgba(255,255,255,0.06);
  outline-offset: 6px;
  border-radius: 10px;
}

.chapter-card:hover,
.chapter-card:focus-within {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 12px 30px rgba(2,12,30,0.12);
}

.chapter-card:hover .chapter-media .placeholder,
.chapter-card:focus-within .chapter-media .placeholder {
  transform: scale(1.02) translateZ(0);
  box-shadow: none;
}

.chapter-card:hover .read-btn,
.chapter-card:focus-within .read-btn {
  transform: translateY(-6px);
  box-shadow: 0 10px 26px rgba(12,36,70,0.14);
}

.read-btn:hover,
.read-btn:focus {
  background: #f6f7f9;
}

.read-btn:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 6px;
  border-radius: 12px;
}

.chapter-card:hover .author-card,
.chapter-card:focus-within .author-card {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(10,30,60,0.08);
}

/* subtle heading lift */
.chapter-card:hover .chapter-content h2,
.chapter-card:focus-within .chapter-content h2 {
  transform: translateY(-2px);
  color: #ffffff;
}

/* keyboard affordances */
.chapter-card a:focus-visible {
  outline: 3px solid rgba(255,255,255,0.9);
  outline-offset: 6px;
  border-radius: 8px;
}

/* keep the remaining global numeric style (used elsewhere) */

.number {
  font-size: 80px;
  font-weight: bold;
  font-family: 'lemonmilk-bold';
}

/* ===== Home — Awards (scoped) ===== */
body.home .awards-section {
  padding: 100px 6%;
  background-image: linear-gradient(180deg, rgba(255,255,255,0.02), transparent),
                    linear-gradient(90deg, rgba(255,255,255,0.02), transparent);
  text-align: center;
}

body.home .awards-title {
  text-align: center;
  font-size: 56px;
  margin-bottom: 60px;
  font-family: 'lemonmilk-bold';
  letter-spacing: 1px;
  color: #ffffff;
}

.awards-grid {
  display: flex;
  flex-direction: column; /* Stack rows vertically */
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.award-card {
  /* Remove card styling from the wrapper */
  background: transparent;
  border: none;
  padding: 0;
  display: flex; /* Changed from grid to flex for simpler alignment */
  flex-direction: row;
  align-items: center;
  gap: 30px; /* Space between trophy and card */
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: visible;
  backdrop-filter: none;
}

.award-card-inner {
  /* Create the "Card" background around content and year only */
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 30px 40px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  position: relative;
}

.award-card:hover {
  transform: translateX(10px); /* Slight shift right */
  box-shadow: none;
  background: transparent;
  border-color: transparent;
  z-index: 10;
}

.award-card:hover .award-card-inner {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
  transform: scale(1.01);
}

.award-year {
  font-family: 'lemonmilk-bold';
  font-size: 80px;
  color: rgba(255, 255, 255, 0.25);
  line-height: 1;
  pointer-events: none;
  transition: color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
  margin-left: 20px;
}

.award-card:hover .award-year {
  color: rgba(255, 255, 255, 0.6);
  transform: scale(1.05);
}

.award-icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0; /* Prevent icon from shrinking */
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0.02));
  border-radius: 50%;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 2;
}

.award-card:hover .award-icon {
  transform: rotate(15deg) scale(1.1);
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
}

.trophy-icon {
  width: 100%;
  height: 100%;
  color: #1a4178; /* Dark Blue */
  fill: rgba(26, 65, 120, 0.2);
}

.award-content {
  text-align: left;
  z-index: 1;
  flex: 1; /* Take up remaining space */
}

.award-content p {
  font-family: 'albert sans';
  font-size: 20px;
  color: white;
  line-height: 1.4;
  margin: 0;
}

.award-content .divider {
  height: 1px;
  width: 100%;
  background: rgba(255, 255, 255, 0.15);
  margin: 12px 0;
}

/* ===== 08 — Footer ===== */
.contact-footer {
  background-color: #4171ac;
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.4);
  color: white;
  padding: 40px 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 80px 80px;
}

.footer-column {
  flex: 1;
  padding: 0 40px;
  border-right: 1px solid rgba(255,255,255,0.2); /* Vertical blueprint line */
}

.footer-column:last-child {
  border-right: none;
}

.brand h2 {
  font-size: 3.5rem;
  letter-spacing: 5px;
  font-family: 'lemonmilk-bold';
}

.contact-info h3,
.location-info h3 {
  margin-bottom: 15px;
  font-size: 2rem;
  font-family: 'lemonmilk-regular';
}

.actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.journal-btn {
  background: white;
  color: #4171ac;
  padding: 12px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'lemonmilk-bold';
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.journal-btn:hover {
  transform: translateY(-5px);
}

.footer-hotlinks {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  align-items: center;
  justify-content: flex-end; /* keep them on the right under the journal button */
}

.footer-hotlinks a.hotlink {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  background: rgba(255,255,255,0.06);
  padding: 6px;
  transition: transform 0.18s ease, background 0.18s ease;
}

.footer-hotlinks a.hotlink img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-hotlinks a.hotlink:focus,
.footer-hotlinks a.hotlink:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.12);
  outline: none;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.no-underline {
  text-decoration: none;
  color: white;
}

/* About Page Styles */

.leaders {
  width: 100%;
  padding: 0 8%;
  margin: 4rem auto;
}

.leaders-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.leaders-container h1 {
  text-align: right;
  width: 100%;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  font-family: 'lemonmilk-bold';
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.5rem;
}

.leaders-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}

.instructor-card {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: stretch;
  background: linear-gradient(135deg, rgba(79, 127, 182, 0.95), rgba(52, 95, 149, 0.95));
  border-radius: 12px;
  padding: 2.5rem 0 0 2.5rem;
  margin: 0;
  position: relative;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-height: 325px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.instructor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
}

.instructor-card .text {
  flex: 1;
  padding-right: 1.5rem;
  padding-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  min-height: 0; /* allow child to scroll inside this flex item */
}

.instructor-card h2 {
  font-size: 1.35rem;
  margin-top: 0;
}

.instructor-card .text p {
  flex: 1 1 auto;
  margin: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 0.5rem; /* keep text away from scrollbar */
  font-size: 0.95rem;
}

.instructor-card .text p::-webkit-scrollbar {
  width: 6px;
}

.instructor-card .text p::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.instructor-card .text p::-webkit-scrollbar-track {
  background: transparent;
}

.instructor-card .text:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 4px;
  border-radius: 8px;
}

.instructor-card .headshot {
  /* limit leader headshot width so text has more room */
  flex: 0 0 280px;   /* fixed basis but will shrink on narrow viewports */
  max-width: 280px;
  border-top-left-radius: 80px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.instructor-card .headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* bias crop toward upper half so faces remain visible when image is cropped */
  object-position: 50% 25%;
  -webkit-object-fit: cover;
  -webkit-object-position: 50% 25%;
}

.members {
  max-width: 1200px;
  margin: 4rem auto 5rem;
  padding: 0;
  width: 100%
}

.member-container h1 {
  text-align: right;
  width: 100%;
  color: white;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  letter-spacing: 0.1rem;
  padding: 0 0 0.5rem 0;
  font-family: 'lemonmilk-bold';
  border-bottom: 2px solid rgba(255, 255, 255, 0.4);
}

.members-container {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 0 20px;
}

.members-carousel {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0 1.5rem 0;
  scroll-snap-type: x mandatory;
  scroll-padding: 1rem;
  scroll-behavior: smooth;
  width: 100%;
  /* create a positioned stacking context so child buttons can reliably sit above transformed cards */
  position: relative;
  z-index: 0;
}

.members-carousel-wrap {
  position: relative;
  width: 100%;
}

.members-carousel::-webkit-scrollbar {
  height: 10px;
}

.members-carousel::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}

.members-carousel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 999px;
}

.member-card {
  position: relative; /* contain absolutely-positioned bio panel/button */
  flex: 0 0 auto;
  min-width: 380px;
  max-width: 380px;
  height: 300px;
  background: linear-gradient(135deg, rgba(79, 127, 182, 0.95), rgba(52, 95, 149, 0.95));
  border-radius: 16px;
  padding: 1.5rem 1.5rem 3.25rem;
  color: white;
  display: grid;
  grid-template-columns: 150px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas: "headshot text" "headshot text";
  align-items: start;
  gap: 1rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, min-width 0.35s ease, max-width 0.35s ease;
}

.member-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}

.member-card .text {
  max-width: none;
  grid-area: text;
  align-self: start;
}

.member-card .text h2 {
  font-size: 1.2rem;
}

.member-card .headshot {
  width: 150px;
  height: 150px;
  border-radius: 14px;
  border: 3px solid rgba(255, 255, 255, 0.35);
  grid-area: headshot;
  justify-self: start;
  align-self: start;
  margin-bottom: 1rem;
}

.member-card .headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* bias crop toward upper half so faces remain visible when image is cropped */
  object-position: 50% 25%;
  -webkit-object-fit: cover;
  -webkit-object-position: 50% 25%;
  filter: grayscale(10%);
}


.bio-toggle {
  background: white;
  color: #345f95;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'lemonmilk-bold';
  font-size: 0.85rem;
  cursor: pointer;
  position: absolute;
  left: 1.5rem;
  bottom: 1.5rem;
  margin-top: 0;
  z-index: 6;
  transition: all 0.22s ease;
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.08);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.05);
}

.bio-toggle:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(18,36,60,0.08);
  background-color: #fbfbfb;
}

.bio-toggle:active {
  transform: translateY(0);
}

.bio-panel {
  background: rgba(26, 52, 92, 0.75);
  border-radius: 12px;
  overflow: hidden; /* keep hidden when collapsed */
  max-height: 0;
  opacity: 0;
  transform: translateY(-6px);
  padding: 0 0.4rem;
  transition: max-height 0.35s ease, opacity 0.35s ease, transform 0.35s ease, padding 0.35s ease;
  word-break: break-word;
  overflow-wrap: anywhere;
  will-change: max-height;
}

.bio-panel p {
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* OPEN STATE: limit visible height and allow internal scrolling */
.member-card.bio-open .bio-panel {
  max-height: 20rem; /* limit the expanded box height */
  opacity: 1;
  transform: translateY(0);
  padding: 0.75rem 0.9rem;
  overflow-y: auto;              /* allow users to scroll the content */
  -webkit-overflow-scrolling: touch; /* smooth scrolling on iOS */
}

/* Make the panel keyboard-focusable when toggled (JS will add tabindex) */
.bio-panel:focus {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 4px;
}

/* Small visual tweak for scrollbars (non-essential) */
.bio-panel::-webkit-scrollbar {
  width: 8px;
}
.bio-panel::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.12);
  border-radius: 8px;
}
.bio-panel::-webkit-scrollbar-track { background: transparent; }

/* overlay behavior prevents layout shift; no extra padding needed */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: url('images/icons/arrow icon.png') no-repeat center center;
  background-size: contain;
  color: transparent;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  /* ensure nav buttons sit above all card content but remain below the site nav */
  z-index: 200;
  /* preserve clickability even when layered near transformed elements */
  pointer-events: auto;
}

.carousel-btn.prev {
  left: 0.4rem;
  transform: translateY(-50%) rotate(180deg);
}

.carousel-btn.next {
  right: 0.4rem;
}

.carousel-btn.prev:hover {
  transform: translateY(-50%) rotate(180deg) scale(1.05);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}

.carousel-btn.next:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.25);
}


.text {
  max-width: 65%;
  color: white;
}

.text h2 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.text p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.headshot {
  width: 400px;
  height: 400px;
  background-color: #cfd6df; /* placeholder gray like screenshot */
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.headshot img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* bias crop toward upper half so faces remain visible when image is cropped */
  object-position: 50% 25%;
  -webkit-object-fit: cover;
  -webkit-object-position: 50% 25%;
}

.group-img {
  border: none !important;
  width: 100%;
  height: 1500px;

}



/*2026 Journal Button Section*/

.journal-content{
  height: 900px;
}

/* ===== 10 — MEDIA QUERIES (Responsive Styles) ===== */

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
  .hero__video { display: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ===== Min-width: 901px+ (About page - desktop) ===== */
@media (min-width: 901px) {
  body.about .envision {
    font-size: 140px;
  }

  body.about .the {
    font-size: 320px;
  }
}

/* ===== Min-width: 901px+ (Member cards - desktop) ===== */
@media (min-width: 901px) {
  /* Members carousel desktop enhancements */
  .members-carousel { 
    scroll-padding-inline: 3rem; 
  }
  
  .carousel-btn[disabled] { 
    opacity: 0.35; 
    cursor: default; 
    transform: none; 
  }
  
  .carousel-btn[aria-disabled="true"] { 
    pointer-events: none; 
  }

  /* Member card bio desktop layout */
  .member-card .bio-toggle {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    align-self: initial;
    z-index: 4;
  }

  .member-card .headshot {
    position: relative;
    z-index: 5;
  }

  .member-card.bio-open {
    min-width: 560px;
    max-width: 720px;
  }

  .member-card .bio-panel {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: min(63%, calc(100% - 3rem));
    max-width: calc(100% - 3rem);
    min-width: 0;
    max-height: calc(100% - 3rem);
    transform-origin: top right;
    z-index: 2;
    box-shadow: 0 18px 40px rgba(0,0,0,0.45);
    pointer-events: none;
    background: rgba(26,52,92,0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, width 0.25s ease, max-height 0.25s ease;
    overflow: hidden;
    box-sizing: border-box;
  }

  .member-card.bio-open .bio-panel {
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0) scale(1);
    -webkit-overflow-scrolling: touch;
    max-height: calc(100% - 3rem);
  }

  .member-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease, min-width 0.35s ease, max-width 0.35s ease;
  }
}

/* ===== Max-width: 900px (Mobile - Leaders & Members) ===== */

@media (max-width: 768px) {
  body.home .award-card-inner:hover {
    background: transparent;
    border: none;
    box-shadow: none;
    transform: none;
  }
  .journal-hero-img  {
    max-height: 90% !important;
  }


}

@media (max-width: 900px) {
  .leaders {
    padding: 0 6%;
  }

  .leaders-container h1,
  .member-container h1 {
    font-size: 1.5rem;
    text-align: center;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    padding-bottom: 0.5rem;
    margin: 0 6% 2rem 6%;
    width: auto;
  }
}

/* ===== Max-width: 1024px (Tablet & Mid-Laptop - Chapter Cards & Awards) ===== */
@media (max-width: 1024px) {
  /* Reduce side margins on smaller laptops/tablets */
  .chapter-list {
    padding: 0 12px;
    gap: 40px;
  }

  /* Chapter cards - stack vertically earlier to prevent text runoff */
  .chapter-card { 
    flex-direction: column; 
    gap: 0px; 
    padding: 25px;
    width: 100%;
    box-sizing: border-box;
    align-items: stretch; /* Make content fill width */
  }
  
  .chapter-card.reverse { 
    flex-direction: column; 
  }
  
  .chapter-media { 
    width: 100%; 
    max-width: none;
  }
  
  .chapter-media .placeholder { 
    height: 320px; /* Reduced from 380px to save space */
    background-size: 65%;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .chapter-media iframe {
    height: 320px;
  }
  
  .chapter-media iframe {
    width: 100%;
  }

  .carousel-container.placeholder {
    height: 320px; /* Synchronized with image placeholder height */
  }

  .carousel-track img, 
  .carousel-track video {
    object-fit: contain !important; /* show full image on mobile */
    background: rgba(0,0,0,0.1); /* subtle background for non-matching ratios */
  }
  
  .read-btn { 
    position: static; 
    display: inline-block; 
    margin-top: 10px;
    margin-bottom: 20px;
    box-shadow: none; 
    text-align: center;
  }
  
  .chapter-content { 
    margin-top: 0;
    padding: 0 5px;
  }

  .chapter-content h2 { 
    font-size: 36px;
    margin-bottom: 15px;
  }
  .author-card {
    display: flex; /* maintain flex for the header + bio vertical stack */
    flex-direction: column;
    align-items: center; /* Center header and bio container */
    max-height: none; /* remove fixed height on container, let items control size */
    margin-left: auto;
    margin-right: auto;
  }

  .author-card p,
  .author-card-journal p {
    text-align: left; /* Center bio text on mobile */
  }

  .author-bio {
    max-height: 250px;
    overflow-y: auto;
    width: 100%;
  }
  
  .author-header h4 {
    font-size: 18px; /* Slightly smaller on mobile to fit */
  }
  
  .author-img {
    width: 60px;
    height: 60px;
  }

  /* Home awards responsive */
  body.home .awards-title { 
    text-align: left; 
    font-size: 36px; 
    color: #ffffff; 
  }
  
  /* Awards Mobile Adjustments */
  body.home .awards-grid {
    gap: 16px;
    padding: 0 10px;
  }

  body.home .award-card {
    /* Restore card styling to the wrapper on mobile */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 20px;
    flex-direction: row; /* Icon | Content */
    align-items: center;
    gap: 16px;
    backdrop-filter: blur(10px);
  }
  
  body.home .award-card-inner {
    /* Remove card styling from inner wrapper on mobile */
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    backdrop-filter: none;
    flex-direction: column; /* Stack text and year */
    align-items: flex-start;
    width: auto;
    flex: 1;
  }
  
  body.home .award-icon {
    width: 50px;
    height: 50px;
    margin-left: 0;
    padding: 10px;
  }

  body.home .award-content p {
    font-size: 16px;
  }

  /* Year stays small and aligned bottom-right or just below text */
  body.home .award-year {
    font-size: 24px;
    margin-left: 0;
    margin-top: 8px;
    align-self: flex-start;
    color: rgba(255, 255, 255, 0.5);
  }

  body.home .awards-title {
    text-align: right;
  }
}


  body.home .award-text-box p + p {
    margin-top: 24px;
  }


/* ===== Max-width: 640px (Mobile - Video & Footer) ===== */
@media (max-width: 640px) {
  /* Tame padding on mobile cards */
  .chapter-list {
    padding: 0 16px;
    gap: 32px;
  }

  .chapter-card {
    padding: 20px; /* Keep decent internal padding but reduce from desktop */
    gap: 16px;
  }

  /* Show video on mobile with proper scaling */
  .hero__video { 
    display: block;
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  
  .hero { 
    position: relative;
    overflow: hidden;
  }

  /* Footer responsive */
  .actions {
    align-items: flex-start;
  }
  
  .footer-hotlinks {
    justify-content: flex-start;
    margin-top: 12px;
  }
}

/* ===== Max-width: 900px (Mobile & Tablet Pivot) ===== */
@media (max-width: 900px) {
  /* Previously max-width: 600px - Adjusted for Tablet Support */
  body {
    padding-top: 30px;
  }

  /* Navigation mobile */
  .nav {
    padding: 16px 20px;
    background-color: #2f5485;
  }

  .nav-inner {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0;
  }

  /* Show hamburger */
  .hamburger {
    display: flex;
    width: 48px;
    height: 48px;
    padding: 10px;
    margin-right: -10px; /* Align to edge */
  }

  .menu {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
    position: static; /* Allow menu-links to position relative to nav or viewport */
  }

  .menu::before {
    display: none;
  }

  /* Fullscreen Overlay Mobile Menu */
  .menu-links {
    position: fixed; /* Relative to .nav due to transform, effectively acts as absolute to nav */
    inset: 0;        /* covers the container (.nav) but we want viewport */
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for functional full screen on mobile */
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    
    background-color: #2f5485;
    padding: 0 20px;
    
    /* Animation states */
    opacity: 0;
    pointer-events: none;
    transform: translateY(-20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: -1; /* Behind nav content initially? No, we want it on top but below hamburger */
  }
  
  /* We need to ensure hamburger is above menu-links. 
     Hamburger is in .menu (flex). menu-links is in .menu.
     If menu-links is fixed, z-index context applies.
     Hamburger z-index: 1001. We set menu-links: 999.
  */

  .menu-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
    z-index: 999;
  }

  /* Stagger each link sliding in */
  .menu-links a {
    display: block;
    width: 100%;
    max-width: 300px;
    text-align: center;
    padding: 15px;
    font-size: 24px;
    font-weight: 600;
    border-radius: 8px;
    
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .menu-links.is-open a:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
  .menu-links.is-open a:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.2s; }
  .menu-links.is-open a:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.3s; }
  .menu-links.is-open a:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.4s; }

  .menu-links a:hover {
    background-color: rgba(255,255,255,0.1);
  }

  .menu-links a.active:not(.btn) {
    background-color: rgba(255,255,255,0.15);
  }

  /* Journal btn stays visible beside hamburger, ensure it's on top or managed */
  .menu .btn {
    font-size: 12px;
    padding: 12px 14px;
    position: relative;
    z-index: 1002; /* Ensure it stays clickable if user wants */
    /* Or maybe we want to hide it when menu is open? User didn't say. 
       Usually hamburger menu contains all links. 
       The current design has the btn OUTSIDE the menu-links div. 
       So it stays in the header bar. This is fine. */
  }

  .logo-top {
    font-size: 22px;
  }

  .logo-bottom {
    font-size: 40px;
  }

  /* Ensure logo stays on top of menu overlay */
  .logo {
    position: relative;
    z-index: 1002;
  }

  /* Logic to lock scroll and keep nav visible when menu is open */
  /* uses :has() selector - supported in modern browsers (Chrome 105+, Safari 15.4+) */
  body:has(.menu-links.is-open) {
    overflow: hidden;
  }

  /* Force nav to stay visible if menu is open, regardless of scroll script */
  .nav:has(.menu-links.is-open) {
    transform: translateY(0) !important;
  }


  /* Hero & Title mobile */
  .hero {
    padding-left: 0;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  body.theses .hero {
    height: 100vh;
    min-height: 100vh;
    padding-bottom: 100px;
    padding-top: 0;
  }

  .title {
    padding: 0 12px;
  }

  body.home .title,
  body.about .title {
    text-align: center;
    width: 100%;
    margin: 0 auto;
  }

  body.home .title .envision,
  body.home .title .future {
    padding-left: 0;
  }

  body.home .title .the {
    padding-left: 0;
  }

  .envision,
  .future {
    font-size: clamp(32px, 10vw, 60px);
    letter-spacing: 0.12rem;
    padding-left: 0;
  }

  body.home .envision {
    padding-left: 20px;
  }

  body.about .envision {
    padding-right: 0;
    font-size: clamp(40px, 14vw, 90px);
    text-align: center;
  }

  body.about .the {
    font-size: clamp(60px, 18vw, 130px);
    padding-left: 0;
    text-align: center;
  }

  body.home .future {
    padding-left: 130px;
  }

  .the,
  .journal {
    font-size: clamp(48px, 16vw, 100px);
    letter-spacing: 0.16rem;
    padding-left: 0;
    line-height: 0.95;
  }

  body.home .the {
    padding-left: 50px;
    font-size: 100px;
  }

  body.archive .journal {
    text-align: left !important;
    margin-left: 50px !important;
    padding-left: 50px !important;
  }

  body.archive .envision {
    padding-left: 30px;
  }

  body.archive .archive-hero .envision {
    padding-right: 180px;
  }

  .archive-hero-img {
    width: 180% !important;
    min-width: 160%;
    max-height: none;
  }

  .journal {
    font-size: clamp(40px, 14vw, 80px);
    padding-left: 36px;
  }

  /* Home & Journal page mobile — chapter-section boxes */
  body.home .chapter-section,
  .chapter-section {
    padding: 40px 20px;
  }

  body.home .chapter-section .container,
  .chapter-section .container {
    flex-direction: column;
    gap: 0;
  }

  body.home .content-box,
  .content-box {
    order: -1;
  }

  body.home .media-box,
  body.home .content-box,
  .media-box,
  .content-box {
    width: 100%;
    min-height: auto;
  }

  body.home .content-box,
  .content-box {
    height: auto;
  }

  /* Journal-pair section: override desktop fixed sizing so both boxes match full width */
  .chapter-section.journal-pair .container {
    width: 100%;
    flex-direction: column;
    gap: 0;
  }

  .chapter-section.journal-pair .media-box.taga26-media {
    width: 100%;
    padding: 20px;
  }

  .chapter-section.journal-pair .content-box.journal-content {
    width: 100%;
    height: auto;
    min-height: auto;
    padding: 24px 20px 28px;
    max-width: 100%;
  }

  .journal-content {
    height: auto;
  }

  .media-box img.taga26-cover {
    width: 100%;
    max-width: 100%;
  }

  body.home .thesis {
    padding: 40px 20px;
  }

  body.home .chapters {
    flex-direction: column;
    gap: 20px;
    margin: 30px 20px;
  }

  body.home .chapter-box {
    height: auto;
  }

  body.home .awards-section {
    padding: 60px 20px;
  }

  /* Footer mobile */
  .contact-footer {
    flex-direction: column;
    padding: 36px 0;
  }

  .footer-column {
    padding: 16px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .footer-column:last-child {
    border-bottom: none;
  }

  .actions {
    align-items: flex-start;
  }

  .journal-btn {
    margin-bottom: 12px;
  }

  /* Edition boxes mobile - make squares */
  .editions-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .editions-grid > a:last-child {
    grid-column: auto;
    justify-self: auto;
    width: auto;
  }

  .edition-box1, .edition-box2, .edition-box3, .edition-box4, .edition-box6 {
    width: 90vw;
    max-width: 350px;
    height: 90vw;
    max-height: 350px;
    padding: 0;
    min-width: 0;
    min-height: 0;
    margin-left: auto;
    margin-right: auto;
  }

  .edition-year {
    font-size: 36px;
    position: absolute;
    bottom: -10px;
    left: 0;
  }
}

/* ===== Max-width: 900px (Mobile - Member Cards & Leaders) ===== */
@media (max-width: 900px) {
  /* Member cards mobile */
  .carousel-btn {
    display: flex; /* Always visible */
    z-index: 201; /* Ensure buttons are above carousel items */
  }

  .members-carousel {
    gap: 1.5rem;
    padding: 1rem 5vw 2rem 5vw;
  }

  .members-carousel .member-card {
    scroll-snap-align: center;
  }

  .members-carousel-wrap {
    padding: 0 10px;
  }

  .instructor-card {
    flex-direction: row;
    padding: 0;
    align-items: stretch;
    text-align: left;
    max-height: none;
    overflow: hidden;
    gap: 0;
  }

  .instructor-card .text {
    padding: 1rem 0.75rem;
    flex: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .instructor-card .headshot {
    flex: 1;
    width: auto;
    height: auto;
    border-radius: 0;
    margin: 0;
    align-self: stretch;
  }

  .instructor-card .headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .instructor-card .text p {
    max-height: 150px;
    overflow-y: auto;
    padding-right: 5px;
    font-size: 0.85rem;
  }

  .instructor-card h2 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
  }

  .instructor-card .headshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .member-card {
    display: flex;
    flex-direction: row;
    min-width: 85vw;
    max-width: 400px;
    height: auto;
    padding: 0;
    align-items: stretch;
    text-align: left;
    overflow: hidden;
  }

  .member-card .headshot {
    flex: 1;
    order: 1;
    width: auto;
    height: auto;
    margin: 0;
    border-radius: 0;
    border: none;
  }

  .member-card .text {
    flex: 2;
    padding: 1.2rem 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .member-card .bio-toggle {
    margin-top: 0.8rem;
    margin-left: 0;
    align-self: flex-start;
  }

  .member-card .bio-panel {
    position: static;
    width: 100%;
    max-height: 0;
    opacity: 0;
    transform: none;
    margin-top: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .member-card.bio-open .bio-panel {
    max-height: 250px;
    opacity: 1;
    margin-top: 0.8rem;
    padding: 0;
    overflow-y: auto;
  }

  .member-card .bio-panel p {
    font-size: 0.85rem;
    line-height: 1.5;
    padding-right: 5px;
  }
}

/* ===== Max-width: 480px (Small Mobile - Chapter Content) ===== */
@media (max-width: 480px) {
  .chapter-content h2 { 
    font-size: 32px; 
  }
  
  .chapter-list { 
    gap: 36px;  
    padding: 0 10px;
  }
  
  .chapter-card {
    padding: 16px;
  }

  .intro-card {
    padding: 32px 24px !important;
    border-radius: 12px;
  }
  
  .intro-text {
    font-size: 18px;
    text-align: left !important;
    line-height: 1.6;
  }
}

@media (max-width: 900px) {
   body.about .hero {
    padding-top: 160px;   /* pushes content down ONLY on About page */
  }

  body.about .about-hero-img {
    margin-top: 0;
  }


   .about-hero-container {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .about-hero-img {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: auto;
    width: 100vw;
    max-width: none;
    margin: 0;
    opacity: 0.25;
    z-index: 0;
    object-fit: contain;
  }

  .about-hero-container .title {
    position: relative;
    z-index: 1;
  }

  .awards-title{
  text-align: right;
}
}

/* ===== 11 — Interactive Enhancements ===== */

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, #fff, #8ab4f8);
  z-index: 9999;
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

/* Registration Mark Cursor */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 30px;
  height: 30px;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
  mix-blend-mode: exclusion;
}

@media (max-width: 1024px) {
  .cursor-glow {
    display: none !important;
  }
}

/* Crosshairs */
.cursor-glow::before,
.cursor-glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%);
}

/* Horizontal line */
.cursor-glow::before {
  width: 140%; /* Wider than the circle */
  height: 1.5px;
}

/* Vertical line */
.cursor-glow::after {
  height: 140%; /* Taller than the circle */
  width: 1.5px;
}

body:hover .cursor-glow {
  opacity: 1;
}

/* Magnetic Button Effect (applied via JS) */
.magnetic-btn {
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* FORCE archive editions to center on mobile */
@media (max-width: 900px) {
  body.archive section.thesis.reveal {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;  /* stops right-push */
    text-align: center !important;
  }

  body.archive section.thesis.reveal .editions-grid {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important; /* grid content centering */
    justify-items: center !important;   /* item centering */
    place-items: center !important;     /* extra insurance */
  }

  body.archive section.thesis.reveal .editions-grid > a {
    justify-self: center !important;
    width: 100% !important;            /* make each cell full width */
    display: flex !important;          /* center the card inside */
    justify-content: center !important;
  }
}

