/* Frontend R3-1 — Dussie Academy Foundation
   Scope: academy information architecture, content foundation, Learning page, and Lucky Draw front-end removal.
   R3-2 owns the high-impact Hero / 2,000+ motion treatment. R3-3 owns the brand motion story replacement. */

#page-home .r3-foundation-pill {
  border-color:rgba(91,140,255,.24);
  background:linear-gradient(135deg,rgba(91,140,255,.10),rgba(37,230,200,.06));
}

#page-home .r3-participation-tile {
  position:relative;
  overflow:hidden;
  border-color:rgba(91,140,255,.24);
  background:
    radial-gradient(circle at 50% 16%,rgba(91,140,255,.14),transparent 52%),
    rgba(255,255,255,.025);
}

#page-home .r3-participation-tile::before {
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  border-radius:inherit;
  box-shadow:inset 0 0 0 1px rgba(37,230,200,.06);
}

#page-home .r3-participation-tile h3 {
  font-size:clamp(38px,4.4vw,62px);
  letter-spacing:-.045em;
}

#page-home .r3-stat-eyebrow {
  display:block;
  margin-bottom:8px;
  color:var(--faint);
  font-size:10px;
  font-weight:750;
  letter-spacing:.12em;
  text-transform:uppercase;
}

/* Academy page */
.r3-academy-page,
.r3-learning-page {
  overflow-x:hidden;
}

.r3-academy-mission-section {
  padding:clamp(74px,8vw,120px) 0;
  border-top:1px solid rgba(125,151,201,.10);
  border-bottom:1px solid rgba(125,151,201,.10);
  background:
    radial-gradient(circle at 18% 20%,rgba(91,140,255,.07),transparent 34%),
    rgba(255,255,255,.008);
}

.r3-academy-mission-grid {
  display:grid;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);
  gap:clamp(40px,7vw,100px);
  align-items:start;
}

.r3-academy-mission-grid h2 {
  margin:16px 0 0;
  font-size:clamp(38px,4.6vw,64px);
  line-height:1.02;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.r3-academy-mission-copy {
  padding-top:28px;
}

.r3-academy-mission-copy p {
  margin:0 0 18px;
  color:var(--muted);
  font-size:clamp(16px,1.5vw,20px);
  line-height:1.85;
}

.r3-academy-principles-section {
  padding:clamp(76px,8vw,124px) 0;
}

.r3-principles-grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  margin-top:clamp(34px,4vw,54px);
  border-top:1px solid rgba(135,155,194,.18);
  border-bottom:1px solid rgba(135,155,194,.18);
}

.r3-principle-card {
  min-height:300px;
  padding:28px 24px;
  border-right:1px solid rgba(135,155,194,.15);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.006));
}

.r3-principle-card:last-child {
  border-right:0;
}

.r3-principle-card > span,
.r3-path-index {
  display:block;
  margin-bottom:64px;
  color:var(--faint);
  font-size:11px;
  font-weight:750;
  letter-spacing:.14em;
}

.r3-principle-card h3,
.r3-learning-path-card h3 {
  margin:0 0 14px;
  font-size:clamp(22px,2.2vw,30px);
  line-height:1.08;
}

.r3-principle-card p,
.r3-learning-path-card p {
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.75;
}

/* Learning page */
.r3-learning-path-section {
  padding:clamp(82px,9vw,136px) 0;
  background:
    linear-gradient(rgba(103,128,178,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(103,128,178,.035) 1px,transparent 1px);
  background-size:72px 72px;
}

.r3-learning-path-head {
  max-width:900px;
  margin-bottom:clamp(40px,5vw,68px);
}

.r3-learning-path-head h2,
.r3-learning-bridge h2 {
  margin:16px 0 18px;
  font-size:clamp(40px,5vw,68px);
  line-height:1;
  letter-spacing:-.045em;
  text-wrap:balance;
}

.r3-learning-path-head p,
.r3-learning-bridge p {
  margin:0;
  color:var(--muted);
  font-size:clamp(16px,1.5vw,19px);
  line-height:1.82;
}

.r3-learning-path-grid {
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  border-top:1px solid rgba(135,155,194,.18);
  border-bottom:1px solid rgba(135,155,194,.18);
}

.r3-learning-path-card {
  min-height:330px;
  padding:28px 22px;
  border-right:1px solid rgba(135,155,194,.15);
  background:rgba(5,9,18,.42);
}

.r3-learning-path-card:last-child {
  border-right:0;
}

.r3-learning-bridge-section {
  padding:clamp(78px,8vw,124px) 0;
  border-top:1px solid rgba(125,151,201,.10);
  background:radial-gradient(circle at 78% 38%,rgba(37,230,200,.06),transparent 34%);
}

.r3-learning-bridge {
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(0,.92fr);
  gap:clamp(44px,7vw,104px);
  align-items:start;
}

.r3-learning-bridge > div:last-child {
  padding-top:32px;
}

.r3-inline-link,
.r3-footer-rayvex {
  display:inline-flex;
  align-items:center;
  gap:9px;
  margin-top:24px;
  color:var(--text);
  font-weight:750;
  cursor:pointer;
}

.r3-inline-link span,
.r3-footer-rayvex span {
  color:var(--acc2);
}

.site-footer-r1 .r3-footer-rayvex {
  min-height:42px;
  margin-top:0;
  padding:0 14px;
  border:1px solid rgba(117,154,255,.20);
  border-radius:11px;
  font-size:13px;
  background:rgba(255,255,255,.02);
}

@media (max-width:1100px) {
  .r3-learning-path-grid {
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .r3-learning-path-card:nth-child(3) {
    border-right:0;
  }

  .r3-learning-path-card:nth-child(-n+3) {
    border-bottom:1px solid rgba(135,155,194,.15);
  }
}

@media (max-width:900px) {
  .r3-academy-mission-grid,
  .r3-learning-bridge {
    grid-template-columns:1fr;
    gap:18px;
  }

  .r3-academy-mission-copy,
  .r3-learning-bridge > div:last-child {
    padding-top:0;
  }

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

  .r3-principle-card:nth-child(2) {
    border-right:0;
  }

  .r3-principle-card:nth-child(-n+2) {
    border-bottom:1px solid rgba(135,155,194,.15);
  }
}

@media (max-width:640px) {
  #page-home .r3-participation-tile h3 {
    font-size:clamp(36px,12vw,50px);
  }

  .r3-principles-grid,
  .r3-learning-path-grid {
    grid-template-columns:1fr;
  }

  .r3-principle-card,
  .r3-learning-path-card {
    min-height:245px;
    border-right:0;
    border-bottom:1px solid rgba(135,155,194,.15);
  }

  .r3-principle-card:last-child,
  .r3-learning-path-card:last-child {
    border-bottom:0;
  }

  .r3-principle-card > span,
  .r3-path-index {
    margin-bottom:38px;
  }
}

@media (prefers-reduced-motion:reduce) {
  .r3-principle-card,
  .r3-learning-path-card,
  .r3-inline-link,
  .r3-footer-rayvex {
    transition:none !important;
  }
}

/* R3-1 Mobile Header Hotfix r1
   Resolve the legacy .menu.open mobile rule from components.css overriding
   the newer fixed menu geometry and covering the Dussie header logo. */
@media (max-width:940px) {
  #header .site-menu.open {
    position:fixed;
    left:16px;
    right:16px;
    top:98px;
    max-height:calc(100dvh - 114px);
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:6px;
    padding:12px;
    align-items:stretch;
    border:1px solid rgba(255,255,255,.10);
    border-radius:16px;
    background:rgba(8,11,20,.96);
    box-shadow:var(--nova-shell-shadow);
    backdrop-filter:blur(20px) saturate(150%);
    -webkit-backdrop-filter:blur(20px) saturate(150%);
  }
}

@media (max-width:640px) {
  #header .site-menu.open {
    top:94px;
    max-height:calc(100dvh - 110px);
  }
}