:root{
  --bg:#f7fbff;
  --ink:#0b1220;
  --muted:#5b6b86;
  --brand:#2d6cdf;
  --brand2:#2bb673;
  --card:#ffffff;
  --line:rgba(12,18,32,.12);
  --shadow:0 14px 40px rgba(14,40,80,.10);
  --radius:18px;
  --max:1120px;
  --pad:24px;
  --comic:'Bangers', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --ui: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  font-family:var(--ui);
  background:
    radial-gradient(circle at 10px 10px, rgba(45,108,223,.13) 1.2px, transparent 1.2px) 0 0/22px 22px,
    radial-gradient(circle at 11px 11px, rgba(43,182,115,.10) 1px, transparent 1px) 0 0/22px 22px,
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

a{color:inherit}
.wrap{max-width:var(--max); margin:0 auto; padding:0 var(--pad);}
.section{padding:56px 0;}
.section.tight{padding:28px 0;}
.h1{font-size:clamp(40px, 5vw, 66px); line-height:1.02; margin:0 0 16px; letter-spacing:-.02em;}
.h2{font-size:clamp(30px, 3.2vw, 44px); margin:0 0 12px; letter-spacing:-.02em;}
.kicker{color:var(--muted); font-size:16px; line-height:1.6;}
strong{font-weight:800}

.top-ticker{
  background:linear-gradient(90deg, rgba(45,108,223,.96), rgba(43,182,115,.96));
  color:#fff;
  font-weight:800;
  letter-spacing:.02em;
  font-size:14px;
  padding:10px 0;
}
.top-ticker .wrap{display:flex; align-items:center; justify-content:center; gap:10px;}
.top-ticker .dot{opacity:.95}
.top-ticker span{white-space:nowrap}
@media (max-width:720px){
  .top-ticker span{white-space:normal; text-align:center}
  .top-ticker .wrap{padding:0 14px;}
}

.site-header{
  position:sticky; top:0; z-index:50;
  backdrop-filter:saturate(180%) blur(10px);
  background:rgba(255,255,255,.92);
  border-bottom:1px solid rgba(12,18,32,.08);
}
.header-row{
  display:flex; align-items:center; justify-content:space-between;
  gap:18px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; text-decoration:none;
}
.brand img{width:38px; height:38px; border-radius:10px;}
.brand .title{font-weight:900; font-size:18px; line-height:1.1;}
.brand .sub{font-size:13px; color:var(--muted); line-height:1.2; margin-top:3px;}
nav{display:flex; gap:18px; align-items:center; flex-wrap:wrap;}
nav a{
  text-decoration:none; color:var(--ink); font-weight:800;
  padding:10px 10px; border-radius:999px;
}
nav a:hover{background:rgba(45,108,223,.10)}
nav a.active{background:rgba(45,108,223,.14)}
.nav-cta{
  background:rgba(45,108,223,.12);
  border:1px solid rgba(45,108,223,.25);
  padding:10px 14px;
}
.nav-cta:hover{background:rgba(45,108,223,.18)}
@media (max-width:860px){
  .header-row{flex-direction:column; align-items:flex-start}
  nav{gap:10px}
}

.grid-2{display:grid; grid-template-columns:1.05fr .95fr; gap:22px; align-items:stretch;}
@media (max-width:960px){ .grid-2{grid-template-columns:1fr; } }

.card{
  background:var(--card);
  border:1px solid rgba(12,18,32,.10);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
}

.hero-left{padding:28px;}
.hero-right{padding:0; overflow:hidden; position:relative; min-height:420px;}
.hero-img{
  position:absolute; inset:0;
  background-position:center;
  background-size:cover;
  border-radius:var(--radius);
}
.hero-overlay{
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,.08) 30%, rgba(255,255,255,.0) 70%);
  pointer-events:none;
}
.hero-bubble{
  position:absolute; left:18px; top:52px;
  max-width:min(420px, 88%);
  background:#fff;
  border:1px solid rgba(12,18,32,.16);
  border-radius:16px;
  box-shadow:0 16px 32px rgba(12,18,32,.12);
  padding:14px 16px;
}
.hero-bubble:before{
  content:"";
  position:absolute; left:24px; top:-10px;
  width:0; height:0;
  border-left:10px solid transparent;
  border-right:10px solid transparent;
  border-bottom:10px solid #fff;
  filter:drop-shadow(0 -1px 0 rgba(12,18,32,.16));
}
.hero-bubble .speech{font-weight:900;}
.hero-bubble small{display:block; margin-top:6px; color:var(--muted); font-weight:700;}
.spark{animation:floaty 4.5s ease-in-out infinite;}
@keyframes floaty{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}

.comic-word{
  font-family:var(--comic);
  letter-spacing:.02em;
  text-transform:uppercase;
  color:var(--brand);
  text-shadow:0 6px 0 rgba(45,108,223,.15);
}

/* Comic "POW!" 3D treatment (home hero headline only) */
.comic-word--pow{
  position:relative;
  display:inline-block;
  padding:0 .18em;
  transform:skewX(-6deg);
  -webkit-text-stroke: 2px rgba(9,21,56,.16);
  text-shadow:
    0 2px 0 rgba(255,255,255,.75),
    0 10px 0 rgba(45,108,223,.18),
    0 18px 0 rgba(45,108,223,.10),
    0 26px 20px rgba(9,21,56,.22);
}
.comic-word--pow::before{
  content:"";
  position:absolute;
  inset:-.42em -.55em;
  z-index:-1;
  background:
    radial-gradient(circle at 30% 35%, rgba(255,255,255,.75), rgba(255,255,255,0) 55%),
    radial-gradient(circle at 65% 55%, rgba(45,108,223,.28), rgba(45,108,223,0) 62%),
    radial-gradient(circle at 40% 85%, rgba(70,190,160,.18), rgba(70,190,160,0) 60%);
  clip-path: polygon(50% 0%, 61% 8%, 74% 2%, 82% 14%, 98% 20%, 88% 36%, 100% 50%, 88% 64%, 98% 80%, 82% 86%, 74% 98%, 61% 92%, 50% 100%, 39% 92%, 26% 98%, 18% 86%, 2% 80%, 12% 64%, 0% 50%, 12% 36%, 2% 20%, 18% 14%, 26% 2%, 39% 8%);
  opacity:.55;
  filter: drop-shadow(0 18px 28px rgba(9,21,56,.16));
}



.note{
  border:2px dashed rgba(45,108,223,.35);
  background:rgba(45,108,223,.06);
  padding:14px 16px; border-radius:16px;
  font-weight:800; line-height:1.55;
}
.note.green{
  border-color:rgba(43,182,115,.35);
  background:rgba(43,182,115,.06);
}
.pills{display:flex; gap:10px; flex-wrap:wrap; margin:14px 0 18px;}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  padding:10px 12px; border-radius:999px;
  background:rgba(12,18,32,.05);
  border:1px solid rgba(12,18,32,.08);
  font-weight:800; text-decoration:none;
}

.btns{display:flex; gap:12px; flex-wrap:wrap; margin-top:16px;}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(12,18,32,.10);
  text-decoration:none;
  font-weight:900;
}
.btn.primary{
  background:linear-gradient(180deg, rgba(45,108,223,.98), rgba(45,108,223,.85));
  color:#fff;
  border-color:rgba(45,108,223,.35);
  box-shadow:0 14px 28px rgba(45,108,223,.20);
}
.btn.primary:hover{filter:brightness(1.02)}
.btn.ghost{background:#fff;}
.btn.ghost:hover{background:rgba(45,108,223,.06)}
.btn.small{padding:10px 14px; border-radius:999px; font-size:14px;}

.page-head{padding-top:22px;}
.page-actions{display:flex; gap:12px; flex-wrap:wrap; margin:18px 0 10px;}
hr.soft{border:0; border-top:1px solid rgba(12,18,32,.10); margin:20px 0;}

.cards-3{display:grid; grid-template-columns:repeat(3,1fr); gap:18px;}
@media (max-width:980px){ .cards-3{grid-template-columns:1fr;} }
.card.pad{padding:20px;}
.card h3{margin:0 0 10px;}
ul{margin:10px 0 0 18px; color:var(--ink)}
li{margin:8px 0; line-height:1.5}

.form{
  display:grid; gap:14px;
}
.field label{display:block; font-weight:900; margin:0 0 6px;}
.field input, .field textarea, .field select{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(12,18,32,.14);
  background:#fff;
  font-family:var(--ui);
  font-size:16px;
}
.field textarea{min-height:140px; resize:vertical}
.check{
  display:flex; gap:10px; align-items:center;
  margin-top:6px;
  font-weight:800;
  color:var(--muted);
}
.check input{width:18px; height:18px;}
.footer{
  padding:34px 0 48px;
  color:var(--muted);
  font-weight:700;
}
.footer .wrap{display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;}


/* Unlabeled student portal entry (home page only) */
.secret-portal{
  display:flex;
  align-items:center;
  justify-content:center;
  width:34px;
  height:34px;
  border-radius:999px;
  border:1px solid rgba(15,23,42,.12);
  background:rgba(255,255,255,.7);
  box-shadow:0 8px 20px rgba(15,23,42,.08);
  text-decoration:none;
  margin-left:14px;
  flex:0 0 auto;
}
.secret-portal img{
  width:20px;
  height:20px;
  display:block;
}
.secret-portal:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 26px rgba(15,23,42,.12);
}
.secret-portal:focus-visible{
  outline:3px solid rgba(59,130,246,.35);
  outline-offset:3px;
}
