:root {
  /* @raisd-campus/design-system tokens (dark) */
  --surface-base: #121212;
  --surface-subtle: #1f1f1f;
  --surface: #2e2e2e;
  --surface-raised: #393939;
  --surface-hover: #4a4a4a;
  --background: var(--surface-base);
  --title: #fcfcfc;
  --body: #c8c8c8;
  --muted-foreground: #a8a8a8;
  --brand: #5ba8f5;
  --brand-solid: #2f74d8;
  --brand-foreground: #fcfcfc;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 0.625rem;
  --shadow-floating: 0 12px 28px rgba(0, 0, 0, 0.45);
  --font-sans: "Rubik", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --page-gutter: clamp(1.25rem, 4vw, 3rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  color: var(--title);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 8% -8%, rgba(91, 168, 245, 0.16), transparent 55%),
    radial-gradient(700px 480px at 100% 0%, rgba(47, 116, 216, 0.12), transparent 50%),
    var(--background);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

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

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: var(--page-gutter);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  opacity: 0;
  transform: translateY(10px);
  animation: rise 0.7s var(--ease) 0.05s forwards;
}

.brand img {
  display: block;
  width: clamp(9.5rem, 28vw, 12.5rem);
  height: auto;
}

.campus-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-subtle);
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 44rem;
  width: 100%;
  margin: 0 auto;
  padding-block: 2.5rem 1.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.8s var(--ease) 0.12s forwards;
}

.campus {
  margin: 0 0 0.75rem;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--title);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) 0.2s forwards;
}

.lede {
  margin: 0 0 2rem;
  max-width: 28rem;
  color: var(--body);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  opacity: 0;
  transform: translateY(14px);
  animation: rise 0.85s var(--ease) 0.3s forwards;
}

.portals {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(16px);
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

.portal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.95rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-floating);
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s var(--ease),
    background 0.22s var(--ease);
}

.portal:hover,
.portal:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(91, 168, 245, 0.45);
  background: var(--surface-raised);
  outline: none;
}

.portal:focus-visible {
  box-shadow: 0 0 0 3px rgba(91, 168, 245, 0.28), var(--shadow-floating);
}

.portal-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: grid;
  place-items: center;
  border-radius: calc(var(--radius) * 0.8);
  background: var(--surface-subtle);
  color: var(--brand);
}

.portal-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--title);
}

.portal-hint {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

.portal-arrow {
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand-solid);
  color: var(--brand-foreground);
  font-size: 1rem;
  transition: background 0.22s var(--ease), transform 0.22s var(--ease);
}

.portal:hover .portal-arrow,
.portal:focus-visible .portal-arrow {
  background: var(--brand);
  transform: translateX(2px);
}

.footer {
  margin-top: auto;
  padding-top: 1.5rem;
  color: var(--muted-foreground);
  font-size: 0.8125rem;
  opacity: 0;
  animation: fade 0.7s var(--ease) 0.65s forwards;
}

.footer a {
  color: var(--brand);
}

.footer a:hover {
  text-decoration: underline;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade {
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar, .eyebrow, .campus, .lede, .portals, .footer {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 720px) {
  .portals {
    grid-template-columns: 1fr 1fr;
  }
}
