:root {
  --background: #09090d;
  --background-deep: #050507;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-raised: rgba(255, 255, 255, 0.085);
  --accent: #8a7cff;
  --accent-bright: #a89cff;
  --accent-deep: #5f47ff;
  --text: rgba(255, 255, 255, 0.94);
  --text-soft: rgba(255, 255, 255, 0.66);
  --text-muted: rgba(255, 255, 255, 0.42);
  --border: rgba(255, 255, 255, 0.1);
  --active-border: rgba(138, 124, 255, 0.42);
  --shadow: rgba(138, 124, 255, 0.16);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(138, 124, 255, 0.2), transparent 34rem),
    radial-gradient(circle at 18% 6%, rgba(95, 71, 255, 0.12), transparent 28rem),
    linear-gradient(180deg, #0e0e14 0%, var(--background) 42rem, #07070a 100%);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 74%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06), transparent 28rem),
    linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.38));
}

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

::selection {
  background: rgba(138, 124, 255, 0.35);
  color: white;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 14px max(20px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
  background: rgba(7, 7, 10, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
}

.site-header::before {
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: min(640px, 80vw);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(138, 124, 255, 0.5), transparent);
  transform: translateX(-50%);
  opacity: 0.55;
}

.brand,
nav,
footer {
  display: flex;
  align-items: center;
}

.brand {
  width: 98px;
  overflow: hidden;
  transition:
    transform 500ms var(--ease-out),
    opacity 500ms var(--ease-out);
}

.brand:hover {
  transform: translateY(-1px) scale(1.025);
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

nav {
  justify-content: flex-end;
  gap: 6px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 720;
}

nav a {
  position: relative;
  padding: 10px 12px;
  border-radius: 999px;
  transition:
    color 280ms var(--ease-out),
    background 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 76px 0 104px;
}

.journal-hero {
  display: block;
  padding: 76px 0 46px;
}

.journal-hero .hero-copy {
  max-width: 760px;
}

.journal-hero .hero-logo {
  width: min(100%, 380px);
  margin-bottom: 22px;
}

.journal-hero .hero-title {
  margin-bottom: 14px;
}

.hero-copy {
  max-width: 650px;
  animation: floatIn 900ms var(--ease-out) both;
}

.hero-copy::before {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 18px;
  padding: 7px 12px;
  border: 1px solid rgba(138, 124, 255, 0.26);
  border-radius: 999px;
  background: rgba(138, 124, 255, 0.08);
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0;
  content: "Ideas for clearer student pathways";
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: floatIn 900ms var(--ease-out) both;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 920;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  display: none;
}

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

.hero-title {
  max-width: 660px;
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 78px;
  line-height: 0.94;
  letter-spacing: 0;
  text-wrap: balance;
  animation: floatIn 900ms var(--ease-out) 120ms both;
}

h2 {
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 62px;
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.12;
  letter-spacing: 0;
}

p {
  color: var(--text-soft);
  font-size: 17px;
  font-weight: 560;
  line-height: 1.7;
}

.hero-logo {
  display: block;
  width: min(100%, 470px);
  height: auto;
  margin: 0 0 28px;
  filter:
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38))
    drop-shadow(0 0 28px rgba(138, 124, 255, 0.12));
  transform-origin: left center;
  animation: logoReveal 900ms var(--ease-out) 90ms both;
}

.hero-text {
  max-width: 560px;
  font-size: 22px;
  animation: floatIn 900ms var(--ease-out) 160ms both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  animation: floatIn 900ms var(--ease-out) 240ms both;
}

.button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 23px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out),
    box-shadow 420ms var(--ease-out);
}

.button::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 38%,
    transparent 72%
  );
  opacity: 0;
  transform: translateX(-60%);
  transition:
    opacity 420ms var(--ease-out),
    transform 700ms var(--ease-out);
}

.button:hover {
  transform: translateY(-3px);
  border-color: var(--active-border);
  background: rgba(255, 255, 255, 0.075);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.34),
    0 0 34px var(--shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.button:hover::before {
  opacity: 1;
  transform: translateX(60%);
}

.button.primary {
  border-color: rgba(138, 124, 255, 0.48);
  background:
    radial-gradient(circle at 30% 0%, rgba(255, 255, 255, 0.18), transparent 38%),
    linear-gradient(180deg, #7766ff, #5b3fe8);
  box-shadow:
    0 18px 42px rgba(95, 71, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  animation: softPulse 4.8s ease-in-out infinite;
}

.button.secondary {
  color: var(--text-soft);
}

.editorial-panel {
  position: relative;
  display: grid;
  gap: 16px;
  animation: phoneEnter 1000ms var(--ease-out) 160ms both;
}

.editorial-panel::before {
  position: absolute;
  inset: -80px -40px;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 50% 30%, rgba(138, 124, 255, 0.22), transparent 38%),
    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.08), transparent 28%);
  filter: blur(12px);
  opacity: 0.9;
}

.orbital-card,
.article-card,
.topic-grid article,
.subscribe-card {
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.026)),
    var(--surface);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 22px 56px rgba(0, 0, 0, 0.2);
}

.orbital-card {
  position: relative;
  min-height: 420px;
  padding: 34px;
  overflow: hidden;
  border-radius: 32px;
}

.orbital-card::before,
.orbital-card::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(138, 124, 255, 0.18);
  border-radius: 999px;
}

.orbital-card::before {
  right: -80px;
  top: -92px;
  width: 260px;
  height: 260px;
}

.orbital-card::after {
  right: 42px;
  bottom: 40px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 68%);
}

.orbital-card > * {
  position: relative;
}

.orbital-card h2 {
  max-width: 360px;
  font-size: 58px;
}

.star-mark {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(138, 124, 255, 0.36);
  border-radius: 18px;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.2), transparent 36%),
    rgba(138, 124, 255, 0.12);
}

.star-mark::before {
  width: 30px;
  height: 30px;
  content: "";
  background: url("assets/Star.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(138, 124, 255, 0.55));
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip div {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px;
  border: 1px solid rgba(138, 124, 255, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
}

.metric-strip strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}

.metric-strip span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 820;
}

.section {
  padding: 84px 0;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

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

.article-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  overflow: hidden;
  border-radius: 20px;
  transition:
    transform 520ms var(--ease-out),
    border-color 520ms var(--ease-out),
    background 520ms var(--ease-out),
    box-shadow 520ms var(--ease-out);
}

.article-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 22% 0%, rgba(138, 124, 255, 0.18), transparent 44%);
  opacity: 0;
  transition: opacity 520ms var(--ease-out);
}

.article-card > * {
  position: relative;
}

.article-card.featured {
  grid-column: span 2;
  min-height: 300px;
  border-color: rgba(138, 124, 255, 0.3);
}

.article-card:hover {
  transform: translateY(-7px);
  border-color: var(--active-border);
  background:
    linear-gradient(180deg, rgba(138, 124, 255, 0.095), rgba(255, 255, 255, 0.035)),
    var(--surface-raised);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 0 46px rgba(138, 124, 255, 0.08);
}

.article-card:hover::before {
  opacity: 1;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.article-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(138, 124, 255, 0.22);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 840;
}

.article-card h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 32px;
  line-height: 1;
}

.article-card:not(.featured) h3 {
  font-size: 25px;
}

.article-status {
  display: inline-flex;
  width: fit-content;
  margin-top: 24px;
  color: var(--text);
  font-weight: 850;
}

.article-status::after {
  content: "";
  width: 7px;
  height: 7px;
  margin: 0 0 1px 8px;
  align-self: center;
  border-radius: 999px;
  background: currentColor;
  color: var(--accent-bright);
  box-shadow: 0 0 16px rgba(138, 124, 255, 0.5);
}

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

.topic-grid article {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  border-radius: 22px;
  transition:
    transform 420ms var(--ease-out),
    border-color 420ms var(--ease-out),
    background 420ms var(--ease-out);
}

.topic-grid article:hover {
  transform: translateY(-4px);
  border-color: var(--active-border);
  background:
    linear-gradient(180deg, rgba(138, 124, 255, 0.1), rgba(255, 255, 255, 0.035)),
    var(--surface-raised);
}

.topic-grid strong {
  font-size: 19px;
}

.topic-grid span {
  color: var(--text-soft);
  line-height: 1.55;
}

.subscribe-section {
  padding-top: 0;
}

.subscribe-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 50px;
  border-color: rgba(138, 124, 255, 0.28);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(138, 124, 255, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.026)),
    var(--surface);
}

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

footer {
  justify-content: space-between;
  min-height: 90px;
  border-top: 1px solid rgba(138, 124, 255, 0.14);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 760;
}

footer a {
  transition:
    color 280ms var(--ease-out),
    transform 280ms var(--ease-out);
}

footer a:hover {
  color: var(--text);
  transform: translateY(-1px);
}

.cursor-glow {
  position: fixed;
  left: 0;
  top: 0;
  z-index: -1;
  width: 460px;
  height: 460px;
  pointer-events: none;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(138, 124, 255, 0.16), transparent 62%);
  filter: blur(22px);
  opacity: 0.8;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 400ms var(--ease-out);
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-bright));
  box-shadow: 0 0 18px rgba(138, 124, 255, 0.55);
  transform: scaleX(0);
  transform-origin: left;
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 850ms var(--ease-out),
    transform 850ms var(--ease-out),
    filter 850ms var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes logoReveal {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
    filter: blur(10px);
  }

  to {
    opacity: 1;
    transform: none;
    filter:
      drop-shadow(0 18px 32px rgba(0, 0, 0, 0.38))
      drop-shadow(0 0 28px rgba(138, 124, 255, 0.12));
  }
}

@keyframes phoneEnter {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.965);
    filter: blur(12px);
  }

  to {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes softPulse {
  0%,
  100% {
    box-shadow:
      0 18px 42px rgba(95, 71, 255, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  50% {
    box-shadow:
      0 22px 56px rgba(95, 71, 255, 0.34),
      0 0 34px rgba(138, 124, 255, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.2);
  }
}

@media (max-width: 980px) {
  .hero,
  .article-grid,
  .topic-grid,
  .subscribe-card {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 40px;
    min-height: auto;
    padding-top: 34px;
  }

  .journal-hero {
    padding-top: 34px;
  }

  .hero-title {
    font-size: 62px;
  }

  h2 {
    font-size: 52px;
  }

  .article-card.featured {
    grid-column: auto;
  }

  .article-card,
  .article-card.featured {
    min-height: 280px;
  }

  .subscribe-card {
    align-items: start;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .site-header {
    gap: 12px;
    padding-inline: 14px;
  }

  .brand {
    width: 86px;
  }

  nav {
    flex-wrap: wrap;
    gap: 2px;
    font-size: 12px;
  }

  nav a {
    padding: 9px 8px;
  }

  .hero-title {
    font-size: 46px;
  }

  h2 {
    font-size: 40px;
  }

  .hero-text {
    font-size: 18px;
  }

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

  .section {
    padding: 62px 0;
  }

  .orbital-card {
    min-height: auto;
    padding: 26px;
  }

  .orbital-card h2 {
    font-size: 40px;
  }

  .metric-strip {
    grid-template-columns: 1fr;
  }

  .article-card,
  .topic-grid article {
    min-height: auto;
  }

  .article-card h3,
  .article-card:not(.featured) h3 {
    font-size: 27px;
  }

  .subscribe-card {
    padding: 26px;
  }

  footer {
    gap: 12px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }
}

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

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