/* =====================================================================
   Taking AIME at AI — Theme CSS
   ===================================================================== */

/* Custom font-faces (fallback for browsers that don't read theme.json fonts) */
@font-face {
  font-family: 'Metropolis';
  src: url('../fonts/Metropolis-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('../fonts/GothamPro.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham Pro';
  src: url('../fonts/GothamPro-Black.woff') format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ----- CSS Custom Properties ----- */
:root {
  --aime-dark-purple:   #412C88;
  --aime-light-purple:  #A088BF;
  --aime-bright-purple: #9c5ac8;
  --aime-red:           #DB6463;
  --aime-blue:          #4284F3;
  --aime-green:         #6dd040;
  --aime-orange:        #FF9900;
  --aime-radius-lg:     20px;
  --aime-radius-md:     12px;
  --aime-radius-sm:     8px;
  --aime-shadow:        0 4px 8px rgba(0,0,0,.15), 0 6px 20px rgba(0,0,0,.12);
}

/* ----- Reset / Base ----- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Metropolis', 'Gotham Pro', 'Segoe UI', Arial, sans-serif;
  color: var(--aime-dark-purple);
  margin: 0;
  overflow-x: hidden;
}

a { color: var(--aime-bright-purple); }
a:hover { color: var(--aime-dark-purple); }

img { max-width: 100%; height: auto; }

/* =====================================================================
   HEADER
   ===================================================================== */
.aime-header {
  background-color: var(--aime-dark-purple);
  padding: 0.75rem 1.5rem;
}
.aime-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1536px;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.aime-header__logo { display: flex; align-items: center; }
.aime-header__logo img { width: 180px; max-width: 100%; }

.aime-nav { display: flex; align-items: center; gap: 0.25rem; }
.aime-nav a {
  color: #fff;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: var(--aime-radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.2s;
}
.aime-nav a:hover { background: rgba(255,255,255,0.15); color: #fff; }

/* Mobile hamburger */
.aime-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
  margin-left: auto;
}
.aime-menu-toggle svg { width: 28px; height: 28px; fill: #fff; }

@media (max-width: 900px) {
  .aime-nav { display: none; width: 100%; flex-direction: column; align-items: center; padding-bottom: 0.75rem; }
  .aime-nav.open { display: flex; }
  .aime-menu-toggle { display: block; }
  .aime-header__inner { flex-wrap: wrap; }
  .aime-header__logo { width: calc(100% - 48px); }
}

/* =====================================================================
   FOOTER
   ===================================================================== */
.aime-footer {
  background-color: var(--aime-dark-purple);
  padding: 2.5rem 2rem;
  color: #fff;
}
.aime-footer__inner {
  max-width: 1536px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}
.aime-footer__logo { width: 200px; }
.aime-footer__logo img { width: 100%; }
.aime-footer__survey { text-align: center; }
.aime-footer__survey-title { font-weight: 700; font-size: 1.1rem; margin-bottom: 1rem; }
.aime-footer__survey-btn {
  display: inline-block;
  background: var(--aime-light-purple);
  color: #fff;
  font-weight: 900;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  border: 2px solid #fff;
  text-decoration: none;
  transition: opacity 0.2s;
}
.aime-footer__survey-btn:hover { opacity: 0.85; color: #fff; }
.aime-footer__contact { text-align: right; }
.aime-footer__contact-title { font-size: 1.1rem; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; }
.aime-footer__contact a { color: #fff; font-size: 0.95rem; }
.aime-footer__credit { font-size: 0.8rem; color: var(--aime-light-purple); font-style: italic; margin-top: 0.75rem; }

@media (max-width: 900px) {
  .aime-footer__inner { flex-direction: column; align-items: center; }
  .aime-footer__contact { text-align: center; }
  .aime-footer__logo { width: 160px; }
}

/* =====================================================================
   HERO SECTION (Home)
   ===================================================================== */
.aime-hero {
  background-color: var(--aime-dark-purple);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem 3rem;
  text-align: center;
  position: relative;
}
.aime-hero__title-wrap { position: relative; display: inline-block; }
.aime-hero__title {
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 900;
  color: #fff;
  border: 4px solid #fff;
  padding: clamp(1rem, 4vw, 2.5rem) clamp(1.5rem, 6vw, 4rem);
  border-radius: var(--aime-radius-lg);
  line-height: 1.1;
  margin: 0;
}
.aime-hero__subtitle-band {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  background: var(--aime-dark-purple);
  padding: 0.5rem 1.25rem;
  white-space: nowrap;
  z-index: 2;
}
.aime-hero__subtitle {
  color: #fff;
  font-size: clamp(0.6rem, 1.5vw, 1.1rem);
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
}
.aime-hero__video-wrap {
  margin-top: 3.5rem;
  width: 50%;
  max-width: 640px;
  border-radius: var(--aime-radius-md);
  overflow: hidden;
  box-shadow: var(--aime-shadow);
}
.aime-hero__video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
}

@media (max-width: 600px) {
  .aime-hero__video-wrap { width: 90%; }
  .aime-hero__subtitle-band { white-space: normal; width: 90%; text-align: center; }
}

/* =====================================================================
   HOME: FRAMEWORK SECTION
   ===================================================================== */
.aime-section-framework {
  padding: 4rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.aime-section-framework .aime-visual {
  width: 90vw;
  max-width: 750px;
  border-radius: 16px;
  margin: 2rem 0;
}
.aime-cta-btn {
  display: inline-block;
  background: var(--aime-dark-purple);
  color: #fff;
  font-weight: 900;
  font-size: clamp(1rem, 2vw, 1.25rem);
  padding: 0.75rem 2rem;
  border-radius: 30px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  margin-top: 1rem;
}
.aime-cta-btn:hover { opacity: 0.88; transform: translateY(-2px); color: #fff; }
.aime-cta-btn--light { background: var(--aime-bright-purple); }

/* =====================================================================
   HOME: RESOURCES SECTION
   ===================================================================== */
.aime-section-resources {
  background-color: var(--aime-light-purple);
  padding: 5rem 2rem;
  text-align: center;
}
.aime-section-resources h2 { color: #fff; }
.aime-resource-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  justify-content: center;
  margin-top: 2.5rem;
}
.aime-resource-btn { background: none; border: none; cursor: pointer; padding: 0; }
.aime-resource-btn img {
  width: clamp(200px, 30vw, 350px);
  height: clamp(200px, 30vw, 350px);
  border-radius: var(--aime-radius-lg);
  object-fit: cover;
  transition: transform 0.2s, box-shadow 0.2s;
}
.aime-resource-btn:hover img {
  transform: scale(1.05);
  box-shadow: var(--aime-shadow);
}

/* =====================================================================
   HOME: IMPACT SECTION
   ===================================================================== */
.aime-section-impact {
  padding: 4rem 2rem 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.aime-impact-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
  max-width: 1400px;
  margin-top: 2rem;
}
.aime-impact-photo {
  width: 80vw;
  max-width: 480px;
  border-radius: var(--aime-radius-lg);
}
.aime-impact-stats { display: flex; flex-direction: column; gap: 1.5rem; max-width: 700px; flex: 1; min-width: 280px; }
.aime-stat-box {
  border-radius: var(--aime-radius-lg);
  padding: clamp(1rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.aime-stat-box--purple { background: linear-gradient(60deg, #9c5ac8, #ffe2ea); }
.aime-stat-box--blue   { background: linear-gradient(0deg, #4284f3, #413b9f); }
.aime-stat-number {
  font-size: clamp(2.5rem, 8vw, 9rem);
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}
.aime-stat-box--purple .aime-stat-number { color: var(--aime-dark-purple); }
.aime-stat-box--blue   .aime-stat-number { color: #fff; }
.aime-stat-text { flex: 1; text-align: center; }
.aime-stat-title { font-weight: 900; font-size: clamp(1rem, 2vw, 1.4rem); }
.aime-stat-box--purple .aime-stat-title { color: var(--aime-dark-purple); }
.aime-stat-box--blue   .aime-stat-title { color: #fff; }
.aime-stat-desc  { font-size: clamp(0.8rem, 1.5vw, 1rem); margin-top: 0.4rem; }
.aime-stat-box--purple .aime-stat-desc  { color: var(--aime-dark-purple); }
.aime-stat-box--blue   .aime-stat-desc  { color: #fff; }

/* =====================================================================
   TESTIMONIALS CAROUSEL
   ===================================================================== */
.aime-testimonials-section { padding: 3rem 2rem 5rem; }
.aime-testimonials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.aime-testimonials__btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--aime-dark-purple);
  padding: 0.5rem;
  flex-shrink: 0;
  transition: transform 0.15s;
}
.aime-testimonials__btn:hover { transform: scale(1.2); }
.aime-testimonials__btn svg { width: 36px; height: 36px; fill: currentColor; }
.aime-testimonials__track {
  width: min(800px, 90vw);
  border: 4px solid var(--aime-dark-purple);
  border-radius: var(--aime-radius-lg);
  padding: 2rem 2.5rem;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.aime-testimonial {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: aime-fade-in 0.4s ease;
}
.aime-testimonial.active { display: flex; }
.aime-testimonial__text  { font-size: clamp(0.85rem, 1.5vw, 1.1rem); color: var(--aime-dark-purple); line-height: 1.6; }
.aime-testimonial__name  { font-size: clamp(0.8rem, 1.4vw, 1rem); color: var(--aime-dark-purple); font-weight: 600; }

@keyframes aime-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   AIME PAGE — Acronym Display
   ===================================================================== */
.aime-acronym-section {
  padding: clamp(2rem, 6vw, 6rem);
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}
.aime-acronym-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.aime-acronym-item {
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 900;
  color: var(--aime-dark-purple);
  margin: 0;
  line-height: 1.1;
}
.aime-down-arrow {
  font-size: clamp(4rem, 12vw, 16rem);
  color: var(--aime-dark-purple);
  line-height: 1;
  flex-shrink: 0;
  margin-top: 4rem;
}

/* =====================================================================
   AIME PAGE — Framework Diagram
   ===================================================================== */
.aime-framework-section {
  padding: 2rem 2rem 4rem;
  text-align: center;
}
.aime-framework-section p { font-size: clamp(1rem, 2vw, 1.5rem); max-width: 900px; margin: 0 auto 2rem; }

.aime-diagram {
  position: relative;
  width: min(700px, 92vw);
  height: min(700px, 92vw);
  margin: 4rem auto 5rem;
}

/* Center circle */
.aime-diagram__center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 38%;
  height: 38%;
  background: var(--aime-bright-purple);
  border-radius: 50%;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 3;
  text-decoration: none;
  transition: transform 0.2s, width 0.25s, height 0.25s;
  padding: 1rem;
}
.aime-diagram__center:hover {
  transform: translate(-50%, -50%) scale(1.08);
  width: 48%;
  height: 48%;
}
.aime-diagram__center-label {
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.7rem, 2vw, 1.1rem);
  line-height: 1.3;
}
.aime-diagram__center-hover { display: none; color: #fff; font-size: 0.82rem; margin-top: 0.4rem; line-height: 1.4; }
.aime-diagram__center:hover .aime-diagram__center-hover { display: block; }

/* Corner rectangles */
.aime-diagram__rect {
  position: absolute;
  width: 36%;
  height: 24%;
  border-radius: 12px;
  border: 2px solid #000;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
  transition: transform 0.2s, width 0.25s, height 0.25s;
  padding: 0.75rem;
  overflow: hidden;
}
.aime-diagram__rect:hover { width: 48%; height: 32%; }
.aime-diagram__rect-label { font-weight: 700; font-size: clamp(0.65rem, 1.8vw, 0.95rem); color: #000; line-height: 1.3; }
.aime-diagram__rect-hover { display: none; font-size: 0.78rem; color: #000; margin-top: 0.4rem; line-height: 1.4; }
.aime-diagram__rect:hover .aime-diagram__rect-hover { display: block; }

/* Position each rect in a corner */
.aime-diagram__rect--top-left    { top: 10%; left: 0;   transform: translate(-48%, -50%); }
.aime-diagram__rect--top-right   { top: 10%; right: 0;  transform: translate(48%, -50%);  }
.aime-diagram__rect--btm-right   { bottom: 10%; right: 0;  transform: translate(48%, 50%);  }
.aime-diagram__rect--btm-left    { bottom: 10%; left: 0;   transform: translate(-48%, 50%); }

.aime-diagram__rect--top-left:hover    { transform: translate(-38%, -42%); }
.aime-diagram__rect--top-right:hover   { transform: translate(38%, -42%);  }
.aime-diagram__rect--btm-right:hover   { transform: translate(38%, 42%);   }
.aime-diagram__rect--btm-left:hover    { transform: translate(-38%, 42%);  }

/* =====================================================================
   AIME PAGE — Three-Phase Accordion (BoxedText)
   ===================================================================== */
.aime-phases-section { padding: 0 2rem 5rem; }
.aime-phases-section .aime-phase-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}
.aime-accordion {
  width: min(1000px, 92vw);
  border: 3px solid var(--aime-light-purple);
  border-radius: var(--aime-radius-lg);
  background: #fff;
  transition: background 0.2s;
  overflow: hidden;
}
.aime-accordion.open { background: var(--aime-light-purple); }
.aime-accordion__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}
.aime-accordion__title {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--aime-dark-purple);
  font-weight: 400;
}
.aime-accordion.open .aime-accordion__title { color: #fff; }
.aime-accordion__icon {
  flex-shrink: 0;
  color: var(--aime-light-purple);
  font-size: 1.75rem;
  line-height: 1;
  transition: transform 0.25s;
  font-weight: 300;
}
.aime-accordion.open .aime-accordion__icon { transform: rotate(45deg); color: #fff; }
.aime-accordion__body { display: none; padding: 0 1.5rem 1.5rem; }
.aime-accordion.open .aime-accordion__body { display: block; }
.aime-accordion__body ul { list-style: disc; padding-left: 1.5rem; margin: 0; }
.aime-accordion__body li {
  color: #fff;
  font-size: clamp(0.85rem, 1.5vw, 1.1rem);
  margin-bottom: 0.6rem;
  line-height: 1.5;
}

/* =====================================================================
   RESOURCE CENTRE — Tabs
   ===================================================================== */
.aime-tabs-section { padding: 0 1rem 4rem; }
.aime-tabs-nav {
  display: flex;
  border-bottom: 2px solid #e8e8e8;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.aime-tabs-nav::-webkit-scrollbar { display: none; }
.aime-tab-btn {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: var(--aime-dark-purple);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 400;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: color 0.2s;
  margin-bottom: -2px;
}
.aime-tab-btn:hover { color: var(--aime-bright-purple); }
.aime-tab-btn.active { color: var(--aime-bright-purple); font-weight: 900; border-bottom-color: var(--aime-bright-purple); }

.aime-tab-panel { display: none; padding: 2rem 0; }
.aime-tab-panel.active { display: block; }

/* Presentations & Recommendations grid */
.aime-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  justify-items: center;
}

/* MediaCard */
.aime-media-card {
  border: 2px solid var(--aime-dark-purple);
  border-radius: var(--aime-radius-lg);
  overflow: hidden;
  max-width: 400px;
  width: 100%;
  display: flex;
  flex-direction: column;
  height: 520px;
}
.aime-media-card__img { width: 100%; height: 200px; object-fit: cover; }
.aime-media-card__body { padding: 1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: 0.75rem; }
.aime-media-card__title { font-weight: 900; font-size: 1.1rem; text-align: center; text-decoration: underline; flex: 1; display: flex; align-items: center; justify-content: center; }
.aime-media-card__desc { font-size: 0.95rem; text-align: center; flex: 1; display: flex; align-items: center; justify-content: center; }
.aime-media-card__action { display: flex; justify-content: center; padding: 0.75rem 0; }
.aime-media-card__link {
  color: var(--aime-dark-purple);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--aime-dark-purple);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}
.aime-media-card__link:hover { background: var(--aime-dark-purple); color: #fff; }

/* Publications list */
.aime-publications { max-width: 1000px; margin: 0 auto; }
.aime-pub-item { margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--aime-light-purple); }
.aime-pub-item:last-child { border-bottom: none; }
.aime-pub-title { font-weight: 900; font-size: clamp(1rem, 2vw, 1.3rem); margin-bottom: 0.5rem; }
.aime-pub-desc  { font-size: clamp(0.85rem, 1.5vw, 1rem); line-height: 1.6; }
.aime-pub-desc a { color: var(--aime-bright-purple); }

/* Publications pagination */
.aime-pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.aime-page-btn {
  background: none;
  border: 1px solid var(--aime-light-purple);
  color: var(--aime-dark-purple);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.aime-page-btn:hover,
.aime-page-btn.active { background: var(--aime-bright-purple); color: #fff; border-color: var(--aime-bright-purple); }

/* Custom Tools */
.aime-tools { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; gap: 2rem; }
.aime-tool-card {
  border-radius: var(--aime-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #e0d6f0;
  box-shadow: 0 2px 8px rgba(65,44,136,.08);
}
.aime-tool-card__img {
  width: 280px;
  height: 220px;
  object-fit: cover;
  border-radius: var(--aime-radius-lg);
  margin: 1rem;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
}
.aime-tool-card__img:hover { transform: scale(1.04); filter: brightness(1.08); }
.aime-tool-card__body { flex: 1; min-width: 240px; padding: 1.5rem; }
.aime-tool-card__title { font-weight: 900; font-size: 1.2rem; margin-bottom: 0.5rem; }
.aime-tool-card__desc  { font-size: 1rem; margin-bottom: 1rem; line-height: 1.5; }
.aime-tool-card__actions { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.aime-tool-link { font-weight: 700; color: var(--aime-dark-purple); cursor: pointer; font-size: 0.95rem; background: none; border: none; font-family: inherit; text-decoration: underline; padding: 0; }
.aime-tool-link:hover { color: var(--aime-bright-purple); }
.aime-tool-card__more { display: none; margin-bottom: 1rem; }
.aime-tool-card__more.open { display: block; }
.aime-tool-card__more ul { padding-left: 1.5rem; margin: 0.5rem 0; }
.aime-tool-card__more li { font-size: 0.95rem; margin-bottom: 0.4rem; }
.aime-tool-card__divider { border: none; border-top: 1px solid var(--aime-dark-purple); margin: 0.75rem 0; }
.aime-tool-card__credit { font-size: 0.85rem; color: var(--aime-dark-purple); font-weight: 500; }
.aime-tool-card__apa    { font-size: 0.78rem; color: var(--aime-bright-purple); margin-top: 0.3rem; line-height: 1.5; }

@media (max-width: 640px) {
  .aime-tool-card { flex-direction: column; }
  .aime-tool-card__img { width: calc(100% - 2rem); height: auto; }
}

/* Recommendations */
.aime-recommendations { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.5rem; align-items: center; }
.aime-rec-box {
  width: min(800px, 92vw);
  border-radius: 24px;
  padding: 1.25rem 2rem;
  opacity: 0.88;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
}
.aime-rec-box:hover { opacity: 1; transform: translateY(-2px); }
.aime-rec-box__title { font-weight: 900; font-size: 1.1rem; color: #fff; }
.aime-rec-box__desc  { font-size: 0.95rem; color: #fff; }
.aime-rec-box__icon  { color: #fff; font-size: 1.4rem; flex-shrink: 0; }

/* =====================================================================
   ABOUT PAGE
   ===================================================================== */
.aime-about-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 5rem 2rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.aime-about-section p { font-size: clamp(1rem, 2vw, 1.4rem); line-height: 1.7; }

.aime-use-case-section {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 2rem 4rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.aime-use-case-section h2,
.aime-use-case-section p { color: var(--aime-bright-purple); }
.aime-use-case-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
}
.aime-use-case-btn {
  display: inline-block;
  background: var(--aime-bright-purple);
  color: #fff;
  font-weight: 900;
  font-size: 1.05rem;
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.aime-use-case-btn:hover { opacity: 0.85; transform: translateY(-2px); color: #fff; }
.aime-use-case-btn--light { background: var(--aime-light-purple); }

/* Team hover cards */
.aime-team-section { padding: 0 2rem 5rem; text-align: center; }
.aime-team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5rem;
  justify-content: center;
  margin-top: 3rem;
  align-items: flex-start;
}
.aime-team-member { text-align: center; }
.aime-team-card {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow 0.2s;
  cursor: default;
  position: relative;
}
.aime-team-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.22); }
.aime-team-card__photo { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity 0.3s; }
.aime-team-card__bio {
  position: absolute;
  inset: 0;
  background: var(--aime-dark-purple);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.aime-team-card:hover .aime-team-card__bio   { opacity: 1; }
.aime-team-card:hover .aime-team-card__photo { opacity: 0; }
.aime-team-card__bio p { color: #fff; font-size: 0.9rem; line-height: 1.55; margin: 0; }
.aime-team-name { color: var(--aime-dark-purple); font-size: 1rem; padding: 0.75rem 0; font-weight: 600; }

/* =====================================================================
   AIME SUBPAGES (A / I / M / E / L)
   ===================================================================== */
.aime-subpage-section {
  padding: clamp(1.5rem, 4vw, 4rem) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.aime-subpage-section h2 { text-align: center; font-size: clamp(1.75rem, 4vw, 3.5rem); }
.aime-fill-boxes {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: clamp(2rem, 5vw, 4rem);
  width: 100%;
  align-items: center;
}
.aime-fill-box {
  width: min(800px, 92vw);
  border-radius: 24px;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 2rem);
  opacity: 0.82;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.aime-fill-box__text { font-weight: 900; font-size: clamp(0.9rem, 2vw, 1.2rem); line-height: 1.5; }

.aime-back-link {
  position: sticky;
  bottom: 2rem;
  left: 2rem;
  margin: 1.5rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  transition: opacity 0.2s;
}
.aime-back-link:hover { opacity: 0.7; }

/* =====================================================================
   GENERAL UTILITIES
   ===================================================================== */
.aime-section-title {
  font-size: clamp(1.75rem, 4vw, 3.75rem);
  font-weight: 900;
  color: var(--aime-dark-purple);
  text-align: center;
  margin: 0 0 1rem;
}
.aime-section-body {
  font-size: clamp(1rem, 1.8vw, 1.4rem);
  color: var(--aime-dark-purple);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.65;
}
.aime-center { text-align: center; }
.aime-padlet-wrap {
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 2px;
  overflow: hidden;
  background: #F4F4F4;
  max-width: 960px;
  margin: 0 auto;
}
.aime-padlet-wrap iframe { width: 100%; height: 608px; display: block; border: none; }

/* Responsive tweaks */
@media (max-width: 600px) {
  .aime-team-card { width: 220px; height: 220px; }
  .aime-diagram { height: min(500px, 92vw); }
}
