:root {
  --navy: #071d3b;
  --navy-2: #0b2d59;
  --gold: #f2a312;
  --gold-deep: #cc8300;
  --ink: #102033;
  --muted: #61718a;
  --line: #dfe7f1;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --blue-soft: #eaf1ff;
  --shadow: 0 24px 70px rgba(7, 29, 59, 0.12);
  --shadow-soft: 0 16px 40px rgba(7, 29, 59, 0.08);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 105px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 18px 0 auto;
  z-index: 1000;
  pointer-events: none;
}

.navbar {
  width: min(1260px, calc(100% - 36px));
  height: 66px;
  margin: 0 auto;
  padding: 0 14px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(223, 231, 241, 0.92);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 60px rgba(7, 29, 59, 0.12);
  backdrop-filter: blur(18px);
  pointer-events: auto;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.brand-logo,
.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(7, 29, 59, 0.13);
}

.brand span {
  font-size: 1rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 4px;
  color: #263a55;
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a {
  padding: 10px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--blue-soft);
  color: var(--navy-2);
  outline: none;
  transform: translateY(-1px);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  letter-spacing: -0.01em;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-cta {
  min-width: 116px;
  padding: 13px 20px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(7, 29, 59, 0.24);
  white-space: nowrap;
}

.nav-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 99px;
  background: var(--navy);
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section {
  position: relative;
  padding: 110px 0;
}

.light {
  background: var(--surface-soft);
}

.hero {
  min-height: 100vh;
  padding-top: 145px;
  padding-bottom: 88px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(11, 45, 89, 0.12), transparent 32%),
    radial-gradient(circle at 86% 7%, rgba(242, 163, 18, 0.20), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.78fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 24px;
  color: var(--navy);
  font-size: clamp(3rem, 6.3vw, 5.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 850;
  text-wrap: balance;
}

h2 {
  margin-bottom: 16px;
  color: var(--navy);
  font-size: clamp(2rem, 3.9vw, 3.45rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

h3 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.22rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.founder-intro {
  max-width: 760px;
  color: #394a60;
  font-size: 1.02rem;
}

.founder-intro p {
  margin-bottom: 16px;
}

.founder-intro p:last-child {
  margin-top: 20px;
  color: var(--navy);
  font-weight: 850;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  min-height: 50px;
  padding: 14px 22px;
  text-align: center;
}

.button.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 16px 34px rgba(7, 29, 59, 0.22);
}

.button.secondary {
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(7, 29, 59, 0.08);
}

.button.large {
  width: 100%;
  margin-top: 14px;
}

.hero-photo-card {
  position: relative;
  isolation: isolate;
  padding: 18px;
  border: 1px solid rgba(223, 231, 241, 0.9);
  border-radius: 36px;
  background:
    radial-gradient(circle at 82% 12%, rgba(242, 163, 18, 0.24), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(245, 248, 252, 0.9));
  box-shadow: var(--shadow);
}

.hero-photo-card::before,
.hero-photo-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  background: var(--gold);
  opacity: 0.9;
}

.hero-photo-card::before {
  width: 180px;
  height: 16px;
  top: 42px;
  right: -50px;
  transform: rotate(-38deg);
}

.hero-photo-card::after {
  width: 220px;
  height: 18px;
  left: -72px;
  bottom: 96px;
  transform: rotate(-38deg);
  background: var(--navy);
}

.hero-photo-frame {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px 18px 0;
  border-radius: 28px;
  border: 1px solid rgba(223, 231, 241, 0.88);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  aspect-ratio: 3 / 4;
}

.hero-photo-frame img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.hero-cutout {
  filter: drop-shadow(0 16px 26px rgba(7, 29, 59, 0.08));
}

.hero-photo-caption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
}

.hero-photo-caption img {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  object-fit: cover;
}

.hero-photo-caption span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-photo-caption strong {
  display: block;
  color: var(--navy);
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.hero-bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: 0.22;
  pointer-events: none;
}

.orb-one {
  width: 260px;
  height: 260px;
  top: 18%;
  right: 6%;
  background: var(--navy-2);
}

.orb-two {
  width: 190px;
  height: 190px;
  bottom: 9%;
  left: 7%;
  background: var(--gold);
}

.strip {
  padding: 18px 0;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.84);
  overflow: hidden;
}

.strip-track {
  display: flex;
  gap: 42px;
  width: max-content;
  animation: marquee 26s linear infinite;
}

.strip-track span {
  position: relative;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.strip-track span::after {
  content: "";
  position: absolute;
  right: -25px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-subtitle {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.centered .section-subtitle {
  margin-inline: auto;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 50px;
  align-items: start;
}

.text-card,
.contact-card,
.join-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.text-card {
  padding: 34px;
  color: #344860;
  font-size: 1.04rem;
}

.text-card p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.card-grid.projects {
  grid-template-columns: repeat(5, 1fr);
}

.info-card,
.project-card,
.roadmap-card,
.support-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  overflow: hidden;
}

.info-card:hover,
.project-card:hover,
.roadmap-card:hover,
.support-card:hover,
.team-card:hover,
.email-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 163, 18, 0.42);
  box-shadow: 0 26px 70px rgba(7, 29, 59, 0.13);
}

.info-card,
.project-card {
  min-height: 220px;
  padding: 26px;
}

.info-card::before,
.project-card::before,
.roadmap-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--navy-2), var(--gold));
  opacity: 0.95;
}

.info-card .icon,
.project-card .icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 32px;
  border-radius: 14px;
  background: #fff4dd;
  color: var(--navy);
  font-weight: 900;
}

.info-card p,
.project-card p,
.roadmap-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.roadmap-card {
  padding: 26px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 900;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.team-card.founder {
  border-color: rgba(242, 163, 18, 0.52);
}

.team-photo-wrap {
  display: grid;
  place-items: center;
  padding: 10px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  aspect-ratio: 3 / 4;
}

.team-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 20px;
}

.team-card-body {
  padding: 20px 22px 24px;
}

.team-tag {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--gold-deep);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.role {
  margin-bottom: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.35;
}


.advisor-card {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 34px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-soft);
}

.advisor-photo-wrap {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  aspect-ratio: 5 / 7;
}

.advisor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.advisor-copy p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.sponsor-section {
  background:
    radial-gradient(circle at 80% 20%, rgba(242, 163, 18, 0.23), transparent 30%),
    linear-gradient(135deg, rgba(7, 29, 59, 0.98), rgba(11, 45, 89, 0.98));
  color: #fff;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 48px;
  align-items: center;
}

.sponsor-copy h2,
.sponsor-copy .eyebrow {
  color: #fff;
}

.sponsor-copy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.04rem;
}

.sponsor-copy .button.primary {
  margin: 18px 0 14px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.small-note {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.88rem !important;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.support-card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
  backdrop-filter: blur(16px);
}

.support-card strong {
  display: block;
  color: #fff;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.support-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: rgba(242, 163, 18, 0.18);
  color: #ffd98a;
  font-weight: 900;
}

.forms-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: stretch;
}

.contact-card,
.join-card {
  padding: 34px;
}

.contact-card p,
.join-card p {
  color: var(--muted);
}

.email-list {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.email-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.email-card span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.email-card strong {
  display: block;
  color: var(--navy);
  font-size: clamp(1rem, 2.2vw, 1.35rem);
  overflow-wrap: anywhere;
}

.join-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background:
    radial-gradient(circle at top right, rgba(242, 163, 18, 0.16), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.join-note-box {
  flex: 1;
  display: grid;
  place-items: center;
  min-height: 210px;
  margin-top: 22px;
  padding: 24px;
  border: 1.5px dashed #c9d6e7;
  border-radius: 22px;
  background: var(--surface-soft);
  text-align: center;
}

.join-note-box span {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.join-note-box p {
  max-width: 340px;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.footer {
  padding: 44px 0;
  background: #061832;
  color: #fff;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand {
  margin-bottom: 10px;
  color: #fff;
}

.footer p {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, 0.66);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.footer-links a {
  padding: 9px 11px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  transition: background 160ms ease, color 160ms ease;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1160px) {
  .nav-links {
    gap: 0;
    font-size: 0.84rem;
  }

  .nav-links a {
    padding: 9px 8px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-photo-card {
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
  }

  .card-grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-grid.projects {
    grid-template-columns: repeat(3, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .site-header {
    inset: 12px 0 auto;
  }

  .navbar {
    width: min(100% - 24px, 760px);
    height: 60px;
    padding: 0 8px 0 14px;
  }

  .brand span {
    font-size: 0.9rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 60px rgba(7, 29, 59, 0.12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 12px;
    text-align: center;
    background: var(--surface-soft);
  }

  .hero {
    padding-top: 126px;
  }

  h1 {
    font-size: clamp(2.7rem, 12vw, 4.8rem);
    line-height: 1.01;
    letter-spacing: -0.04em;
  }

  .section {
    padding: 82px 0;
  }

  .split-layout,
  .sponsor-grid,
  .forms-grid,
  .advisor-card {
    grid-template-columns: 1fr;
  }

  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-photo-card {
    padding: 12px;
    border-radius: 28px;
  }

  .hero-photo-frame {
    border-radius: 22px;
    padding: 12px 12px 0;
  }

  .advisor-card {
    padding: 22px;
    border-radius: 26px;
  }

  .advisor-photo-wrap {
    max-width: 420px;
  }

  .founder-intro {
    font-size: 0.97rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .button,
  .hero-actions .button {
    width: 100%;
  }

  .card-grid.four,
  .card-grid.projects,
  .roadmap-grid,
  .team-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .project-card,
  .roadmap-card,
  .contact-card,
  .join-card,
  .text-card {
    padding: 24px;
  }

  .section-heading {
    margin-bottom: 28px;
  }
}

/* Student portal shell */
.portal-page .site-shell {
  background: #fff;
}

.nav-links a[aria-current="page"] {
  color: var(--navy);
  background: var(--blue-soft);
}

.mobile-start-link {
  display: none;
}

.portal-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  display: flex;
  align-items: center;
  padding: 145px 0 92px;
  background:
    radial-gradient(circle at 86% 12%, rgba(242, 163, 18, 0.22), transparent 28%),
    radial-gradient(circle at 10% 70%, rgba(11, 45, 89, 0.12), transparent 34%),
    linear-gradient(180deg, #fff 0%, #f7faff 100%);
}

.portal-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 64px;
  align-items: center;
}

.portal-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.4rem, 7vw, 6.5rem);
}

.portal-intro {
  max-width: 700px;
  margin-bottom: 0;
  color: #3c4e65;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
}

.portal-action-panel {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  background:
    radial-gradient(circle at 90% 0%, rgba(242, 163, 18, 0.2), transparent 34%),
    linear-gradient(145deg, var(--navy), #0a2a54);
  box-shadow: 0 30px 80px rgba(7, 29, 59, 0.24);
  color: #fff;
}

.panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-heading span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.panel-heading strong {
  color: #fff;
  font-size: 1.12rem;
}

.quick-link-list {
  display: grid;
  padding: 10px;
}

.quick-link-list a {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 17px 18px;
  border-radius: 18px;
  transition: background 180ms ease, transform 180ms ease;
}

.quick-link-list a:hover,
.quick-link-list a:focus-visible {
  background: rgba(255, 255, 255, 0.09);
  outline: none;
  transform: translateX(2px);
}

.quick-link-list a > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(242, 163, 18, 0.15);
  color: #ffd682;
  font-size: 0.76rem;
  font-weight: 900;
}

.quick-link-list strong,
.quick-link-list small {
  display: block;
}

.quick-link-list strong {
  color: #fff;
  line-height: 1.25;
}

.quick-link-list small {
  max-width: 98px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.73rem;
  text-align: right;
}

.portal-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.portal-card-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card {
  position: relative;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow-soft);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

a.portal-card:hover,
a.portal-card:focus-visible {
  border-color: rgba(11, 45, 89, 0.28);
  box-shadow: 0 22px 52px rgba(7, 29, 59, 0.13);
  outline: none;
  transform: translateY(-5px);
}

.portal-card.static {
  cursor: default;
}

.portal-card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 14px;
  background: var(--blue-soft);
  color: var(--navy-2);
  font-size: 0.78rem;
  font-weight: 900;
}

.portal-card p {
  margin-bottom: 24px;
  color: var(--muted);
}

.portal-card > strong {
  margin-top: auto;
  color: var(--navy);
}

.card-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.card-title-row h3 {
  margin-bottom: 10px;
}

.status-pill {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(242, 163, 18, 0.15);
  color: #9b6300;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: 70px;
  align-items: center;
}

.portal-about-grid .section-heading {
  margin-bottom: 0;
}

.inline-link {
  display: inline-flex;
  margin-top: 24px;
  color: var(--navy);
  font-weight: 850;
}

.principles-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.principles-label {
  display: block;
  margin-bottom: 22px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 17px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 34px;
  color: #344860;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
}

.portal-utility-section {
  padding: 76px 0;
}

.utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.utility-row h2 {
  max-width: 650px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.utility-links a {
  padding: 12px 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
}

.shell-hero {
  padding: 164px 0 92px;
  background:
    radial-gradient(circle at 82% 20%, rgba(242, 163, 18, 0.23), transparent 28%),
    linear-gradient(135deg, #061832, var(--navy-2));
  color: #fff;
}

.shell-hero-inner {
  max-width: 880px;
}

.shell-hero .eyebrow,
.ask-shell .eyebrow {
  color: #fbc45d;
}

.shell-hero h1,
.ask-shell h1 {
  color: #fff;
  font-size: clamp(3rem, 6vw, 5.5rem);
}

.shell-hero p:not(.eyebrow),
.ask-shell-copy > p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.12rem;
}

.shell-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
  gap: 56px;
  align-items: end;
}

.shell-hero-action {
  display: grid;
  gap: 15px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.shell-hero-action > span {
  color: #fbc45d;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.shell-hero-action strong {
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.2;
}

.shell-hero-action a {
  color: #fff;
  font-weight: 850;
}

.status-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: start;
  padding: 26px 28px;
  border: 1px solid #d7e3f3;
  border-radius: 22px;
  background: var(--blue-soft);
}

.status-banner.notice {
  border-color: #f0d9a6;
  background: #fff8e8;
}

.status-banner h2 {
  margin-bottom: 6px;
  font-size: clamp(1.35rem, 2.5vw, 1.9rem);
  letter-spacing: -0.04em;
}

.status-banner p {
  margin-bottom: 0;
  color: var(--muted);
}

.section-heading-spaced {
  margin-top: 76px;
}

.fact-grid,
.role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fact-card,
.role-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.fact-card strong,
.fact-card span {
  display: block;
}

.fact-card strong {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 1.08rem;
}

.fact-card span,
.role-card p {
  color: var(--muted);
}

.role-card > span {
  display: block;
  margin-bottom: 36px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.role-card p {
  margin-bottom: 0;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.workflow-list li > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-weight: 900;
}

.workflow-list h3 {
  margin-bottom: 7px;
}

.workflow-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 85% 0%, rgba(242, 163, 18, 0.22), transparent 34%),
    var(--navy);
}

.cta-band h2,
.cta-band .eyebrow {
  color: #fff;
}

.cta-band h2 {
  max-width: 700px;
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3.4vw, 3rem);
}

.cta-band .button.primary {
  flex: none;
  color: var(--navy);
  background: #fff;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.lesson-card {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.lesson-card > span {
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.lesson-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.ask-shell {
  padding: 164px 0 104px;
  background:
    radial-gradient(circle at 78% 24%, rgba(242, 163, 18, 0.22), transparent 27%),
    linear-gradient(145deg, #061832, #0b2d59);
}

.ask-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.68fr);
  gap: 70px;
  align-items: center;
}

.ask-shell-copy .status-pill {
  margin-bottom: 20px;
  color: #ffd98a;
  background: rgba(242, 163, 18, 0.14);
}

.ask-placeholder {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.ask-placeholder-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 17px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 800;
}

.ask-placeholder-top span:first-child {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}

.message-preview {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  min-height: 180px;
  padding: 24px;
  border-radius: 20px;
  background: #fff;
}

.message-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  color: #fff;
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.message-preview p {
  margin-bottom: 0;
  color: #405169;
}

.future-input {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 15px 17px;
  border-radius: 17px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(0, 0, 0, 0.14);
  font-size: 0.86rem;
}

.future-input strong {
  color: #ffd98a;
}

.about-founder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.56fr);
  gap: 72px;
  align-items: center;
}

.about-founder-copy > p:not(.eyebrow) {
  max-width: 720px;
  color: #465870;
  font-size: 1.04rem;
}

.leader-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.leader-list div {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-soft);
}

.leader-list span,
.leader-list strong,
.founder-caption span,
.founder-caption strong,
.founder-caption small {
  display: block;
}

.leader-list span,
.founder-caption span {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.leader-list strong {
  color: var(--navy);
}

.founder-portrait-card {
  position: relative;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, #fff, #f4f7fb);
  box-shadow: var(--shadow);
}

.founder-portrait-frame {
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 440px;
  padding: 18px 18px 0;
  border-radius: 23px;
  background:
    radial-gradient(circle at 72% 15%, rgba(242, 163, 18, 0.2), transparent 28%),
    #eef3f9;
}

.founder-portrait-frame img {
  width: 100%;
  height: 420px;
  object-fit: contain;
  object-position: center bottom;
}

.founder-caption {
  padding: 19px 10px 6px;
}

.founder-caption strong {
  color: var(--navy);
  font-size: 1.4rem;
  line-height: 1.2;
}

.founder-caption small {
  color: var(--muted);
}

.advisor-portal-card {
  display: grid;
  grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
  gap: 42px;
  align-items: center;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.advisor-portal-card .advisor-photo-wrap {
  max-height: 350px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.text-link {
  color: var(--navy);
  font-weight: 850;
}

@media (max-width: 1160px) {
  .portal-hero-grid,
  .ask-shell-grid {
    gap: 38px;
  }

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

@media (max-width: 940px) {
  .mobile-start-link {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    color: #fff !important;
    background: var(--navy) !important;
  }

  .portal-hero {
    min-height: auto;
    padding: 128px 0 78px;
  }

  .portal-hero-grid,
  .portal-about-grid,
  .shell-hero-split,
  .ask-shell-grid,
  .about-founder-grid,
  .advisor-portal-card {
    grid-template-columns: 1fr;
  }

  .portal-action-panel,
  .founder-portrait-card {
    width: min(100%, 600px);
  }

  .portal-about-grid,
  .about-founder-grid {
    gap: 42px;
  }

  .shell-hero,
  .ask-shell {
    padding: 138px 0 78px;
  }

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

  .utility-row,
  .cta-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .utility-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .nav-links {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }

  .portal-hero-copy h1,
  .shell-hero h1,
  .ask-shell h1 {
    font-size: clamp(2.65rem, 14vw, 4.2rem);
  }

  .panel-heading,
  .quick-link-list a {
    padding-left: 18px;
    padding-right: 18px;
  }

  .quick-link-list a {
    grid-template-columns: 36px 1fr;
  }

  .quick-link-list small {
    display: none;
  }

  .portal-card-grid,
  .portal-card-grid.three,
  .fact-grid,
  .role-grid,
  .workflow-list,
  .lesson-grid,
  .leader-list {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 230px;
    padding: 25px;
  }

  .status-banner {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .section-heading-spaced {
    margin-top: 56px;
  }

  .workflow-list li,
  .lesson-card {
    grid-template-columns: 44px 1fr;
    gap: 13px;
    padding: 22px;
  }

  .workflow-list li > span {
    width: 42px;
    height: 42px;
  }

  .cta-band {
    padding: 28px;
  }

  .cta-band .button {
    width: 100%;
  }

  .ask-placeholder {
    padding: 12px;
  }

  .message-preview {
    min-height: 160px;
    padding: 20px;
  }

  .future-input strong {
    display: none;
  }

  .founder-portrait-frame {
    min-height: 360px;
  }

  .founder-portrait-frame img {
    height: 350px;
  }
}

/* Loop 3: new-member guide */
.portal-page a:focus-visible,
.portal-page button:focus-visible,
.portal-page summary:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.start-here-hero {
  padding-bottom: 88px;
}

.new-member-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.65fr);
  gap: 64px;
  align-items: center;
}

.start-here-hero .shell-hero-inner {
  max-width: 760px;
}

.start-here-hero h1 {
  max-width: 720px;
}

.start-here-hero .light-button {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.start-here-hero .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.member-ready-card {
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(16px);
}

.member-ready-label {
  margin: 0;
  padding: 8px 9px 17px;
  color: #fbc45d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.member-ready-list {
  display: grid;
  gap: 2px;
  overflow: hidden;
  border-radius: 19px;
}

.member-ready-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
  padding: 17px 18px;
  background: rgba(255, 255, 255, 0.09);
}

.member-ready-list span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.member-ready-list strong {
  color: #fff;
  line-height: 1.35;
}

.guide-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-checklist li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  min-height: 238px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: var(--shadow-soft);
}

.guide-checklist li > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.guide-checklist li > div {
  display: flex;
  flex-direction: column;
}

.guide-checklist p {
  margin-bottom: 20px;
  color: var(--muted);
}

.guide-checklist a {
  width: max-content;
  margin-top: auto;
  color: var(--navy);
  font-weight: 850;
}

.learning-order-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: start;
}

.learning-order-grid .section-heading {
  position: sticky;
  top: 120px;
  margin-bottom: 0;
}

.learning-order-list {
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  list-style: none;
}

.learning-order-list li + li {
  border-top: 1px solid var(--line);
}

.learning-order-list a {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 18px;
  border-radius: 18px;
  transition: background 180ms ease, transform 180ms ease;
}

.learning-order-list a:hover {
  background: var(--surface-soft);
  transform: translateX(2px);
}

.learning-order-list a > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 13px;
  color: var(--navy-2);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.learning-order-list strong,
.learning-order-list small {
  display: block;
}

.learning-order-list strong {
  color: var(--navy);
}

.learning-order-list small {
  color: var(--muted);
  font-size: 0.8rem;
}

.learning-order-list b {
  color: var(--gold-deep);
  font-size: 1.2rem;
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.expectation-card {
  min-height: 230px;
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.expectation-card > span {
  display: block;
  margin-bottom: 38px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
}

.expectation-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.responsibility-section {
  background:
    radial-gradient(circle at 12% 15%, rgba(242, 163, 18, 0.15), transparent 24%),
    linear-gradient(145deg, #061832, var(--navy-2));
}

.responsibility-section .section-heading h2,
.responsibility-section .section-heading .eyebrow {
  color: #fff;
}

.responsibility-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.responsibility-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 27px;
}

.ai-card {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.security-card {
  background: #fff;
  color: var(--ink);
}

.responsibility-label {
  display: block;
  margin-bottom: 26px;
  color: #fbc45d;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.security-card .responsibility-label {
  color: var(--gold-deep);
}

.responsibility-card h3 {
  max-width: 480px;
  margin-bottom: 22px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.ai-card h3 {
  color: #fff;
}

.responsibility-card ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding-left: 20px;
}

.ai-card li {
  color: rgba(255, 255, 255, 0.78);
}

.security-card li {
  color: var(--muted);
}

.decision-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 62px;
  align-items: start;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 10% 90%, rgba(242, 163, 18, 0.15), transparent 30%),
    var(--surface-soft);
}

.decision-copy p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.decision-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.decision-list > div {
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 19px;
}

.decision-list > div + div {
  border-top: 1px solid var(--line);
}

.decision-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.decision-list strong {
  color: var(--navy);
  font-size: 0.92rem;
}

.decision-status {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
}

.decision-status.confirmed {
  color: #14643a;
  background: #e8f7ef;
}

.decision-status.pending {
  color: #8c5c00;
  background: #fff2d4;
}

.presentation-callout {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.presentation-mark {
  display: grid;
  gap: 10px;
  align-content: end;
  height: 116px;
  padding: 23px;
  border-radius: 20px;
  background: var(--navy);
}

.presentation-mark span {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.28);
}

.presentation-mark span:first-child {
  width: 58%;
  background: var(--gold);
}

.presentation-callout .status-pill {
  margin-bottom: 12px;
}

.presentation-callout h2 {
  margin-bottom: 7px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.presentation-callout p {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--muted);
}

.presentation-state {
  padding: 10px 14px;
  border: 1px dashed #c8d4e4;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.6fr) minmax(420px, 1fr);
  gap: 70px;
  align-items: start;
}

.faq-layout .section-heading {
  margin-bottom: 0;
}

.faq-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.faq-list details + details {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  color: var(--navy);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  color: var(--navy);
  background: var(--blue-soft);
  transition: transform 180ms ease;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
}

.faq-list details p {
  margin: -3px 24px 23px;
  padding-right: 44px;
  color: var(--muted);
}

.guide-actions-section {
  padding-top: 0;
}

.guide-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  border-radius: 28px;
  background: var(--navy);
}

.guide-actions h2,
.guide-actions .eyebrow {
  color: #fff;
}

.guide-actions h2 {
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.guide-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.guide-action-links .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.guide-action-links .gold-button {
  color: var(--navy);
  background: var(--gold);
  box-shadow: none;
}

@media (max-width: 940px) {
  .new-member-hero-grid,
  .learning-order-grid,
  .decision-panel,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .new-member-hero-grid {
    gap: 42px;
  }

  .member-ready-card {
    width: min(100%, 620px);
  }

  .learning-order-grid,
  .decision-panel,
  .faq-layout {
    gap: 38px;
  }

  .learning-order-grid .section-heading {
    position: static;
  }

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

  .responsibility-grid {
    grid-template-columns: 1fr;
  }

  .presentation-callout {
    grid-template-columns: 120px 1fr;
  }

  .presentation-state {
    grid-column: 2;
    width: max-content;
  }

  .guide-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-action-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .start-here-hero {
    padding-bottom: 70px;
  }

  .member-ready-card {
    padding: 11px;
  }

  .member-ready-list div {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 15px;
  }

  .guide-checklist,
  .expectation-grid {
    grid-template-columns: 1fr;
  }

  .guide-checklist li {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 23px;
  }

  .guide-checklist li > span {
    width: 42px;
    height: 42px;
  }

  .expectation-card {
    min-height: 0;
    padding: 24px;
  }

  .expectation-card > span {
    margin-bottom: 24px;
  }

  .responsibility-card {
    padding: 26px;
  }

  .decision-panel {
    padding: 25px;
  }

  .decision-list > div {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .decision-list strong {
    grid-column: 1;
  }

  .decision-status {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .presentation-callout {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .presentation-mark {
    width: 100%;
    height: 98px;
  }

  .presentation-state {
    grid-column: 1;
  }

  .faq-list summary {
    padding: 20px;
  }

  .faq-list details p {
    margin: -1px 20px 21px;
    padding-right: 24px;
  }

  .guide-actions {
    padding: 28px;
  }

  .guide-action-links,
  .guide-action-links .button {
    width: 100%;
  }
}

/* Loop 4: team roles and project workflow */
.build-guide-hero .light-button {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.build-guide-hero .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.build-principle-card p {
  margin: 12px 0 18px;
  color: rgba(255, 255, 255, 0.72);
}

.role-ground-rules {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-soft);
}

.role-ground-rules div {
  min-height: 142px;
  padding: 24px;
}

.role-ground-rules div + div {
  border-left: 1px solid var(--line);
}

.role-ground-rules strong,
.role-ground-rules span {
  display: block;
}

.role-ground-rules strong {
  margin-bottom: 8px;
  color: var(--navy);
  line-height: 1.3;
}

.role-ground-rules span {
  color: var(--muted);
  font-size: 0.9rem;
}

.role-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.role-detail-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.role-detail-card header {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 18px;
  align-items: start;
  min-height: 148px;
  padding: 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 12%, rgba(242, 163, 18, 0.14), transparent 33%),
    var(--surface-soft);
}

.role-index {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: #fff;
  background: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
}

.role-detail-card header p {
  margin: 0 0 6px;
  color: var(--gold-deep);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.role-detail-card h3 {
  margin-bottom: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  line-height: 1.18;
}

.role-card-body {
  display: grid;
  gap: 21px;
  padding: 28px;
}

.role-card-body h4 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.77rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.role-card-body ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.role-card-body li {
  padding-left: 2px;
}

.role-evidence p {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 0;
}

.role-evidence span,
.contribution-list span {
  padding: 7px 10px;
  border: 1px solid #d8e2ed;
  border-radius: 999px;
  color: var(--navy-2);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.role-explain {
  padding: 17px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 0 15px 15px 0;
  background: #fff8e8;
}

.role-explain p {
  margin-bottom: 0;
  color: #5c4b27;
  font-size: 0.9rem;
}

.contribution-section {
  padding-top: 14px;
}

.contribution-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(420px, 1fr);
  gap: 64px;
  align-items: center;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface-soft);
}

.contribution-grid .section-heading {
  margin-bottom: 0;
}

.contribution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contribution-list span {
  padding: 11px 14px;
  background: #fff;
}

.workflow-timeline {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-timeline::before {
  position: absolute;
  top: 38px;
  bottom: 38px;
  left: 31px;
  width: 2px;
  background: linear-gradient(var(--gold), #cbd8e7);
  content: "";
}

.workflow-stage {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 22px;
  align-items: start;
}

.workflow-marker {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 7px solid #f4f7fb;
  border-radius: 50%;
  color: var(--navy);
  background: var(--gold);
  font-size: 0.76rem;
  font-weight: 950;
}

.workflow-stage > article {
  padding: 27px 30px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.workflow-stage h3 {
  margin-bottom: 9px;
  color: var(--navy);
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
}

.workflow-stage article > p:not(.workflow-phase) {
  max-width: 900px;
  color: var(--muted);
}

.workflow-phase {
  margin-bottom: 5px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.workflow-check {
  display: flex;
  gap: 9px;
  align-items: baseline;
  width: fit-content;
  margin-top: 15px;
  padding: 9px 12px;
  border-radius: 12px;
  color: #23603f;
  background: #eaf7ef;
  font-size: 0.83rem;
}

.workflow-check strong {
  flex: 0 0 auto;
}

.pending-check {
  color: #785000;
  background: #fff3d6;
}

.workflow-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 4px;
  color: var(--navy);
  font-weight: 850;
}

.build-layers-stage > article {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--navy);
}

.build-layers-stage h3,
.build-layers-stage .workflow-phase {
  color: #fff;
}

.build-layers-stage article > p:not(.workflow-phase) {
  color: rgba(255, 255, 255, 0.72);
}

.layer-path {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 23px 0 0;
  padding: 0;
  list-style: none;
}

.layer-path li {
  min-width: 0;
  padding: 16px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.layer-path span,
.layer-path strong,
.layer-path small {
  display: block;
}

.layer-path span {
  margin-bottom: 16px;
  color: #fbc45d;
  font-size: 0.74rem;
  font-weight: 900;
}

.layer-path strong {
  margin-bottom: 5px;
  color: #fff;
}

.layer-path small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
}

.workflow-status-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 30px 0 0 86px;
  padding: 22px 24px;
  border: 1px dashed #d1b052;
  border-radius: 20px;
  background: #fff9e8;
}

.workflow-status-panel .status-pill {
  margin: 0;
  white-space: nowrap;
}

.workflow-status-panel p {
  margin-bottom: 0;
  color: #63522f;
}

.build-actions-section {
  padding-top: 0;
}

.build-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  padding: 42px;
  border-radius: 28px;
  background: var(--navy);
}

.build-actions h2,
.build-actions .eyebrow {
  color: #fff;
}

.build-actions h2 {
  max-width: 560px;
  margin-bottom: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.build-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.build-action-links .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.build-action-links .gold-button {
  color: var(--navy);
  background: var(--gold);
  box-shadow: none;
}

@media (max-width: 940px) {
  .role-ground-rules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .role-ground-rules div:nth-child(3) {
    border-left: 0;
  }

  .role-ground-rules div:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .role-detail-grid,
  .contribution-grid {
    grid-template-columns: 1fr;
  }

  .contribution-grid {
    gap: 32px;
  }

  .layer-path {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .build-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .build-action-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .role-ground-rules {
    grid-template-columns: 1fr;
  }

  .role-ground-rules div {
    min-height: 0;
    padding: 20px;
  }

  .role-ground-rules div + div,
  .role-ground-rules div:nth-child(3) {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .role-detail-card header {
    grid-template-columns: 44px 1fr;
    gap: 14px;
    min-height: 0;
    padding: 23px;
  }

  .role-index {
    width: 42px;
    height: 42px;
  }

  .role-card-body,
  .workflow-stage > article {
    padding: 23px;
  }

  .contribution-grid {
    padding: 26px;
  }

  .workflow-timeline {
    gap: 15px;
  }

  .workflow-timeline::before {
    left: 22px;
  }

  .workflow-stage {
    grid-template-columns: 46px 1fr;
    gap: 12px;
  }

  .workflow-marker {
    width: 46px;
    height: 46px;
    border-width: 5px;
    font-size: 0.7rem;
  }

  .workflow-check {
    display: grid;
  }

  .layer-path {
    grid-template-columns: 1fr;
  }

  .layer-path li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 3px 10px;
  }

  .layer-path span {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .workflow-status-panel {
    grid-template-columns: 1fr;
    margin-left: 0;
  }

  .build-actions {
    padding: 28px;
  }

  .build-action-links,
  .build-action-links .button {
    width: 100%;
  }
}

/* Loop 5: Vibe Coding curriculum and competition resources */
.learn-guide-hero .light-button,
.compete-guide-hero .light-button {
  color: var(--navy);
  background: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.learn-guide-hero .ghost-button,
.compete-guide-hero .ghost-button {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.learn-principle-card ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learn-principle-card li {
  padding: 13px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.learn-principle-card b,
.learn-principle-card small {
  display: block;
}

.learn-principle-card b {
  margin-bottom: 3px;
  color: #fff;
}

.learn-principle-card small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}

.core-skill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.core-skill-card {
  min-height: 270px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 8%, rgba(242, 163, 18, 0.13), transparent 31%),
    #fff;
  box-shadow: var(--shadow-soft);
}

.core-skill-card > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 43px;
  border-radius: 14px;
  color: #fff;
  background: var(--navy);
  font-size: 0.76rem;
  font-weight: 900;
}

.core-skill-card h3 {
  font-size: 1.45rem;
}

.core-skill-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.core-skill-card code,
.curriculum-lesson code {
  padding: 2px 5px;
  border-radius: 5px;
  color: var(--navy);
  background: var(--blue-soft);
  font-size: 0.9em;
}

.curriculum-section {
  background:
    radial-gradient(circle at 92% 2%, rgba(242, 163, 18, 0.1), transparent 22%),
    var(--surface-soft);
}

.lesson-index {
  position: sticky;
  z-index: 5;
  top: 94px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 28px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 15px 38px rgba(7, 29, 59, 0.09);
  backdrop-filter: blur(14px);
}

.lesson-index a {
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 9px;
  border-radius: 13px;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 850;
  transition: background 180ms ease, transform 180ms ease;
}

.lesson-index a:hover,
.lesson-index a:focus-visible {
  background: var(--blue-soft);
  transform: translateY(-1px);
}

.lesson-index a span {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 0.7rem;
}

.learn-curriculum {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.curriculum-lesson {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.curriculum-lesson > header {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  align-items: center;
  padding: 25px 28px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, #fff, #f7faff);
}

.lesson-number {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  color: var(--navy);
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 950;
}

.curriculum-lesson header p {
  margin-bottom: 3px;
  color: var(--gold-deep);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.curriculum-lesson header h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 2.7vw, 2.1rem);
}

.lesson-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.lesson-content-grid > div {
  padding: 26px 28px;
  background: #fff;
}

.lesson-content-grid h4 {
  margin-bottom: 10px;
  color: var(--navy);
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.lesson-content-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.lesson-content-grid ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.lesson-content-grid .lesson-checkpoint {
  background: #fff8e8;
}

.lesson-checkpoint p {
  color: #5f4f2d;
  font-weight: 650;
}

.lesson-resource-link {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 18px 28px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  background: #fff;
  font-weight: 850;
}

.prompt-lesson > header {
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--navy);
}

.prompt-lesson header h3,
.prompt-lesson header p {
  color: #fff;
}

.prompt-formula {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr) auto);
  align-items: stretch;
  padding: 25px;
  color: #fff;
  background: var(--navy);
}

.prompt-formula > div {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.08);
}

.prompt-formula > b {
  align-self: center;
  padding: 0 8px;
  color: var(--gold);
}

.prompt-formula span,
.prompt-formula strong,
.prompt-formula small {
  display: block;
}

.prompt-formula span {
  margin-bottom: 20px;
  color: #fbc45d;
  font-size: 0.72rem;
  font-weight: 900;
}

.prompt-formula strong {
  margin-bottom: 5px;
  color: #fff;
}

.prompt-formula small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  line-height: 1.35;
}

.layered-build-guide {
  padding: 26px 28px 29px;
  color: #fff;
  background: var(--navy);
}

.layered-build-guide > p {
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.8);
}

.layered-build-guide ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.layered-build-guide li {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.08);
}

.layered-build-guide span,
.layered-build-guide strong,
.layered-build-guide small {
  display: block;
}

.layered-build-guide span {
  margin-bottom: 15px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 900;
}

.layered-build-guide strong {
  margin-bottom: 4px;
  color: #fff;
}

.layered-build-guide small {
  color: rgba(255, 255, 255, 0.61);
  font-size: 0.75rem;
  line-height: 1.35;
}

.learn-actions-section,
.compete-actions-section {
  padding-top: 0;
}

.learn-action-links,
.compete-action-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.learn-action-links .button.secondary,
.compete-action-links .button.secondary {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.compete-principle-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.competition-status-section {
  padding-bottom: 20px;
}

.competition-status-card {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border: 1px solid #efd49b;
  border-radius: 28px;
  background:
    radial-gradient(circle at 95% 5%, rgba(242, 163, 18, 0.16), transparent 28%),
    #fff8e8;
  box-shadow: var(--shadow-soft);
}

.competition-status-card h2 {
  max-width: 800px;
  margin-bottom: 9px;
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.competition-status-card p:last-child {
  max-width: 820px;
  margin-bottom: 0;
  color: #665636;
}

.status-mark {
  display: grid;
  gap: 9px;
  align-content: end;
  height: 112px;
  padding: 21px;
  border-radius: 21px;
  background: var(--navy);
}

.status-mark span {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.25);
}

.status-mark span:first-child {
  width: 54%;
  background: var(--gold);
}

.competition-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.competition-value-card {
  min-height: 250px;
  padding: 29px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.competition-value-card > span {
  display: block;
  margin-bottom: 54px;
  color: var(--gold-deep);
  font-size: 0.78rem;
  font-weight: 900;
}

.competition-value-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.competition-fit-layout,
.ready-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) minmax(460px, 1fr);
  gap: 70px;
  align-items: start;
}

.competition-fit-layout > .section-heading,
.ready-layout > .section-heading {
  position: sticky;
  top: 112px;
  margin-bottom: 0;
}

.fit-check-panels {
  display: grid;
  gap: 17px;
}

.fit-check-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 25px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.official-check {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
  background: var(--navy);
}

.fit-label {
  display: block;
  margin-bottom: 24px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.official-check .fit-label {
  color: var(--gold);
}

.fit-check-card h3 {
  font-size: 1.55rem;
}

.official-check h3 {
  color: #fff;
}

.fit-check-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding-left: 19px;
  color: var(--muted);
}

.official-check ul,
.official-check p {
  color: rgba(255, 255, 255, 0.72);
}

.official-check p {
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.72fr);
  gap: 22px;
  align-items: start;
}

.submission-package {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--line);
  gap: 1px;
  box-shadow: var(--shadow-soft);
}

.submission-package > div {
  min-height: 145px;
  padding: 24px;
  background: #fff;
}

.submission-package span,
.submission-package strong,
.submission-package small {
  display: block;
}

.submission-package span {
  margin-bottom: 24px;
  color: var(--gold-deep);
  font-size: 0.75rem;
  font-weight: 900;
}

.submission-package strong {
  margin-bottom: 5px;
  color: var(--navy);
}

.submission-package small {
  color: var(--muted);
  font-size: 0.8rem;
}

.demo-plan {
  padding: 30px;
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 90% 3%, rgba(242, 163, 18, 0.2), transparent 30%),
    var(--navy);
  box-shadow: var(--shadow);
}

.demo-plan h3,
.demo-plan .eyebrow {
  color: #fff;
}

.demo-plan h3 {
  margin-bottom: 24px;
  font-size: 1.6rem;
}

.demo-plan ol {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo-plan li {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  padding: 15px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
}

.demo-plan li > span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.demo-plan li strong {
  color: #fff;
}

.demo-plan li p {
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
}

.demo-reminders {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 19px 0;
}

.demo-reminders span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.74rem;
  font-weight: 750;
}

.demo-plan > a {
  color: #fff;
  font-weight: 850;
}

.honest-submission-section {
  color: #fff;
  background:
    radial-gradient(circle at 8% 12%, rgba(242, 163, 18, 0.14), transparent 23%),
    linear-gradient(145deg, #061832, var(--navy-2));
}

.honest-submission-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(480px, 1fr);
  gap: 70px;
  align-items: start;
}

.honest-submission-section .section-heading {
  margin-bottom: 0;
}

.honest-submission-section h2,
.honest-submission-section .eyebrow {
  color: #fff;
}

.honest-submission-section .section-subtitle {
  color: rgba(255, 255, 255, 0.68);
}

.honesty-list {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
}

.honesty-list > div {
  padding: 22px 24px;
}

.honesty-list > div + div {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.honesty-list strong,
.honesty-list span {
  display: block;
}

.honesty-list strong {
  margin-bottom: 6px;
  color: #fff;
}

.honesty-list span {
  color: rgba(255, 255, 255, 0.66);
}

.ready-checklist {
  overflow: hidden;
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 27px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  list-style: none;
}

.ready-checklist li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 15px;
  align-items: start;
  padding: 18px;
  border-radius: 18px;
}

.ready-checklist li + li {
  border-top: 1px solid var(--line);
}

.ready-checklist li > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
  font-size: 0.72rem;
  font-weight: 900;
}

.ready-checklist strong,
.ready-checklist small {
  display: block;
}

.ready-checklist strong {
  margin-bottom: 5px;
  color: var(--navy);
}

.ready-checklist small {
  color: var(--muted);
  font-size: 0.82rem;
}

@media (max-width: 1160px) {
  .prompt-formula {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .prompt-formula > b {
    display: none;
  }

  .lesson-index {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .competition-status-card {
    grid-template-columns: 106px minmax(0, 1fr);
  }

  .competition-status-card > .status-pill {
    grid-column: 2;
    width: max-content;
  }

  .submission-layout {
    grid-template-columns: 1fr;
  }

  .demo-plan {
    width: min(100%, 720px);
  }
}

@media (max-width: 940px) {
  .core-skill-grid,
  .competition-value-grid {
    grid-template-columns: 1fr;
  }

  .core-skill-card,
  .competition-value-card {
    min-height: 0;
  }

  .core-skill-card > span,
  .competition-value-card > span {
    margin-bottom: 24px;
  }

  .lesson-content-grid,
  .competition-fit-layout,
  .ready-layout,
  .honest-submission-layout {
    grid-template-columns: 1fr;
  }

  .competition-fit-layout,
  .ready-layout,
  .honest-submission-layout {
    gap: 38px;
  }

  .competition-fit-layout > .section-heading,
  .ready-layout > .section-heading {
    position: static;
  }

  .layered-build-guide ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .learn-action-links,
  .compete-action-links {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .lesson-index {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .curriculum-lesson > header {
    grid-template-columns: 46px 1fr;
    gap: 14px;
    padding: 22px;
  }

  .lesson-number {
    width: 44px;
    height: 44px;
  }

  .lesson-content-grid > div,
  .prompt-formula,
  .layered-build-guide {
    padding: 22px;
  }

  .prompt-formula,
  .layered-build-guide ol,
  .submission-package {
    grid-template-columns: 1fr;
  }

  .prompt-formula > div {
    padding: 16px;
  }

  .prompt-formula span {
    margin-bottom: 12px;
  }

  .layered-build-guide li {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 3px 9px;
  }

  .layered-build-guide span {
    grid-row: 1 / span 2;
    margin-bottom: 0;
  }

  .lesson-resource-link {
    justify-content: flex-start;
    padding: 18px 22px;
  }

  .learn-action-links,
  .compete-action-links,
  .learn-action-links .button,
  .compete-action-links .button {
    width: 100%;
  }

  .competition-status-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }

  .status-mark {
    width: 100%;
    height: 96px;
  }

  .competition-status-card > .status-pill {
    grid-column: 1;
  }

  .fit-check-card,
  .demo-plan {
    padding: 24px;
  }

  .submission-package > div {
    min-height: 0;
    padding: 22px;
  }

  .demo-plan li {
    grid-template-columns: 1fr;
  }

  .ready-checklist li {
    grid-template-columns: 38px 1fr;
    gap: 12px;
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Loop 6: public Ask Club AI */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ask-page-main {
  min-height: 100vh;
  background: var(--surface-soft);
}

.ask-chat-hero {
  position: relative;
  overflow: hidden;
  min-height: 880px;
  padding: 142px 0 72px;
  background:
    radial-gradient(circle at 88% 4%, rgba(242, 163, 18, 0.23), transparent 26%),
    radial-gradient(circle at 4% 68%, rgba(43, 91, 148, 0.3), transparent 30%),
    linear-gradient(145deg, #05162e, #0b2d59);
}

.ask-chat-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -220px 42%;
  height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  transform: rotate(-9deg);
}

.ask-chat-hero > .container {
  position: relative;
  z-index: 1;
}

.ask-chat-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(360px, 0.72fr);
  gap: 70px;
  align-items: end;
  margin-bottom: 38px;
}

.ask-chat-intro .eyebrow {
  color: #fbc45d;
}

.ask-chat-intro h1 {
  margin-bottom: 0;
  color: #fff;
  font-size: clamp(3.2rem, 6.4vw, 6rem);
}

.ask-chat-intro > p {
  max-width: 650px;
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
}

.ask-chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.38fr);
  gap: 22px;
  align-items: start;
}

.chat-panel,
.ask-guide-panel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
}

.chat-panel {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(360px, 1fr) auto;
  min-height: 570px;
  background: #fff;
}

.chat-panel-header {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.chat-agent-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.chat-agent-mark,
.message-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), var(--navy-2));
  font-size: 0.68rem;
  font-weight: 900;
}

.chat-agent-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  box-shadow: 0 10px 20px rgba(7, 29, 59, 0.16);
}

.chat-agent-identity h2 {
  margin-bottom: 2px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.chat-agent-identity p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.73rem;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #24956b;
  box-shadow: 0 0 0 4px rgba(36, 149, 107, 0.11);
}

.chat-reset,
.chat-retry {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.chat-reset {
  padding: 9px 13px;
  font-size: 0.78rem;
}

.chat-reset:hover,
.chat-retry:hover {
  border-color: rgba(11, 45, 89, 0.28);
  background: var(--blue-soft);
}

.chat-transcript {
  overflow-y: auto;
  min-height: 360px;
  max-height: 480px;
  padding: 24px;
  scroll-behavior: smooth;
  background:
    linear-gradient(rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 88% 10%, rgba(242, 163, 18, 0.13), transparent 25%);
}

.chat-message {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  max-width: 82%;
  margin-bottom: 20px;
}

.chat-message:last-child {
  margin-bottom: 0;
}

.message-avatar {
  width: 34px;
  height: 34px;
  border-radius: 11px;
}

.message-content {
  width: fit-content;
  max-width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 5px 18px 18px;
  color: #35475f;
  background: var(--surface-soft);
}

.message-content p {
  margin-bottom: 0;
  white-space: pre-wrap;
}

.user-message {
  grid-template-columns: minmax(0, 1fr) 34px;
  margin-left: auto;
}

.user-message .message-avatar {
  grid-column: 2;
  color: var(--navy);
  background: rgba(242, 163, 18, 0.22);
}

.user-message .message-content {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  border-color: var(--navy);
  border-radius: 18px 5px 18px 18px;
  color: #fff;
  background: var(--navy);
}

.error-message .message-content {
  border-color: #edc9c5;
  color: #6e2e29;
  background: #fff5f4;
}

.answer-sources {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid rgba(7, 29, 59, 0.09);
}

.answer-sources > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.answer-sources a {
  padding: 4px 9px;
  border: 1px solid #d6e1f0;
  border-radius: 999px;
  color: var(--navy-2);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 850;
}

.answer-sources a:hover {
  background: var(--blue-soft);
}

.chat-retry {
  margin-top: 12px;
  padding: 7px 12px;
  font-size: 0.76rem;
}

.loading-message {
  align-items: center;
}

.typing-dots {
  width: max-content;
  display: flex;
  gap: 5px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 5px 18px 18px;
  background: var(--surface-soft);
}

.typing-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #8291a5;
  animation: chat-pulse 1s infinite ease-in-out;
}

.typing-dots i:nth-child(2) {
  animation-delay: 140ms;
}

.typing-dots i:nth-child(3) {
  animation-delay: 280ms;
}

@keyframes chat-pulse {
  0%, 60%, 100% { opacity: 0.35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.chat-composer {
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.chat-composer textarea {
  width: 100%;
  min-height: 62px;
  max-height: 150px;
  resize: vertical;
  padding: 13px 14px;
  border: 1px solid #ccd8e7;
  border-radius: 15px;
  color: var(--ink);
  background: #fbfdff;
  font: inherit;
  line-height: 1.45;
}

.chat-composer textarea::placeholder {
  color: #8592a4;
}

.chat-composer textarea:focus {
  border-color: var(--navy-2);
  outline: 3px solid rgba(242, 163, 18, 0.24);
}

.composer-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 9px;
}

#characterCount,
.composer-hint {
  color: var(--muted);
  font-size: 0.7rem;
}

.composer-hint {
  margin-right: auto;
}

.chat-send {
  min-width: 96px;
  padding: 10px 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 10px 20px rgba(7, 29, 59, 0.16);
  cursor: pointer;
  font-weight: 850;
}

.chat-send:disabled,
.suggested-questions button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.chat-noscript {
  margin: 0;
  padding: 10px 16px 16px;
  color: #832f2a;
  font-size: 0.82rem;
}

.ask-guide-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(18px);
}

.ask-guide-panel .eyebrow {
  color: #fbc45d;
}

.ask-guide-panel h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.suggested-questions {
  display: grid;
  gap: 8px;
}

.suggested-questions button {
  position: relative;
  width: 100%;
  padding: 11px 38px 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.065);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.suggested-questions button::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: 14px;
  color: #fbc45d;
  transform: translateY(-50%);
}

.suggested-questions button:hover {
  border-color: rgba(242, 163, 18, 0.5);
  background: rgba(255, 255, 255, 0.11);
  transform: translateX(2px);
}

.chat-privacy-note {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 11px;
  padding: 15px;
  border: 1px solid rgba(242, 163, 18, 0.26);
  border-radius: 15px;
  background: rgba(242, 163, 18, 0.1);
}

.chat-privacy-note > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  color: var(--navy);
  background: #fbc45d;
  font-weight: 950;
}

.chat-privacy-note p,
.chat-scope-note p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 0.76rem;
  line-height: 1.5;
}

.chat-privacy-note strong,
.chat-scope-note strong {
  color: #fff;
}

.chat-scope-note {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-scope-note > strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.8rem;
}

.ask-source-strip {
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.ask-source-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ask-source-links > span {
  margin-right: auto;
  color: var(--navy);
  font-weight: 850;
}

.ask-source-links a {
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy-2);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.ask-source-links a:hover {
  border-color: rgba(11, 45, 89, 0.28);
  background: var(--blue-soft);
}

@media (max-width: 940px) {
  .ask-chat-hero {
    min-height: auto;
    padding: 128px 0 60px;
  }

  .ask-chat-intro,
  .ask-chat-layout {
    grid-template-columns: 1fr;
  }

  .ask-chat-intro {
    gap: 18px;
    margin-bottom: 30px;
  }

  .ask-chat-intro > p {
    margin-bottom: 0;
  }

  .chat-panel {
    min-height: 630px;
  }

  .chat-transcript {
    max-height: 520px;
  }

  .ask-guide-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  }

  .chat-scope-note {
    grid-column: 2;
    padding-top: 0;
    border-top: 0;
  }
}

@media (max-width: 640px) {
  .ask-chat-hero {
    padding-top: 116px;
  }

  .ask-chat-intro h1 {
    font-size: clamp(2.75rem, 15vw, 4.3rem);
  }

  .ask-chat-intro > p {
    font-size: 0.95rem;
  }

  .chat-panel,
  .ask-guide-panel {
    border-radius: 21px;
  }

  .chat-panel {
    grid-template-rows: auto minmax(260px, 1fr) auto;
    min-height: 520px;
  }

  .chat-panel-header {
    padding: 13px 14px;
  }

  .chat-agent-identity p {
    display: none;
  }

  .chat-reset {
    padding: 8px 10px;
  }

  .chat-transcript {
    min-height: 260px;
    max-height: 400px;
    padding: 18px 14px;
  }

  .chat-message {
    max-width: 94%;
  }

  .message-content {
    padding: 12px 13px;
    font-size: 0.91rem;
  }

  .composer-actions {
    flex-wrap: wrap;
  }

  .composer-hint {
    display: none;
  }

  #characterCount {
    margin-right: auto;
  }

  .ask-guide-panel {
    display: flex;
    padding: 22px;
  }

  .chat-scope-note {
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ask-source-links > span {
    flex-basis: 100%;
    margin-bottom: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .typing-dots i {
    animation: none;
    opacity: 0.7;
  }
}
