:root {
  --ink: #111111;
  --paper: #ffffff;
  --muted: #555555;
  --line: #ececec;
  --accent: #ff4500;
  --accent-hover: #e23d00;
  --max: 72rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, sans-serif;
  line-height: 1.5;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a.button { font: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: white; }

.build-notice {
  position: fixed;
  top: 1.15rem;
  left: 50%;
  z-index: 60;
  transform: translateX(-50%);
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: #111111;
  color: #ffffff;
  border-top: 2px solid var(--accent);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  animation: hide-notice 0.35s ease 2s forwards;
}
.build-notice span {
  display: block;
  margin-top: 0.28rem;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-align: center;
  opacity: 0.6;
}
@keyframes hide-notice {
  to { opacity: 0; visibility: hidden; }
}

.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.eyebrow {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.eyebrow.muted { color: rgba(255,255,255,0.45); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.1rem;
  background: var(--accent);
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
}
.button:hover { background: var(--accent-hover); }
.button-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.28); }
.button-ghost:hover { background: rgba(255,255,255,0.08); }
.button-icon { width: 2.75rem; padding: 0; }
.button-icon svg { display: block; }
.button-ink { background: var(--ink); }
.button-block { width: 100%; min-height: 3rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-top: 2px solid var(--accent);
  background: var(--ink);
  color: white;
}
.header-bar { display: flex; align-items: center; gap: 0.75rem; min-height: 4.25rem; }
.brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.brand-name { display: block; font-size: 0.92rem; font-weight: 700; }
.brand-en { display: block; color: rgba(255,255,255,0.55); font-size: 0.65rem; letter-spacing: 0.16em; }
.logo { width: 3rem; height: 3rem; object-fit: contain; mix-blend-mode: screen; }
.logo-lg { width: 5.5rem; height: 5.5rem; }
.desktop-nav { display: none; margin-left: auto; }
.nav-item { position: relative; }
.nav-item > a { display: block; padding: 1.35rem 0.55rem; color: rgba(255,255,255,0.86); font-size: 0.82rem; }
.nav-item > a:hover { color: white; }
.submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 30;
  min-width: 15rem;
  padding: 0.4rem;
  background: #1a1a1a;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
}
.nav-item:hover .submenu, .nav-item:focus-within .submenu { display: block; }
.submenu a { display: block; padding: 0.65rem 0.75rem; }
.submenu a:hover { background: rgba(255,255,255,0.06); }
.submenu strong { display: block; font-size: 0.9rem; }
.submenu span { display: block; margin-top: 0.15rem; color: rgba(255,255,255,0.5); font-size: 0.75rem; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
.header-consult { display: none; min-height: 2.25rem; padding-inline: 0.85rem; font-size: 0.85rem; }
.menu-button, .menu-close {
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.menu-button { width: 2.5rem; height: 2.5rem; }
.menu-close { color: var(--ink); }

.drawer { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,0.5); }
.drawer-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  width: min(100%, 22rem);
  background: white;
  color: var(--ink);
}
.drawer-head, .drawer-foot { padding: 1rem 1.25rem; }
.drawer-head { display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.drawer-head p { color: var(--muted); font-size: 0.85rem; }
.drawer-body { flex: 1; overflow: auto; padding: 0.5rem 1.25rem 1rem; }
.drawer-group { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.drawer-title { display: block; font-weight: 700; }
.drawer-group a { display: block; padding: 0.35rem 0; color: #444; font-size: 0.92rem; }
.drawer-foot { border-top: 1px solid var(--line); }

.hero { background: var(--ink); color: white; }
.hero-grid { display: grid; gap: 2.5rem; padding: 4rem 0 4.5rem; }
.hero-brand { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.hero-brand p { letter-spacing: 0.18em; color: rgba(255,255,255,0.6); }
.hero h1 { margin-top: 1.2rem; font-size: clamp(2.3rem, 6vw, 3.6rem); letter-spacing: -0.04em; }
.slogan, .hero-copy { word-break: keep-all; }
.slogan { max-width: none; margin-top: 1.2rem; font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 650; line-height: 1.35; }
.hero-copy { max-width: 46rem; margin-top: 1.2rem; color: rgba(255,255,255,0.72); line-height: 1.8; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; margin-top: 1.6rem; }
.hero-main, .hero-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.hero-actions .button { min-height: 3.2rem; padding-inline: 1.15rem; gap: 0; font-size: 1.05rem; }
.hero-actions .button svg { display: block; flex: none; margin-right: 0.45rem; }
.hero-sub .button { min-height: 2.15rem; padding-inline: 0.65rem; font-size: 0.8rem; }
.hero-sub .button svg { width: 14px; height: 14px; margin-right: 0.4rem; }
.about-layout { margin-top: 1.15rem; }
.about-copy { max-width: 42rem; }
.about-copy p { font-size: 1.15rem; line-height: 1.75; letter-spacing: -0.02em; word-break: keep-all; }
.about-copy p + p { margin-top: 0.85rem; }
.about-keywords {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.45rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}
.reel-nav { display: flex; gap: 0.4rem; }
.reel-nav button {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #111111;
  border-radius: 50%;
  background: transparent;
  color: #111111;
  cursor: pointer;
}
.reel-nav button:hover { background: #111111; color: white; }
.reel-nav button:disabled { opacity: 0.28; cursor: default; background: transparent; color: #111111; }
.reel-scroller {
  margin-top: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}
.reel-scroller::-webkit-scrollbar { display: none; }
.reel-scroller.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel-track { display: flex; gap: 0.7rem; width: 100%; }
.reel-card {
  position: relative;
  display: flex;
  flex: 0 0 86%;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.25rem;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  scroll-snap-align: start;
  padding: 1.1rem;
  background: #1a1a1a;
  color: white;
  text-decoration: none;
}
.reel-card iframe {
  position: absolute;
  z-index: 0;
  top: -54px;
  left: 50%;
  width: 156%;
  height: 175%;
  border: 0;
  transform: translateX(-50%);
  pointer-events: none;
}
.reel-card.is-post iframe {
  top: -54px;
  left: 0;
  width: 100%;
  height: calc(100% + 160px);
  transform: none;
}
.reel-card .reel-caption {
  position: relative;
  z-index: 1;
}
.reel-mark {
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  margin-bottom: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}
.reel-card.is-post { aspect-ratio: 4 / 5; }
.reel-card p { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.03em; }
.reel-caption { color: rgba(255, 255, 255, 0.68); font-size: 0.82rem; }
.about-keywords li {
  padding: 0.42rem 0.7rem;
  border: 1px solid #111111;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.35;
}
.about-keywords .is-award {
  background: #111111;
  color: white;
  border-color: #111111;
}
.pass-section .teacher-intro { margin-top: 3.2rem; }
.teacher-intro h2 { margin-top: 0.45rem; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; }
.teacher-lead { margin-top: 0.45rem; color: rgba(255,255,255,0.62); font-size: 0.92rem; }
.teacher-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-top: 0.9rem;
}
.teacher-card {
  display: grid;
  grid-template-columns: 3.3rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.45rem;
  align-items: center;
  padding: 0.65rem 0.75rem 0.65rem 0.5rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  color: white;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.teacher-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255,69,0,0.14);
}
.teacher-photo {
  grid-row: 1 / span 2;
  width: 3.3rem;
  height: 3.3rem;
  background: rgba(255,255,255,0.1);
  object-fit: cover;
  border-radius: 50%;
}
.teacher-card span { grid-column: 2; color: rgba(255,255,255,0.55); font-size: 0.82rem; line-height: 1.2; }
.teacher-card .teacher-photo { grid-column: 1; grid-row: 1 / span 2; }
.teacher-card strong { grid-column: 2; font-size: 1.18rem; font-weight: 700; letter-spacing: -0.03em; }
.teacher-card strong.solo { grid-row: 1 / span 2; }
@media (min-width: 900px) {
  .teacher-grid { grid-template-columns: repeat(4, 1fr); }
}
.hero-meta { margin-top: 0.9rem; color: rgba(255,255,255,0.5); font-size: 0.92rem; }
.hero-panel { border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.05); padding: 1.5rem; }
.panel-title { margin-top: 0.8rem; font-size: 1.25rem; font-weight: 700; line-height: 1.45; }
.hero-panel dl { margin: 1.4rem 0 0; }
.hero-panel div + div { margin-top: 0.9rem; }
.hero-panel dt { color: rgba(255,255,255,0.45); font-size: 0.85rem; }
.hero-panel dd { margin: 0.2rem 0 0; }

.section { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.section h2, .page-body h2 { margin-top: 0.6rem; font-size: 1.8rem; letter-spacing: -0.03em; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; }
.section-head a, .uni-toggle { text-decoration: underline; text-underline-offset: 3px; }
.uni-toggle {
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.uni-grid .uni-more { display: none; }
.uni-grid.is-open .uni-more { display: block; }
.index-list { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.index-list a {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.index-list span { color: var(--accent); font-size: 0.9rem; }
.index-list strong { font-size: 1.15rem; }
.index-list em { color: var(--muted); font-style: normal; font-size: 0.92rem; }
.uni-grid, .link-grid, .directors, .facts { display: grid; gap: 1px; margin-top: 1.5rem; background: var(--line); border: 1px solid var(--line); }
.uni-grid a, .link-grid a, .directors article, .facts div { background: white; padding: 1.3rem; }
.uni-grid a:hover, .link-grid a:hover { background: #fafafa; }
.uni-grid p, .facts dt { color: #888; font-size: 0.75rem; letter-spacing: 0.12em; }
.uni-grid h3, .directors h2 { margin-top: 0.6rem; font-size: 1.5rem; }
.uni-grid span, .link-grid span, .directors p { display: block; margin-top: 0.55rem; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.class-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.class-grid a { border: 1px solid var(--line); padding: 1.4rem; }
.class-grid h3 { font-size: 1.2rem; }
.class-grid p { margin-top: 0.7rem; color: #444; line-height: 1.7; }

.page-hero { border-bottom: 1px solid var(--line); padding: 3.2rem 0; }
.crumbs { color: #777; font-size: 0.78rem; }
.crumbs a:hover { color: var(--ink); }
.page-hero h1 { max-width: 46rem; margin-top: 0.7rem; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.04em; }
.lead { max-width: 42rem; margin-top: 1rem; color: #444; font-size: 1.08rem; line-height: 1.75; }
.page-body { display: grid; gap: 1.15rem; padding: 2.5rem 0 3.5rem; }
.prose { max-width: 46rem; color: #333; line-height: 1.9; }
.page-body h2 { padding-top: 0.4rem; }
.note { max-width: 46rem; border: 1px solid var(--line); background: #fafafa; padding: 1rem 1.15rem; color: #444; font-size: 0.92rem; line-height: 1.7; }
.note span { margin-right: 0.45rem; color: var(--accent); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; }
.link-grid strong { display: block; }
.facts { max-width: 46rem; }
.facts dd { margin: 0.45rem 0 0; }
.facts a { text-decoration: underline; text-underline-offset: 3px; }
.not-found { padding: 5rem 0 6rem; }
.not-found h1 { margin-top: 0.8rem; font-size: 2.2rem; }
.not-found .lead { margin-bottom: 1.4rem; }

.site-footer { background: var(--ink); color: white; }
.footer-grid { display: grid; gap: 2.5rem; padding: 3.5rem 0; }
.footer-name { margin-top: 0.8rem; font-size: 1.15rem; font-weight: 700; }
.footer-slogan { max-width: 18rem; margin-top: 0.7rem; color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.site-footer address { margin-top: 1.2rem; color: rgba(255,255,255,0.82); font-style: normal; font-size: 0.92rem; line-height: 1.7; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
.footer-heading { font-weight: 700; font-size: 0.92rem; }
.footer-links ul { margin: 0.7rem 0 0; padding: 0; list-style: none; }
.footer-links li + li { margin-top: 0.4rem; }
.footer-links li a { color: rgba(255,255,255,0.62); font-size: 0.88rem; }
.footer-links li a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.9rem 0 5.2rem;
  color: rgba(255,255,255,0.45);
  font-size: 0.75rem;
}
.mobile-bar {
  position: fixed;
  right: 0.75rem;
  bottom: 0.75rem;
  left: 0.75rem;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  background: var(--accent);
  color: white;
  font-weight: 700;
}

@media (min-width: 640px) {
  .uni-grid, .link-grid, .directors, .facts, .class-grid { grid-template-columns: 1fr 1fr; }
  .facts-wide { grid-column: 1 / -1; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .index-list a { grid-template-columns: 4rem 12rem 1fr; align-items: baseline; }
  .footer-grid { grid-template-columns: 1.1fr 2fr; }
  .reel-card { flex-basis: calc((100% - 1.4rem) / 3); }
}
@media (min-width: 1000px) {
  .about-layout {
    display: grid;
    grid-template-columns: minmax(0, 42rem) minmax(14rem, 1fr);
    column-gap: 3rem;
    align-items: start;
  }
  .about-keywords { margin-top: 0.15rem; }
}
@media (min-width: 1180px) {
  .desktop-nav { display: flex; }
  .header-actions { margin-left: 0.5rem; }
  .menu-button { display: none; }
  .mobile-bar { display: none; }
  .footer-bottom-inner { padding-bottom: 0.9rem; }
}

.header-login { min-height: 2.35rem; padding-inline: 0.95rem; font-size: 0.88rem; }
.header-login:hover { background: var(--accent-hover); }
.header-text { color: white; font-size: 0.82rem; font-weight: 650; }
.button-line { background: white; color: var(--ink); border: 1px solid var(--ink); }
.button-line:hover { background: var(--ink); color: white; }
.button-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.drawer-foot { display: grid; gap: 0.7rem; }
.drawer-foot a:not(.button) { font-size: 0.92rem; }

.studio-bar { background: white; border-bottom: 1px solid var(--line); }
.studio-bar-inner { display: flex; align-items: center; gap: 0.2rem; min-height: 3.1rem; overflow-x: auto; }
.studio-bar > .wrap > a { padding: 0.75rem 0.7rem; font-size: 0.88rem; font-weight: 700; white-space: nowrap; }
.studio-bar .nav-item > a { padding: 0.75rem 0.7rem; color: var(--ink); font-size: 0.88rem; font-weight: 700; }
.submenu.light { background: white; border: 1px solid var(--line); box-shadow: 0 12px 30px rgba(0,0,0,0.08); }
.submenu.light a, .submenu.light strong { color: var(--ink); }
.submenu.light a:hover { background: #fafafa; }

.intro-veil {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: #0c1220;
  pointer-events: none;
  animation: veil-out 0.45s ease 0.05s forwards;
}
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
@keyframes logo-pop {
  from { opacity: 0; transform: scale(0.55); }
  to { opacity: 1; transform: none; }
}
@keyframes typing {
  to { width: 13ch; }
}
@keyframes caret-off {
  to { border-color: transparent; }
}
@keyframes slide-up {
  to { transform: none; }
}
@keyframes wipe-open {
  to { clip-path: inset(0 0 0 0); }
}
@keyframes fade-in {
  to { opacity: 1; }
}
.is-home .hero {
  position: relative;
  display: flex;
  overflow: hidden;
  min-height: calc(100svh - 4.35rem);
  background: #111111;
}
.is-home .hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  pointer-events: none;
  opacity: 0;
  animation: hero-reveal 0.7s ease 0.5s forwards;
}
@keyframes hero-reveal {
  to { opacity: 1; }
}
.hero-play {
  position: absolute;
  right: 1.15rem;
  bottom: 5.5rem;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(17,17,17,0.45);
  color: white;
  cursor: pointer;
}
.hero-play:hover { background: rgba(17,17,17,0.72); }
.hero-play svg { display: none; }
.hero-play .icon-pause { display: block; }
.hero-play.is-paused .icon-pause { display: none; }
.hero-play.is-paused .icon-play { display: block; }
@media (min-width: 1180px) {
  .hero-play { bottom: 1.4rem; }
}
.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 4.7rem;
  z-index: 3;
  color: white;
  animation: hero-scroll 1.5s ease-in-out infinite;
}
.hero-scroll svg { display: block; }
@keyframes hero-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50% { transform: translateX(-50%) translateY(7px); opacity: 1; }
}
@media (min-width: 1180px) {
  .hero-scroll { bottom: 1.15rem; }
}
.is-home .hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to top, rgba(17,17,17,0.88) 0%, rgba(17,17,17,0.58) 34%, rgba(17,17,17,0.4) 100%);
}
.is-home .hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  align-items: flex-end;
  padding: 1.5rem 0 7.4rem 1rem;
}
.is-home .hero-copy-col { width: 100%; }
.is-home .hero .eyebrow { font-size: 1.05rem; letter-spacing: 0.06em; }
.is-home .hero h1 { margin-top: 0.35rem; line-height: 1; }
.is-home .slogan { margin-top: 0.2rem; font-size: clamp(1.12rem, 2.2vw, 1.4rem); line-height: 1.25; }
.is-home .hero-copy { margin-top: 1.05rem; font-size: 0.78rem; line-height: 1.35; color: rgba(255,255,255,0.55); }
.is-home .hero-actions {
  display: flex;
  flex-flow: column nowrap;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 0.35rem;
}
.is-home .hero-main,
.is-home .hero-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}
.is-home .hero-main .button {
  min-height: 2.6rem;
  padding-inline: 0.85rem;
  font-size: 0.92rem;
}
.is-home .hero-main .button svg {
  width: 15px;
  height: 15px;
  margin-right: 0.35rem;
}
.is-home .hero-sub .button {
  min-height: 2.05rem;
  padding: 0 0.6rem;
  font-size: 0.78rem;
  white-space: nowrap;
}
.is-home .hero-sub .button svg {
  width: 13px;
  height: 13px;
  margin-right: 0.35rem;
}
@media (min-width: 1180px) {
  .is-home .hero-grid {
    align-items: flex-end;
    padding-bottom: 16vh;
    padding-left: 3rem;
  }
  .is-home .hero h1 { font-size: 3.8rem; }
  .is-home .slogan { margin-top: 0.4rem; font-size: 1.65rem; }
  .is-home .hero-copy { margin-top: 1.15rem; font-size: 0.95rem; }
  .is-home .hero-actions {
    align-items: stretch;
    width: fit-content;
    max-width: 100%;
    gap: 0.7rem;
    margin-top: 0.5rem;
  }
  .is-home .hero-main { flex-wrap: nowrap; width: max-content; }
  .is-home .hero-sub {
    flex-wrap: nowrap;
    width: 0;
    min-width: 100%;
  }
  .is-home .hero-actions .button {
    min-height: 3.5rem;
    padding-inline: 1.3rem;
    font-size: 1.12rem;
  }
  .is-home .hero-main .button svg {
    width: 18px;
    height: 18px;
    margin-right: 0.45rem;
  }
  .is-home .hero .eyebrow { font-size: 1.25rem; }
  .is-home .hero-sub .button {
    flex: 0 0 auto;
    justify-content: center;
    min-width: max-content;
    min-height: 2.7rem;
    padding-inline: 0.7rem;
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .is-home .hero-sub .button:nth-child(2) { flex: 1 1 auto; }
  .is-home .hero-sub .button svg { width: 16px; height: 16px; margin-right: 0.4rem; }
}
.is-home .hero-copy-col > * { animation: none; }
.is-home .logo-lg { animation: logo-pop 0.45s cubic-bezier(.16,1,.3,1) both; }
.is-home .type-en { letter-spacing: 0.14em; }
.is-home .type-en span {
  display: inline-block;
  overflow: hidden;
  width: 0;
  white-space: nowrap;
  vertical-align: bottom;
  border-right: 2px solid var(--accent);
  animation: typing 0.7s steps(8, end) 0.35s forwards, caret-off 0.01s linear 1.1s forwards;
}
.is-home .slide-title {
  width: fit-content;
  overflow: hidden;
  padding-bottom: 0.22em;
}
.is-home .slide-title span {
  position: relative;
  display: inline-block;
  color: #fff;
  transform: translateY(115%);
  animation: slide-up 0.45s cubic-bezier(.16,1,.3,1) 0.7s forwards;
}
.is-home .slide-title span::before,
.is-home .slide-title span::after {
  content: "";
  position: absolute;
  bottom: -0.08em;
  height: 2px;
}
.is-home .slide-title span::before {
  left: 0;
  right: 0;
  background: #ff4500;
}
.is-home .slide-title span::after {
  z-index: 1;
  left: 0;
  width: 22%;
  background: linear-gradient(90deg, rgba(255, 69, 0, 0), #fff 58%, #ff4500);
  box-shadow: 0 0 8px 1px rgba(255, 69, 0, 0.95);
  opacity: 0;
  animation: title-sweep 5.4s ease-in-out 1.7s infinite;
}
@keyframes title-sweep {
  0% { transform: translateX(-110%); opacity: 0; }
  8% { opacity: 1; }
  34% { transform: translateX(460%); opacity: 1; }
  44%, 100% { transform: translateX(470%); opacity: 0; }
}
.is-home .slogan.wipe { clip-path: inset(0 100% 0 0); animation: wipe-open 0.5s ease 0.95s forwards; }
.is-home .fade-late { opacity: 0; animation: fade-in 0.4s ease 1.25s forwards; }
@keyframes pass-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes pass-pop {
  from { opacity: 0; transform: translateY(28px) scale(0.86); }
  to { opacity: 1; transform: none; }
}
.is-home .pass-section > .wrap > .eyebrow,
.is-home .pass-section > .wrap > h2,
.is-home .pass-lead,
.is-home .pass-grid a {
  opacity: 0;
}
.is-home .pass-section.is-shown > .wrap > .eyebrow {
  animation: pass-rise 0.5s cubic-bezier(.16,1,.3,1) forwards;
}
.is-home .pass-section.is-shown > .wrap > h2 {
  animation: pass-rise 0.55s cubic-bezier(.16,1,.3,1) 0.08s forwards;
}
.is-home .pass-section.is-shown .pass-lead {
  animation: pass-rise 0.55s cubic-bezier(.16,1,.3,1) 0.16s forwards;
}
.is-home .pass-section.is-shown .pass-grid a {
  animation: pass-pop 0.52s cubic-bezier(.16,1,.3,1) calc(0.24s + var(--i, 0) * 45ms) forwards;
}
.is-home .pass-section.is-shown .pass-grid a.is-settled {
  animation: none;
  opacity: 1;
  transform: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.is-home .pass-section.is-shown .pass-grid a.is-settled:hover {
  transform: translateY(-2px);
}
.is-home .index-list a, .is-home .uni-grid a, .is-home .class-grid a, .is-home .closing .wrap {
  animation: rise 0.7s both;
}
.page-hero .wrap { animation: rise 0.65s cubic-bezier(.16,1,.3,1) both; }
@media (prefers-reduced-motion: reduce) {
  .intro-veil { display: none; }
  .is-home .type-en span,
  .is-home .slide-title span,
  .is-home .slogan.wipe,
  .is-home .fade-late,
  .is-home .logo-lg,
  .is-home .pass-section > .wrap > .eyebrow,
  .is-home .pass-section > .wrap > h2,
  .is-home .pass-lead,
  .is-home .pass-grid a {
    animation: none;
    opacity: 1;
    transform: none;
    width: auto;
    clip-path: none;
    border: 0;
  }
  .is-home .slide-title span {
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
  }
  .is-home .slide-title span::after { display: none; }
  .teacher-card { transition: none; }
  .is-home .hero-video { animation: none; opacity: 1; }
  .hero-scroll { animation: none; opacity: 0.8; transform: translateX(-50%); }
}

.pass-section { background: #111111; color: white; border-bottom: 0; scroll-margin-top: 4.5rem; }
.pass-lead { margin-top: 0.7rem; color: rgba(255,255,255,0.62); }
.pass-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
  margin-top: 1.6rem;
}
.pass-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.4rem;
  border: 1px solid #111111;
  background: white;
  color: #111111;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.pass-section .pass-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.55rem;
}
.pass-section .pass-grid a {
  aspect-ratio: 1;
  flex: 0 0 6.7rem;
  width: 6.7rem;
  flex-direction: column;
  gap: 0.08rem;
  min-height: 0;
  padding: 0.3rem 0.2rem;
  border-color: rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.03);
  color: white;
}
.pass-name {
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.05;
  letter-spacing: -0.045em;
  white-space: nowrap;
}
.pass-count {
  color: var(--accent);
  font-size: 3.15rem;
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.07em;
}
.pass-grid a:hover,
.pass-section .pass-grid a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  transform: translateY(-2px);
}
.pass-section .pass-grid a:hover .pass-count { color: white; }
.roster { width: 100%; border-collapse: collapse; background: white; }
.roster-write[hidden] { display: none; }
.roster-error { margin: 0.35rem 0 0; color: #a33; font-size: 0.92rem; }
.roster-password { grid-column: 1 / -1; }
.roster-actions { min-width: 8.5rem; vertical-align: top; }
.roster-actions details + details { margin-top: 0.35rem; }
.roster-actions summary { cursor: pointer; font-size: 0.88rem; }
.roster-actions form, .roster-edit-form { display: grid; gap: 0.35rem; margin-top: 0.45rem; }
.roster-actions input {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.4rem 0.5rem;
  font: inherit;
  font-weight: 400;
}
.roster-actions button { justify-self: start; }
.roster th, .roster td { padding: 0.85rem 0.75rem; border-bottom: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
.roster th { font-size: 0.75rem; letter-spacing: 0.08em; color: #777; font-weight: 700; }
.roster button { border: 0; background: transparent; color: #a33; cursor: pointer; font: inherit; }
.roster-form { grid-template-columns: repeat(2, 1fr); }
.roster-form button { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 800px) {
  .pass-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1100px) {
  .pass-grid { grid-template-columns: repeat(6, 1fr); }
}
.closing h2 { margin: 0.45rem 0 0.7rem; }
.closing p { max-width: 36rem; color: rgba(255,255,255,0.72); }
.closing .button { margin-top: 1.2rem; }

.editor { display: grid; gap: 0.85rem; max-width: 42rem; }
.editor label { display: grid; gap: 0.35rem; font-size: 0.82rem; font-weight: 700; }
.editor input, .editor textarea, .editor select {
  width: 100%;
  border: 1px solid #ddd;
  padding: 0.75rem 0.8rem;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}
.form-help { color: #777; font-size: 0.82rem; }
.login-form { max-width: 24rem; }
.board-list { display: grid; gap: 0.75rem; }
.board-item {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  align-items: center;
  border: 1px solid var(--line);
  padding: 0.75rem;
}
.board-item img, .thumb-empty { width: 7.5rem; height: 5.5rem; object-fit: cover; background: #f3f3f3; }
.thumb-empty { display: flex; align-items: center; justify-content: center; color: #999; font-size: 0.75rem; }
.board-item strong { display: block; font-size: 1.05rem; }
.board-item em { display: block; margin-top: 0.3rem; color: #777; font-style: normal; font-size: 0.82rem; }
.post-card { display: grid; gap: 0.8rem; max-width: 48rem; }
.post-meta, .grade { color: #666; font-size: 0.88rem; }
.post-body { line-height: 1.8; white-space: normal; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.6rem; }
.photo-grid img { width: 100%; height: 180px; object-fit: cover; }
.post-actions { display: flex; gap: 1rem; align-items: center; }
.post-actions button { border: 0; background: transparent; color: #a33; cursor: pointer; font: inherit; }

