:root {
  --bg: #f1f3f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fe;
  --ink: #171922;
  --ink-soft: #636c7d;
  --line: #d9deea;
  --dark: #0f1629;
  --dark-soft: #222b3f;
  --glow-a: rgba(95, 81, 234, 0.08);
  --glow-b: rgba(76, 169, 208, 0.08);
  --kicker: #6b7384;
  --scene-bg: #d8dbe6;
  --purple: #6242f6;
  --cyan: #35b7d4;
  --green: #23a67e;
  --orange: #ff7a2f;
  --yellow: #f0cf11;
  --blue: #3244d8;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --content-max: 1160px;
  --shadow: 0 12px 30px rgba(17, 25, 41, 0.07);
  --shadow-hover: 0 18px 34px rgba(17, 25, 41, 0.12);
}

html[data-theme="mono"] {
  --bg: #f1f3f8;
  --surface: #ffffff;
  --surface-soft: #f7f9fe;
  --ink: #171922;
  --ink-soft: #636c7d;
  --line: #d9deea;
  --dark: #0f1629;
  --glow-a: rgba(95, 81, 234, 0.08);
  --glow-b: rgba(76, 169, 208, 0.08);
  --kicker: #6b7384;
  --scene-bg: #d8dbe6;
}

html[data-theme="blue"] {
  --bg: #edf2ff;
  --surface: #ffffff;
  --surface-soft: #f4f7ff;
  --ink: #18243f;
  --ink-soft: #566684;
  --line: #d2dcf0;
  --dark: #13234a;
  --glow-a: rgba(68, 108, 219, 0.14);
  --glow-b: rgba(46, 161, 224, 0.13);
  --kicker: #627394;
  --scene-bg: #d3ddee;
}

html[data-theme="mint"] {
  --bg: #edf7f3;
  --surface: #ffffff;
  --surface-soft: #f3fbf8;
  --ink: #1a3329;
  --ink-soft: #5a7269;
  --line: #d4e6de;
  --dark: #163c30;
  --glow-a: rgba(28, 166, 126, 0.13);
  --glow-b: rgba(53, 183, 212, 0.09);
  --kicker: #607d73;
  --scene-bg: #d1e5dc;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 14% 17%, var(--glow-a), transparent 36%),
    radial-gradient(circle at 88% 81%, var(--glow-b), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(255, 255, 255, 0) 34%), var(--bg);
  line-height: 1.58;
}

a {
  color: inherit;
}

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

h1,
h2,
h3 {
  line-height: 1.16;
  letter-spacing: -0.015em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

p,
span,
label,
strong,
a {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 82%, #fff 18%);
  border-bottom: 1px solid rgba(23, 24, 28, 0.07);
}

.header-inner {
  width: min(var(--content-max), 100% - 2.4rem);
  min-height: 64px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.1rem;
}

.brand {
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  min-height: 38px;
  padding: 0 0.9rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.95rem;
}

.main-nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: var(--ink);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.26rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  padding: 0.24rem;
}

.theme-chip {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 900;
  cursor: pointer;
}

.theme-chip[aria-pressed="true"] {
  background: var(--dark);
  color: #fff;
}

.main-shell {
  width: min(var(--content-max), 100% - 2.4rem);
  margin: 1.45rem auto 0;
  display: grid;
  gap: 1.1rem;
}

.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--kicker);
}

.hero-simple,
.block,
.login-panel,
.splash-card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-simple,
.splash-card {
  padding: clamp(1.9rem, 4.4vw, 3.1rem);
  text-align: center;
}

.hero-simple h1,
.splash-card h1 {
  margin-top: 0.65rem;
  font-size: clamp(2.45rem, 7vw, 5.2rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-simple p,
.splash-card p {
  margin: 0.95rem auto 0;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2.15vw, 1.34rem);
  line-height: 1.56;
  max-width: 36ch;
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  text-decoration: none;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 1.28rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.01rem;
  font-weight: 800;
}

.btn-dark {
  color: #fff;
  background: var(--dark);
}

.btn-light {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.block {
  padding: clamp(1.2rem, 2.7vw, 1.7rem);
}

.block h2 {
  margin-top: 0.48rem;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.16;
}

.immersive-showcase {
  margin-inline: calc(50% - 50vw);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(8, 19, 40, 0.25);
  overflow: hidden;
  background: linear-gradient(180deg, #0a2d54 0%, #092645 100%);
}

.immersive-bar {
  --immersive-pad: max(1.2rem, calc((100vw - var(--content-max)) / 2));
  min-height: 58px;
  padding: 0.6rem var(--immersive-pad);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(18, 24, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.immersive-brand {
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #17181c;
}

.immersive-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}

.immersive-tab {
  min-height: 31px;
  padding: 0 0.82rem;
  border-radius: 999px;
  border: 1px solid #d8dde8;
  color: #495060;
  font-size: 0.78rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.immersive-tab.is-active {
  border-color: #1a2338;
  color: #111622;
  box-shadow: inset 0 -2px 0 #111622;
}

.immersive-stage {
  position: relative;
  min-height: clamp(360px, 52vw, 690px);
  background: linear-gradient(180deg, #0b3b67 0%, #093455 48%, #082842 100%);
}

.immersive-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 72%, rgba(46, 124, 170, 0.38), transparent 42%),
    radial-gradient(circle at 76% 20%, rgba(45, 148, 194, 0.24), transparent 34%),
    radial-gradient(circle at 15% 28%, rgba(27, 68, 121, 0.28), transparent 36%);
  pointer-events: none;
}

.immersive-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(5, 12, 26, 0.68) 0%,
    rgba(5, 12, 26, 0.2) 18%,
    rgba(5, 12, 26, 0) 52%,
    rgba(5, 12, 26, 0.58) 100%
  );
  pointer-events: none;
}

.immersive-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.immersive-glow {
  position: absolute;
  left: 50%;
  top: 62%;
  width: clamp(300px, 48vw, 920px);
  height: clamp(180px, 18vw, 340px);
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(58, 176, 217, 0.36), rgba(58, 176, 217, 0));
  filter: blur(9px);
}

.immersive-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(36px);
  opacity: 0.38;
  animation: immersiveFloat 7s ease-in-out infinite;
}

.immersive-blob-a {
  width: clamp(220px, 28vw, 460px);
  height: clamp(170px, 20vw, 320px);
  left: -4%;
  top: 14%;
  background: rgba(44, 164, 207, 0.5);
}

.immersive-blob-b {
  width: clamp(180px, 24vw, 380px);
  height: clamp(140px, 17vw, 280px);
  right: 4%;
  top: 10%;
  background: rgba(16, 97, 173, 0.56);
  animation-delay: 0.8s;
}

.immersive-blob-c {
  width: clamp(260px, 32vw, 520px);
  height: clamp(130px, 13vw, 220px);
  left: 30%;
  bottom: 12%;
  background: rgba(39, 177, 203, 0.46);
  animation-delay: 1.6s;
}

.immersive-person {
  position: absolute;
  left: 50%;
  bottom: -6%;
  width: clamp(230px, 36vw, 560px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%);
  animation: immersivePerson 6.4s ease-in-out infinite;
}

.immersive-seat {
  position: absolute;
  left: 13%;
  bottom: 0;
  width: 74%;
  height: 28%;
  border-radius: 48% 48% 0 0;
  background: #12213b;
}

.immersive-back {
  position: absolute;
  left: 22%;
  bottom: 22%;
  width: 56%;
  height: 56%;
  border-radius: 32% 32% 42% 42%;
  background: linear-gradient(180deg, #2f4f7a, #1a2e4d 72%);
}

.immersive-shoulder {
  position: absolute;
  left: 25%;
  bottom: 14%;
  width: 50%;
  height: 20%;
  border-radius: 999px;
  background: linear-gradient(180deg, #435f86, #223a5f);
}

.immersive-head {
  position: absolute;
  left: 50%;
  bottom: 63%;
  width: 20%;
  height: 21%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: linear-gradient(180deg, #202a3f, #151e32);
}

.immersive-band {
  position: absolute;
  left: 50%;
  bottom: 68%;
  width: 30%;
  height: 7%;
  transform: translateX(-50%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(213, 229, 255, 0.18);
  box-shadow: 0 0 0 2px rgba(17, 27, 44, 0.26) inset;
}

.immersive-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: 1.6rem;
}

.immersive-kicker {
  color: rgba(238, 244, 255, 0.88);
  font-size: clamp(0.95rem, 1.6vw, 1.26rem);
  font-weight: 800;
}

.immersive-copy h2 {
  margin-top: 0.62rem;
  max-width: 13ch;
  color: #f7fbff;
  font-size: clamp(2.25rem, 5.6vw, 4.7rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.immersive-copy p:last-child {
  margin-top: 0.82rem;
  max-width: 36ch;
  color: rgba(231, 240, 255, 0.92);
  font-size: clamp(0.98rem, 1.55vw, 1.2rem);
  line-height: 1.52;
}

@keyframes immersiveFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(10px, -12px, 0);
  }
}

@keyframes immersivePerson {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

.character-scene {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--scene-bg);
  padding: 1.15rem;
  box-shadow: var(--shadow);
}

.characters {
  width: min(520px, 100%);
  margin: 0 auto;
  aspect-ratio: 10 / 5;
  position: relative;
}

.shape {
  position: absolute;
  bottom: 0;
  will-change: transform;
}

.shape-purple {
  left: 21%;
  width: 28%;
  height: 72%;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(170deg, #6d49ff, #4e24ec);
  animation: float 5.8s ease-in-out infinite;
}

.shape-dark {
  left: 46%;
  width: 22%;
  height: 48%;
  border-radius: 11px 11px 0 0;
  background: #0f1630;
  animation: float 6.2s ease-in-out infinite reverse;
}

.shape-yellow {
  left: 64%;
  width: 22%;
  height: 39%;
  border-radius: 100px 100px 0 0;
  background: var(--yellow);
  animation: float 5.2s ease-in-out infinite;
}

.shape-orange {
  left: 0;
  width: 60%;
  height: 32%;
  border-radius: 100px 100px 0 0;
  background: var(--orange);
  animation: float 6.8s ease-in-out infinite reverse;
}

.shape-face {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  pointer-events: none;
}

.shape-yellow .shape-face {
  top: 42%;
}

.shape-orange .shape-face {
  top: 34%;
}

.shape-eye {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: rgba(16, 21, 34, 0.16);
  position: relative;
}

.shape-pupil {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.3rem;
  height: 0.3rem;
  border-radius: 999px;
  background: #111620;
  transform: translate(-50%, -50%) translate(var(--look-x, 0), var(--look-y, 0));
}

.shape-mouth {
  width: 0.88rem;
  height: 0.18rem;
  border-radius: 999px;
  background: #111620;
  opacity: 0.86;
}

.edu-keywords {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.edu-keyword {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.64);
  color: #4d5567;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  animation: keywordFloat 4.8s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes keywordFloat {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.82;
  }
  50% {
    transform: translateY(-7px);
    opacity: 1;
  }
}

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

.education-story h2 {
  max-width: 18ch;
}

.wallpaper-showcase h2 {
  max-width: 13ch;
}

.wallpaper-subtitle {
  margin-top: 0.82rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.55;
  max-width: 44ch;
}

.wallpaper-stage {
  margin-top: 1.05rem;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 2.6fr) minmax(0, 0.86fr);
  gap: 0.72rem;
  align-items: stretch;
}

.wallpaper-card {
  position: relative;
  min-height: 270px;
  border-radius: calc(var(--radius-lg) + 2px);
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(130deg, var(--wp-a), var(--wp-b) 56%, var(--wp-c));
  overflow: hidden;
  padding: 1.1rem;
  color: #fff;
  display: grid;
  align-content: end;
  gap: 0.5rem;
  box-shadow: 0 20px 30px rgba(12, 16, 28, 0.24);
  isolation: isolate;
}

.wallpaper-card::before {
  content: "";
  position: absolute;
  inset: -30% -30% auto;
  height: 72%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.2) 46%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(-12deg) translateX(-26%);
  animation: wallpaperSweep 8.5s linear infinite;
  z-index: 0;
  pointer-events: none;
}

.wallpaper-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 9, 16, 0.02), rgba(5, 8, 15, 0.6));
  z-index: 0;
}

.wallpaper-card > * {
  position: relative;
  z-index: 1;
}

.wallpaper-card.is-featured {
  min-height: 340px;
  padding: 1.34rem;
}

.wallpaper-card.is-side {
  opacity: 0.9;
  filter: saturate(0.92);
}

.wallpaper-card.is-side .wallpaper-summary {
  font-size: 0.88rem;
}

.wallpaper-track {
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  opacity: 0.88;
}

.wallpaper-card h3 {
  font-size: clamp(1.4rem, 2.6vw, 2.55rem);
  line-height: 1.1;
}

.wallpaper-summary {
  color: rgba(241, 244, 255, 0.92);
  font-size: 0.97rem;
  line-height: 1.52;
}

.wallpaper-bottom {
  margin-top: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.wallpaper-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(5px);
}

.wallpaper-status-live {
  background: rgba(67, 219, 158, 0.16);
  color: #e0ffef;
}

.wallpaper-status-build {
  background: rgba(255, 183, 111, 0.2);
  color: #fff3df;
}

.wallpaper-status-plan {
  background: rgba(212, 220, 238, 0.2);
  color: #edf3ff;
}

.wallpaper-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 0.78rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  color: #0f1220;
  background: rgba(255, 255, 255, 0.92);
}

.wallpaper-link.is-disabled {
  color: #cad1e3;
  background: rgba(255, 255, 255, 0.16);
}

.wallpaper-descriptions {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.wallpaper-desc {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 0.9rem;
  display: grid;
  gap: 0.28rem;
}

.wallpaper-desc strong {
  font-size: 1rem;
}

.wallpaper-desc p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.wallpaper-desc span {
  color: #5f6780;
  font-size: 0.8rem;
  font-weight: 700;
}

@keyframes wallpaperSweep {
  0% {
    transform: rotate(-12deg) translateX(-26%);
  }
  100% {
    transform: rotate(-12deg) translateX(78%);
  }
}

.edu-marquee {
  margin-top: 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f4f7fd;
  overflow: hidden;
  padding: 0.42rem 0;
}

.edu-marquee-track {
  width: max-content;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0 0.45rem;
  animation: marqueeScroll 19s linear infinite;
}

.edu-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d8deea;
  color: #556074;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

@keyframes marqueeScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.edu-grid {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.edu-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 0.9rem;
  display: grid;
  gap: 0.38rem;
}

.edu-card strong {
  font-size: 1.06rem;
}

.edu-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.edu-visual {
  height: 100px;
  border-radius: 13px;
  border: 1px solid #d3dae7;
  background: #eef2fb;
  position: relative;
  overflow: hidden;
}

.edu-visual-teacher .teacher-board {
  position: absolute;
  top: 16%;
  left: 12%;
  width: 58%;
  height: 46%;
  border-radius: 10px;
  background: #30407d;
}

.edu-visual-teacher .teacher-head {
  position: absolute;
  right: 20%;
  top: 26%;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #111620;
}

.edu-visual-teacher .teacher-body {
  position: absolute;
  right: 15%;
  top: 41%;
  width: 28px;
  height: 38px;
  border-radius: 14px 14px 8px 8px;
  background: linear-gradient(180deg, #6e52ff, #5333f0);
}

.edu-visual-teacher .teacher-arm {
  position: absolute;
  right: 30%;
  top: 48%;
  width: 26px;
  height: 6px;
  border-radius: 999px;
  background: #111620;
  transform-origin: right center;
  animation: teacherWave 2.4s ease-in-out infinite;
}

@keyframes teacherWave {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(12deg);
  }
}

.edu-visual-school .school-body {
  position: absolute;
  left: 20%;
  bottom: 10%;
  width: 60%;
  height: 56%;
  border-radius: 10px;
  background: linear-gradient(180deg, #45b7df, #2e8fb1);
}

.edu-visual-school .school-window {
  position: absolute;
  top: 42%;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #fff;
  animation: schoolTwinkle 2.1s ease-in-out infinite;
}

.edu-visual-school .school-window-1 {
  left: 34%;
  animation-delay: 0s;
}

.edu-visual-school .school-window-2 {
  left: 47%;
  animation-delay: 0.35s;
}

.edu-visual-school .school-window-3 {
  left: 60%;
  animation-delay: 0.7s;
}

.edu-visual-school .school-flag {
  position: absolute;
  top: 20%;
  left: 50%;
  width: 28px;
  height: 12px;
  border-radius: 0 8px 8px 0;
  background: #f6c631;
  transform-origin: left center;
  animation: flagWave 1.8s ease-in-out infinite;
}

@keyframes schoolTwinkle {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes flagWave {
  0%,
  100% {
    transform: skewY(0deg) scaleX(1);
  }
  50% {
    transform: skewY(-5deg) scaleX(1.06);
  }
}

.edu-visual-book .book-cover {
  position: absolute;
  left: 30%;
  bottom: 14%;
  width: 40%;
  height: 52%;
  border-radius: 10px;
  background: #0f1630;
}

.edu-visual-book .book-page {
  position: absolute;
  bottom: 20%;
  width: 20%;
  height: 38%;
  border-radius: 9px;
  background: #fff;
}

.edu-visual-book .book-page-left {
  left: 34%;
  transform-origin: right center;
  animation: pageLeft 2.8s ease-in-out infinite;
}

.edu-visual-book .book-page-right {
  right: 34%;
  transform-origin: left center;
  animation: pageRight 2.8s ease-in-out infinite;
}

@keyframes pageLeft {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(22deg);
  }
}

@keyframes pageRight {
  0%,
  100% {
    transform: rotateY(0deg);
  }
  50% {
    transform: rotateY(-22deg);
  }
}

.mini-grid,
.quick-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.78rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card,
.quick-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  min-height: 126px;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.3rem;
}

.mini-card strong,
.quick-card strong {
  font-size: 1.16rem;
  line-height: 1.2;
}

.mini-card span,
.quick-card span {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.quick-card {
  text-decoration: none;
}

.services-grid,
.researcher-grid,
.contact-grid {
  margin-top: 1rem;
  display: grid;
  gap: 0.78rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.researcher-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.researcher-card,
.achievement-item,
.contact-card,
.contact-form-wrap,
.admin-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-soft);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-card h3,
.researcher-card h3,
.achievement-item h3,
.admin-card h2 {
  font-size: 1.34rem;
  line-height: 1.18;
}

.service-card p,
.researcher-card p,
.achievement-item p,
.contact-card p,
.admin-help {
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.56;
}

.service-status {
  margin: 0;
  border-radius: 999px;
  padding: 0.18rem 0.58rem;
  font-size: 0.74rem;
  font-weight: 800;
}

.service-status-live {
  color: #0d7b55;
  background: rgba(13, 123, 85, 0.12);
}

.service-status-build {
  color: #9b541e;
  background: rgba(255, 122, 47, 0.16);
}

.service-status-plan {
  color: #4d5768;
  background: rgba(34, 38, 52, 0.1);
}

.service-meta {
  font-size: 0.84rem;
  font-weight: 700;
  color: #4f5868;
}

.service-link,
.researcher-link,
.timeline-link {
  margin-top: 0.8rem;
  display: inline-flex;
  text-decoration: none;
  border-radius: 999px;
  min-height: 35px;
  padding: 0 0.8rem;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 800;
  color: #fff;
  background: var(--dark);
}

.service-link.is-disabled,
.timeline-link.is-disabled {
  background: #e8ebf2;
  color: #5f6674;
}

.researcher-card {
  text-decoration: none;
}

.researcher-character {
  --rc-jacket-a: #6e52ff;
  --rc-jacket-b: #4d30e3;
  --rc-desk: #ff7a2f;
  --rc-board: #30407d;
  --rc-pointer: #101831;
  --rc-note: rgba(255, 255, 255, 0.72);
  --rc-skin: #f6d6b6;
  --rc-hair: #161d31;
  height: 200px;
  border-radius: 14px;
  border: 1px solid #d4dceb;
  background: linear-gradient(180deg, #e7eaf2, #dee3ee);
  position: relative;
  margin-bottom: 0.82rem;
  overflow: hidden;
}

.researcher-teacher {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: center bottom;
  animation: rcBob 5.2s ease-in-out infinite;
}

.rc-board {
  position: absolute;
  top: 14%;
  left: 10%;
  width: 36%;
  height: 35%;
  border-radius: 12px;
  background: var(--rc-board);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.rc-board-lines {
  position: absolute;
  top: 22%;
  left: 14%;
  width: 20%;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 8px 0 rgba(255, 255, 255, 0.42), 0 16px 0 rgba(255, 255, 255, 0.28);
}

.rc-desk {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 98%;
  height: 35%;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  background: var(--rc-desk);
  z-index: 5;
}

.rc-torso {
  position: absolute;
  left: 50%;
  top: 40%;
  width: 78px;
  height: 72px;
  border-radius: 20px 20px 12px 12px;
  transform: translateX(-50%);
  background: linear-gradient(170deg, var(--rc-jacket-a), var(--rc-jacket-b));
  box-shadow: inset 0 -8px 0 rgba(9, 14, 34, 0.12);
  z-index: 3;
}

.rc-collar {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 22px;
  height: 24px;
  transform: translateX(-50%);
  border-radius: 3px 3px 8px 8px;
  background: rgba(255, 255, 255, 0.9);
  z-index: 4;
}

.rc-collar::before,
.rc-collar::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 8px;
  height: 9px;
  background: rgba(255, 255, 255, 0.95);
}

.rc-collar::before {
  left: 0;
  border-radius: 2px 0 6px 4px;
}

.rc-collar::after {
  right: 0;
  border-radius: 0 2px 4px 6px;
}

.rc-head {
  position: absolute;
  left: 50%;
  top: 22%;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: var(--rc-skin);
  box-shadow: inset 0 -3px 0 rgba(197, 152, 112, 0.32);
  z-index: 6;
}

.rc-hair {
  position: absolute;
  left: 50%;
  top: 18%;
  width: 48px;
  height: 23px;
  border-radius: 999px 999px 12px 12px;
  transform: translateX(-50%);
  background: var(--rc-hair);
  z-index: 7;
}

.rc-glasses {
  position: absolute;
  left: calc(50% - 13px);
  top: 34%;
  width: 10px;
  height: 8px;
  border: 1.8px solid rgba(18, 24, 42, 0.68);
  border-radius: 999px;
  z-index: 8;
}

.rc-glasses::before {
  content: "";
  position: absolute;
  left: 14px;
  top: -1.8px;
  width: 10px;
  height: 8px;
  border: 1.8px solid rgba(18, 24, 42, 0.68);
  border-radius: 999px;
}

.rc-glasses::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 2px;
  width: 5px;
  height: 1.8px;
  border-radius: 999px;
  background: rgba(18, 24, 42, 0.68);
}

.rc-eye {
  position: absolute;
  top: 36%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: #10162a;
  z-index: 9;
}

.rc-eye-left {
  left: calc(50% - 10px);
}

.rc-eye-right {
  left: calc(50% + 6px);
}

.rc-mouth {
  position: absolute;
  left: calc(50% - 5px);
  top: 40%;
  width: 10px;
  height: 2px;
  border-radius: 999px;
  background: rgba(15, 21, 34, 0.76);
  z-index: 9;
}

.rc-arm {
  position: absolute;
  top: 54%;
  width: 38px;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--rc-jacket-a), var(--rc-jacket-b));
  z-index: 4;
}

.rc-arm-left {
  left: calc(50% - 66px);
  transform: rotate(16deg);
}

.rc-arm-right {
  left: calc(50% + 28px);
  transform-origin: left center;
  animation: rcWave 2.6s ease-in-out infinite;
}

.rc-hand {
  position: absolute;
  top: 56.2%;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--rc-skin);
  box-shadow: inset 0 -2px 0 rgba(197, 152, 112, 0.28);
  z-index: 6;
}

.rc-hand-left {
  left: calc(50% - 74px);
}

.rc-hand-right {
  left: calc(50% + 61px);
}

.rc-pointer {
  position: absolute;
  right: 10%;
  top: 58%;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: var(--rc-pointer);
  transform-origin: left center;
  animation: rcPointerNudge 2.6s ease-in-out infinite;
  z-index: 6;
}

.rc-notebook {
  position: absolute;
  left: 20%;
  bottom: 25%;
  width: 36px;
  height: 20px;
  border-radius: 5px;
  background: var(--rc-note);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.46);
  z-index: 6;
}

.rc-notebook::before,
.rc-notebook::after {
  content: "";
  position: absolute;
  left: 20%;
  width: 60%;
  height: 2px;
  border-radius: 999px;
  background: rgba(26, 34, 56, 0.32);
}

.rc-notebook::before {
  top: 36%;
}

.rc-notebook::after {
  top: 62%;
}

.rc-chalk {
  position: absolute;
  left: 16%;
  top: 35%;
  width: 19px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  transform: rotate(-6deg);
  z-index: 2;
}

.character-k {
  --rc-jacket-a: #6d49ff;
  --rc-jacket-b: #4e24ec;
  --rc-desk: #ff7a2f;
  --rc-board: #33448f;
  --rc-pointer: #101833;
  --rc-note: rgba(215, 209, 255, 0.9);
  --rc-skin: #f5d3b1;
  --rc-hair: #1b2138;
}

.character-a {
  --rc-jacket-a: #23a67e;
  --rc-jacket-b: #118964;
  --rc-desk: #35b7d4;
  --rc-board: #1f467b;
  --rc-pointer: #12355a;
  --rc-note: rgba(199, 244, 252, 0.9);
  --rc-skin: #efd0b0;
  --rc-hair: #17304d;
}

.character-s {
  --rc-jacket-a: #3244d8;
  --rc-jacket-b: #222f95;
  --rc-desk: #f6c631;
  --rc-board: #25304a;
  --rc-pointer: #202a44;
  --rc-note: rgba(255, 248, 202, 0.88);
  --rc-skin: #f6d8bd;
  --rc-hair: #27324c;
}

@keyframes rcBob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes rcWave {
  0%,
  100% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(-14deg);
  }
}

@keyframes rcPointerNudge {
  0%,
  100% {
    transform: translateX(0) rotate(0deg);
  }
  50% {
    transform: translateX(4px) rotate(-8deg);
  }
}

.researcher-role,
.achievement-year {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.24rem 0.6rem;
  background: #e7ebf5;
  color: #485169;
  font-size: 0.74rem;
  font-weight: 800;
}

.achievement-timeline,
.admin-achievement-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.65rem;
}

.achievement-owner,
.admin-item-meta {
  font-size: 0.82rem;
  font-weight: 700;
  color: #636b79;
}

.empty-text,
.admin-achievement-item.empty {
  border: 1px dashed var(--line);
  background: #f6f8fd;
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--ink-soft);
}

.contact-form,
.admin-form,
.login-form {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.56rem;
}

.admin-form[hidden],
.login-form[hidden],
.contact-form[hidden],
[hidden] {
  display: none !important;
}

.contact-form label,
.admin-form label,
.login-form label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #384155;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.login-form input {
  border: 1px solid #cfd7e6;
  border-radius: 12px;
  background: #fff;
  min-height: 44px;
  padding: 0.64rem 0.76rem;
  font-size: 0.96rem;
  color: var(--ink);
}

.contact-form textarea,
.admin-form textarea {
  min-height: 112px;
  resize: vertical;
}

.contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-captcha {
  margin-top: 0.35rem;
  min-height: 78px;
}

.btn-login,
.btn-google,
.admin-btn,
.admin-delete {
  border: none;
  border-radius: 999px;
  min-height: 44px;
  padding: 0 1rem;
  font-size: 0.93rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-login {
  background: var(--dark);
  color: #fff;
}

.btn-google {
  background: #ebeff7;
  color: #33405a;
}

.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  margin-top: 0.1rem;
}

.remember {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  font-size: 0.84rem;
  color: #677083;
}

.login-row a {
  font-size: 0.84rem;
  color: #677083;
  text-decoration: none;
}

.contact-status,
.admin-status {
  min-height: 1.2rem;
  margin-top: 0.2rem;
  color: #365792;
  font-size: 0.85rem;
}

.admin-workspace {
  display: grid;
  gap: 0.85rem;
}

.admin-toolbar {
  display: grid;
  gap: 0.85rem;
}

.admin-tabs {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.admin-tab {
  border: 1px solid #d2d9e8;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 0.9rem;
  background: #ecf0f8;
  color: #4b556a;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.admin-tab.is-active,
.admin-tab[aria-selected="true"] {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.admin-metrics {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-metric {
  border-radius: 14px;
  border: 1px solid #d5dceb;
  background: #f6f8fd;
  padding: 0.72rem 0.82rem;
  display: grid;
  gap: 0.2rem;
}

.admin-metric span {
  color: #677083;
  font-size: 0.77rem;
  font-weight: 700;
}

.admin-metric strong {
  color: #1d2434;
  font-size: 1.34rem;
  line-height: 1;
}

.admin-panels {
  display: grid;
  gap: 0.85rem;
}

.admin-panel {
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.admin-panel.is-active {
  box-shadow: var(--shadow-hover);
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.admin-actions {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-btn {
  min-height: 37px;
  background: #ecf0f8;
  color: #394154;
  border: 1px solid #d2d9e8;
}

.admin-btn.is-danger,
.admin-delete {
  min-height: 33px;
  background: #ffecee;
  color: #9e3c45;
  border: 1px solid #f6cdd2;
}

.admin-achievement-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.admin-service-list,
.admin-log-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  display: grid;
  gap: 0.65rem;
}

#adminWorkspace[hidden] {
  display: none !important;
}

.admin-achievement-item {
  border-radius: 14px;
  border: 1px solid #d9e0ee;
  background: #f8f9fc;
  padding: 0.8rem;
}

.admin-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.52rem;
}

.admin-item-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #2b3342;
}

.admin-item-summary {
  margin-top: 0.44rem;
  font-size: 0.91rem;
  color: #5d6675;
}

.admin-security-card .admin-help {
  margin-top: 0.45rem;
  font-size: 0.95rem;
}

.admin-log-kicker {
  margin-top: 1rem;
}

.admin-file {
  border: 1px solid #d2d9e8;
  border-radius: 11px;
  min-height: 38px;
  padding: 0.4rem 0.55rem;
  background: #fff;
  color: #3c4557;
  font-size: 0.89rem;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(360px, 1.1fr) minmax(320px, 0.9fr);
  gap: 0.85rem;
}

.login-hero {
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--scene-bg);
  box-shadow: var(--shadow);
  padding: clamp(1.35rem, 3vw, 2.15rem);
}

.login-hero h1 {
  margin-top: 0.46rem;
  font-size: clamp(2.05rem, 4.5vw, 3.35rem);
}

.login-hero p {
  margin-top: 0.76rem;
  color: #535d6f;
  font-size: 1.02rem;
}

.login-panel {
  padding: 1.2rem;
}

.splash-page {
  background: radial-gradient(circle at 50% 10%, rgba(98, 66, 246, 0.12), transparent 44%), var(--bg);
}

.splash-main {
  width: min(880px, 100% - 2rem);
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.splash-card {
  width: 100%;
}

.progress-wrap {
  margin: 1rem auto 0;
  width: min(420px, 100%);
  height: 8px;
  border-radius: 999px;
  background: #e6eaf2;
  overflow: hidden;
}

.progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f43f5, #2fb7d6);
}

.global-footer {
  margin-top: 2.2rem;
  border-top: 1px solid rgba(23, 24, 28, 0.08);
  background: rgba(255, 255, 255, 0.82);
}

.footer-inner {
  width: min(var(--content-max), 100% - 2.4rem);
  margin: 0 auto;
  padding: 1rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.footer-inner p {
  font-size: 0.88rem;
  color: #687182;
}

.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 1;
  transform: translateY(14px);
  transition: transform 0.55s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

html.js .reveal.is-visible {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) {
  .wallpaper-card:hover,
  .mini-card:hover,
  .quick-card:hover,
  .service-card:hover,
  .researcher-card:hover,
  .achievement-item:hover,
  .contact-card:hover,
  .contact-form-wrap:hover,
  .admin-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

@media (max-width: 1080px) {
  .immersive-bar {
    --immersive-pad: max(1rem, calc((100vw - 780px) / 2));
  }

  .immersive-tab {
    min-height: 28px;
    padding: 0 0.68rem;
    font-size: 0.76rem;
  }

  .wallpaper-stage {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.9fr) minmax(0, 0.92fr);
  }

  .wallpaper-descriptions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .researcher-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-grid,
  .quick-grid,
  .edu-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-grid,
  .login-shell {
    grid-template-columns: 1fr;
  }

  .admin-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .header-inner,
  .main-shell,
  .footer-inner,
  .splash-main {
    width: min(var(--content-max), 100% - 1.25rem);
  }

  .header-inner {
    min-height: 60px;
    gap: 0.68rem;
  }

  .brand {
    font-size: 1.15rem;
    letter-spacing: 0.06em;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.3rem);
    right: 0.55rem;
    width: min(14rem, calc(100vw - 1.1rem));
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #fff;
    box-shadow: var(--shadow);
    padding: 0.82rem;
    display: grid;
    gap: 0.5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .main-nav a {
    font-size: 0.95rem;
  }

  .hero-simple,
  .block,
  .splash-card {
    border-radius: 24px;
  }

  .hero-simple h1,
  .splash-card h1 {
    font-size: clamp(2.1rem, 11.4vw, 3.35rem);
    line-height: 1.1;
  }

  .hero-simple p,
  .splash-card p {
    max-width: 29ch;
    line-height: 1.52;
  }

  .immersive-showcase {
    margin-inline: 0;
    border-radius: 0;
  }

  .immersive-bar {
    --immersive-pad: 0.75rem;
    min-height: 52px;
    padding-block: 0.45rem;
    gap: 0.55rem;
  }

  .immersive-brand {
    font-size: 0.84rem;
    letter-spacing: 0.03em;
  }

  .immersive-tabs {
    max-width: 62%;
    overflow-x: auto;
    padding-bottom: 0.1rem;
  }

  .immersive-tabs::-webkit-scrollbar {
    display: none;
  }

  .immersive-tab {
    min-height: 26px;
    padding: 0 0.56rem;
    font-size: 0.68rem;
  }

  .immersive-stage {
    min-height: 430px;
  }

  .immersive-copy {
    justify-items: start;
    text-align: left;
    align-content: start;
    padding: 1rem 1rem 1.2rem;
    padding-top: 2rem;
  }

  .immersive-kicker {
    font-size: 0.84rem;
  }

  .immersive-copy h2 {
    margin-top: 0.42rem;
    font-size: clamp(2rem, 10.4vw, 3.2rem);
    max-width: 12ch;
    line-height: 1.06;
  }

  .immersive-copy p:last-child {
    margin-top: 0.55rem;
    font-size: 0.9rem;
    max-width: 28ch;
  }

  .immersive-person {
    bottom: -4%;
    width: clamp(230px, 74vw, 360px);
  }

  .mini-grid,
  .quick-grid,
  .edu-grid,
  .wallpaper-descriptions,
  .services-grid,
  .researcher-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .wallpaper-stage {
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.2rem;
  }

  .wallpaper-stage::-webkit-scrollbar {
    height: 6px;
  }

  .wallpaper-stage::-webkit-scrollbar-thumb {
    background: rgba(56, 65, 90, 0.22);
    border-radius: 999px;
  }

  .wallpaper-card {
    min-width: 82%;
    flex: 0 0 82%;
    min-height: 245px;
    scroll-snap-align: center;
  }

  .wallpaper-card.is-featured {
    min-height: 265px;
    padding: 1.05rem;
  }

  .wallpaper-summary {
    font-size: 0.9rem;
  }

  .characters {
    width: min(370px, 100%);
    aspect-ratio: 10 / 6.8;
  }

  .edu-keyword {
    font-size: 0.65rem;
    padding: 0.16rem 0.46rem;
  }

  .login-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .admin-tabs::-webkit-scrollbar {
    height: 5px;
  }

  .admin-tabs::-webkit-scrollbar-thumb {
    background: rgba(56, 65, 90, 0.2);
    border-radius: 999px;
  }

  .admin-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 0.76rem;
    font-size: 0.79rem;
  }

  .admin-metric {
    padding: 0.62rem 0.66rem;
  }

  .admin-metric strong {
    font-size: 1.18rem;
  }
}

@media (max-width: 520px) {
  .admin-metrics {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Upstage-Inspired Design Refresh */
:root {
  --bg: #eff2fb;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --ink: #0d1320;
  --ink-soft: #4f5c74;
  --line: #d9e0ef;
  --dark: #0b1024;
  --dark-soft: #141c3a;
  --glow-a: rgba(91, 82, 255, 0.16);
  --glow-b: rgba(13, 97, 248, 0.14);
  --kicker: #69758d;
  --scene-bg: #dfe4f2;
  --purple: #5b52ff;
  --cyan: #17b9ef;
  --green: #18b97f;
  --orange: #ff7a2f;
  --yellow: #f4d019;
  --blue: #4d65ff;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --content-max: 1240px;
  --shadow: 0 14px 36px rgba(13, 19, 39, 0.08);
  --shadow-hover: 0 22px 44px rgba(13, 19, 39, 0.14);
}

html[data-theme="mono"] {
  --bg: #eff2fb;
  --surface: #ffffff;
  --surface-soft: #f7f9ff;
  --ink: #0d1320;
  --ink-soft: #4f5c74;
  --line: #d9e0ef;
  --dark: #0b1024;
  --dark-soft: #141c3a;
  --glow-a: rgba(91, 82, 255, 0.16);
  --glow-b: rgba(13, 97, 248, 0.14);
  --kicker: #69758d;
  --scene-bg: #dfe4f2;
}

html[data-theme="blue"] {
  --bg: #edf2ff;
  --surface: #ffffff;
  --surface-soft: #f5f8ff;
  --ink: #0b1530;
  --ink-soft: #4b5b7a;
  --line: #d4deef;
  --dark: #0a1333;
  --dark-soft: #17264f;
  --glow-a: rgba(77, 101, 255, 0.18);
  --glow-b: rgba(56, 152, 236, 0.16);
  --kicker: #607397;
  --scene-bg: #d9e3f7;
}

html[data-theme="mint"] {
  --bg: #eef7f4;
  --surface: #ffffff;
  --surface-soft: #f3fcf8;
  --ink: #11251f;
  --ink-soft: #506a63;
  --line: #d3e5df;
  --dark: #102b25;
  --dark-soft: #17423a;
  --glow-a: rgba(41, 186, 145, 0.16);
  --glow-b: rgba(23, 185, 239, 0.11);
  --kicker: #5f7f76;
  --scene-bg: #d9e9e3;
}

body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  background: radial-gradient(circle at 12% 10%, var(--glow-a), transparent 36%),
    radial-gradient(circle at 88% 84%, var(--glow-b), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0) 32%), var(--bg);
  color: var(--ink);
}

.brand,
.main-nav a,
.kicker,
h1,
h2,
h3,
.btn,
.service-status,
.theme-chip,
.admin-tab {
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
}

.global-header {
  background: color-mix(in srgb, var(--bg) 78%, #ffffff 22%);
  border-bottom: 1px solid rgba(15, 19, 30, 0.08);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(var(--content-max), 100% - 2.6rem);
  min-height: 66px;
}

.brand {
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.main-nav a {
  color: color-mix(in srgb, var(--ink-soft) 90%, #3b4255 10%);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding-bottom: 0.22rem;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ink) 82%, var(--blue) 18%);
}

.menu-toggle {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
}

.theme-switch {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(13, 19, 39, 0.06);
}

.theme-chip {
  width: 1.78rem;
  height: 1.78rem;
  font-size: 0.65rem;
  font-weight: 700;
}

.theme-chip[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--dark-soft), var(--dark));
  color: #fff;
}

.main-shell {
  width: min(var(--content-max), 100% - 2.6rem);
  margin-top: 1.6rem;
  gap: 1.24rem;
}

.hero-simple,
.block,
.login-panel,
.splash-card,
.admin-card {
  border: 1px solid color-mix(in srgb, var(--line) 84%, #ffffff 16%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 250, 255, 0.96));
  box-shadow: var(--shadow);
}

.hero-simple {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% -8%, rgba(77, 101, 255, 0.2), transparent 48%);
  z-index: 0;
  pointer-events: none;
}

.hero-simple > * {
  position: relative;
  z-index: 1;
}

.kicker {
  color: var(--kicker);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.19em;
}

.hero-simple h1,
.splash-card h1 {
  margin-top: 0.72rem;
  font-size: clamp(2.35rem, 7.1vw, 5.05rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

.hero-simple p,
.splash-card p {
  color: var(--ink-soft);
  font-size: clamp(1.01rem, 2vw, 1.3rem);
}

.hero-actions {
  margin-top: 1.5rem;
  gap: 0.72rem;
}

.btn {
  min-height: 46px;
  padding: 0 1.3rem;
  letter-spacing: -0.01em;
}

.btn-dark {
  background: linear-gradient(130deg, #131d44, #0b1024 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 20px rgba(9, 14, 34, 0.26);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
}

.block h2 {
  margin-top: 0.58rem;
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.immersive-showcase {
  margin-inline: 0;
  border-radius: 32px;
  border: 1px solid rgba(14, 29, 59, 0.22);
  box-shadow: 0 26px 54px rgba(8, 16, 34, 0.28);
  background: linear-gradient(180deg, #08132b 0%, #0b2347 100%);
}

.immersive-bar {
  min-height: 60px;
  padding-inline: 1.2rem;
  background: rgba(7, 14, 30, 0.8);
  border-bottom: 1px solid rgba(130, 154, 206, 0.2);
}

.immersive-brand {
  color: #ebf1ff;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.immersive-tab {
  border-color: rgba(188, 206, 244, 0.27);
  background: rgba(17, 34, 68, 0.55);
  color: rgba(228, 239, 255, 0.72);
  font-size: 0.72rem;
  min-height: 30px;
  font-weight: 700;
}

.immersive-tab.is-active {
  color: #f3f8ff;
  border-color: rgba(151, 178, 255, 0.74);
  box-shadow: inset 0 -2px 0 rgba(184, 204, 255, 0.9);
}

.immersive-stage {
  min-height: clamp(430px, 58vw, 750px);
  background: linear-gradient(180deg, #082043 0%, #092241 45%, #091c36 100%);
}

.immersive-stage::before {
  background: radial-gradient(circle at 50% 76%, rgba(25, 185, 239, 0.42), transparent 44%),
    radial-gradient(circle at 80% 16%, rgba(77, 101, 255, 0.28), transparent 34%),
    radial-gradient(circle at 15% 20%, rgba(18, 63, 126, 0.26), transparent 36%);
}

.immersive-stage::after {
  background: linear-gradient(90deg, rgba(4, 9, 24, 0.72) 0%, rgba(4, 9, 24, 0.26) 18%, rgba(4, 9, 24, 0) 54%,
      rgba(4, 9, 24, 0.64) 100%);
}

.immersive-kicker {
  color: rgba(222, 234, 255, 0.88);
  font-size: clamp(0.84rem, 1.35vw, 1.08rem);
  letter-spacing: 0.08em;
}

.immersive-copy h2 {
  color: #f7fbff;
  font-size: clamp(2.24rem, 5.7vw, 4.9rem);
}

.immersive-copy p:last-child {
  color: rgba(216, 230, 255, 0.84);
}

.character-scene {
  border-color: color-mix(in srgb, var(--line) 75%, #d2ddf5 25%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--scene-bg) 88%, #ffffff 12%), var(--scene-bg));
  box-shadow: var(--shadow);
}

.wallpaper-card {
  border-color: rgba(209, 221, 255, 0.32);
}

.mini-card,
.quick-card,
.service-card,
.researcher-card,
.achievement-item,
.contact-card,
.contact-form-wrap,
.admin-metric,
.admin-achievement-item {
  border-color: color-mix(in srgb, var(--line) 84%, #ffffff 16%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.95));
}

.service-card h3,
.researcher-card h3,
.achievement-item h3,
.admin-card h2 {
  letter-spacing: -0.02em;
}

.researcher-role,
.achievement-year {
  background: linear-gradient(180deg, #eef2ff, #e2e8ff);
  color: #4d5b7c;
  font-weight: 700;
}

.service-status-live {
  background: rgba(24, 185, 127, 0.14);
  color: #117250;
}

.service-status-build {
  background: rgba(255, 122, 47, 0.16);
  color: #9a531d;
}

.service-status-plan {
  background: rgba(77, 101, 255, 0.12);
  color: #43559a;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.admin-form input,
.admin-form select,
.admin-form textarea,
.login-form input {
  background: #fff;
  border-color: #d0d8e9;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus,
.admin-form input:focus,
.admin-form select:focus,
.admin-form textarea:focus,
.login-form input:focus,
.admin-tab:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(77, 101, 255, 0.56);
  outline-offset: 1px;
}

.admin-tabs {
  gap: 0.48rem;
}

.admin-tab {
  border: 1px solid #d2dcf0;
  background: #eef2ff;
  color: #4d5a79;
  font-weight: 700;
}

.admin-tab.is-active,
.admin-tab[aria-selected="true"] {
  background: linear-gradient(135deg, #15224e, #0b1024 72%);
  border-color: #0f1633;
}

.admin-metric strong {
  font-size: 1.26rem;
  color: #162243;
}

.global-footer {
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(14, 23, 43, 0.08);
}

.footer-inner p {
  color: #6b768f;
  font-size: 0.85rem;
}

@media (max-width: 1080px) {
  .header-inner,
  .main-shell,
  .footer-inner {
    width: min(var(--content-max), 100% - 2rem);
  }

  .immersive-showcase {
    border-radius: 28px;
  }

  .hero-simple h1,
  .splash-card h1 {
    font-size: clamp(2.2rem, 8.5vw, 4.2rem);
  }
}

@media (max-width: 780px) {
  .header-inner,
  .main-shell,
  .footer-inner,
  .splash-main {
    width: min(var(--content-max), 100% - 1.1rem);
  }

  .brand {
    font-size: 1.02rem;
    letter-spacing: 0.07em;
  }

  .theme-switch {
    padding: 0.18rem;
  }

  .theme-chip {
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.62rem;
  }

  .hero-simple,
  .block,
  .splash-card,
  .login-panel,
  .login-hero {
    border-radius: 24px;
  }

  .hero-simple h1,
  .splash-card h1 {
    font-size: clamp(2.05rem, 11.4vw, 3.25rem);
    line-height: 1.06;
  }

  .hero-simple p,
  .splash-card p {
    font-size: 0.98rem;
  }

  .immersive-showcase {
    border-radius: 22px;
    box-shadow: 0 16px 28px rgba(8, 16, 34, 0.24);
  }

  .immersive-bar {
    padding-inline: 0.7rem;
    min-height: 52px;
  }

  .immersive-stage {
    min-height: 390px;
  }

  .immersive-copy {
    padding: 1rem;
    padding-top: 1.65rem;
  }

  .immersive-copy h2 {
    font-size: clamp(1.9rem, 10.2vw, 3.1rem);
    max-width: 11ch;
  }

  .immersive-copy p:last-child {
    font-size: 0.86rem;
    max-width: 28ch;
  }

  .menu-toggle {
    min-height: 36px;
    font-size: 0.8rem;
    padding: 0 0.75rem;
  }

  .main-nav {
    border: 1px solid color-mix(in srgb, var(--line) 86%, #ffffff 14%);
    background: rgba(255, 255, 255, 0.97);
  }
}

/* Upstage-like split hero */
.hero-upstage {
  text-align: left;
  padding: clamp(1.55rem, 3.8vw, 2.35rem);
}

.hero-upstage-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-upstage-copy {
  display: grid;
  align-content: center;
  gap: 0.38rem;
}

.hero-upstage .hero-actions {
  justify-content: flex-start;
}

.hero-upstage .hero-actions,
.hero-upstage .hero-upstage-chips {
  margin-top: 1.1rem;
}

.hero-upstage .kicker {
  margin: 0;
}

.hero-upstage h1 {
  margin: 0.3rem 0 0;
  max-width: 10ch;
  font-size: clamp(2.4rem, 4.9vw, 4.55rem);
}

.hero-upstage p {
  margin: 0.2rem 0 0;
  max-width: 34ch;
}

.hero-upstage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.44rem;
}

.hero-upstage-chips span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  border: 1px solid #d2daf0;
  background: #eef2ff;
  color: #4d5a79;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.hero-upstage-demo {
  border-radius: 24px;
  border: 1px solid rgba(150, 171, 216, 0.35);
  background: linear-gradient(170deg, #0d1a3a, #0a1731 56%, #0c1f42);
  box-shadow: 0 18px 40px rgba(8, 16, 35, 0.3);
  padding: 0.9rem;
  position: relative;
  overflow: hidden;
}

.hero-upstage-demo::before {
  content: "";
  position: absolute;
  inset: -32% -12% auto auto;
  width: 66%;
  height: 72%;
  background: radial-gradient(circle, rgba(45, 183, 227, 0.36), transparent 62%);
  pointer-events: none;
}

.hero-demo-window {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  border: 1px solid rgba(163, 188, 240, 0.24);
  background: linear-gradient(180deg, rgba(18, 33, 67, 0.72), rgba(12, 26, 54, 0.84));
  padding: 0.82rem;
  display: grid;
  gap: 0.68rem;
}

.hero-demo-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.hero-demo-bar p {
  margin: 0;
  color: #ecf2ff;
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-demo-live {
  border-radius: 999px;
  min-height: 22px;
  padding: 0 0.52rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 185, 127, 0.2);
  border: 1px solid rgba(135, 234, 198, 0.28);
  color: #d6ffe8;
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-demo-stream {
  display: grid;
  gap: 0.55rem;
}

.hero-demo-card {
  border-radius: 12px;
  border: 1px solid rgba(167, 189, 236, 0.18);
  padding: 0.62rem 0.72rem;
  display: grid;
  gap: 0.2rem;
  background: rgba(15, 28, 55, 0.58);
}

.hero-demo-card p {
  margin: 0;
  color: rgba(190, 210, 244, 0.8);
  font-size: 0.72rem;
  font-weight: 500;
}

.hero-demo-card strong {
  color: #f2f7ff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
}

.hero-demo-card-a {
  background: linear-gradient(135deg, rgba(34, 73, 145, 0.58), rgba(22, 44, 90, 0.56));
}

.hero-demo-card-b {
  background: linear-gradient(135deg, rgba(48, 88, 167, 0.5), rgba(28, 58, 114, 0.52));
}

.hero-demo-card-c {
  background: linear-gradient(135deg, rgba(24, 185, 127, 0.26), rgba(24, 149, 206, 0.28));
}

.hero-demo-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.44rem;
}

.hero-demo-metrics article {
  border-radius: 11px;
  border: 1px solid rgba(163, 188, 240, 0.18);
  background: rgba(8, 18, 41, 0.5);
  padding: 0.48rem 0.52rem;
  display: grid;
  gap: 0.14rem;
}

.hero-demo-metrics span {
  color: rgba(187, 209, 246, 0.74);
  font-size: 0.62rem;
  font-weight: 600;
}

.hero-demo-metrics strong {
  color: #f5f9ff;
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 1080px) {
  .hero-upstage-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .hero-upstage-copy {
    justify-items: center;
    text-align: center;
  }

  .hero-upstage .hero-actions {
    justify-content: center;
  }

  .hero-upstage h1 {
    max-width: 12ch;
  }
}

@media (max-width: 780px) {
  .hero-upstage {
    padding: 1.1rem 0.95rem 1.2rem;
  }

  .hero-upstage h1 {
    font-size: clamp(2rem, 11vw, 3.2rem);
    line-height: 1.05;
  }

  .hero-upstage p {
    max-width: 28ch;
  }

  .hero-upstage-chips span {
    min-height: 28px;
    font-size: 0.67rem;
    padding: 0 0.56rem;
  }

  .hero-upstage-demo {
    border-radius: 20px;
    padding: 0.65rem;
  }

  .hero-demo-window {
    border-radius: 14px;
    padding: 0.65rem;
    gap: 0.58rem;
  }

  .hero-demo-card strong {
    font-size: 0.86rem;
  }

  .hero-demo-metrics strong {
    font-size: 0.94rem;
  }
}

/* Final UX polish pass */
body {
  line-height: 1.45;
}

.main-shell {
  gap: 1.3rem;
}

.hero-simple,
.block,
.login-panel,
.admin-card,
.splash-card {
  padding: clamp(1.1rem, 2.8vw, 1.85rem);
}

.hero-simple p,
.block > p:not(.kicker),
.login-hero p,
.contact-card span,
.service-card p,
.quick-card span,
.achievement-item p,
.admin-help,
.admin-item-summary {
  line-height: 1.55;
}

.hero-upstage-copy {
  gap: 0.5rem;
}

.hero-upstage h1 {
  letter-spacing: -0.028em;
}

.hero-upstage p {
  color: color-mix(in srgb, var(--ink-soft) 90%, #65718a 10%);
}

.hero-upstage-chips span {
  background: color-mix(in srgb, #eef2ff 80%, #ffffff 20%);
}

.hero-demo-window {
  border-color: rgba(176, 200, 245, 0.3);
}

.wallpaper-showcase h2,
.education-story h2,
#homeServicesTitle,
#homeQuickTitle,
#homePurposeTitle,
#researchersTeamTitle,
#researchersAchieveTitle {
  letter-spacing: -0.02em;
}

.service-card,
.researcher-card,
.achievement-item,
.contact-card,
.contact-form-wrap,
.admin-achievement-item {
  border-radius: 14px;
}

.service-card h3,
.researcher-card h3,
.achievement-item h3 {
  line-height: 1.22;
}

.contact-form input,
.contact-form select,
.contact-form textarea,
.login-form input,
.admin-form input,
.admin-form select,
.admin-form textarea {
  min-height: 46px;
  border-radius: 12px;
}

.contact-form textarea,
.admin-form textarea {
  min-height: 124px;
}

.admin-page .hero-simple {
  text-align: center;
  padding-block: clamp(1.45rem, 3.2vw, 2.3rem);
}

.admin-page .hero-simple h1 {
  font-size: clamp(2.2rem, 5.1vw, 4.7rem);
  line-height: 1.04;
}

.admin-page .hero-simple p {
  max-width: 32ch;
  margin-inline: auto;
}

.admin-security-card {
  display: grid;
  gap: 0.6rem;
}

.admin-security-card .kicker {
  margin-bottom: 0.15rem;
}

.admin-security-card .admin-help {
  max-width: 70ch;
  margin-top: 0;
}

.admin-security-card .admin-form {
  max-width: min(980px, 100%);
}

.admin-security-card .admin-status {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0.25rem 0.4rem 0.25rem 0;
}

.admin-workspace {
  gap: 1rem;
}

.admin-toolbar {
  gap: 1rem;
}

.admin-tab {
  min-height: 38px;
  padding-inline: 0.98rem;
}

.admin-metric {
  min-height: 82px;
}

.admin-actions {
  gap: 0.58rem;
}

.admin-btn {
  min-height: 38px;
}

.footer-inner p {
  line-height: 1.4;
}

@media (max-width: 1080px) {
  .admin-page .hero-simple h1 {
    font-size: clamp(2rem, 8vw, 3.8rem);
  }
}

@media (max-width: 780px) {
  .main-shell {
    gap: 0.95rem;
  }

  .hero-simple,
  .block,
  .login-panel,
  .admin-card,
  .splash-card {
    padding: 0.95rem;
  }

  .hero-upstage .hero-actions {
    margin-top: 0.9rem;
  }

  .hero-upstage .hero-upstage-chips {
    margin-top: 0.75rem;
  }

  .hero-upstage-chips {
    justify-content: center;
  }

  .hero-upstage h1 {
    max-width: 11.5ch;
  }

  .admin-page .hero-simple h1 {
    font-size: clamp(1.95rem, 10.5vw, 3rem);
  }

  .admin-page .hero-simple p {
    font-size: 0.95rem;
  }

  .admin-security-card .admin-help {
    font-size: 0.94rem;
  }

  .admin-tab {
    min-height: 34px;
    padding-inline: 0.78rem;
  }
}

/* Admin UX refinement */
.admin-security-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  border: 1px solid #d5dced;
  background: #eef2fa;
  padding: 0 0.75rem;
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #4a566e;
}

.admin-security-badge[data-state="active"] {
  border-color: #b8e5d4;
  background: #e7f8f0;
  color: #1f6d4e;
}

.admin-security-badge[data-state="locked"] {
  border-color: #f0c5cb;
  background: #fff0f2;
  color: #9b3d49;
}

.admin-security-badge[data-state="setup"] {
  border-color: #c7d5ee;
  background: #eaf1ff;
  color: #3a568a;
}

.admin-flow {
  margin: 0.1rem 0 0.45rem;
  padding: 0.72rem 0.86rem;
  border: 1px solid #dbe3f1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  display: grid;
  gap: 0.25rem;
}

.admin-flow li {
  margin-left: 1.02rem;
  color: #58657f;
  font-size: 0.85rem;
}

.admin-auth-actions {
  margin-top: 0.25rem;
}

.admin-link-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
}

.admin-toolbar-actions .admin-btn {
  background: #f3f6fc;
}

.admin-form-grid {
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  column-gap: 0.74rem;
  row-gap: 0.56rem;
  align-items: center;
}

.admin-form-divider {
  grid-column: 1 / -1;
  margin: 0.2rem 0 0.1rem;
  padding: 0.35rem 0 0.15rem;
  border-top: 1px dashed #d4dceb;
  font-family: "Montserrat", "Noto Sans KR", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #63718b;
}

.admin-form-divider:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.admin-form-grid textarea {
  grid-column: 1 / -1;
}

.admin-form-grid button[type="submit"] {
  grid-column: 1 / -1;
}

.admin-input-with-action {
  position: relative;
}

.admin-input-with-action input {
  width: 100%;
  padding-right: 3.15rem;
}

.admin-input-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  min-height: 30px;
  min-width: 42px;
  border: 1px solid #d4dced;
  border-radius: 999px;
  background: #eef2fb;
  color: #49556e;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.admin-input-toggle[aria-pressed="true"] {
  background: #dfe9ff;
  color: #2a4787;
}

.admin-message-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.admin-item-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #dae2f1;
  background: #f4f7fc;
  min-height: 27px;
  padding: 0 0.56rem;
  color: #5f6c85;
  font-size: 0.72rem;
  font-weight: 700;
}

.admin-status[data-tone="success"] {
  color: #1f6d4e;
}

.admin-status[data-tone="error"] {
  color: #9b3d49;
}

.admin-status[data-tone="info"] {
  color: #3e5a8f;
}

.admin-preview {
  display: grid;
  gap: 0.74rem;
}

.admin-preview-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.admin-preview-controls {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.admin-preview-label {
  color: #56627c;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-preview-select {
  border: 1px solid #d2d9e8;
  border-radius: 999px;
  min-height: 36px;
  padding: 0 0.72rem;
  background: #fff;
  color: #33415d;
  font-size: 0.86rem;
  font-weight: 700;
}

.admin-preview-frame {
  width: 100%;
  min-height: 520px;
  border: 1px solid #d5ddeb;
  border-radius: 16px;
  background: #fff;
}

.admin-editor-group {
  margin-top: 0.92rem;
  padding-top: 0.9rem;
  border-top: 1px dashed #d6dff0;
}

.admin-editor-group:first-of-type {
  margin-top: 0.55rem;
}

.admin-subtitle {
  font-size: 1.26rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.admin-editor-group .admin-help {
  margin-top: 0.36rem;
}

.admin-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  flex-wrap: wrap;
}

.admin-edit {
  min-height: 33px;
}

.admin-item-link {
  margin-top: 0.38rem;
  display: inline-flex;
  align-items: center;
  color: #4f6aa1;
  font-size: 0.8rem;
  line-height: 1.4;
  text-decoration: none;
  word-break: break-all;
}

.admin-item-link.is-disabled {
  color: #79839a;
}

@media (max-width: 980px) {
  .admin-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-flow li {
    margin-left: 0.94rem;
  }
}

@media (max-width: 780px) {
  .admin-toolbar-actions {
    gap: 0.4rem;
  }

  .admin-toolbar-actions .admin-btn {
    min-height: 34px;
  }

  .admin-security-badge {
    min-height: 30px;
    font-size: 0.7rem;
  }

  .admin-flow {
    padding: 0.6rem 0.7rem;
  }

  .admin-flow li {
    font-size: 0.82rem;
  }

  .admin-preview-head {
    align-items: stretch;
  }

  .admin-preview-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .admin-preview-frame {
    min-height: 420px;
  }

  .admin-editor-group {
    margin-top: 0.78rem;
    padding-top: 0.72rem;
  }

  .admin-subtitle {
    font-size: 1.1rem;
  }
}

/* Researchers projects cards */
.researcher-linked-count {
  margin-top: 0.44rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4f5d7c;
}

.researcher-projects-subtitle {
  margin-top: 0.52rem;
  color: var(--ink-soft);
  font-size: 0.97rem;
  line-height: 1.52;
}

.researcher-services-grid {
  margin-top: 0.92rem;
  display: grid;
  gap: 0.78rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.researcher-service-card {
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 84%, #ffffff 16%);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(246, 249, 255, 0.95));
  padding: 1rem;
  box-shadow: var(--shadow);
  text-decoration: none;
  display: grid;
  gap: 0.32rem;
}

.researcher-service-card h3 {
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.researcher-service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.54;
}

.researcher-service-owner {
  margin: 0;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 0.58rem;
  border-radius: 999px;
  border: 1px solid #d5def1;
  background: #edf2ff;
  color: #4e5d7d;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.researcher-service-meta {
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
}

.researcher-service-meta > span:first-child {
  color: #5b677f;
  font-size: 0.84rem;
  font-weight: 700;
}

.researcher-service-card .service-status {
  margin-left: auto;
}

.researcher-service-card.is-disabled {
  opacity: 0.86;
  pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
  .researcher-service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
  }
}

@media (max-width: 1080px) {
  .researcher-services-grid {
    grid-template-columns: 1fr;
  }
}
