:root {
  --ink: #f5f8f0;
  --muted: #a8b9af;
  --muted-bright: #d2ddd6;
  --night: #07110d;
  --night-soft: #0b1812;
  --panel: rgba(15, 31, 23, 0.82);
  --panel-solid: #102219;
  --line: rgba(214, 231, 219, 0.12);
  --line-bright: rgba(214, 231, 219, 0.22);
  --lime: #c4f269;
  --lime-bright: #d9ff8b;
  --lime-soft: rgba(196, 242, 105, 0.12);
  --danger: #ff8a7a;
  --display: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  --body: "Aptos", "Segoe UI Variable Text", "Segoe UI", sans-serif;
  color-scheme: dark;
}

html[data-theme="light"] {
  --ink: #10271e;
  --muted: #526b5f;
  --muted-bright: #314d40;
  --night: #eef5f0;
  --night-soft: #e3eee7;
  --panel: rgba(255, 255, 255, .88);
  --panel-solid: #fff;
  --line: rgba(29, 72, 51, .15);
  --line-bright: rgba(29, 72, 51, .27);
  --lime: #5d8f18;
  --lime-bright: #72a925;
  --lime-soft: rgba(93, 143, 24, .12);
  --danger: #b9423c;
  color-scheme: light;
}

@view-transition {
  navigation: auto;
}

::view-transition-group(portal-stage) {
  animation-duration: 720ms;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

::view-transition-old(portal-stage),
::view-transition-new(portal-stage) {
  height: 100%;
  overflow: clip;
  mix-blend-mode: normal;
}

::view-transition-old(root) {
  animation: page-out 340ms cubic-bezier(.4, 0, 1, 1) both;
}

::view-transition-new(root) {
  animation: page-in 560ms 90ms cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes page-out {
  to { opacity: 0; filter: blur(8px); transform: scale(.985); }
}

@keyframes page-in {
  from { opacity: 0; filter: blur(10px); transform: scale(1.015); }
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--night);
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(155deg, rgba(2, 16, 13, .80), rgba(4, 27, 20, .67) 48%, rgba(1, 13, 11, .82)),
    url("../images/landing_background.jpg") center / cover fixed no-repeat;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background:
    linear-gradient(155deg, rgba(247, 252, 249, .88), rgba(225, 241, 233, .76) 50%, rgba(241, 248, 244, .88)),
    url("../images/landing_background.jpg") center / cover fixed no-repeat;
}

html[data-theme="light"] body::before {
  background-image:
    linear-gradient(rgba(25, 67, 46, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 67, 46, .035) 1px, transparent 1px);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image: linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px);
  background-size: 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 90%);
}

a {
  color: inherit;
}

a:hover {
  color: inherit;
}

button,
input {
  font: inherit;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.ambient-light {
  position: fixed;
  z-index: -2;
  width: 34rem;
  height: 34rem;
  border-radius: 999px;
  opacity: .18;
  filter: blur(110px);
  pointer-events: none;
}

.ambient-light-one {
  top: -22rem;
  right: 4vw;
  background: #77a864;
}

.ambient-light-two {
  bottom: -26rem;
  left: -8rem;
  background: #275c44;
}

.site-header,
.site-footer,
.site-main {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.site-brand-logo {
  display: grid;
  width: 104px;
  height: 72px;
  flex: 0 0 104px;
  place-items: center;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .24));
}

.site-brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  line-height: 1;
}

.brand-copy strong {
  font-family: var(--display);
  font-size: 1.03rem;
  letter-spacing: .13em;
}

.brand-copy small {
  margin-top: 5px;
  color: var(--muted);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .23em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.theme-toggle {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
  color: var(--muted-bright);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
  border-color: rgba(196, 242, 105, .5);
  background: var(--lime-soft);
  color: var(--lime);
  transform: translateY(-1px);
}

.theme-icon { width: 18px; height: 18px; }
.theme-icon-moon { display: none; }
html[data-theme="light"] .theme-icon-sun { display: none; }
html[data-theme="light"] .theme-icon-moon { display: block; }

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.system-status i {
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(196, 242, 105, .08), 0 0 12px rgba(196, 242, 105, .45);
}

.nav-access {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-bright);
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.nav-access:hover {
  color: var(--lime-bright);
}

.nav-access svg {
  width: 17px;
}

.site-main {
  display: grid;
  min-height: calc(100vh - 144px);
  align-content: center;
  padding-block: 10px 18px;
}

.portal-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(11, 35, 27, .86), rgba(3, 19, 15, .72));
  backdrop-filter: blur(8px) saturate(1.08);
  box-shadow: 0 38px 90px rgba(0, 0, 0, .28), inset 0 1px rgba(255, 255, 255, .035);
  view-transition-name: portal-stage;
}

html[data-theme="light"] .portal-stage {
  background: linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(235, 246, 238, .92));
  box-shadow: 0 28px 70px rgba(42, 82, 60, .16), inset 0 1px rgba(255, 255, 255, .85);
}

.landing-stage {
  display: grid;
  min-height: min(590px, calc(100svh - 176px));
  grid-template-columns: 1.04fr .96fr;
}

.landing-stage::before,
.login-stage::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(255, 255, 255, .025), transparent 32%);
  content: "";
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  padding: 54px 32px 38px 64px;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--lime);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 22px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}

.hero-copy h1,
.login-story h1 {
  margin: 20px 0 19px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(3.15rem, 4.8vw, 4.75rem);
  font-weight: 650;
  letter-spacing: -.065em;
  line-height: .96;
}

.hero-copy h1 em,
.login-story h1 em {
  color: var(--lime);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.055em;
}

.hero-intro {
  max-width: 510px;
  margin: 0;
  color: var(--muted-bright);
  font-size: 1.06rem;
  line-height: 1.62;
}

.hero-actions {
  display: flex;
  margin-top: 29px;
  align-items: center;
  gap: 25px;
}

.primary-action {
  display: inline-flex;
  min-width: 242px;
  height: 58px;
  padding: 6px 7px 6px 22px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(219, 255, 148, .44);
  border-radius: 17px;
  background: var(--lime);
  box-shadow: 0 15px 40px rgba(130, 178, 68, .17);
  color: #12200d;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.2, .8, .2, 1), box-shadow 220ms ease, background 220ms ease;
}

.primary-action:hover {
  background: var(--lime-bright);
  box-shadow: 0 18px 45px rgba(130, 178, 68, .27);
  color: #12200d;
  transform: translateY(-2px);
}

.action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: rgba(12, 27, 8, .13);
}

.action-icon svg {
  width: 20px;
}

.hero-actions p {
  display: grid;
  margin: 0;
  font-size: .82rem;
  line-height: 1.5;
}

.hero-actions p strong {
  color: var(--muted-bright);
}

.hero-actions p span {
  color: #71847a;
}

.clearance-steps {
  display: flex;
  max-width: 430px;
  margin: 38px 0 0;
  padding: 0;
  list-style: none;
}

.clearance-steps li {
  position: relative;
  display: grid;
  width: 33.333%;
  gap: 6px;
}

.clearance-steps li:not(:last-child)::after {
  position: absolute;
  top: 8px;
  right: 14px;
  left: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(196, 242, 105, .5), rgba(196, 242, 105, .08));
  content: "";
}

.clearance-steps b {
  color: var(--lime);
  font-size: .7rem;
  letter-spacing: .12em;
}

.clearance-steps span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 650;
}

.hero-visual {
  position: relative;
  min-height: min(590px, calc(100svh - 176px));
  isolation: isolate;
}

.hero-visual::before {
  position: absolute;
  inset: 8% -30% 0 -10%;
  z-index: -2;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 143, 105, .14), transparent 66%);
  content: "";
}

.orbit {
  position: absolute;
  top: 50%;
  left: 52%;
  border: 1px solid rgba(199, 225, 207, .1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit::after {
  position: absolute;
  inset: -1px;
  border: 1px solid transparent;
  border-top-color: rgba(196, 242, 105, .32);
  border-radius: inherit;
  content: "";
  animation: orbit-turn 16s linear infinite;
}

.orbit-outer {
  width: 445px;
  height: 445px;
  border-color: rgba(38, 162, 224, .22);
  box-shadow: inset 0 0 28px rgba(38, 162, 224, .025);
}

.orbit-outer::after {
  border-top-color: #26a2e0;
  filter: drop-shadow(0 0 5px rgba(38, 162, 224, .72));
}

.orbit-inner {
  width: 310px;
  height: 310px;
  border-color: rgba(226, 72, 78, .2);
  box-shadow: inset 0 0 24px rgba(226, 72, 78, .025);
}

.orbit-inner::after {
  border-top-color: transparent;
  border-right-color: #e2484e;
  filter: drop-shadow(0 0 5px rgba(226, 72, 78, .68));
  animation-direction: reverse;
  animation-duration: 12s;
}

@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

.orbit-dot {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 1px solid var(--lime);
  border-radius: 50%;
  background: var(--night);
  box-shadow: 0 0 12px rgba(196, 242, 105, .5);
}

.dot-one { top: 19%; left: 35%; }
.dot-two { right: 8%; bottom: 28%; }

.progress-core {
  position: absolute;
  top: 50%;
  left: 52%;
  display: grid;
  width: 206px;
  height: 206px;
  place-items: center;
  border: 1px solid rgba(220, 238, 226, .14);
  border-radius: 50%;
  background: radial-gradient(circle at 40% 32%, rgba(36, 66, 49, .98), rgba(8, 23, 15, .98) 70%);
  box-shadow: 0 28px 60px rgba(0, 0, 0, .32), inset 0 1px 0 rgba(255, 255, 255, .08), 0 0 0 12px rgba(255, 255, 255, .012);
  transform: translate(-50%, -50%);
}

.core-logo {
  position: absolute;
  z-index: 0;
  width: 370px;
  height: 370px;
  max-width: none;
  max-height: none;
  opacity: .17;
  object-fit: contain;
  filter: saturate(1.14) contrast(1.2) drop-shadow(0 0 22px rgba(62, 169, 211, .2));
  pointer-events: none;
}

.core-ring {
  position: absolute;
  inset: 16px;
  transform: rotate(-90deg);
}

.core-ring svg {
  width: 100%;
  height: 100%;
}

.core-ring circle {
  fill: none;
  stroke-width: 3;
}

.ring-track { stroke: rgba(255, 255, 255, .08); }
.ring-value {
  stroke: var(--lime);
  stroke-dasharray: 440;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 4px rgba(196, 242, 105, .45));
  animation: ring-reveal 1.4s .25s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes ring-reveal {
  from { stroke-dashoffset: 440; }
}

.core-content {
  z-index: 1;
  display: grid;
  place-items: center;
  line-height: 1;
}

.core-content > span {
  color: var(--muted);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.core-content strong {
  margin-block: 6px 8px;
  font-family: var(--display);
  font-size: 3.15rem;
  font-weight: 520;
  letter-spacing: -.07em;
}

.core-content strong small { color: var(--lime); font-size: 1.1rem; }
.core-content em {
  padding: 5px 9px;
  border-radius: 99px;
  background: var(--lime-soft);
  color: var(--lime);
  font-size: .61rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.department-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  min-width: 168px;
  height: 62px;
  padding: 9px 11px;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(219, 236, 224, .14);
  border-radius: 17px;
  background: rgba(18, 37, 27, .88);
  box-shadow: 0 18px 38px rgba(0, 0, 0, .25), inset 0 1px rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
  animation: chip-float 5s ease-in-out infinite;
}

.department-chip > span:nth-child(2) {
  display: grid;
  min-width: 62px;
  line-height: 1.3;
}

.department-chip b { font-size: .8rem; }
.department-chip small { color: var(--muted); font-size: .7rem; }
.department-chip > i {
  display: grid;
  width: 20px;
  height: 20px;
  margin-left: auto;
  place-items: center;
  border-radius: 50%;
  background: var(--lime-soft);
  color: var(--lime);
  font-size: .65rem;
  font-style: normal;
}

.department-chip > i.pending {
  width: 7px;
  height: 7px;
  margin-right: 6px;
  background: #efc66b;
  box-shadow: 0 0 0 5px rgba(239, 198, 107, .09);
}

.chip-icon {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border: 1px solid rgba(196, 242, 105, .16);
  border-radius: 11px;
  background: rgba(196, 242, 105, .06);
  color: var(--lime);
  font-family: Georgia, serif;
  font-size: .85rem;
}

.chip-finance { top: 18%; left: 1%; animation-delay: -1.2s; }
.chip-library { top: 27%; right: 0; animation-delay: -3.1s; }
.chip-academic { right: 4%; bottom: 20%; animation-delay: -2.1s; }

@keyframes chip-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.trust-strip {
  display: flex;
  padding: 12px 24px 0;
  align-items: center;
  justify-content: center;
  gap: 48px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: .025em;
}

.trust-strip span { display: inline-flex; align-items: center; gap: 9px; }
.trust-strip i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #688178;
}

.site-footer {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: .74rem;
  text-align: center;
}

.site-footer a { text-decoration: none; transition: color 180ms ease; }
.site-footer a:hover { color: var(--muted-bright); }
.footer-rule { width: 22px; height: 1px; background: #3a4e44; }

/* Login */
.login-stage {
  display: grid;
  min-height: 610px;
  grid-template-columns: .92fr 1.08fr;
}

.login-story {
  position: relative;
  display: flex;
  overflow: hidden;
  padding: 48px 56px;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 10% 100%, rgba(95, 145, 102, .18), transparent 43%),
    linear-gradient(145deg, rgba(19, 42, 30, .76), rgba(8, 23, 15, .5));
}

.login-story::after {
  position: absolute;
  right: -120px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(196, 242, 105, .07);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(196, 242, 105, .018), 0 0 0 100px rgba(196, 242, 105, .012);
  content: "";
}

.back-link {
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.back-link:hover { color: var(--lime); transform: translateX(-2px); }
.back-link svg { width: 16px; }

.login-school-mark {
  position: absolute;
  z-index: 0;
  top: 49%;
  left: 54%;
  display: grid;
  width: min(76%, 430px);
  aspect-ratio: 1;
  place-items: center;
  isolation: isolate;
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: login-logo-float 7s ease-in-out infinite;
}

.login-school-mark::before {
  position: absolute;
  z-index: -1;
  inset: 9%;
  border: 1px solid rgba(74, 165, 222, .18);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 149, 204, .08), rgba(179, 45, 55, .04) 48%, transparent 70%);
  box-shadow: 0 0 46px rgba(46, 151, 211, .09), inset 0 0 36px rgba(189, 55, 65, .05);
  content: "";
  animation: login-logo-glow 4.8s ease-in-out infinite;
}

.login-school-mark::after {
  position: absolute;
  top: 29%;
  right: 8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(196, 242, 105, .05), 0 0 20px rgba(196, 242, 105, .44);
  content: "";
  opacity: .55;
  animation: login-logo-signal 4.8s ease-in-out infinite;
}

.login-school-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: .16;
  filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .3)) saturate(1.06);
  animation: login-logo-breathe 4.8s ease-in-out infinite;
}

@keyframes login-logo-float {
  0%, 100% { transform: translate(-50%, -50%) rotate(-1.2deg) scale(.98); }
  50% { transform: translate(-50%, calc(-50% - 10px)) rotate(1.2deg) scale(1.02); }
}

@keyframes login-logo-glow {
  0%, 100% { opacity: .58; transform: scale(.94) rotate(0); }
  50% { opacity: 1; transform: scale(1.05) rotate(180deg); }
}

@keyframes login-logo-breathe {
  0%, 100% { opacity: .13; filter: drop-shadow(0 14px 28px rgba(0, 0, 0, .3)) saturate(.96); }
  50% { opacity: .2; filter: drop-shadow(0 17px 36px rgba(51, 151, 207, .18)) saturate(1.15); }
}

@keyframes login-logo-signal {
  0%, 100% { opacity: .28; transform: translate(-8px, 12px) scale(.72); }
  50% { opacity: .68; transform: translate(8px, -14px) scale(1); }
}

.login-story-copy {
  position: relative;
  z-index: 1;
  margin-top: 55px;
}

.login-story h1 {
  margin-top: 20px;
  font-size: clamp(2.55rem, 4vw, 4rem);
}

.login-story-copy > p {
  max-width: 390px;
  margin: 0;
  color: var(--muted-bright);
  font-size: .9rem;
  line-height: 1.7;
}

.story-progress {
  position: relative;
  z-index: 1;
  display: flex;
  width: 320px;
  margin-block: 34px 24px;
  align-items: center;
}

.mini-progress-core {
  display: grid;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(196, 242, 105, .28);
  border-radius: 50%;
  background: rgba(196, 242, 105, .07);
  box-shadow: inset 0 0 25px rgba(196, 242, 105, .05);
  line-height: 1.1;
}

.mini-progress-core strong { color: var(--lime); font-size: 1.08rem; }
.mini-progress-core span {
  max-width: 62px;
  color: var(--muted-bright);
  font-size: .47rem;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
}
.story-line {
  position: relative;
  width: 124px;
  height: 1px;
  overflow: hidden;
  background: rgba(196, 242, 105, .15);
}

.story-line::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--lime), var(--lime-bright));
  content: "";
  transform: scaleX(1);
  transform-origin: left center;
}

.story-node {
  display: grid;
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  place-items: center;
  border: 1px solid rgba(196, 242, 105, .2);
  border-radius: 50%;
  background: #102219;
  color: #11200c;
  font-size: .5rem;
}

.story-node + .story-node { margin-left: 18px; }
.story-node.is-complete {
  border-color: var(--lime);
  background: var(--lime);
  color: #11200c;
}
.story-node.is-current { border-color: var(--lime); box-shadow: 0 0 0 5px rgba(196, 242, 105, .06); }

.js-ready .story-progress.is-ready .mini-progress-core {
  animation: ready-core-morph 820ms 820ms cubic-bezier(.16, 1, .3, 1) both;
}

.js-ready .story-progress.is-ready .story-line::after {
  animation: ready-line-complete 920ms 140ms cubic-bezier(.16, 1, .3, 1) both;
}

.js-ready .story-progress.is-ready .story-node.is-final-step {
  animation: ready-node-complete 420ms cubic-bezier(.16, 1, .3, 1) both;
}

.js-ready .story-progress.is-ready .story-node.is-final-step:nth-of-type(3) {
  animation-delay: 460ms;
}

.js-ready .story-progress.is-ready .story-node.is-final-step:nth-of-type(4) {
  animation-delay: 790ms;
}

@keyframes ready-line-complete {
  from { transform: scaleX(.72); }
  to { transform: scaleX(1); }
}

@keyframes ready-node-complete {
  0% {
    border-color: rgba(196, 242, 105, .24);
    background: #102219;
    box-shadow: 0 0 0 0 rgba(196, 242, 105, 0);
    color: transparent;
    transform: scale(.7);
  }
  65% {
    box-shadow: 0 0 0 7px rgba(196, 242, 105, .08);
    transform: scale(1.18);
  }
  100% {
    border-color: var(--lime);
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(196, 242, 105, 0);
    color: #11200c;
    transform: scale(1);
  }
}

@keyframes ready-core-morph {
  0% {
    border-radius: 50%;
    box-shadow: inset 0 0 25px rgba(196, 242, 105, .05);
    transform: scale(1);
  }
  55% {
    border-color: rgba(196, 242, 105, .7);
    border-radius: 32% 50% 38% 46%;
    box-shadow: inset 0 0 28px rgba(196, 242, 105, .12), 0 0 28px rgba(196, 242, 105, .12);
    transform: scale(1.08);
  }
  100% {
    border-color: rgba(196, 242, 105, .42);
    border-radius: 50%;
    box-shadow: inset 0 0 25px rgba(196, 242, 105, .08), 0 0 18px rgba(196, 242, 105, .06);
    transform: scale(1);
  }
}

.support-note { position: relative; z-index: 1; margin: 0; color: #71867b; font-size: .68rem; }
.support-note a { color: var(--muted-bright); text-decoration: none; }

.login-form-panel {
  position: relative;
  display: grid;
  padding: 50px clamp(46px, 7vw, 88px);
  place-items: center;
  background: rgba(7, 18, 13, .32);
}

/* Keep the institutional artwork visible without reducing sign-in contrast. */
body.auth-page {
  background:
    linear-gradient(155deg, rgba(2, 16, 13, .60), rgba(4, 27, 20, .42) 48%, rgba(1, 13, 11, .62)),
    url("../images/landing_background.jpg") center / cover fixed no-repeat;
}

.auth-page .portal-stage {
  background: linear-gradient(145deg, rgba(11, 35, 27, .72), rgba(3, 19, 15, .56));
  backdrop-filter: blur(5px) saturate(1.08);
}

.auth-page .login-story {
  background:
    radial-gradient(circle at 10% 100%, rgba(95, 145, 102, .15), transparent 43%),
    linear-gradient(145deg, rgba(19, 42, 30, .62), rgba(8, 23, 15, .36));
}

.auth-page .login-form-panel {
  background: rgba(7, 18, 13, .22);
}

.login-form-wrap {
  width: min(100%, 410px);
}

.form-heading {
  display: flex;
  align-items: center;
  gap: 15px;
}

.secure-badge {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(196, 242, 105, .2);
  border-radius: 15px;
  background: var(--lime-soft);
  color: var(--lime);
}

.secure-badge svg { width: 21px; }
.form-heading p {
  margin: 0 0 3px;
  color: var(--lime);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.form-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -.04em;
}

.form-intro {
  margin: 19px 0 20px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.55;
}

.staff-access-step {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(4, 13, 9, .38);
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.staff-access-step.is-open {
  border-color: rgba(196, 242, 105, .28);
  background: linear-gradient(145deg, rgba(196, 242, 105, .08), rgba(4, 13, 9, .46));
  box-shadow: 0 14px 28px rgba(0, 0, 0, .12);
}

.staff-access-toggle {
  display: grid;
  width: 100%;
  min-height: 62px;
  padding: 10px 13px;
  align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 11px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.staff-access-toggle:hover,
.staff-access-toggle:focus-visible { background: rgba(196, 242, 105, .045); }

.staff-access-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(196, 242, 105, .18);
  border-radius: 10px;
  background: rgba(196, 242, 105, .075);
  color: var(--lime);
}

.staff-access-icon svg { width: 17px; }
.staff-access-copy { display: grid; min-width: 0; gap: 2px; }
.staff-access-copy strong { font-size: .72rem; }
.staff-access-copy small { overflow: hidden; color: #71867b; font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.staff-access-state {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(196, 242, 105, .08);
  color: var(--lime);
  font-size: .55rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.staff-access-chevron {
  width: 17px;
  color: #758a7e;
  transition: transform 260ms cubic-bezier(.16, 1, .3, 1), color 180ms ease;
}

.staff-access-step.is-open .staff-access-chevron { color: var(--lime); transform: rotate(180deg); }
.staff-access-panel { transform-origin: top center; }
.staff-access-panel-inner {
  display: grid;
  padding: 4px 13px 14px;
  gap: 10px;
  border-top: 1px solid rgba(196, 242, 105, .1);
}

.staff-access-panel-inner .field-group { padding-top: 13px; }
.staff-access-panel-inner > p {
  margin: 0;
  color: #71867b;
  font-size: .61rem;
  line-height: 1.5;
}

.staff-access-panel-inner > p strong { color: var(--muted-bright); }
.staff-access-noscript { margin: -10px 0 0; color: var(--muted); font-size: .68rem; }
.staff-access-noscript a { color: var(--lime); }

.validation-alert {
  display: flex;
  margin-bottom: 20px;
  padding: 12px 14px;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid rgba(255, 138, 122, .25);
  border-radius: 12px;
  background: rgba(255, 138, 122, .07);
  color: #ffc1b8;
  font-size: .72rem;
}

.validation-alert > span {
  display: grid;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: .6rem;
  font-weight: 900;
}

.validation-alert ul { margin: 0; padding-left: 16px; }
.validation-summary-valid { display: none; }

.login-form {
  display: grid;
  gap: 21px;
}

.field-group { display: grid; gap: 8px; }
.field-group label {
  margin: 0;
  color: var(--muted-bright);
  font-size: .72rem;
  font-weight: 750;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label-row > span { color: #61756b; font-size: .61rem; }
.field-control {
  position: relative;
  display: flex;
  height: 54px;
  align-items: center;
  border: 1px solid var(--line-bright);
  border-radius: 14px;
  background: rgba(4, 13, 9, .52);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease, transform 180ms ease;
}

.field-control:focus-within {
  border-color: rgba(196, 242, 105, .64);
  background: rgba(7, 18, 12, .78);
  box-shadow: 0 0 0 4px rgba(196, 242, 105, .055), 0 12px 30px rgba(0, 0, 0, .12);
  transform: translateY(-1px);
}

.field-control > svg {
  width: 18px;
  margin-left: 17px;
  color: #73887c;
}

.field-control input {
  width: 100%;
  height: 100%;
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: .79rem;
}

.field-control input::placeholder { color: #50645a; opacity: 1; }
.password-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  margin-right: 3px;
  flex: 0 0 46px;
  place-items: center;
  border: 0;
  border-radius: 11px;
  outline: 0;
  background: transparent;
  color: #71867a;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible { background: rgba(196, 242, 105, .06); color: var(--lime); }
.password-toggle svg { width: 18px; }
.password-toggle .eye-closed { display: none; }
.password-toggle[aria-pressed="true"] .eye-open { display: none; }
.password-toggle[aria-pressed="true"] .eye-closed { display: block; }
.field-error { min-height: 1em; color: var(--danger); font-size: .64rem; }
.field-validation-valid { display: none; }

.login-submit {
  display: flex;
  width: 100%;
  height: 56px;
  margin-top: 4px;
  padding: 0 18px 0 21px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(220, 255, 151, .4);
  border-radius: 14px;
  background: var(--lime);
  box-shadow: 0 16px 34px rgba(117, 163, 62, .13);
  color: #13210e;
  cursor: pointer;
  font-size: .82rem;
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: var(--lime-bright);
  box-shadow: 0 18px 38px rgba(117, 163, 62, .23);
  transform: translateY(-2px);
}

.login-submit svg { width: 19px; }
.form-security-note {
  display: flex;
  margin-top: 28px;
  padding-top: 22px;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: #70847a;
  font-size: .63rem;
  line-height: 1.45;
}

.form-security-note svg { width: 22px; flex: 0 0 22px; color: #76906e; }
.form-security-note span { display: grid; }
.form-security-note b { color: #91a49a; font-weight: 700; }

.js-ready body.is-leaving {
  opacity: 0;
  filter: blur(7px);
  transform: scale(.99);
  transition: opacity 210ms ease, filter 210ms ease, transform 210ms ease;
}

html[data-theme="light"] .ambient-light-one { background: #a9d49c; }
html[data-theme="light"] .ambient-light-two { background: #9bc9af; }
html[data-theme="light"] .site-brand-logo { filter: drop-shadow(0 8px 16px rgba(31, 77, 54, .15)); }
html[data-theme="light"] .theme-toggle { background: rgba(255, 255, 255, .7); }
html[data-theme="light"] .landing-stage::before,
html[data-theme="light"] .login-stage::before {
  background: linear-gradient(110deg, rgba(255, 255, 255, .7), transparent 34%);
}
html[data-theme="light"] .hero-visual::before {
  background: radial-gradient(circle, rgba(93, 143, 108, .18), transparent 66%);
}
html[data-theme="light"] .orbit-outer { border-color: rgba(20, 125, 187, .32); }
html[data-theme="light"] .orbit-inner { border-color: rgba(196, 45, 54, .28); }
html[data-theme="light"] .orbit-outer::after {
  border-top-color: #087fbe;
  filter: drop-shadow(0 0 4px rgba(8, 127, 190, .42));
}
html[data-theme="light"] .orbit-inner::after {
  border-right-color: #c92f39;
  filter: drop-shadow(0 0 4px rgba(201, 47, 57, .38));
}
html[data-theme="light"] .orbit-dot { background: #fff; }
html[data-theme="light"] .progress-core {
  border-color: rgba(29, 72, 51, .18);
  background: radial-gradient(circle at 40% 32%, rgba(255, 255, 255, .99), rgba(222, 239, 227, .98) 72%);
  box-shadow: 0 24px 55px rgba(42, 82, 60, .16), inset 0 1px #fff, 0 0 0 12px rgba(36, 89, 59, .025);
}
html[data-theme="light"] .ring-track { stroke: rgba(29, 72, 51, .13); }
html[data-theme="light"] .department-chip {
  border-color: rgba(29, 72, 51, .15);
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 16px 34px rgba(42, 82, 60, .14), inset 0 1px #fff;
}
html[data-theme="light"] .chip-icon { background: rgba(93, 143, 24, .09); }
html[data-theme="light"] .login-story {
  background:
    radial-gradient(circle at 10% 100%, rgba(95, 145, 102, .16), transparent 43%),
    linear-gradient(145deg, rgba(239, 249, 242, .95), rgba(226, 241, 231, .88));
}
html[data-theme="light"] .login-school-mark::before {
  border-color: rgba(20, 125, 187, .34);
  background: radial-gradient(circle, rgba(255, 255, 255, .74), rgba(43, 139, 194, .12) 45%, rgba(194, 48, 59, .07) 62%, transparent 72%);
  box-shadow: 0 0 24px rgba(42, 130, 180, .14), inset 0 0 18px rgba(194, 48, 59, .07);
}
html[data-theme="light"] .login-school-mark img { opacity: .11; filter: drop-shadow(0 9px 16px rgba(27, 73, 51, .13)); }
html[data-theme="light"] .login-form-panel { background: rgba(255, 255, 255, .52); }
html[data-theme="light"] body.auth-page {
  background:
    linear-gradient(155deg, rgba(247, 252, 249, .76), rgba(225, 241, 233, .60) 50%, rgba(241, 248, 244, .76)),
    url("../images/landing_background.jpg") center / cover fixed no-repeat;
}
html[data-theme="light"] .auth-page .portal-stage {
  background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(235, 246, 238, .76));
}
html[data-theme="light"] .auth-page .login-story {
  background:
    radial-gradient(circle at 10% 100%, rgba(95, 145, 102, .13), transparent 43%),
    linear-gradient(145deg, rgba(239, 249, 242, .82), rgba(226, 241, 231, .66));
}
html[data-theme="light"] .auth-page .login-form-panel { background: rgba(255, 255, 255, .38); }
html[data-theme="light"] .field-control { background: rgba(255, 255, 255, .78); }
html[data-theme="light"] .field-control:focus-within { background: #fff; }
html[data-theme="light"] .field-control input::placeholder { color: #71877b; }
html[data-theme="light"] .form-security-note,
html[data-theme="light"] .support-note { color: #60786b; }
html[data-theme="light"] .validation-alert { background: rgba(185, 66, 60, .07); }
html[data-theme="light"] .staff-access-step { background: rgba(255, 255, 255, .62); }
html[data-theme="light"] .staff-access-step.is-open { background: linear-gradient(145deg, rgba(121, 166, 62, .1), rgba(255, 255, 255, .78)); }
html[data-theme="light"] .staff-access-copy small,
html[data-theme="light"] .staff-access-panel-inner > p { color: #60786b; }

@media (min-width: 761px) and (max-height: 720px) {
  .site-header { min-height: 70px; }
  .site-main { min-height: auto; padding-block: 0 6px; }
  .landing-stage { min-height: calc(100svh - 120px); }
  .hero-copy { padding-block: 34px 28px; }
  .hero-copy h1 { margin-block: 14px 15px; font-size: clamp(3rem, 4.2vw, 4rem); }
  .hero-actions { margin-top: 22px; }
  .clearance-steps { margin-top: 28px; }
  .hero-visual { min-height: calc(100svh - 120px); }
  .trust-strip { display: none; }
  .site-footer { min-height: 42px; }
}

@media (max-width: 980px) {
  .landing-stage { grid-template-columns: 1fr; }
  .hero-copy { padding: 58px; }
  .hero-visual { min-height: 500px; }
  .login-stage { grid-template-columns: .8fr 1.2fr; }
  .login-story { padding: 42px 36px; }
  .login-school-mark { left: 55%; width: min(80%, 390px); }
  .login-form-panel { padding-inline: 38px; }
}

@media (max-width: 760px) {
  .site-header, .site-footer, .site-main { width: min(100% - 28px, 620px); }
  .site-header { min-height: 84px; }
  .system-status { display: none; }
  .site-main { min-height: calc(100vh - 150px); padding-block: 10px 34px; }
  .portal-stage { border-radius: 25px; }
  .landing-stage, .login-stage { grid-template-columns: 1fr; }
  .hero-copy { padding: 50px 30px 34px; }
  .hero-copy h1 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .clearance-steps { margin-top: 42px; }
  .hero-visual { min-height: 450px; transform: scale(.85); margin: -35px; }
  .trust-strip { flex-wrap: wrap; gap: 13px 28px; }
  .login-story { min-height: 440px; padding: 35px 30px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-school-mark { top: 50%; left: 58%; width: min(72%, 340px); }
  .login-story-copy { margin-top: 42px; }
  .login-form-panel { padding: 48px 28px; }
  .site-footer { min-height: 65px; }
}

@media (max-width: 480px) {
  .site-brand { gap: 9px; }
  .site-brand-logo { width: 72px; height: 54px; flex-basis: 72px; }
  .brand-copy strong { font-size: .9rem; }
  .brand-copy small { font-size: .48rem; }
  .nav-access { font-size: 0; }
  .nav-access svg { width: 21px; }
  .hero-copy { padding-inline: 24px; }
  .hero-intro { font-size: .9rem; }
  .primary-action { width: 100%; }
  .clearance-steps li:not(:last-child)::after { right: 8px; }
  .hero-visual { min-height: 400px; margin-inline: -70px; }
  .department-chip { transform: scale(.88); }
  .chip-finance { left: 9%; }
  .chip-library { right: 8%; }
  .chip-academic { right: 10%; }
  .trust-strip { display: none; }
  .login-story { min-height: 400px; }
  .login-school-mark { top: 51%; left: 60%; width: min(76%, 300px); }
  .story-progress { width: 100%; transform: scale(.9); transform-origin: left center; }
  .login-form-panel { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
