/* ==========================================================================
   Chongya Education · Editorial Design System (VIS + taste-skill 2.5)
   Colors: #FE6900 (Chongya Orange), #140E0A (Breathable Ink), #FFFFFF / #F7F5F2
   ========================================================================== */

:root {
  --orange: #FE6900;
  --orange-deep: #C94F00;
  --orange-soft: #FFF1E6;
  --ink: #140E0A;
  --ink-soft: #221B16;
  --text: #2B241F;
  --muted: #6E645C;
  --white: #FFFFFF;
  --paper: #FFF5EC;
  --panel-warm: #FFF0E2;
  --line: rgba(20, 14, 10, 0.09);
  --line-strong: rgba(20, 14, 10, 0.16);
  --line-hover: rgba(20, 14, 10, 0.26);
  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --radius-vis: 20px;
  --container: 1280px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-enter: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-padding-top: 88px;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: MiSans, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

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

button, input {
  font: inherit;
}

button {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  top: -120px;
  left: 0;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
}
.skip-link:focus {
  top: 14px;
}

.container {
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ==================== Quiet Eyebrows, Buttons & Drawn Links (taste-skill) ==================== */
.vis-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transition: transform 150ms var(--ease), background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.btn-lg {
  height: 48px;
  padding: 0 26px;
  font-size: 15.5px;
}

.btn-primary,
.btn-orange {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-ink {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-secondary,
.btn-white,
.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.26);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    transform: translateY(-1px);
  }
  .btn-primary:hover,
  .btn-orange:hover {
    background: #E55E00;
    border-color: #E55E00;
  }
  .btn-ink:hover {
    background: #281E17;
    border-color: #281E17;
  }
  .btn-secondary:hover,
  .btn-white:hover,
  .btn-light:hover {
    background: var(--paper);
    border-color: var(--line-hover);
  }
  .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.55);
  }
  .btn:hover .m-arrow,
  .link-inline:hover .m-arrow,
  .text-arrow:hover .m-arrow,
  .footer-secondary-link:hover .m-arrow {
    transform: translateX(3px);
  }
}

.btn:active {
  transform: translateY(1px) scale(0.985);
  transition-duration: 90ms;
}
.btn[disabled] {
  opacity: 0.45;
  pointer-events: none;
}

.m-arrow {
  transition: transform 150ms var(--ease);
}

.text-arrow,
.link-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
  background-image: linear-gradient(var(--ink), var(--ink));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  transition: color 150ms var(--ease), background-size 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .text-arrow:hover,
  .link-inline:hover {
    color: var(--orange-deep);
    background-image: linear-gradient(var(--orange-deep), var(--orange-deep));
  }
}

/* ==================== Hero Load-Once Entrance (taste-skill motion.md) ==================== */
html.m-enter:not(.m-enter-ready):not(.m-enter-done) [data-enter] .hero-copy,
html.m-enter:not(.m-enter-ready):not(.m-enter-done) [data-enter] .sub-hero-copy {
  opacity: 0;
  transform: translateY(12px);
}
html.m-enter:not(.m-enter-ready):not(.m-enter-done) [data-enter] [data-enter-media],
html.m-enter:not(.m-enter-ready):not(.m-enter-done) [data-enter] .sub-hero-art {
  opacity: 0.92;
  transform: scale(0.985);
}
[data-enter] .hero-copy,
[data-enter] .sub-hero-copy {
  transition: opacity 560ms var(--ease-enter), transform 560ms var(--ease-enter);
}
[data-enter] [data-enter-media],
[data-enter] .sub-hero-art {
  transition: opacity 720ms var(--ease-enter), transform 720ms var(--ease-enter);
}

/* ==================== Header & Full-Width Mega Navigation (nav-mega / nav-cards) ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand-logo img {
  width: 148px;
  height: auto;
}

.primary-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}
.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}
.nav-item {
  height: 100%;
  display: flex;
  align-items: center;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  transition: color 150ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}
.has-mega.is-open > .nav-link::after {
  transform: scaleX(1);
  transform-origin: left center;
}
.nav-link[aria-current="page"],
.nav-link.is-active {
  color: var(--ink);
}
.nav-link[aria-current="page"]::after,
.nav-link.is-active::after {
  height: 2px;
  background: var(--orange);
  transform: scaleX(1);
}

.nav-caret {
  width: 13px;
  height: 13px;
  opacity: 0.55;
  transition: transform 180ms var(--ease);
}
.has-mega.is-open .nav-caret {
  transform: rotate(180deg);
}

/* Full-width flat architectural Mega Panel */
.nav-mega {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--nav-h);
  background: var(--white);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 24px 48px rgba(20, 14, 10, 0.05);
  padding: 28px 0 32px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease), visibility 180ms;
  z-index: 98;
}
.has-mega.is-open .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

/* nav-cards: 4 Language Picture Cards */
.nav-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.menu-card {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms var(--ease), border-color 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-hover);
  }
  .menu-card:hover .menu-card-arch {
    transform: scale(1.03);
  }
  .menu-card:hover .menu-card-duck {
    transform: translateY(-3px) scale(1.03);
  }
}
.menu-card-visual {
  position: relative;
  height: 132px;
  border-radius: 10px;
  background: var(--panel-warm);
  overflow: hidden;
  margin-bottom: 12px;
}
.menu-card-arch {
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 72%;
  height: 92%;
  object-fit: contain;
  transition: transform 420ms var(--ease);
}
.menu-card-duck {
  position: absolute;
  left: 8px;
  bottom: 2px;
  width: 48%;
  height: 84%;
  object-fit: contain;
  z-index: 2;
  transition: transform 320ms var(--ease);
}
.menu-card-meta {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ink);
}
.menu-card-title {
  padding: 0 6px;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
}
.menu-card-desc {
  padding: 2px 6px 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* nav-mega: Link Columns + Feature Card */
.nav-mega-columns {
  display: grid;
  grid-template-columns: 1fr 1fr 1.15fr;
  gap: 32px;
  align-items: stretch;
}
.menu-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.menu-col-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
  padding-left: 12px;
}
.menu-col a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  transition: background-color 140ms var(--ease);
}
.menu-col a:hover,
.menu-col a[aria-current="page"] {
  background: var(--paper);
}
.menu-col a strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.menu-col a small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}

.menu-feature-card {
  display: grid;
  grid-template-columns: 148px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border-radius: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .menu-feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--line-hover);
  }
}
.menu-feature-art {
  position: relative;
  height: 132px;
  border-radius: 10px;
  background: var(--panel-warm);
  overflow: hidden;
  display: grid;
  place-items: center;
}
.menu-feature-art img:first-child:not(.is-solo) {
  position: absolute;
  right: -6px;
  bottom: -2px;
  width: 78%;
  height: 90%;
  object-fit: contain;
}
.menu-feature-art img:last-child:not(.is-solo) {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 56%;
  height: 84%;
  object-fit: contain;
  z-index: 2;
}
.menu-feature-art img.is-solo {
  width: 112px;
  height: 112px;
  object-fit: contain;
}
.menu-feature-copy .menu-col-label {
  padding-left: 0;
  margin-bottom: 4px;
  display: block;
  color: var(--orange-deep);
}
.menu-feature-copy strong {
  display: block;
  font-size: 16.5px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}
.menu-feature-copy small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}
.header-actions .btn {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
}
.menu-trigger {
  display: none;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}

/* ==================== Breadcrumbs ==================== */
.breadcrumb-bar {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 13px;
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}
.breadcrumb-list li + li::before {
  content: "/";
  margin-right: 8px;
  color: var(--line-strong);
}
.breadcrumb-list a:hover {
  color: var(--ink);
}
.breadcrumb-list li[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}

/* ==================== Homepage Architectural Studio Hero (VIS Typography) ==================== */
.brand-hero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 44px 0 42px;
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
}

.hero-kicker-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  background: #FFF5EC;
  border: 1px solid #F3D9C2;
  margin-bottom: 20px;
}
.hero-kicker-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--white);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.hero-seo-h1 {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}

.hero-display {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: clamp(50px, 5.5vw, 76px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 22px;
}
.hd-line-ink {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--ink);
}
/* VIS Manual p18/p19 Signature Playful Tilted Ink Pill */
.hd-vis-badge {
  font-style: normal;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 13px;
  border-radius: 999px 999px 999px 4px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-6px) rotate(-3deg);
  box-shadow: 0 8px 18px rgba(20, 14, 10, 0.12);
}
/* VIS Manual p15/p16 Two-Tone Chongya Orange Second Line + Smile Curve */
.hd-line-orange {
  color: var(--orange);
  display: inline-flex;
  align-items: baseline;
}
.hd-underline {
  font-style: normal;
  position: relative;
  display: inline-block;
}
.hd-underline svg {
  position: absolute;
  left: -2%;
  bottom: -6px;
  width: 104%;
  height: 13px;
  overflow: visible;
}

.hero-lead {
  font-size: 16.5px;
  line-height: 1.76;
  color: var(--text);
  max-width: 548px;
  margin-bottom: 22px;
}
.hero-lead strong {
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, transparent 62%, #FFE5CC 62%);
  padding: 0 2px;
}

/* Structured 3-Column Trust & Pass-Rate Bar */
.hero-proof-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 536px;
  padding: 14px 18px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: linear-gradient(180deg, #FFF9F4 0%, #FFF4EA 100%);
  border: 1px solid #F1D7BF;
}
.hero-proof-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hero-proof-item + .hero-proof-item {
  padding-left: 18px;
  border-left: 1px solid #EED6C0;
}
.hero-proof-item strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hero-proof-item strong small {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  margin-left: 1px;
}
.hero-proof-item span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

@keyframes duck-pop {
  0% { transform: scale(1); }
  45% { transform: translateY(-8px) scale(1.03); }
  100% { transform: scale(1); }
}

.speech-card {
  position: absolute;
  z-index: 4;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: 0 10px 26px rgba(20, 14, 10, 0.06);
  border-radius: 14px;
  padding: 12px 16px;
}
.speech-card small {
  display: block;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--orange-deep);
}
.speech-card strong {
  display: block;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-top: 2px;
}
.speech-card span {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}
.speech-primary {
  top: 16px;
  left: 16px;
  max-width: 248px;
}

/* 5 Signature Chongya VIS Cultural Portal Cards (VIS p04 / p13 / p18) */
.hero-portals {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 38px;
}
.portal-pill {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 18px 18px 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFF6ED 100%);
  border: 1.5px solid #F2D6BE;
  box-shadow: 0 8px 22px rgba(254, 105, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.portal-pill::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: var(--orange);
  opacity: 0.85;
  transition: height 180ms var(--ease), opacity 180ms var(--ease);
}
.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  position: relative;
  z-index: 2;
}
.portal-capsule {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: #FFE5CF;
  color: var(--orange-deep);
  font-size: 11.5px;
  font-weight: 600;
}
.portal-go {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid #F0D2B8;
  color: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), border-color 180ms var(--ease);
}
.portal-go .icon {
  width: 13px;
  height: 13px;
}
.portal-pill strong {
  position: relative;
  z-index: 2;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.portal-pill i {
  position: relative;
  z-index: 2;
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  max-width: 72%;
  line-height: 1.45;
}
/* VIS p04/p13 Arch Sun Halo + Peeking Costumed Chongchongya */
.portal-duck-peek {
  position: absolute;
  right: -8px;
  bottom: -10px;
  width: 82px;
  height: 82px;
  border-radius: 50% 50% 0 0;
  background: #FFE6CF;
  display: grid;
  place-items: end center;
  pointer-events: none;
  z-index: 1;
  transition: transform 240ms var(--ease), background-color 240ms var(--ease);
}
.portal-duck-peek img {
  width: 74px;
  height: 74px;
  object-fit: contain;
  transform: translateY(2px);
  transition: transform 240ms var(--ease);
}
/* VIS Manual Page 19 Signature Orange Brand Card for 5th Card */
.portal-pill.is-global-brand {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
  box-shadow: 0 10px 26px rgba(254, 105, 0, 0.22);
}
.portal-pill.is-global-brand::before {
  background: var(--ink);
  opacity: 1;
}
.portal-pill.is-global-brand .portal-capsule {
  background: var(--ink);
  color: var(--white);
}
.portal-pill.is-global-brand .portal-go {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}
.portal-pill.is-global-brand strong {
  color: var(--white);
}
.portal-pill.is-global-brand i {
  color: rgba(255, 255, 255, 0.9);
}
.portal-pill.is-global-brand .portal-duck-peek {
  background: rgba(255, 255, 255, 0.22);
}
@media (hover: hover) and (pointer: fine) {
  .portal-pill:hover {
    transform: translateY(-4px);
    border-color: var(--orange);
    box-shadow: 0 14px 30px rgba(254, 105, 0, 0.14);
  }
  .portal-pill:hover .portal-go {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
  }
  .portal-pill.is-global-brand:hover .portal-go {
    background: var(--ink);
    border-color: var(--ink);
  }
  .portal-pill:hover .portal-duck-peek img {
    transform: translateY(-4px) scale(1.06);
  }
}

/* ==================== Sub-Hero & Sub-Brand Lockup (Editorial Studio Split) ==================== */
.sub-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 46px;
}
.sub-hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 36px;
  align-items: center;
}
.subbrand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  color: var(--ink);
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  margin-bottom: 16px;
  margin-right: 12px;
  vertical-align: middle;
}
.subbrand-duck {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.subbrand-text strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.15;
}
.subbrand-text span {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.sub-hero h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.028em;
  color: var(--ink);
  margin: 12px 0 16px;
}
.sub-hero-lead {
  font-size: 16.5px;
  line-height: 1.78;
  color: var(--text);
  margin-bottom: 28px;
  max-width: 620px;
}
.sub-hero-card {
  position: relative;
  background: var(--panel-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.sub-hero-duck {
  max-height: 230px;
  width: auto;
  object-fit: contain;
}
.sub-hero-links {
  width: 100%;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
}
.sub-hero-links a:hover {
  color: var(--orange-deep);
}

.anchor-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.anchor-pills a {
  padding: 7px 15px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: border-color 150ms var(--ease), color 150ms var(--ease);
}
.anchor-pills a:hover {
  border-color: var(--ink);
}

/* ==================== Sections & Clean Editorial Headings ==================== */
.section {
  padding: 96px 0;
}
.section-paper {
  background: var(--paper);
}
.section-ink {
  background: var(--ink);
  color: var(--white);
}
.section-orange {
  background: var(--paper);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 44px;
}
.section-header h2,
.faq-intro h2,
.authority-col h2,
.journal-col h2,
.brand-story-grid h2,
.timeline-header h2,
.contact-info-col h2,
.filter-bar-row h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.025em;
}
.section-lead {
  margin-top: 12px;
  max-width: 620px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.section-ink .section-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* ==================== Grids & Clean Two-Level Cards (cards.md) ==================== */
.program-bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}
.program-row-three,
.three-col-grid,
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.four-col-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.bento-card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1.5px solid #EFD8C4;
  border-radius: 22px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 8px 24px rgba(20, 14, 10, 0.03);
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
.bento-featured {
  background: linear-gradient(180deg, #FFF9F3 0%, #FFFFFF 100%);
  border-top: 4px solid var(--orange);
}
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover {
    border-color: var(--line-hover);
    box-shadow: 0 12px 30px rgba(20, 14, 10, 0.05);
    transform: translateY(-2px);
  }
}
.bento-orange-card {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
  box-shadow: 0 12px 28px rgba(254, 105, 0, 0.2);
}
.bento-orange-card .vis-pill {
  background: var(--ink);
  color: var(--white);
}
.bento-orange-card h3 {
  color: var(--white);
}
.bento-orange-card p {
  color: rgba(255, 255, 255, 0.8);
}
.bento-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.bento-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 4px 11px;
  border-radius: 999px;
  background: #FFE8D4;
  font-size: 12px;
  font-weight: 600;
  color: var(--orange-deep);
}
.bento-card h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.bento-card h3 small {
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  margin-left: 8px;
}
.bento-tagline {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 6px;
}
.bento-summary,
.bento-card > p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text);
}
.bento-orange-card > p,
.bento-orange-card p {
  color: rgba(255, 255, 255, 0.82);
}
.bento-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.bento-chips span {
  padding: 5px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text);
}
.bento-links {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.bento-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.bento-inline-links {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 14px;
  font-weight: 500;
}
.bento-inline-links a {
  color: var(--white);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}
.bento-inline-links a:hover {
  color: var(--orange);
  border-color: var(--orange);
}

/* ==================== Heartflow Methodology (Dark Contrasting Band) ==================== */
.method-showcase {
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 28px;
  align-items: stretch;
}
.method-steps {
  display: grid;
  gap: 16px;
}
.five-step-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.method-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 26px 28px;
}
.step-index {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--orange);
  margin-bottom: 6px;
}
.method-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}
.method-card p {
  font-size: 15px;
  line-height: 1.68;
  color: rgba(255, 255, 255, 0.76);
}
.method-visual {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}
.method-caption {
  margin-top: 18px;
}
.method-caption strong {
  display: block;
  font-size: 20px;
  font-weight: 500;
}
.method-caption span {
  display: block;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.68);
  margin-top: 4px;
}

/* ==================== Clean Specification & Pricing Tables ==================== */
.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
}
.vis-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 15px;
  min-width: 720px;
}
.vis-table thead tr {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
}
.vis-table th {
  padding: 16px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.vis-table td {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--text);
  vertical-align: middle;
}
.vis-table tbody tr:hover {
  background: #FCFAF8;
}
.vis-table td strong {
  font-weight: 500;
  color: var(--ink);
}
.vis-table td strong a:hover {
  color: var(--orange-deep);
}
.table-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 500;
}
.price-cell {
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==================== Feature, Pain-Point & Pathway Cards ==================== */
.vis-pain-card,
.vis-feature-card,
.region-card,
.pathway-card {
  background: var(--white);
  border: 1.5px solid #EFE0D2;
  border-top: 3.5px solid var(--orange);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(20, 14, 10, 0.025);
  transition: border-color 180ms var(--ease), transform 180ms var(--ease), box-shadow 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .region-card:hover,
  .pathway-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
  }
}
.card-num {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.vis-feature-card > b {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange-deep);
}
.vis-pain-card h3,
.vis-feature-card h3,
.region-card h3,
.pathway-card h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.vis-pain-card p,
.vis-feature-card p,
.region-card p,
.pathway-card p {
  font-size: 15.5px;
  line-height: 1.68;
  color: var(--text);
}
.region-card small,
.pathway-card small {
  font-size: 12.5px;
  color: var(--muted);
}
.region-card .text-arrow {
  margin-top: auto;
  padding-top: 8px;
  width: fit-content;
}
.large-point {
  font-size: 16px !important;
  color: var(--ink) !important;
  font-weight: 500;
}

/* ==================== Faculty Open Portraits ==================== */
.teacher-showcase-grid,
.faculty-full-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.teacher-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .teacher-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
  }
  .teacher-card:hover .teacher-photo img {
    transform: scale(1.025);
  }
}
.teacher-photo {
  position: relative;
  background: var(--panel-warm);
  aspect-ratio: 1.05 / 1;
  overflow: hidden;
}
.teacher-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
  transition: transform 520ms var(--ease);
}
.teacher-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
}
.teacher-idx {
  display: none;
}
.teacher-info {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.teacher-info h3 {
  font-size: 20px;
  font-weight: 500;
}
.teacher-edu {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.teacher-tags {
  font-size: 13px;
  color: var(--orange-deep);
}
.teacher-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.68;
  margin-top: 2px;
}
.teacher-more {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.teacher-more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.teacher-more summary::-webkit-details-marker {
  display: none;
}
.teacher-more p {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text);
}

/* ==================== Course Center SKU Cards (Two-Level Lit Panel) ==================== */
.filter-bar-row,
.faculty-controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}
.pill-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease);
}
.filter-pill:hover {
  border-color: var(--ink);
}
.filter-pill[aria-pressed="true"],
.filter-pill[aria-selected="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.sku-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.sku-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: border-color 180ms var(--ease), box-shadow 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .sku-card:hover {
    border-color: var(--line-hover);
    box-shadow: 0 12px 30px rgba(20, 14, 10, 0.05);
    transform: translateY(-2px);
  }
  .sku-card:hover .sku-duck {
    transform: translateY(-3px) scale(1.04);
  }
}
.sku-cover {
  background: linear-gradient(135deg, #FE6900 0%, #FF8328 100%);
  color: var(--white);
  padding: 20px 22px 16px;
  border-radius: 14px;
}
.sku-cover-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.sku-cat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--white);
  background: var(--ink);
  padding: 3px 10px;
  border-radius: 999px;
}
.sku-badge {
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.22);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 999px;
}
.sku-cover-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sku-level {
  display: block;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}
.sku-sub {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 4px;
}
.sku-duck {
  width: 92px;
  height: 92px;
  object-fit: contain;
  transition: transform 320ms var(--ease);
}
.sku-body {
  padding: 20px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.sku-body h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
}
.sku-body h3 a:hover {
  color: var(--orange-deep);
}
.sku-meta {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--orange-deep);
}
.sku-desc {
  font-size: 14.5px;
  color: var(--text);
}
.sku-points {
  display: grid;
  gap: 6px;
  margin-top: 4px;
}
.sku-points li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.sku-points .icon {
  color: var(--orange);
  margin-top: 4px;
}
.sku-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sku-price small {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.sku-price strong {
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sku-btns {
  display: flex;
  gap: 8px;
}

.course-detail-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.course-detail-specs dt {
  font-size: 12.5px;
  color: var(--muted);
}
.course-detail-specs dd {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.spec-price {
  font-size: 22px !important;
  font-weight: 600 !important;
  color: var(--orange-deep) !important;
}
.syllabus-list {
  display: grid;
  gap: 12px;
}
.syllabus-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  align-items: center;
}
.syllabus-idx {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--orange-deep);
  background: var(--orange-soft);
  padding: 6px 12px;
  border-radius: 6px;
  text-align: center;
}

/* ==================== Interactive Tools (50yin, 40yin, Phrases, Apps) ==================== */
.vis-tool-card,
.app-download-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .vis-tool-card:hover,
  .app-download-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
  }
}
.tool-symbol {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--orange);
  color: var(--white);
  font-size: 26px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(254, 105, 0, 0.24);
}
.tool-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.tool-content h3 {
  font-size: 21px;
  font-weight: 500;
}
.tool-content p {
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.68;
}
.tool-content .btn {
  margin-top: auto;
  width: fit-content;
}

.phrase-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.phrase-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.phrase-foreign {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
}
.phrase-cn {
  font-size: 15px;
  font-weight: 500;
  color: var(--orange-deep);
  margin-top: 6px;
}
.phrase-card small {
  display: block;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 6px;
}
.speak-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  height: 36px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.speak-btn:hover,
.speak-btn.is-speaking {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.kana-status {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 14.5px;
  color: var(--text);
  margin-bottom: 24px;
}
.kana-table-wrap {
  display: grid;
  gap: 10px;
}
.kana-cols-head,
.kana-row {
  display: grid;
  grid-template-columns: 76px repeat(5, 1fr);
  gap: 10px;
  align-items: stretch;
}
.kana-cols-head span {
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 4px;
}
.kana-row-label {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 500;
}
.kana-cell {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  transition: border-color 150ms var(--ease), transform 150ms var(--ease), background-color 150ms var(--ease);
}
.kana-cell:not(.is-empty):hover,
.kana-cell.is-speaking {
  border-color: var(--orange);
  background: var(--panel-warm);
  transform: translateY(-2px);
}
.kana-cell.is-empty {
  background: transparent;
  border-style: dashed;
  opacity: 0.35;
}
.k-hira {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
}
.k-kata {
  font-style: normal;
  font-size: 14px;
  color: var(--muted);
}
.k-roma {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--orange-deep);
}
[data-kana-board][data-mode="hira"] .k-kata { display: none; }
[data-kana-board][data-mode="kata"] .k-hira { display: none; }
[data-kana-board][data-mode="kata"] .k-kata { font-size: 26px; font-weight: 500; color: var(--ink); }

.hangul-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.hangul-card {
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 160ms var(--ease), transform 160ms var(--ease);
}
.hangul-card:hover,
.hangul-card.is-speaking {
  border-color: var(--orange);
  background: var(--panel-warm);
  transform: translateY(-2px);
}
.hangul-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.hangul-top strong {
  font-size: 32px;
  font-weight: 500;
  line-height: 1;
}
.hangul-top span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--orange-deep);
}
.hangul-word {
  font-size: 15.5px;
  font-weight: 500;
}
.hangul-card small {
  font-size: 13px;
  color: var(--muted);
}

/* ==================== Chongchongya Interactive Quiz Theater & Multi-Mode Arena ==================== */
.quiz-hub-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.quiz-hub-duck {
  width: 88px;
  height: 88px;
  object-fit: contain;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.quiz-hub-card:hover .quiz-hub-duck {
  transform: translateY(-6px) rotate(-4deg) scale(1.06);
}

.quiz-arena-section {
  padding-top: 44px;
}
.quiz-stage-wrap {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 28px;
  align-items: stretch;
}

.quiz-mascot-theater {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  transition: background-color 0.3s ease, border-color 0.3s ease;
}
.quiz-mascot-theater[data-mood="correct"],
.quiz-mascot-theater[data-mood="streak"],
.quiz-mascot-theater[data-mood="trophy"] {
  background: linear-gradient(180deg, #fff3e6 0%, #ffe4c8 100%);
}
.quiz-mascot-theater[data-mood="wrong"] {
  background: #fdf4f0;
}

.quiz-confetti {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.theater-hud {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.hud-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.hud-pill.is-hot {
  background: var(--orange);
  color: var(--white);
  animation: pulse-hot 0.55s ease;
}
@keyframes pulse-hot {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}
.hud-sound-btn {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--white);
  font-size: 12px;
  font-weight: 600;
}
.hud-sound-btn:hover {
  border-color: var(--ink);
}

.duck-speech-bubble {
  position: relative;
  z-index: 3;
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 18px 18px 18px 4px;
  box-shadow: none;
  padding: 12px 15px;
}
.duck-speech-bubble strong {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 3px;
}
.duck-speech-bubble p {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--ink);
}

.duck-character-wrap {
  position: relative;
  z-index: 2;
  height: 255px;
  display: grid;
  place-items: center;
  margin: 8px 0;
}
.duck-aura {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 105, 0, 0.24) 0%, rgba(254, 105, 0, 0) 70%);
  transition: transform 0.35s ease, opacity 0.35s ease;
}
.quiz-mascot-theater[data-mood="streak"] .duck-aura,
.quiz-mascot-theater[data-mood="trophy"] .duck-aura {
  transform: scale(1.32);
  background: radial-gradient(circle, rgba(254, 105, 0, 0.44) 0%, rgba(254, 105, 0, 0) 72%);
}
.duck-sprite-img {
  position: relative;
  width: 235px;
  height: 235px;
  object-fit: contain;
  animation: duck-idle-float 3.2s ease-in-out infinite;
  transform-origin: 50% 85%;
}
@keyframes duck-idle-float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-1.5deg); }
}
.quiz-mascot-theater[data-mood="listen"] .duck-sprite-img {
  animation: duck-listen-bob 1.2s ease-in-out infinite;
}
@keyframes duck-listen-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg) scale(1); }
  50% { transform: translateY(-5px) rotate(3deg) scale(1.03); }
}
.quiz-mascot-theater[data-mood="correct"].is-animating .duck-sprite-img {
  animation: duck-cheer-jump 0.68s cubic-bezier(0.22, 1.2, 0.36, 1);
}
@keyframes duck-cheer-jump {
  0% { transform: scale(0.92, 1.06) translateY(8px); }
  38% { transform: scale(1.08, 0.96) translateY(-22px) rotate(-4deg); }
  68% { transform: scale(0.98, 1.02) translateY(3px) rotate(3deg); }
  100% { transform: scale(1) translateY(0) rotate(0); }
}
.quiz-mascot-theater[data-mood="streak"].is-animating .duck-sprite-img {
  animation: duck-super-dash 0.72s cubic-bezier(0.2, 1.15, 0.35, 1);
}
@keyframes duck-super-dash {
  0% { transform: translateX(-18px) scale(0.9); }
  45% { transform: translateX(8px) translateY(-16px) rotate(5deg) scale(1.1); }
  100% { transform: translateX(0) translateY(0) rotate(0) scale(1); }
}
.quiz-mascot-theater[data-mood="wrong"].is-animating .duck-sprite-img {
  animation: duck-dizzy-wobble 0.56s ease;
}
@keyframes duck-dizzy-wobble {
  0%, 100% { transform: translateX(0) rotate(0); }
  20% { transform: translateX(-10px) rotate(-6deg); }
  45% { transform: translateX(9px) rotate(5deg); }
  70% { transform: translateX(-5px) rotate(-3deg); }
}
.quiz-mascot-theater[data-mood="trophy"] .duck-sprite-img {
  animation: duck-trophy-glow 2.2s ease-in-out infinite;
}
@keyframes duck-trophy-glow {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-9px) scale(1.04); }
}

.theater-meta {
  position: relative;
  z-index: 2;
  padding-top: 14px;
  border-top: 1px solid var(--line-strong);
}
.theater-meta h1 {
  font-size: 21px;
  line-height: 1.25;
}
.theater-meta p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 4px 0 8px;
}

/* Right Arena Box */
.quiz-engine-box {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
}
.quiz-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.quiz-step-dots {
  display: flex;
  gap: 8px;
  flex: 1;
}
.step-dot {
  flex: 1;
  max-width: 56px;
  height: 28px;
  border-radius: 8px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}
.step-dot.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-2px);
}
.step-dot.is-done {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}
.step-dot.is-miss {
  border-color: #d97706;
  background: #fef3c7;
  color: #92400e;
}
.quiz-step-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.quiz-intro-card {
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.quiz-intro-card h2 {
  font-size: 28px;
  line-height: 1.25;
}
.quiz-intro-card p {
  color: var(--muted);
  max-width: 560px;
}
.mode-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 8px;
}
.mode-badges li {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
}

.stage-card-enter {
  animation: stage-slide-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes stage-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.stage-badge-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.mode-chip {
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
}
.stage-prompt {
  font-size: 22px;
  line-height: 1.38;
  margin-bottom: 20px;
  outline: none;
}

/* Mode 1: Tap-to-Match Pairs */
.pairs-board {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 16px;
}
.pairs-col {
  display: grid;
  gap: 11px;
}
.pair-tile {
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line-strong);
  background: var(--white);
  text-align: left;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.pair-tile.is-foreign strong {
  font-size: 22px;
}
.pair-tile.is-foreign small {
  font-size: 11.5px;
  color: var(--orange-deep);
}
.pair-tile:hover:not(:disabled) {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.pair-tile.is-selected {
  border-color: var(--orange);
  background: var(--paper);
  box-shadow: none;
}
.pair-tile.is-matched {
  border-color: #16a34a;
  background: #f0fdf4;
  color: #166534;
  opacity: 0.86;
}
.pair-tile.is-shake {
  border-color: #dc2626;
  background: #fef2f2;
  animation: tile-shake 0.38s ease;
}
@keyframes tile-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-7px); }
  75% { transform: translateX(7px); }
}

/* Mode 2: Audio Blindbox */
.listen-stage-box {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.soundwave-bars {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 36px;
}
.soundwave-bars i {
  display: block;
  width: 6px;
  height: 12px;
  border-radius: 999px;
  background: var(--orange);
  transition: height 0.2s ease;
}
.soundwave-bars i:nth-child(odd) {
  height: 22px;
}
.listen-stage-box.is-playing .soundwave-bars i {
  animation: eq-bounce 0.48s ease-in-out infinite alternate;
}
.listen-stage-box.is-playing .soundwave-bars i:nth-child(2n) { animation-delay: 0.12s; }
.listen-stage-box.is-playing .soundwave-bars i:nth-child(3n) { animation-delay: 0.24s; }
@keyframes eq-bounce {
  from { height: 8px; }
  to { height: 34px; }
}
.listen-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.listen-hint {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px dashed var(--orange);
}

/* Mode 3: Word-Tile Builder */
.order-target-note {
  font-size: 14px;
  font-weight: 700;
  color: var(--orange-deep);
  margin-bottom: 10px;
}
.order-answer-tray {
  min-height: 68px;
  padding: 14px;
  border-radius: 16px;
  border: 2px dashed var(--ink);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.order-answer-tray.is-ok {
  border-style: solid;
  border-color: #16a34a;
  background: #f0fdf4;
}
.order-answer-tray.is-err {
  border-style: solid;
  border-color: #dc2626;
  background: #fef2f2;
}
.tray-placeholder {
  font-size: 13.5px;
  color: var(--muted);
}
.order-tile-bank {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.word-chip {
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 18px;
  font-weight: 700;
  transition: transform 0.14s ease, opacity 0.14s ease;
}
.word-chip:hover:not(:disabled) {
  transform: translateY(-2px);
  background: var(--orange-soft);
}
.word-chip.is-placed {
  background: var(--orange);
  color: var(--white);
}
.word-chip.is-used {
  opacity: 0.28;
  box-shadow: none;
  transform: none;
}
.order-actions {
  display: flex;
  gap: 12px;
}

/* Mode 4: Blank Capsule Fill */
.fill-sentence-card {
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 24px;
  text-align: center;
  margin-bottom: 18px;
}
.fill-sentence-main {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.fill-blank-slot {
  display: inline-grid;
  place-items: center;
  min-width: 64px;
  padding: 4px 16px;
  border-radius: 12px;
  border: 2px dashed var(--orange);
  background: var(--white);
  color: var(--orange-deep);
}
.fill-blank-slot.is-ok {
  border-style: solid;
  border-color: #16a34a;
  background: #16a34a;
  color: var(--white);
}
.fill-blank-slot.is-err {
  border-style: solid;
  border-color: #dc2626;
  background: #dc2626;
  color: var(--white);
}
.fill-sentence-sub {
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 10px;
}
.fill-pills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.fill-pill-btn {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  box-shadow: 3px 3px 0 var(--ink);
  font-size: 22px;
  font-weight: 700;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.fill-pill-btn:hover {
  transform: translateY(-2px);
  background: var(--paper);
}
.fill-pill-btn.is-correct {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}
.fill-pill-btn.is-wrong {
  background: #fef2f2;
  border-color: #dc2626;
  color: #dc2626;
}

/* Mode 5: Chat Messenger Roleplay */
.chat-sim-window {
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  overflow: hidden;
  background: var(--paper);
}
.chat-sim-header {
  background: var(--ink);
  color: var(--white);
  padding: 10px 16px;
  font-size: 12.5px;
  font-weight: 700;
}
.chat-sim-stream {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.chat-bubble-row {
  display: flex;
}
.chat-bubble-row.is-user {
  justify-content: flex-end;
}
.chat-bubble {
  max-width: 84%;
  padding: 12px 16px;
  border-radius: 16px 16px 16px 4px;
  background: var(--white);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(20, 14, 10, 0.12);
  animation: stage-slide-in 0.22s ease;
}
.chat-bubble-row.is-user .chat-bubble {
  border-radius: 16px 16px 4px 16px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
}
.chat-bubble.is-err {
  background: #dc2626 !important;
}
.chat-npc-line {
  display: flex;
  align-items: center;
  gap: 8px;
}
.chat-npc-line strong {
  font-size: 16px;
}
.chat-voice-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 12px;
}
.chat-bubble small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.chat-reply-options {
  background: var(--white);
  border-top: 1.5px solid var(--line);
  padding: 14px 18px;
  display: grid;
  gap: 8px;
}
.chat-reply-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.chat-reply-btn {
  text-align: left;
  padding: 11px 15px;
  border-radius: 12px;
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-size: 15px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.chat-reply-btn:hover {
  border-color: var(--orange);
  background: var(--white);
  transform: translateX(4px);
}

/* Tactile Option Cards */
.tactile-options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tactile-options-grid.is-single-col {
  grid-template-columns: 1fr;
}
.tactile-opt-card {
  text-align: left;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid var(--line-strong);
  background: var(--white);
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.15s ease;
}
.tactile-opt-card:hover {
  border-color: var(--orange);
  background: var(--paper);
  transform: translateY(-2px);
}
.opt-key {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  font-size: 12.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.tactile-opt-card strong {
  font-size: 14.5px;
  line-height: 1.4;
}
.tactile-opt-card.is-correct {
  border-color: #16a34a;
  background: #f0fdf4;
}
.tactile-opt-card.is-correct .opt-key {
  background: #16a34a;
  border-color: #16a34a;
  color: var(--white);
}
.tactile-opt-card.is-wrong {
  border-color: #dc2626;
  background: #fef2f2;
}

/* Stage Feedback Banner */
.stage-feedback {
  margin-top: 20px;
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  display: grid;
  gap: 10px;
  animation: stage-slide-in 0.25s ease;
}
.stage-feedback.is-ok {
  border-color: #16a34a;
  background: #f0fdf4;
}
.stage-feedback.is-err {
  border-color: var(--orange);
  background: #fff7ed;
}
.stage-feedback-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.stage-feedback-head strong {
  font-size: 16px;
}
.mini-audio-btn {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  background: var(--white);
  font-size: 12px;
  font-weight: 700;
}
.stage-feedback p {
  font-size: 13.5px;
  color: var(--ink);
}
.stage-feedback .btn {
  width: fit-content;
  margin-top: 4px;
}

/* Result & Learning Style DNA Bars */
.quiz-score {
  font-size: 42px;
  font-weight: 700;
  color: var(--orange-deep);
  margin: 8px 0;
}
.dna-bars {
  margin: 18px 0 22px;
  display: grid;
  gap: 10px;
  background: var(--paper);
  padding: 16px 18px;
  border-radius: 14px;
  border: 1.5px solid var(--line-strong);
}
.dna-row {
  display: grid;
  grid-template-columns: 92px 1fr 44px;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
}
.dna-track {
  height: 10px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-strong);
  overflow: hidden;
}
.dna-track i {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 999px;
}
.missed-box {
  background: var(--paper);
  padding: 16px;
  border-radius: 12px;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.study-sheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
}
.study-sheet summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.sheet-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
  padding-left: 20px;
  list-style: decimal;
}

/* ==================== Authority, Journal, Timeline & About ==================== */
.dual-authority {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.mini-awards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 28px 0 22px;
}
.mini-awards figure,
.honor-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}
.mini-awards img,
.honor-card img {
  width: 100%;
  height: 148px;
  object-fit: contain;
  background: var(--white);
  border-radius: 10px;
  padding: 10px;
}
.mini-awards figcaption,
.honor-card figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  font-weight: 500;
  text-align: center;
}
.honor-card figcaption span {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
  margin-top: 2px;
}

.compact-news-list {
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.compact-news-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.news-pill {
  padding: 2px 9px;
  border-radius: 5px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  flex-shrink: 0;
}
.compact-news-item a {
  flex: 1;
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  transition: color 150ms var(--ease);
}
.compact-news-item a:hover {
  color: var(--orange-deep);
}
.compact-news-item time {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.journal-more {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.article-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.article-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 180ms var(--ease), transform 180ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .article-card:hover {
    border-color: var(--line-hover);
    transform: translateY(-2px);
  }
}
.article-card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}
.article-card-meta span {
  font-weight: 500;
  color: var(--orange-deep);
}
.article-card h3 {
  font-size: 20px;
  font-weight: 500;
}
.article-card h3 a:hover {
  color: var(--orange-deep);
}
.article-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.68;
}

.archive-list {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.archive-list li + li {
  border-top: 1px solid var(--line);
}
.archive-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  font-size: 15.5px;
  font-weight: 500;
}
.archive-list a:hover {
  background: var(--paper);
  color: var(--orange-deep);
}
.archive-list i {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
  flex-shrink: 0;
}

.brand-story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
.corp-facts {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  padding-top: 20px;
}
.corp-facts > div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  font-size: 15px;
}
.corp-facts dt {
  color: var(--muted);
}
.corp-facts dd {
  font-weight: 500;
  color: var(--ink);
}
.brand-photos {
  display: grid;
  gap: 20px;
}
.photo-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.photo-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.photo-card figcaption {
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
}

/* Milestones Track */
.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
}
.timeline-nav {
  display: flex;
  gap: 10px;
}
.timeline-nav button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 17px;
  transition: background-color 150ms var(--ease), color 150ms var(--ease);
}
.timeline-nav button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.milestone-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  scrollbar-width: thin;
}
.milestone-card {
  flex: 0 0 336px;
  scroll-snap-align: start;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.milestone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.milestone-top span {
  font-size: 12px;
  font-weight: 500;
  color: var(--orange-deep);
}
.milestone-top time {
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.milestone-img {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--paper);
}
.milestone-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.milestone-card h3 {
  font-size: 18px;
  font-weight: 500;
}
.milestone-card p {
  font-size: 14.5px;
  color: var(--text);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--white);
  width: min(320px, 100%);
}
.search-box input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 14px;
  outline: none;
}
.search-status {
  font-size: 14px;
  color: var(--orange-deep);
  margin-bottom: 16px;
}
.faculty-dept + .faculty-dept {
  margin-top: 48px;
}
.dept-bar {
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.dept-bar h3 {
  font-size: 24px;
  font-weight: 500;
  display: inline;
  margin-right: 12px;
}
.dept-bar span {
  font-size: 14px;
  color: var(--muted);
}

.contact-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}
.contact-qr-col,
.consult-qrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: center;
}
.contact-qr-col figure,
.consult-qrs figure {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.contact-qr-col img,
.consult-qrs img {
  width: 148px;
  height: 148px;
  object-fit: contain;
}
.contact-qr-col figcaption strong,
.consult-qrs figcaption strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}
.contact-qr-col figcaption span,
.consult-qrs figcaption span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.app-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.app-card-head h3 {
  font-size: 21px;
  font-weight: 500;
}
.app-card-head span {
  font-size: 13px;
  color: var(--muted);
}
.app-qr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--paper);
  padding: 12px;
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.app-qr-row img {
  width: 76px;
  height: 76px;
  background: var(--white);
  padding: 4px;
  border-radius: 8px;
}
.app-btns {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.muted-note {
  font-size: 13px;
  color: var(--muted);
}

/* ==================== Open FAQ Split (sections-library.md: faq) ==================== */
.faq-split {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 64px;
  align-items: start;
}
.faq-intro p {
  font-size: 16px;
  color: var(--muted);
  margin: 14px 0 24px;
  line-height: 1.7;
}
.faq-open-list {
  border-top: 1px solid var(--line-strong);
}
.faq-open-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.faq-open-item h3 {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}
.faq-open-item p {
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--text);
}

/* ==================== Unified Closing & Dark Architectural Footer (footer--dark) ==================== */
.site-footer.footer--dark {
  background: var(--ink);
  color: #F4F1EE;
  padding: 0 0 36px;
}
.closing__cta {
  padding: 72px 0 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.closing__copy {
  max-width: 640px;
}
.closing__copy h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: var(--white);
}
.closing__copy p {
  margin-top: 10px;
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.66);
}
.closing__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  flex-shrink: 0;
}
.footer-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  transition: color 150ms var(--ease), border-color 150ms var(--ease);
}
.footer-secondary-link:hover {
  color: var(--white);
  border-color: var(--white);
}

.footer-main {
  padding: 56px 0 48px;
  display: grid;
  grid-template-columns: 1.55fr repeat(4, 1fr);
  gap: 32px;
}
.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.footer-brand-duck {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.footer-wordmark strong {
  display: block;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.15;
  color: var(--white);
  letter-spacing: -0.02em;
}
.footer-wordmark span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.55);
}
.footer-lede {
  margin-top: 16px;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.72);
  max-width: 300px;
}
.footer-meta-list {
  margin-top: 20px;
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}
.footer-meta-list > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-meta-list dt {
  color: rgba(255, 255, 255, 0.48);
}
.footer-meta-list dd {
  color: rgba(255, 255, 255, 0.84);
}
.footer-meta-list a:hover {
  color: var(--orange);
}

.footer-col h3 {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.50);
  margin-bottom: 16px;
}
.footer-col ul {
  display: grid;
  gap: 11px;
}
.footer-col a {
  position: relative;
  display: inline-block;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.86);
  transition: color 150ms var(--ease);
}
.footer-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover {
    color: var(--white);
  }
  .footer-col a:hover::after {
    transform: scaleX(1);
    transform-origin: left center;
  }
}

.footer-friends {
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
}
.footer-friends a {
  color: rgba(255, 255, 255, 0.68);
}
.footer-friends a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.52);
}
.footer-legal-left,
.footer-legal-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}
.footer-bottom a {
  color: rgba(255, 255, 255, 0.74);
}
.footer-bottom a:hover {
  color: var(--white);
}

/* ==================== Dialogs & Full-Height Mobile Sheet ==================== */
.consult-dialog,
.mobile-drawer {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}
.consult-dialog::backdrop,
.mobile-drawer::backdrop {
  background: rgba(20, 14, 10, 0.52);
}
.consult-card {
  width: min(540px, calc(100vw - 32px));
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(20, 14, 10, 0.18);
  padding: 32px;
}
.consult-head,
.drawer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.consult-head h2 {
  font-size: 22px;
  font-weight: 500;
  margin-top: 6px;
}
.consult-desc {
  font-size: 14.5px;
  color: var(--text);
  margin: 12px 0 18px;
}
.wecom-direct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.wecom-direct-btn {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform 150ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .wecom-direct-btn:hover {
    transform: translateY(-2px);
  }
}
.wecom-direct-btn.is-primary {
  background: var(--orange);
  color: var(--white);
}
.wecom-direct-btn.is-secondary {
  background: var(--ink);
  color: var(--white);
}
.wecom-btn-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
}
.wecom-btn-head span {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.88;
}
.wecom-direct-btn small {
  font-size: 12px;
  opacity: 0.88;
}
.consult-phones {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}
.icon-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--white);
  display: grid;
  place-items: center;
}

/* ==================== Sleek Architectural Right WeCom Dock ==================== */
.float-consult {
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 88;
}
.float-panel {
  width: 210px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 14, 10, 0.10);
  padding: 15px 14px 12px;
  position: relative;
}
.float-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: 14px;
  line-height: 1;
  display: grid;
  place-items: center;
  padding: 0;
}
.float-close:hover {
  background: var(--ink);
  color: var(--white);
}
.float-mascot-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 18px;
  margin-bottom: 12px;
}
.float-duck {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.float-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  color: var(--orange-deep);
}
.float-head-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.25;
}
.float-head-copy small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.float-actions {
  display: grid;
  gap: 8px;
}
.float-wecom-btn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: transform 150ms var(--ease), border-color 150ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .float-wecom-btn:hover {
    transform: translateY(-1px);
    border-color: var(--line-hover);
  }
}
.float-wecom-btn.is-highlight {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.float-btn-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  opacity: 0.92;
}
.float-btn-tag .icon {
  width: 13px;
  height: 13px;
}
.float-wecom-btn strong {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}
.float-wecom-btn i {
  font-style: normal;
  font-size: 11.5px;
  opacity: 0.85;
}
.float-wecom-btn:not(.is-highlight) .float-btn-tag {
  color: var(--orange-deep);
}
.float-foot {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.float-more-link {
  color: var(--muted);
}
.float-more-link:hover {
  color: var(--ink);
}
.float-top-btn {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.float-top-btn .icon {
  width: 13px;
  height: 13px;
}
.float-top-btn:hover {
  color: var(--ink);
}
.float-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px 0 8px;
  background: var(--ink);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(20, 14, 10, 0.16);
  font-size: 13.5px;
  font-weight: 500;
  transition: transform 150ms var(--ease);
}
.float-launcher:hover {
  transform: translateY(-2px);
}
.float-launcher img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--white);
}

/* Mobile Full-Screen Sheet */
.mobile-drawer {
  margin: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
}
.drawer-shell {
  width: 100%;
  height: 100%;
  background: var(--white);
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  overflow-y: auto;
}
.drawer-top strong {
  font-size: 18px;
  font-weight: 600;
}
.drawer-links {
  display: grid;
  gap: 22px;
}
.drawer-section {
  display: grid;
}
.drawer-kicker {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
}
.drawer-section a {
  display: flex;
  align-items: center;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}
.drawer-cta {
  margin-top: auto;
  padding-top: 16px;
  display: grid;
  gap: 12px;
}
.drawer-cta .btn {
  width: 100%;
  height: 48px;
}
.drawer-phone {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

.not-found-box {
  text-align: center;
  max-width: 620px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 48px 0;
}
.not-found-box h1 {
  font-size: 34px;
  font-weight: 500;
}

/* ==================== Cultural Multi-Layer SVG Dioramas & Costume Stages ==================== */
.hero-world-stage {
  position: relative;
  min-height: 448px;
  background: var(--panel-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero-compass-ring {
  transform-origin: 280px 252px;
  animation: orbit-spin 46s linear infinite;
}
@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}
.orbit-landmark {
  pointer-events: auto;
  cursor: pointer;
}
.orbit-landmark:hover circle:first-child {
  stroke-opacity: 0.45;
}
.orbit-landmark.is-lit circle:first-child {
  fill: var(--ink);
  stroke: var(--ink);
  stroke-opacity: 1;
}
.orbit-landmark.is-lit path {
  stroke: #FE6900;
}
.hero-world-stage .stage-duck-btn {
  position: relative;
  z-index: 3;
  background: transparent;
  border: 0;
  padding: 0;
  max-width: 340px;
  margin-top: 28px;
  transition: transform 240ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .hero-world-stage .stage-duck-btn:hover {
    transform: translateY(-4px);
  }
}
.hero-world-stage .stage-duck-img {
  width: 310px;
  height: 310px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(20, 14, 10, 0.14));
  animation: duck-idle-float 3.8s ease-in-out infinite;
}
.hero-world-stage.is-bouncing .stage-duck-img {
  animation: duck-pop 0.5s var(--ease);
}
.hero-lang-switcher {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.hero-lang-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.hero-lang-chip .chip-iso {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}
.hero-lang-chip:hover {
  border-color: var(--ink);
}
.hero-lang-chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.hero-lang-chip.is-active .chip-iso {
  color: var(--orange);
}

/* Sub-Hero Cultural SVG Diorama Frame (Clean Two-Level Panel) */
.cultural-diorama {
  --px: 0px;
  --py: 0px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  position: relative;
}
.diorama-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 4px 0;
  position: relative;
  z-index: 4;
}
.diorama-tag {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.diorama-speak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.diorama-speak-pill i {
  font-style: normal;
  font-size: 12px;
}
.diorama-speak-pill:hover,
.diorama-speak-pill.is-speaking {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.diorama-stage {
  position: relative;
  height: 300px;
  border-radius: var(--radius-md);
  background: var(--panel-warm);
  overflow: hidden;
}
.diorama-svg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.diorama-arch-img {
  position: absolute;
  right: -6px;
  bottom: 2px;
  width: 72%;
  max-height: 278px;
  object-fit: contain;
  z-index: 2;
  transform: translate3d(calc(var(--px) * -0.55), calc(var(--py) * -0.55), 0);
  transition: transform 220ms ease-out;
}
.diorama-mascot-img {
  position: absolute;
  left: 8px;
  bottom: 4px;
  width: 49%;
  max-height: 238px;
  object-fit: contain;
  z-index: 3;
  transform: translate3d(var(--px), var(--py), 0);
  animation: diorama-mascot-breathe 3.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(20, 14, 10, 0.14));
}
@keyframes diorama-mascot-breathe {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

.diorama-caption-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 2px 6px 0;
  font-size: 13px;
}
.diorama-landmarks {
  color: var(--muted);
}
.diorama-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 500;
}
.diorama-links a:hover {
  color: var(--orange-deep);
}

/* Mini Cultural Vignettes inside Bento Cards */
.mini-cultural-scene {
  position: relative;
  width: 152px;
  height: 118px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: var(--panel-warm);
  overflow: hidden;
}
.bento-featured .mini-cultural-scene {
  background: var(--white);
}
.bento-orange-card .mini-cultural-scene {
  background: rgba(255, 255, 255, 0.94);
}
.program-row-three .mini-cultural-scene {
  width: 118px;
  height: 96px;
}
.mini-arch {
  position: absolute;
  right: -8px;
  bottom: -2px;
  width: 78%;
  height: 92%;
  object-fit: contain;
  transition: transform 360ms var(--ease);
}
.mini-mascot {
  position: absolute;
  left: 4px;
  bottom: 2px;
  width: 56%;
  height: 84%;
  object-fit: contain;
  z-index: 2;
  transition: transform 320ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .bento-card:hover .mini-mascot {
    transform: translateY(-3px) scale(1.04);
  }
  .bento-card:hover .mini-arch {
    transform: scale(1.03);
  }
}

/* Heartflow Animated SVG Loop + Scholar Duck */
.heartflow-svg-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 360 / 320;
  display: grid;
  place-items: center;
}
.heartflow-loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hf-orbit {
  transform-origin: 180px 162px;
  animation: orbit-spin 28s linear infinite;
}
.hf-pulse-dot {
  transform-origin: 180px 162px;
  animation: orbit-spin 7s linear infinite;
}
.hf-prof-duck {
  position: relative;
  z-index: 2;
  width: 196px;
  height: 196px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.28));
  animation: duck-idle-float 3.4s ease-in-out infinite;
}

/* Country-Specific SVG Vector Motion Choreography */
.svg-sun-pulse {
  transform-origin: 350px 195px;
  animation: sun-breathe 5.5s ease-in-out infinite;
}
@keyframes sun-breathe {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.05); opacity: 1; }
}
.svg-lantern-sway {
  transform-origin: 486px 36px;
  animation: lantern-pendulum 3.8s ease-in-out infinite;
}
@keyframes lantern-pendulum {
  0%, 100% { transform: translate(486px, 36px) rotate(-5deg); }
  50% { transform: translate(486px, 36px) rotate(5deg); }
}
.svg-shinkansen {
  animation: shinkansen-run 7.5s linear infinite;
}
@keyframes shinkansen-run {
  0% { transform: translate(-90px, 350px); opacity: 0; }
  10% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translate(540px, 350px); opacity: 0; }
}
.svg-sakura-field .petal,
.svg-ginkgo-field .petal {
  animation: petal-fall 6.5s linear infinite;
}
.petal.p1 { animation-duration: 6.2s; animation-delay: 0s; --sx: 90px; --ex: 40px; }
.petal.p2 { animation-duration: 7.4s; animation-delay: -1.8s; --sx: 210px; --ex: 145px; }
.petal.p3 { animation-duration: 5.8s; animation-delay: -3.2s; --sx: 330px; --ex: 265px; }
.petal.p4 { animation-duration: 8.1s; animation-delay: -0.9s; --sx: 440px; --ex: 370px; }
.petal.p5 { animation-duration: 6.9s; animation-delay: -4.4s; --sx: 150px; --ex: 95px; }
.petal.p6 { animation-duration: 7.2s; animation-delay: -2.6s; --sx: 500px; --ex: 420px; }
@keyframes petal-fall {
  0% { transform: translate(var(--sx, 180px), -18px) rotate(0deg); opacity: 0; }
  12% { opacity: 0.92; }
  85% { opacity: 0.88; }
  100% { transform: translate(var(--ex, 110px), 360px) rotate(260deg); opacity: 0; }
}
.svg-beacon-ring {
  animation: tower-ping 3.2s cubic-bezier(0.16, 0.8, 0.3, 1) infinite;
}
.svg-beacon-ring.r2 {
  animation-delay: 1.6s;
}
@keyframes tower-ping {
  0% { r: 6px; opacity: 0.95; }
  100% { r: 44px; opacity: 0; }
}
.svg-cloud-drift {
  animation: cloud-slide 9s ease-in-out infinite alternate;
}
@keyframes cloud-slide {
  from { transform: translateX(-14px); }
  to { transform: translateX(26px); }
}
.svg-gear-cw {
  animation: orbit-spin 16s linear infinite;
}
.svg-gear-ccw {
  animation: orbit-spin 11s linear infinite reverse;
}
.svg-eiffel-beam {
  transform-origin: 352px 62px;
  animation: beam-sweep 5.4s ease-in-out infinite alternate;
}
@keyframes beam-sweep {
  from { transform: translate(352px, 62px) rotate(-12deg); }
  to { transform: translate(352px, 62px) rotate(16deg); }
}
.twinkle {
  animation: star-twinkle 2.4s ease-in-out infinite alternate;
}
.twinkle.t2 { animation-delay: 0.8s; }
.twinkle.t3 { animation-delay: 1.5s; }
@keyframes star-twinkle {
  from { opacity: 0.25; transform: scale(0.75); }
  to { opacity: 1; transform: scale(1.18); }
}
.svg-notes-float .note {
  animation: note-bob 3.2s ease-in-out infinite alternate;
}
.svg-notes-float .n2 { animation-delay: 1.1s; }
@keyframes note-bob {
  from { transform: translateY(4px); opacity: 0.65; }
  to { transform: translateY(-10px); opacity: 1; }
}
.svg-flight-dash {
  animation: dash-flow 12s linear infinite;
}
@keyframes dash-flow {
  to { stroke-dashoffset: -140; }
}
.svg-plane-fly {
  offset-path: path("M64 282 C 155 78, 405 56, 512 224");
  offset-rotate: auto;
  animation: plane-journey 6.5s ease-in-out infinite;
}
@keyframes plane-journey {
  0% { offset-distance: 0%; opacity: 0; }
  10% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* ==================== Service Feedback & Complaint Guide (/feedback) ==================== */
.feedback-dual-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 28px;
  align-items: stretch;
}
.feedback-guide-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feedback-guide-card h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.feedback-guide-card p {
  font-size: 16px;
  color: var(--text);
  line-height: 1.78;
}
.feedback-guide-card strong {
  font-weight: 600;
  color: var(--ink);
}
.feedback-hotline-section {
  background: var(--paper);
}
.feedback-bullet-list {
  display: grid;
  gap: 10px;
  margin: 4px 0;
}
.feedback-bullet-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15.5px;
  color: var(--text);
  line-height: 1.68;
}
.feedback-bullet-list .icon {
  color: var(--orange);
  margin-top: 5px;
}
.hotline-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.hotline-card {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.hotline-label {
  display: block;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 4px;
}
.hotline-num {
  display: block;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.hotline-card .btn {
  width: 100%;
}
.hotline-prep-tip {
  margin-top: 4px;
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 14px !important;
  color: var(--muted) !important;
}

.feedback-step-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback-step-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-deep);
}
.feedback-step-card h3 {
  font-size: 20px;
  font-weight: 500;
}
.feedback-step-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.72;
}

.feedback-note-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feedback-note-card h3 {
  font-size: 18.5px;
  font-weight: 500;
  color: var(--ink);
}
.feedback-note-card p {
  font-size: 15px;
  color: var(--text);
  line-height: 1.75;
}

/* ==================== Responsive Breakpoints (1180 / 920 / 640) ==================== */
@media (max-width: 1180px) {
  .container {
    width: calc(100% - 48px);
  }
  .primary-nav,
  .nav-plain-action {
    display: none;
  }
  .menu-trigger {
    display: inline-flex;
  }
  .five-step-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .teacher-showcase-grid,
  .faculty-full-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .sku-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .sub-hero-grid,
  .program-bento,
  .method-showcase,
  .dual-authority,
  .brand-story-grid,
  .faq-split,
  .contact-panel,
  .quiz-stage-wrap,
  .feedback-dual-grid {
    grid-template-columns: 1fr;
  }
  .closing__cta {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .hero-portals {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px 0;
  }
  .portal-pill {
    padding: 8px 0;
  }
  .portal-pill + .portal-pill {
    padding-left: 0;
    border-left: 0;
  }
  .program-row-three,
  .three-col-grid,
  .tools-grid,
  .phrase-cards,
  .four-col-grid,
  .hangul-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-main {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --nav-h: 60px;
  }
  .container {
    width: calc(100% - 48px);
  }
  .brand-logo img {
    width: 132px;
  }
  .header-actions .btn-primary {
    display: none;
  }
  .brand-hero,
  .sub-hero {
    padding: 32px 0 36px;
  }
  .hero-cta-group .btn {
    width: 100%;
  }
  .hero-portals,
  .program-row-three,
  .three-col-grid,
  .tools-grid,
  .four-col-grid,
  .two-col-grid,
  .sku-grid,
  .phrase-cards,
  .article-cards-grid,
  .five-step-grid,
  .hangul-grid,
  .footer-main,
  .consult-qrs,
  .wecom-direct-grid,
  .contact-qr-col,
  .course-detail-specs,
  .syllabus-item,
  .pairs-board,
  .tactile-options-grid,
  .hotline-cards-grid {
    grid-template-columns: 1fr;
  }
  .fill-pills-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-card,
  .vis-tool-card,
  .feedback-guide-card,
  .contact-panel {
    padding: 24px;
  }
  .quiz-engine-box {
    padding: 20px 18px;
  }
  .duck-character-wrap {
    height: 190px;
  }
  .duck-sprite-img {
    width: 175px;
    height: 175px;
  }
  .teacher-showcase-grid,
  .faculty-full-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .teacher-info {
    padding: 14px;
  }
  .teacher-info h3 {
    font-size: 17px;
  }
  .section {
    padding: 64px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }
  .kana-cols-head,
  .kana-row {
    grid-template-columns: 52px repeat(5, 1fr);
    gap: 6px;
  }
  .k-hira {
    font-size: 20px;
  }
  .diorama-stage {
    height: 240px;
  }
  .mini-cultural-scene {
    width: 120px;
    height: 96px;
  }
  .float-consult {
    right: 14px;
    bottom: 16px;
  }
}


/* ==========================================================================
   Mascot-Driven Dual-Card Cultural Voice Stage (3D Flip-Refresh Choreography)
   - Zero bottom breakdown dock, zero bottom switcher bar
   - Cards are pure display (pointer-events: none); Mascot is sole click actor!
   ========================================================================== */
.open-diorama-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.open-scene-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--muted);
}
.open-scene-links a:hover {
  color: var(--orange-deep);
}

.mascot-voice-stage {
  --px: 0px;
  --py: 0px;
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.voice-stage-viewport {
  position: relative;
  width: 100%;
  min-height: 432px;
}
.mascot-voice-stage.is-subpage .voice-stage-viewport {
  min-height: 416px;
}

.voice-stage-panel {
  position: relative;
  width: 100%;
  min-height: 432px;
  perspective: 900px;
  animation: voice-panel-in 260ms var(--ease);
}
.mascot-voice-stage.is-subpage .voice-stage-panel {
  min-height: 416px;
}
@keyframes voice-panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Open-Air Radial Glow + Precision Dashed Orbit SVG */
.voice-stage-orbit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.voice-orbit-spin {
  transform-origin: 320px 236px;
  animation: orbit-turn 26s linear infinite;
}
@keyframes orbit-turn {
  to { transform: rotate(360deg); }
}

/* Sculptural Native-Script Backdrop Watermark */
.voice-stage-glyph {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -52%) translate3d(calc(var(--px) * -0.5), calc(var(--py) * -0.5), 0);
  font-size: clamp(200px, 22vw, 276px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.05em;
  color: rgba(254, 105, 0, 0.085);
  user-select: none;
  pointer-events: none;
  z-index: 1;
  transition: transform 220ms ease-out;
}

/* Centerpiece 3D Vinyl/Plush Chongchongya (Sole Interactive Trigger!) */
.voice-mascot-center {
  position: absolute;
  top: 54%;
  left: 50%;
  transform: translate(-50%, -50%) translate3d(calc(var(--px) * 0.7), calc(var(--py) * 0.7), 0);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 200ms ease-out;
}
.voice-mascot-trigger {
  position: relative;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  outline: none;
}
.voice-mascot-trigger:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 6px;
  border-radius: 50%;
}

/* Acoustic Ripple Burst Behind Mascot When Clicked */
.mascot-pulse-ring {
  position: absolute;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  opacity: 0;
  pointer-events: none;
}
.voice-mascot-trigger.is-talk-left .mascot-pulse-ring,
.voice-mascot-trigger.is-talk-right .mascot-pulse-ring,
.voice-mascot-trigger.is-refresh-hop .mascot-pulse-ring {
  animation: mascot-ring-out 680ms cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes mascot-ring-out {
  0% { transform: scale(0.72); opacity: 0.72; }
  100% { transform: scale(1.48); opacity: 0; }
}

.voice-mascot-3d {
  width: clamp(256px, 24vw, 326px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(20, 14, 10, 0.15));
  animation: mascot-breathe 4.4s ease-in-out infinite alternate;
  transition: transform 220ms var(--ease), filter 220ms var(--ease);
}
.voice-mascot-trigger:hover .voice-mascot-3d {
  filter: drop-shadow(0 24px 34px rgba(254, 105, 0, 0.2));
  transform: translateY(-5px) scale(1.025);
}
/*Mascot Reaction Kinematics on Click & Card Refresh */
.voice-mascot-trigger.is-talk-left .voice-mascot-3d {
  animation: mascot-nod-left 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.voice-mascot-trigger.is-talk-right .voice-mascot-3d {
  animation: mascot-nod-right 520ms cubic-bezier(0.22, 1, 0.36, 1);
}
.voice-mascot-trigger.is-refresh-hop .voice-mascot-3d {
  animation: mascot-celebrate-hop 620ms cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes mascot-breathe {
  from { transform: translateY(0); }
  to { transform: translateY(-7px); }
}
@keyframes mascot-nod-left {
  0% { transform: scale(1); }
  32% { transform: translateY(6px) scale(1.06, 0.93); }
  68% { transform: translateY(-12px) rotate(-6deg) scale(0.98, 1.05); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes mascot-nod-right {
  0% { transform: scale(1); }
  32% { transform: translateY(6px) scale(1.06, 0.93); }
  68% { transform: translateY(-12px) rotate(6deg) scale(0.98, 1.05); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}
@keyframes mascot-celebrate-hop {
  0% { transform: scale(1); }
  25% { transform: translateY(7px) scale(1.08, 0.91); }
  55% { transform: translateY(-18px) rotate(-5deg) scale(1.04); }
  78% { transform: translateY(-10px) rotate(5deg) scale(1.03); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

.voice-mascot-shadow {
  width: 156px;
  height: 18px;
  margin-top: -8px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(20, 14, 10, 0.18) 0%, rgba(20, 14, 10, 0) 100%);
}

/* Subtle Mascot Prompt Pill Underneath Shadow */
.mascot-hint-pill {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #EFE0D1;
  box-shadow: 0 6px 16px rgba(20, 14, 10, 0.05);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  pointer-events: none;
  white-space: nowrap;
}
.mascot-hint-pill .hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(254, 105, 0, 0.2);
}

/* Live 5-Bar Acoustic Soundwave Equalizer */
.voice-eq {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 11px;
}
.voice-eq i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  transition: height 150ms ease;
}
.voice-eq i:nth-child(2),
.voice-eq i:nth-child(4) {
  height: 7px;
}
.voice-eq i:nth-child(3) {
  height: 10px;
}
.voice-float-card.is-speaking .voice-eq i {
  animation: voice-wave 0.42s ease-in-out infinite alternate;
}
.voice-float-card.is-speaking .voice-eq i:nth-child(2n) {
  animation-delay: 0.13s;
}
.voice-float-card.is-speaking .voice-eq i:nth-child(3n) {
  animation-delay: 0.25s;
}
.voice-float-card.is-read .voice-eq {
  display: none;
}
@keyframes voice-wave {
  from { height: 3px; }
  to { height: 11px; }
}

/* Display-Only Floating Cultural Cards (Non-Clickable, Driven by Mascot!) */
.voice-float-card {
  position: absolute;
  z-index: 4;
  width: 226px;
  text-align: left;
  padding: 13px 15px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1.5px solid #ECD2B8;
  box-shadow: 0 12px 28px rgba(20, 14, 10, 0.07), 0 2px 6px rgba(254, 105, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 240ms var(--ease), border-color 200ms var(--ease), box-shadow 220ms var(--ease), background-color 200ms var(--ease);
}
/* Shimmer Sweep Highlight When New Card Pair Refreshes In */
.voice-float-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(254, 105, 0, 0.16) 50%, transparent 80%);
  transform: translateX(-120%);
  pointer-events: none;
}
.voice-float-card.is-left {
  top: 10px;
  left: -26px;
  transform: translate3d(calc(var(--px) * -0.85), calc(var(--py) * -0.75), 0);
}
.voice-float-card.is-right {
  top: 22px;
  right: -22px;
  transform: translate3d(calc(var(--px) * 0.85), calc(var(--py) * -0.7), 0);
}

/* Speaking State (Active Mascot Reading) */
.voice-float-card.is-speaking {
  border-color: var(--orange);
  background: #FFFFFF;
  box-shadow: 0 18px 36px rgba(254, 105, 0, 0.18), 0 0 0 3px rgba(254, 105, 0, 0.12);
}
.voice-float-card.is-left.is-speaking {
  transform: translate3d(calc(var(--px) * -0.85), calc(var(--py) * -0.75 - 6px), 0) scale(1.03);
}
.voice-float-card.is-right.is-speaking {
  transform: translate3d(calc(var(--px) * 0.85), calc(var(--py) * -0.7 - 6px), 0) scale(1.03);
}

/* Completed Read State (Before Pair Refresh) */
.voice-float-card.is-read {
  border-color: #DFC3A8;
  background: #FFFDFB;
}

/* 3D Flip-Glide Refresh Exit & Spring Entrance Choreography */
.voice-float-card.is-refresh-out {
  animation: card-deal-out 260ms cubic-bezier(0.4, 0, 1, 1) forwards;
}
.voice-float-card.is-right.is-refresh-out {
  animation-delay: 55ms;
}
.voice-float-card.is-refresh-in {
  animation: card-deal-in 480ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.voice-float-card.is-right.is-refresh-in {
  animation-delay: 85ms;
}
.voice-float-card.is-refresh-in::after {
  animation: card-shimmer-sweep 620ms ease-out 80ms forwards;
}

@keyframes card-deal-out {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
  100% {
    opacity: 0;
    transform: translateY(-22px) scale(0.88) rotateX(28deg);
  }
}
@keyframes card-deal-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.86) rotateX(-26deg);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.025) rotateX(4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
  }
}
@keyframes card-shimmer-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(130%); }
}

.vfc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 2px;
}
.vfc-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--orange-deep);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.vfc-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #F7EFE7;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background-color 180ms var(--ease), color 180ms var(--ease);
}
.vfc-status b {
  font-weight: 600;
}
.voice-float-card.is-speaking .vfc-status {
  background: var(--orange);
  color: var(--white);
}
.voice-float-card.is-read .vfc-status {
  background: #FFEAD7;
  color: var(--orange-deep);
}
.vfc-phrase {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.28;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.vfc-romaji {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.vfc-meaning {
  font-size: 11.5px;
  line-height: 1.48;
  color: var(--text);
  margin-top: 2px;
}

/* Responsive Layout for Narrower Columns, Tablets & Mobile */
@media (max-width: 1240px) {
  .voice-float-card {
    width: 194px;
    padding: 11px 13px;
  }
  .vfc-phrase {
    font-size: 16.5px;
  }
}

@media (max-width: 920px) {
  .hero-portals {
    grid-template-columns: repeat(2, 1fr);
  }
  .portal-pill.is-global-brand {
    grid-column: span 2;
  }
  .voice-float-card.is-left {
    left: 0;
  }
  .voice-float-card.is-right {
    right: 0;
  }
}

@media (max-width: 640px) {
  .hero-kicker-row {
    border-radius: 14px;
    padding: 8px 12px;
    gap: 6px;
  }
  .hero-portals {
    grid-template-columns: 1fr;
  }
  .portal-pill.is-global-brand {
    grid-column: auto;
  }
  .hero-proof-bar {
    padding: 12px 12px;
  }
  .hero-proof-item + .hero-proof-item {
    padding-left: 10px;
  }
  .hero-proof-item strong {
    font-size: 20px;
  }
  .hd-vis-badge {
    font-size: 11.5px;
    padding: 4px 10px;
  }
  .voice-stage-viewport,
  .mascot-voice-stage.is-subpage .voice-stage-viewport,
  .voice-stage-panel,
  .mascot-voice-stage.is-subpage .voice-stage-panel {
    min-height: 0;
  }
  .voice-stage-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 8px;
  }
  .voice-mascot-center {
    position: relative;
    top: auto;
    left: auto;
    transform: none !important;
    grid-column: span 2;
    order: -1;
    margin-bottom: 6px;
  }
  .voice-mascot-3d {
    width: 220px;
  }
  .voice-stage-glyph {
    top: 112px;
    font-size: 176px;
  }
  .voice-float-card,
  .voice-float-card.is-left,
  .voice-float-card.is-right {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: 100%;
    transform: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
