:root {
  --ink: #112b4a;
  --muted: #65778a;
  --blue: #2078bd;
  --navy: #12375f;
  --yellow: #ffd34e;
  --paper: #fffdf4;
  --line: #d5e7f1;
  --purple: #6d4fc2;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: #dff3ff; }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(circle at 12% 9%, rgba(255,255,255,.95) 0 5px, transparent 6px),
    radial-gradient(circle at 91% 17%, rgba(255,211,78,.8) 0 4px, transparent 5px),
    linear-gradient(155deg, #eaf8ff 0%, #d4f0ff 50%, #fff3bd 145%);
  background-size: 115px 115px, 150px 150px, auto;
}
a { color: inherit; }
.shell { width: min(100%, 900px); min-height: 100vh; margin: 0 auto; padding: max(28px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom)); }
.topline { display: flex; align-items: center; gap: 10px; color: var(--blue); font-size: .9rem; font-weight: 900; text-decoration: none; width: fit-content; }
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand-mark { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; color: var(--yellow); background: var(--navy); box-shadow: 0 7px 0 #0a2744; font-size: 1.65rem; font-weight: 950; transform: rotate(-3deg); }
.brand-name { font-size: 1.06rem; font-weight: 950; letter-spacing: -.02em; }
.hero { max-width: 650px; margin-bottom: 30px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: .83rem; font-weight: 950; letter-spacing: .09em; text-transform: uppercase; }
h1 { margin: 0; color: var(--navy); font-size: clamp(2.25rem, 8vw, 4.3rem); line-height: .98; letter-spacing: -.055em; }
.lead { margin: 16px 0 0; color: var(--muted); font-size: clamp(1rem, 2.5vw, 1.15rem); font-weight: 700; line-height: 1.55; }
.profile-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.profile-card { position: relative; min-height: 250px; padding: 26px; border: 3px solid white; border-radius: 28px; overflow: hidden; text-decoration: none; box-shadow: 0 18px 50px rgba(20,58,94,.13); transition: transform .16s ease, box-shadow .16s ease; }
.profile-card:hover { transform: translateY(-4px); box-shadow: 0 24px 60px rgba(20,58,94,.17); }
.profile-card:active { transform: translateY(1px); }
.profile-card.gala { background: linear-gradient(145deg, #f8f4ff, #e9dcff); }
.profile-card.eim { background: linear-gradient(145deg, #fffef7, #ffed98); }
.avatar { width: 78px; height: 78px; display: grid; place-items: center; border-radius: 24px; color: white; font-size: 2.1rem; font-weight: 950; box-shadow: 0 8px 0 rgba(17,43,74,.15); }
.gala .avatar { background: var(--purple); }
.eim .avatar { background: var(--blue); }
.profile-card h2 { margin: 25px 0 4px; font-size: 1.75rem; letter-spacing: -.035em; }
.profile-card p { margin: 0; color: var(--muted); font-weight: 750; }
.arrow { position: absolute; right: 24px; bottom: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--navy); font-size: 1.3rem; font-weight: 950; }
.page-head { display: flex; align-items: center; gap: 17px; margin: 34px 0 28px; }
.page-head .avatar { flex: 0 0 auto; width: 68px; height: 68px; border-radius: 21px; font-size: 1.8rem; }
.page-head h1 { font-size: clamp(2rem, 7vw, 3.2rem); }
.page-head p { margin: 5px 0 0; color: var(--muted); font-weight: 750; }
.subject-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.subject-card { position: relative; min-height: 145px; padding: 22px; border: 3px solid white; border-radius: 23px; background: rgba(255,255,255,.8); box-shadow: 0 12px 34px rgba(20,58,94,.1); text-decoration: none; }
.subject-card.active { background: linear-gradient(145deg, #fffef5, #ffec91); transition: transform .15s ease; }
.subject-card.active:hover { transform: translateY(-3px); }
.subject-icon { display: block; margin-bottom: 15px; font-size: 2rem; line-height: 1; }
.subject-card h2 { margin: 0; font-size: 1.25rem; }
.subject-card p { margin: 5px 0 0; color: var(--muted); font-size: .88rem; font-weight: 700; }
.soon { position: absolute; top: 16px; right: 16px; padding: 5px 8px; border-radius: 999px; color: var(--muted); background: #edf3f6; font-size: .68rem; font-weight: 900; }
.active-label { color: #8c6200 !important; }
footer { margin-top: 28px; color: var(--muted); text-align: center; font-size: .82rem; font-weight: 700; }
@media (max-width: 590px) {
  .shell { padding-left: 14px; padding-right: 14px; }
  .brand { margin-bottom: 34px; }
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { min-height: 205px; }
  .subject-grid { grid-template-columns: 1fr; }
  .subject-card { min-height: 125px; }
}
@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }
