/* ============================================================
   VolunTeens Landing — Logo Animation + Role Selection
   Palette: Blue #2185c5, Green #6cc04a, Teal #2dd4a8
   Fonts: Syne (display) + Space Grotesk (body)
   ============================================================ */

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

:root {
  --blue: #2185c5;
  --blue-light: #3da5e0;
  --green: #6cc04a;
  --green-light: #8cdb6a;
  --teal: #2dd4a8;
  --bg: #ffffff;
  --bg-card: #f5f7fa;
  --fg: #1a1a2e;
  --fg-dim: #6b7280;
  --font-display: 'Syne', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ========== PRELOADER ========== */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}
#preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }

.preloader-ring {
  width: 48px; height: 48px;
  border: 3px solid rgba(0,0,0,0.06);
  border-top-color: var(--blue); border-right-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.preloader-text {
  font-size: 0.85rem; color: var(--fg-dim);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.dots::after { content: ''; animation: dots 1.5s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* ========== ANIMATION STAGE ========== */
#animation-stage {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}

#logo-anim-img {
  max-width: 55vmin;
  max-height: 70vmin;
  width: auto; height: auto;
  object-fit: contain;
  opacity: 0;
}

#animation-stage.shrink {
  transform: scale(0.12) translateY(-320%);
}

#animation-stage.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ========== MAIN INTERFACE ========== */
#main-interface {
  position: relative; z-index: 50;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 100px 2rem 2rem;
}
#main-interface.hidden { visibility: hidden; opacity: 0; }
#main-interface.visible { visibility: visible; opacity: 1; }

/* Subtle grid background */
#main-interface::before {
  content: ''; position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none; z-index: -1;
}

/* Gradient orb */
#main-interface::after {
  content: ''; position: fixed;
  width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(33,133,197,0.08) 0%, rgba(108,192,74,0.05) 50%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; z-index: -1;
}

/* ========== HEADER ========== */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; justify-content: center; padding: 1.2rem 2rem;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  pointer-events: none;
}
.header-logo-wrap { pointer-events: auto; }

#header-logo {
  height: 52px; width: auto;
  opacity: 0; transform: translateY(-20px) scale(0.8);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}
#header-logo.revealed { opacity: 1; transform: translateY(0) scale(1); }

/* ========== TAGLINE ========== */
#tagline { text-align: center; margin-bottom: 3.5rem; }

.tagline-text {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.1; letter-spacing: -0.03em;
}
.tagline-text .line { display: block; opacity: 0; transform: translateY(30px); }
.tagline-text .line-2 {
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  font-size: 0.6em;
  white-space: nowrap;
}
.tagline-sub {
  margin-top: 1rem; font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  color: var(--fg-dim); opacity: 0; transform: translateY(15px);
}

/* ========== ROLE CARDS ========== */
#role-cards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; max-width: 1400px; width: 100%;
}

.role-card {
  position: relative; display: flex; flex-direction: column;
  align-items: center; text-align: center;
  padding: 4rem 3rem 3.2rem;
  min-height: 360px;
  background: var(--bg-card);
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 20px;
  text-decoration: none; color: var(--fg);
  overflow: hidden; cursor: pointer;
  opacity: 0;
  /* Initial transform/filter posés via gsap.set() au démarrage,
     pour que clearProps puisse remettre la carte à sa taille naturelle ensuite. */
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.role-card:hover {
  transform: translateY(-6px) !important;
  border-color: rgba(0,0,0,0.12);
  box-shadow: 0 12px 32px rgba(33, 133, 197, 0.12);
}

.card-glow {
  position: absolute; inset: 0; opacity: 0;
  transition: opacity 0.4s ease; border-radius: 20px; pointer-events: none;
}
.role-card:hover .card-glow { opacity: 1; }

/* Card accents */
.card-student { --accent: var(--blue); }
.card-student:hover { border-color: rgba(33,133,197,0.3); box-shadow: 0 8px 40px rgba(33,133,197,0.15); }
.card-student .card-glow { background: radial-gradient(circle at 50% 0%, rgba(33,133,197,0.1) 0%, transparent 70%); }

.card-organisation { --accent: var(--green); }
.card-organisation:hover { border-color: rgba(108,192,74,0.3); box-shadow: 0 8px 40px rgba(108,192,74,0.15); }
.card-organisation .card-glow { background: radial-gradient(circle at 50% 0%, rgba(108,192,74,0.1) 0%, transparent 70%); }

.card-parent { --accent: var(--teal); }
.card-parent:hover { border-color: rgba(45,212,168,0.3); box-shadow: 0 8px 40px rgba(45,212,168,0.15); }
.card-parent .card-glow { background: radial-gradient(circle at 50% 0%, rgba(45,212,168,0.08) 0%, transparent 70%); }

.card-icon {
  width: 88px; height: 88px; color: var(--accent);
  margin-bottom: 1.6rem; transition: transform 0.3s ease;
}
.role-card:hover .card-icon { transform: scale(1.1); }
.card-icon svg { width: 100%; height: 100%; }

.card-title {
  font-family: var(--font-display); font-size: 2rem;
  font-weight: 700; margin-bottom: 0.8rem; letter-spacing: -0.02em;
}

.card-desc { font-size: 1.05rem; color: var(--fg-dim); line-height: 1.55; margin-bottom: 1.8rem; }

.card-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,0.04);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  transition: background 0.3s ease, transform 0.3s ease;
}
.card-arrow svg { width: 18px; height: 18px; }
.role-card:hover .card-arrow { background: var(--accent); color: var(--bg); transform: translateX(4px); }

/* ========== ABOUT US ========== */
#about-us {
  width: 100%; max-width: 900px;
  margin-top: 5rem; padding: 0 1rem;
  opacity: 0; transform: translateY(30px);
}

.about-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  text-align: center; margin-bottom: 3rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.about-timeline {
  position: relative;
  padding-left: 48px;
}

/* Vertical gradient line */
.about-timeline-line {
  position: absolute; left: 20px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green), var(--teal));
  border-radius: 2px;
  opacity: 0.4;
}

/* Each node */
.about-node {
  position: relative;
  padding-bottom: 2.5rem;
}
.about-node:last-child { padding-bottom: 0; }

/* The numbered dot */
.about-node-dot {
  position: absolute; left: -48px; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.85rem; color: #fff;
  z-index: 2;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-node:hover .about-node-dot {
  transform: scale(1.15);
}

/* Pulsing ring behind dot */
.about-node-dot::before {
  content: ''; position: absolute; inset: -4px;
  border-radius: 50%; opacity: 0;
  transition: opacity 0.3s ease;
  animation: pulse-ring 2.5s ease-in-out infinite;
}
.about-node:hover .about-node-dot::before { opacity: 1; }

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 0; }
}

/* Color variants */
.about-node--blue .about-node-dot {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  box-shadow: 0 4px 20px rgba(33,133,197,0.3);
}
.about-node--blue .about-node-dot::before { border: 2px solid var(--blue); }
.about-node--blue .about-node-content h3 { color: var(--blue); }

.about-node--green .about-node-dot {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  box-shadow: 0 4px 20px rgba(108,192,74,0.3);
}
.about-node--green .about-node-dot::before { border: 2px solid var(--green); }
.about-node--green .about-node-content h3 { color: var(--green); }

.about-node--teal .about-node-dot {
  background: linear-gradient(135deg, var(--teal), #5ee8c5);
  box-shadow: 0 4px 20px rgba(45,212,168,0.3);
}
.about-node--teal .about-node-dot::before { border: 2px solid var(--teal); }
.about-node--teal .about-node-content h3 { color: var(--teal); }

/* Content area */
.about-node-content {
  padding: 0.1rem 0 0 1rem;
  border-left: none;
}

.about-node-content h3 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  margin-bottom: 0.6rem; letter-spacing: -0.02em;
}

.about-node-content p {
  font-size: clamp(0.9rem, 1.3vw, 1.02rem);
  line-height: 1.75; color: var(--fg-dim);
  max-width: 640px;
}

@media (max-width: 768px) {
  #about-us { margin-top: 3.5rem; }
  .about-timeline { padding-left: 42px; }
  .about-timeline-line { left: 17px; }
  .about-node-dot { left: -42px; width: 36px; height: 36px; font-size: 0.8rem; }
  .about-node { padding-bottom: 2rem; }
}

@media (max-width: 480px) {
  .about-timeline { padding-left: 38px; }
  .about-timeline-line { left: 15px; }
  .about-node-dot { left: -38px; width: 32px; height: 32px; font-size: 0.75rem; }
  .about-node-content { padding-left: 0.6rem; }
}

/* ========== STATS SECTION ========== */
#stats-section {
  width: 100%; max-width: 900px;
  margin-top: 5rem; padding: 0 1rem;
  opacity: 0; transform: translateY(30px);
  text-align: center;
}

.stats-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.stats-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--fg-dim); margin-bottom: 3.5rem;
}

.stats-flow {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 3rem;
}

/* Each counter */
.stat-counter {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  flex: 1; max-width: 260px;
}

/* Background glow */
.stat-counter-glow {
  position: absolute; top: -20px;
  width: 120px; height: 120px; border-radius: 50%;
  filter: blur(40px); opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.stat-counter.animated .stat-counter-glow { opacity: 0.15; }
.stat-counter--blue .stat-counter-glow { background: var(--blue); }
.stat-counter--green .stat-counter-glow { background: var(--green); }
.stat-counter--teal .stat-counter-glow { background: var(--teal); }

/* The big number */
.stat-counter-number {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 6vw, 4.5rem);
  letter-spacing: -0.04em; line-height: 1;
  position: relative; z-index: 1;
  transition: transform 0.3s ease;
  /* Tabular nums = each digit same width → no horizontal jump while counting */
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  /* Stabilise le repaint du gradient text sur mobile */
  will-change: contents;
  -webkit-font-smoothing: antialiased;
  text-align: center;
}
.stat-counter:hover .stat-counter-number {
  transform: scale(1.05);
}

.stat-counter--blue .stat-counter-number {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-counter--green .stat-counter-number {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.stat-counter--teal .stat-counter-number {
  background: linear-gradient(135deg, var(--teal), #5ee8c5);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Animated underline */
.stat-counter-line {
  width: 100%; height: 3px; margin-top: 0.8rem;
  background: rgba(0,0,0,0.04); border-radius: 3px;
  overflow: hidden;
}
.stat-counter-line-fill {
  height: 100%; width: 0%; border-radius: 3px;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.stat-counter.animated .stat-counter-line-fill { width: 100%; }

.stat-counter--blue .stat-counter-line-fill {
  background: linear-gradient(90deg, transparent, var(--blue), var(--blue-light), transparent);
}
.stat-counter--green .stat-counter-line-fill {
  background: linear-gradient(90deg, transparent, var(--green), var(--green-light), transparent);
}
.stat-counter--teal .stat-counter-line-fill {
  background: linear-gradient(90deg, transparent, var(--teal), #5ee8c5, transparent);
}

/* Label */
.stat-counter-label {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--fg-dim); margin-top: 0.8rem;
  letter-spacing: 0.02em;
}

/* Floating decorative dots */
.stat-counter-dot {
  position: absolute; border-radius: 50%;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.stat-counter.animated .stat-counter-dot { opacity: 1; }

.stat-counter-dot--1 {
  width: 6px; height: 6px;
  top: -8px; right: 15%;
  animation: float-dot 3s ease-in-out infinite;
}
.stat-counter-dot--2 {
  width: 4px; height: 4px;
  bottom: 10px; left: 10%;
  animation: float-dot 3.5s ease-in-out infinite 0.5s;
}

.stat-counter--blue .stat-counter-dot { background: var(--blue); }
.stat-counter--green .stat-counter-dot { background: var(--green); }
.stat-counter--teal .stat-counter-dot { background: var(--teal); }

@keyframes float-dot {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50% { transform: translateY(-10px); opacity: 0.8; }
}

@media (max-width: 768px) {
  #stats-section { margin-top: 3.5rem; }
  .stats-flow { flex-direction: column; align-items: center; gap: 2.5rem; }
  .stat-counter { max-width: 100%; width: 100%; }
  .stat-counter-number { font-size: clamp(2.5rem, 10vw, 3.5rem); }
  .stat-counter-line { max-width: 200px; }

  /* During count-up on mobile: solid color (cheap repaint, no jank).
     Gradient is restored after animation when .is-counting is removed. */
  .stat-counter.is-counting .stat-counter-number {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    will-change: auto;
  }
  .stat-counter--blue.is-counting  .stat-counter-number { color: var(--blue); }
  .stat-counter--green.is-counting .stat-counter-number { color: var(--green); }
  .stat-counter--teal.is-counting  .stat-counter-number { color: var(--teal); }
}

@media (max-width: 480px) {
  .stats-flow { gap: 2rem; }
  .stat-counter-dot { display: none; }
}

/* ========== REVIEWS SECTION ========== */
#reviews-section {
  width: 100%; max-width: 1000px;
  margin-top: 5rem; padding: 0;
  opacity: 0; transform: translateY(30px);
}

.reviews-header {
  text-align: center; margin-bottom: 2.5rem;
}

.reviews-badge {
  display: inline-block;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--fg-dim);
  border: 1px solid rgba(0,0,0,0.12); border-radius: 100px;
  padding: 0.3rem 1rem;
  background: rgba(0,0,0,0.02);
}

.reviews-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-top: 1.2rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.reviews-subtitle {
  font-size: clamp(0.9rem, 1.3vw, 1.05rem);
  color: var(--fg-dim); margin-top: 0.6rem;
  max-width: 400px; margin-left: auto; margin-right: auto;
  line-height: 1.6;
}

/* Columns container */
.reviews-columns {
  display: flex; gap: 1.2rem; justify-content: center;
  max-height: 600px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  padding: 0 1rem;
}

.reviews-col {
  flex: 1; max-width: 320px; overflow: hidden;
}
.reviews-col--md { display: none; }
.reviews-col--lg { display: none; }

/* Scrolling wrapper */
.reviews-scroll {
  display: flex; flex-direction: column; gap: 1.2rem;
  padding-bottom: 1.2rem;
}

.reviews-scroll--up {
  animation: scroll-up 20s linear infinite;
}
.reviews-scroll--down {
  animation: scroll-down 24s linear infinite;
}

@keyframes scroll-up {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
@keyframes scroll-down {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

/* Pause on hover */
.reviews-columns:hover .reviews-scroll {
  animation-play-state: paused;
}

/* Review card */
.review-card {
  padding: 1.6rem;
  border-radius: 18px;
  border: 1px solid rgba(0,0,0,0.07);
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  cursor: default;
}
.review-card:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.08);
  border-color: rgba(33,133,197,0.15);
}

.review-card p {
  font-size: 0.92rem; line-height: 1.7;
  color: var(--fg-dim); margin: 0;
  font-style: italic;
}

.review-author {
  display: flex; align-items: center; gap: 0.75rem;
  margin-top: 1.2rem;
}

.review-author img {
  width: 40px; height: 40px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0,0,0,0.06);
  transition: border-color 0.3s ease;
}
.review-card:hover .review-author img {
  border-color: var(--blue);
}

.review-author strong {
  display: block;
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 700;
  color: var(--fg); letter-spacing: -0.01em;
}

.review-author span {
  display: block;
  font-size: 0.78rem; color: var(--fg-dim);
  margin-top: 0.1rem;
}

@media (min-width: 640px) {
  .reviews-col--md { display: block; }
}

@media (min-width: 960px) {
  .reviews-col--lg { display: block; }
}

@media (max-width: 639px) {
  .reviews-columns { max-height: 500px; }
  .review-card { padding: 1.3rem; }
}

/* ========== CONTACT SECTION ========== */
#contact-section {
  width: 100%; max-width: 700px;
  margin-top: 5rem; padding: 0 1rem;
  opacity: 0; transform: translateY(30px);
  text-align: center;
}

.contact-title {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 2.5rem; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--blue), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.contact-items {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1rem;
}

.contact-item {
  display: flex; align-items: center; gap: 0.8rem;
  padding: 0.9rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(0,0,0,0.08);
  background: var(--bg);
  text-decoration: none; color: var(--fg);
  box-shadow: 0 2px 10px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.contact-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.contact-item--blue:hover { border-color: rgba(33,133,197,0.3); }
.contact-item--green:hover { border-color: rgba(108,192,74,0.3); }
.contact-item--teal:hover { border-color: rgba(45,212,168,0.3); }

.contact-icon {
  width: 22px; height: 22px; flex-shrink: 0;
}
.contact-icon svg { width: 100%; height: 100%; }

.contact-item--blue .contact-icon { color: var(--blue); }
.contact-item--green .contact-icon { color: var(--green); }
.contact-item--teal .contact-icon { color: var(--teal); }

.contact-text {
  font-family: var(--font-body); font-size: 0.9rem; font-weight: 500;
  color: var(--fg-dim);
  transition: color 0.3s ease;
}
.contact-item:hover .contact-text { color: var(--fg); }

@media (max-width: 480px) {
  .contact-items { flex-direction: column; align-items: center; }
  .contact-item { width: 100%; max-width: 320px; justify-content: center; }
}

/* ========== BOTTOM ACCENT ========== */
#bottom-accent { margin-top: 3rem; opacity: 0; }
#bottom-accent span {
  font-family: var(--font-display); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.3em; color: var(--fg-dim); opacity: 0.4;
}

/* ========== TABLET / SMALLER DESKTOP ========== */
@media (max-width: 1100px) and (min-width: 769px) {
  #role-cards { max-width: 980px; gap: 1.8rem; }
  .role-card { padding: 2.8rem 2rem 2.4rem; min-height: 280px; }
  .card-icon { width: 72px; height: 72px; margin-bottom: 1.3rem; }
  .card-title { font-size: 1.65rem; }
  .card-desc { font-size: 0.95rem; }
}

/* ========== MOBILE ========== */
@media (max-width: 768px) {
  #main-interface { padding: 90px 1.2rem 2rem; justify-content: flex-start; padding-top: 100px; }

  #role-cards { grid-template-columns: 1fr; gap: 1rem; max-width: 400px; }

  .role-card {
    flex-direction: row; text-align: left; padding: 1.5rem; gap: 1rem;
    min-height: 0;
  }

  .card-icon { width: 48px; height: 48px; margin-bottom: 0; flex-shrink: 0; }
  .card-title { font-size: 1.2rem; }
  .card-desc { font-size: 0.85rem; margin-bottom: 0; }

  .card-arrow {
    position: absolute; right: 1.2rem; top: 50%; transform: translateY(-50%);
  }
  .role-card:hover .card-arrow { transform: translateY(-50%) translateX(4px); }

  .tagline-text { font-size: clamp(1.8rem, 7vw, 2.8rem); }
  #tagline { margin-bottom: 2.5rem; }

  #logo-anim-img { max-width: 65vmin; }
}

@media (max-width: 480px) {
  .card-desc { display: none; }
}
