/*
 * Visual system follows chaos-xxl/zelda-hyrule-ui skill v0.2.x.
 * Visual assets are used as non-content decoration.
 */

@font-face {
  font-family: 'Hylia Serif';
  src: url('./HyliaSerif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --zelda-font-title: 'Hylia Serif', 'Cinzel', Georgia, serif;
  --zelda-font-title-zh-cn: 'Hylia Serif', 'Songti SC', 'STSong',
    'Noto Serif CJK SC', 'Source Han Serif SC', serif;
  --zelda-font-title-zh-hant: 'Hylia Serif', 'Songti TC', 'Songti SC',
    'STSong', 'Noto Serif CJK TC', 'Source Han Serif TC', serif;
  --zelda-font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'PingFang SC',
    'Microsoft YaHei', sans-serif;

  --zelda-tan: #e2ded3;
  --zelda-dark-bg: #66645d;
  --zelda-text-main: #e9e1d1;
  --zelda-text-muted: rgba(233, 225, 209, 0.6);
  --zelda-text-faint: rgba(233, 225, 209, 0.4);
  --zelda-text-yellow: #e2d146;
  --zelda-text-green: #6fd49c;

  --zelda-sheikah-blue: #3cd3fc;
  --zelda-sheikah-blue-dark: #0a8dd7;
  --zelda-sheikah-blue-glow: #4fc0ff;
  --zelda-sheikah-yellow: #ffe460;
  --zelda-effect-orange: #fcc413;

  --zelda-bg-card: rgba(0, 0, 0, 0.6);
  --zelda-bg-card-strong: rgba(0, 0, 0, 0.76);
  --zelda-bg-sheikah: rgba(10, 20, 40, 0.8);
  --zelda-border: rgba(226, 222, 211, 0.3);
  --zelda-border-active: rgba(226, 222, 211, 0.72);
  --zelda-border-sheikah: rgba(60, 211, 252, 0.4);

  --zelda-glow-blue: 0 0 8px #4fc0ff;
  --zelda-glow-sheikah: 0 0 10px #4fc0ff, 0 1px 11px #0a8dd7;
  --zelda-glow-golden:
    0 0 6px #ffb800,
    0 0 8px #ffdb7e,
    0 0 10px #ffb904;
  --zelda-glow-hover:
    inset 0 0 7px 3px rgba(246, 231, 152, 0.5),
    0 0 12px 1px rgba(227, 227, 200, 0.8);
  --zelda-shadow-dark: 0 0 11px rgba(0, 0, 0, 0.8);

  --zelda-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --zelda-duration: 0.25s;

  --page-gutter: clamp(1.25rem, 5vw, 5rem);
  --content-width: 1180px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  background: var(--zelda-dark-bg);
}

body {
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--zelda-text-main);
  font-family: var(--zelda-font-body);
  font-size: 16px;
  font-weight: 500;
  font-style: italic;
  line-height: 1.7;
  background:
    linear-gradient(rgba(7, 14, 24, 0.9), rgba(34, 34, 30, 0.93)),
    url('./sheikah-bg-dark.png') top center / 760px auto repeat,
    var(--zelda-dark-bg);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.08;
  mix-blend-mode: overlay;
  filter: blur(0.5px);
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 1px,
    rgba(60, 211, 252, 0.3) 1px,
    rgba(60, 211, 252, 0.3) 2px
  );
  animation: hyrule-scan-move 8s linear infinite;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 0, rgba(60, 211, 252, 0.12), transparent 38rem),
    radial-gradient(circle at 15% 65%, rgba(252, 196, 19, 0.04), transparent 30rem);
}

body.lang-en .zh,
body.lang-en .zh-cn,
body.lang-zh .en,
body.lang-zh .zh-cn,
body.lang-zh-cn .en,
body.lang-zh-cn .zh {
  display: none;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--zelda-sheikah-blue);
  outline-offset: 2px;
}

h1,
h2,
h3,
.pillar-title,
.fl-title,
.nav-logo {
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-style: normal;
  font-weight: 400;
}

/* Fixed HUD navigation */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 var(--page-gutter);
  background: rgba(8, 14, 22, 0.9);
  border-bottom: 1px solid rgba(60, 211, 252, 0.24);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

header::before,
header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  height: 1px;
  pointer-events: none;
}

header::before {
  left: 0;
  width: 18%;
  background: linear-gradient(90deg, transparent, var(--zelda-sheikah-blue));
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.4);
}

header::after {
  right: 0;
  width: 18%;
  background: linear-gradient(90deg, var(--zelda-sheikah-blue), transparent);
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.4);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  color: var(--zelda-tan);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
  line-height: 1;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(226, 222, 211, 0.28);
}

.logo-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--zelda-sheikah-blue);
  font-family: var(--zelda-font-body);
  font-size: 0.68rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.05em;
  background:
    linear-gradient(135deg, transparent 49%, rgba(60, 211, 252, 0.18) 50%, transparent 51%),
    var(--zelda-bg-sheikah);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--zelda-glow-blue);
}

.logo-mark::before {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--zelda-border-sheikah);
  border-radius: 2px;
  pointer-events: none;
}

.logo-mark::after {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(60, 211, 252, 0.32);
  transform: rotate(45deg);
  pointer-events: none;
}

.nav-right,
nav ul,
.lang-toggle {
  display: flex;
  align-items: center;
}

.nav-right {
  gap: clamp(0.8rem, 2.5vw, 2rem);
}

nav ul {
  gap: clamp(0.8rem, 2vw, 1.8rem);
  list-style: none;
}

nav a,
.footer-right a {
  color: var(--zelda-text-muted);
  font-size: 0.84rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-decoration: none;
  transition:
    color var(--zelda-duration) var(--zelda-ease),
    text-shadow var(--zelda-duration) var(--zelda-ease);
}

nav a:hover,
.footer-right a:hover {
  color: var(--zelda-sheikah-blue);
  text-shadow: 0 0 8px var(--zelda-sheikah-blue-glow);
}

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.42rem 1.15rem;
  overflow: hidden;
  color: var(--zelda-sheikah-blue) !important;
  background: var(--zelda-bg-sheikah);
  border: 0;
  border-radius: 4px;
  box-shadow: inset 0 0 14px rgba(60, 211, 252, 0.08);
}

.nav-cta::after,
.lang-toggle::after,
.btn::after,
.hero-badge::after,
.hero-stats::after,
.vision::after,
.vision-card::after,
.pillar-card::after,
.approach-visual::after,
.flow-step::after,
.content-card::after,
.cta-band::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--zelda-border);
  border-radius: 2px;
  pointer-events: none;
  transition: border-color var(--zelda-duration) var(--zelda-ease);
}

.nav-cta:hover {
  box-shadow: var(--zelda-glow-sheikah);
}

.nav-cta:hover::after {
  border-color: var(--zelda-sheikah-blue);
}

.lang-toggle {
  position: relative;
  overflow: hidden;
  background: var(--zelda-bg-card);
  border: 0;
  border-radius: 4px;
}

.lang-btn {
  position: relative;
  z-index: 1;
  min-height: 36px;
  padding: 0.35rem 0.66rem;
  color: var(--zelda-text-muted);
  font-family: var(--zelda-font-body);
  font-size: 0.75rem;
  font-style: italic;
  font-weight: 700;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color var(--zelda-duration) var(--zelda-ease),
    background var(--zelda-duration) var(--zelda-ease);
}

.lang-btn:hover {
  color: var(--zelda-text-main);
}

.lang-btn.active {
  color: var(--zelda-sheikah-blue);
  background: rgba(60, 211, 252, 0.12);
  text-shadow: 0 0 8px var(--zelda-sheikah-blue-glow);
}

.lang-divider {
  position: relative;
  z-index: 1;
  width: 1px;
  height: 17px;
  background: var(--zelda-border);
}

/* Title screen */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 9.5rem var(--page-gutter) 5rem;
  text-align: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(60, 211, 252, 0.13), transparent 34rem),
    linear-gradient(180deg, rgba(10, 20, 40, 0.6), rgba(0, 0, 0, 0.22));
  border-bottom: 1px solid rgba(60, 211, 252, 0.12);
}

.hero::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: 5%;
  right: max(-9rem, -8vw);
  width: min(32vw, 430px);
  height: 92%;
  opacity: 0.35;
  pointer-events: none;
  background: url('./illustration-sword.svg') center / contain no-repeat;
  mix-blend-mode: screen;
  filter: saturate(0.8);
}

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

.hero-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  margin-bottom: 2rem;
  padding: 0.48rem 1.25rem;
  overflow: hidden;
  color: var(--zelda-sheikah-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--zelda-bg-sheikah);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--zelda-glow-sheikah);
  text-shadow: 0 0 8px var(--zelda-sheikah-blue-glow);
  animation: hyrule-slide-up 0.65s var(--zelda-ease) both;
}

.hero-badge::after {
  border-color: var(--zelda-border-sheikah);
}

.hero h1 {
  max-width: 980px;
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-size: clamp(3.3rem, 7vw, 6.8rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 0.98;
  text-wrap: balance;
  text-shadow:
    0 0 20px rgba(0, 0, 0, 0.9),
    0 0 14px rgba(226, 222, 211, 0.25);
  animation: hyrule-slide-up 0.7s 0.08s var(--zelda-ease) both;
}

.hero h1 .gradient-text {
  color: var(--zelda-sheikah-yellow);
  background: none;
  -webkit-text-fill-color: currentColor;
  filter: drop-shadow(0 0 9px rgba(252, 196, 19, 0.44));
}

.hero-sub {
  max-width: 670px;
  margin-top: 1.7rem;
  color: rgba(233, 225, 209, 0.74);
  font-size: clamp(1rem, 1.8vw, 1.16rem);
  line-height: 1.75;
  text-wrap: balance;
  animation: hyrule-slide-up 0.7s 0.16s var(--zelda-ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.5rem;
  animation: hyrule-slide-up 0.7s 0.24s var(--zelda-ease) both;
}

.btn {
  position: relative;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  padding: 0.82rem 1.8rem;
  color: var(--zelda-text-main);
  font-family: var(--zelda-font-body);
  font-size: 0.94rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  background: var(--zelda-bg-card);
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  transition:
    color var(--zelda-duration) var(--zelda-ease),
    transform var(--zelda-duration) var(--zelda-ease),
    box-shadow var(--zelda-duration) var(--zelda-ease);
}

.btn-primary {
  color: var(--zelda-sheikah-blue);
  background: var(--zelda-bg-sheikah);
  box-shadow: var(--zelda-glow-sheikah);
}

.btn-primary::after {
  border-color: var(--zelda-border-sheikah);
}

.btn-primary:hover {
  color: var(--zelda-text-main);
  box-shadow:
    0 0 12px var(--zelda-sheikah-blue-glow),
    0 1px 20px var(--zelda-sheikah-blue-dark),
    inset 0 0 18px rgba(60, 211, 252, 0.14);
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--zelda-effect-orange);
  background: rgba(0, 0, 0, 0.62);
  box-shadow: inset 0 0 12px rgba(252, 196, 19, 0.05);
}

.btn-outline::after {
  border-color: rgba(252, 196, 19, 0.42);
}

.btn-outline:hover {
  color: var(--zelda-sheikah-yellow);
  box-shadow: var(--zelda-glow-golden);
  transform: translateY(-2px);
}

.btn:hover::after {
  border-color: var(--zelda-border-active);
}

.btn:active {
  transform: scale(0.98);
}

.hero-stats {
  position: relative;
  width: min(100%, 860px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 4.5rem;
  overflow: hidden;
  background: var(--zelda-bg-card-strong);
  border: 0;
  border-radius: 4px;
  box-shadow: var(--zelda-shadow-dark);
  animation: hyrule-slide-up 0.7s 0.32s var(--zelda-ease) both;
}

.hero-stats::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zelda-sheikah-blue), transparent);
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.5);
}

.stat {
  position: relative;
  min-width: 0;
  padding: 1.35rem 1rem 1.2rem;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid rgba(226, 222, 211, 0.14);
}

.stat-num {
  color: var(--zelda-text-main);
  font-family: var(--zelda-font-body);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-style: normal;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 9px rgba(79, 192, 255, 0.7);
}

.stat-label {
  margin-top: 0.48rem;
  color: var(--zelda-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}

/* Shared section composition */
section {
  position: relative;
  isolation: isolate;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: clamp(5.5rem, 10vw, 8rem) var(--page-gutter);
}

section > * {
  position: relative;
  z-index: 1;
}

section::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: var(--page-gutter);
  right: var(--page-gutter);
  height: 28px;
  opacity: 0.64;
  pointer-events: none;
  background:
    url('./text-divider-ornament.svg') left center / auto 24px no-repeat,
    url('./text-divider-ornament.svg') right center / auto 24px no-repeat,
    linear-gradient(
      90deg,
      transparent 4rem,
      rgba(226, 222, 211, 0.48) 8rem,
      rgba(226, 222, 211, 0.12) 50%,
      rgba(226, 222, 211, 0.48) calc(100% - 8rem),
      transparent calc(100% - 4rem)
    ) center / 100% 1px no-repeat;
}

section::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
  opacity: 0.32;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  mix-blend-mode: screen;
}

#vision::after {
  top: 8%;
  left: -10rem;
  width: 360px;
  height: 72%;
  background-image: url('./illustration-memories.svg');
}

#pillars::after {
  top: 5%;
  right: -9rem;
  width: 390px;
  height: 70%;
  background-image: url('./illustration-slate.svg');
}

#approach::after {
  bottom: 4%;
  left: -7rem;
  width: 290px;
  height: 58%;
  background-image: url('./illustration-rupee.svg');
}

#contents::after {
  right: -10rem;
  bottom: 0;
  width: 340px;
  height: 68%;
  background-image: url('./illustration-sword.svg');
}

.section-label {
  display: inline-block;
  margin-bottom: 0.95rem;
  color: var(--zelda-sheikah-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 8px var(--zelda-sheikah-blue-glow);
}

.section-title {
  max-width: 760px;
  margin-bottom: 1rem;
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.02;
  text-wrap: balance;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.section-desc {
  max-width: 620px;
  margin-bottom: 3.25rem;
  color: var(--zelda-text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* Card primitives */
.vision,
.vision-card,
.pillar-card,
.approach-visual,
.flow-step,
.content-card,
.cta-band {
  position: relative;
  background: var(--zelda-bg-card);
  border: 0;
  border-radius: 4px;
}

.vision:hover::after,
.vision-card:hover::after,
.pillar-card:hover::after,
.approach-visual:hover::after,
.flow-step:hover::after,
.content-card:hover::after {
  border-color: var(--zelda-border-active);
}

.vision,
.approach-visual {
  background: var(--zelda-bg-sheikah);
}

.vision::before,
.approach-visual::before,
.pillar-card::before,
.content-card::before {
  content: '';
  position: absolute;
  z-index: 2;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--zelda-sheikah-blue), transparent);
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.45);
  opacity: 0.72;
}

/* Vision as Sheikah information panel */
.vision {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  align-items: center;
  gap: clamp(2.25rem, 5vw, 4.5rem);
  padding: clamp(2.2rem, 5vw, 4rem);
  overflow: hidden;
  box-shadow: var(--zelda-shadow-dark);
}

.vision-text {
  min-width: 0;
}

.vision-text blockquote {
  margin-bottom: 1.45rem;
  padding: 1.15rem 1.35rem;
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.38;
  background: rgba(0, 0, 0, 0.24);
  border-left: 2px solid var(--zelda-sheikah-blue);
  text-shadow: 0 0 14px rgba(60, 211, 252, 0.14);
}

.vision-body {
  color: var(--zelda-text-muted);
  font-size: 0.94rem;
  line-height: 1.78;
}

.vision-body strong {
  color: var(--zelda-text-green);
  font-weight: 700;
}

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

.vision-card {
  min-height: 128px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.25rem 1.2rem;
  background: rgba(0, 0, 0, 0.54);
  transition:
    background var(--zelda-duration) var(--zelda-ease),
    box-shadow var(--zelda-duration) var(--zelda-ease);
}

.vision-card:hover {
  background: rgba(10, 20, 40, 0.9);
  box-shadow: var(--zelda-glow-blue);
}

.vc-label {
  color: var(--zelda-sheikah-blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.vc-value {
  margin-top: 0.55rem;
  color: var(--zelda-text-main);
  font-size: 0.86rem;
  line-height: 1.52;
}

/* Curriculum cards as item slots */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.pillar-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 1.8rem 1.8rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(155deg, rgba(10, 20, 40, 0.78), rgba(0, 0, 0, 0.7) 62%);
  box-shadow: var(--zelda-shadow-dark);
  transition:
    transform var(--zelda-duration) var(--zelda-ease),
    box-shadow var(--zelda-duration) var(--zelda-ease);
}

.pillar-card:hover {
  z-index: 2;
  transform: translateY(-5px);
  box-shadow: var(--zelda-glow-hover);
}

.pillar-card:hover::after {
  border-color: var(--zelda-tan);
}

.pillar-icon {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin-bottom: 1.45rem;
  color: var(--zelda-sheikah-blue);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.055em;
  background: rgba(10, 20, 40, 0.88);
  border: 0;
  border-radius: 50%;
  box-shadow: var(--zelda-glow-sheikah);
  text-shadow: 0 0 6px rgba(0, 0, 0, 0.9);
}

.pillar-icon::after {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--zelda-border-sheikah);
  border-radius: 50%;
}

.pillar-num {
  margin-bottom: 0.48rem;
  color: var(--zelda-text-yellow);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pillar-title {
  margin-bottom: 0.8rem;
  color: var(--zelda-tan);
  font-size: 1.62rem;
  line-height: 1.15;
}

.pillar-focus {
  flex: 1;
  margin-bottom: 1.45rem;
  color: var(--zelda-text-muted);
  font-size: 0.87rem;
  line-height: 1.7;
}

.pillar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  padding: 0.28rem 0.62rem;
  color: rgba(233, 225, 209, 0.68);
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.3;
  background: rgba(60, 211, 252, 0.055);
  border: 1px solid rgba(60, 211, 252, 0.2);
  border-radius: 3px;
}

/* Learning route as quest log */
.approach-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}

.approach-steps {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.approach-step {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.approach-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 44px;
  bottom: -1.25rem;
  left: 20px;
  width: 1px;
  background: linear-gradient(var(--zelda-sheikah-blue), transparent);
  opacity: 0.38;
}

.step-num {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  color: var(--zelda-sheikah-blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  background: var(--zelda-bg-sheikah);
  border: 1px solid var(--zelda-border-sheikah);
  border-radius: 50%;
  box-shadow: var(--zelda-glow-blue);
}

.step-body {
  padding-top: 0.1rem;
}

.step-body h4 {
  margin-bottom: 0.22rem;
  color: var(--zelda-text-main);
  font-size: 0.98rem;
  font-style: italic;
  font-weight: 700;
}

.step-body p {
  color: var(--zelda-text-muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.approach-visual {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: clamp(1.7rem, 4vw, 2.8rem);
  overflow: hidden;
  box-shadow: var(--zelda-shadow-dark);
}

.flow-label {
  margin-bottom: 0.55rem;
  color: var(--zelda-sheikah-blue);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-shadow: 0 0 8px rgba(79, 192, 255, 0.7);
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
  padding: 0.85rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  transition:
    background var(--zelda-duration) var(--zelda-ease),
    box-shadow var(--zelda-duration) var(--zelda-ease);
}

.flow-step:hover {
  background: rgba(10, 20, 40, 0.92);
  box-shadow: var(--zelda-glow-blue);
}

.flow-dot {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--zelda-sheikah-blue) !important;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 700;
  background: rgba(10, 20, 40, 0.94) !important;
  border: 1px solid var(--zelda-border-sheikah);
  border-radius: 50%;
  box-shadow: 0 0 7px rgba(79, 192, 255, 0.42);
}

.flow-arrow {
  height: 16px;
  color: var(--zelda-sheikah-blue);
  font-size: 0.95rem;
  line-height: 16px;
  text-align: center;
  opacity: 0.62;
  text-shadow: 0 0 8px var(--zelda-sheikah-blue-glow);
}

/* Repository as inventory grid */
.contents-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.content-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.42rem;
  padding: 1.75rem 1.45rem;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(145deg, rgba(10, 20, 40, 0.72), rgba(0, 0, 0, 0.7));
  box-shadow: var(--zelda-shadow-dark);
  transition:
    transform var(--zelda-duration) var(--zelda-ease),
    box-shadow var(--zelda-duration) var(--zelda-ease);
}

.content-card:hover {
  z-index: 2;
  transform: translateY(-4px);
  box-shadow:
    inset 0 0 7px 3px rgba(60, 211, 252, 0.13),
    0 0 12px 1px rgba(79, 192, 255, 0.55);
}

.content-card:hover::after {
  border-color: var(--zelda-sheikah-blue);
}

.card-kicker {
  color: var(--zelda-sheikah-blue);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-card h3 {
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
}

.content-card p {
  margin-top: 0.35rem;
  color: var(--zelda-text-muted);
  font-size: 0.82rem;
  line-height: 1.58;
}

/* Dialogue-style final CTA */
.cta-band {
  max-width: min(1080px, calc(100% - 2 * var(--page-gutter)));
  margin: 1rem auto 5rem;
  padding: clamp(2.8rem, 6vw, 4.7rem) clamp(2rem, 7vw, 6rem);
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0, rgba(60, 211, 252, 0.13), transparent 65%),
    rgba(0, 0, 0, 0.68);
  border-radius: 90px;
  box-shadow: var(--zelda-shadow-dark);
}

.cta-band::before {
  content: '';
  position: absolute;
  top: 0;
  left: 13%;
  right: 13%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zelda-sheikah-blue), transparent);
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.5);
}

.cta-band::after {
  inset: 5px;
  border-radius: 84px;
}

.cta-band h2 {
  max-width: 780px;
  margin: 0 auto 1rem;
  color: var(--zelda-tan);
  font-family: var(--zelda-font-title);
  font-size: clamp(1.75rem, 3.4vw, 2.8rem);
  font-style: normal;
  font-weight: 400;
  line-height: 1.28;
  text-wrap: balance;
  text-shadow: 0 0 18px rgba(226, 222, 211, 0.16);
}

.cta-band p {
  margin-bottom: 2rem;
  color: var(--zelda-text-muted);
  font-size: 0.96rem;
}

/* Footer */
footer {
  position: relative;
  max-width: var(--content-width);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 auto;
  padding: 2.75rem var(--page-gutter) 3.25rem;
  border-top: 1px solid rgba(226, 222, 211, 0.12);
}

footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--zelda-sheikah-blue), transparent);
  box-shadow: 0 0 6px rgba(60, 211, 252, 0.3);
  opacity: 0.68;
}

.fl-title {
  margin-bottom: 0.25rem;
  color: var(--zelda-tan);
  font-size: 1.08rem;
  letter-spacing: 0.045em;
}

.fl-sub {
  color: var(--zelda-text-muted);
  font-size: 0.75rem;
}

.footer-right {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.footer-right a {
  font-size: 0.76rem;
}

/* Chinese title treatment
 * Hylia remains active for Latin characters; CJK glyphs use an explicit
 * Song-style fallback and the hierarchy follows the repository's Chinese
 * one-pager: smaller display titles, stronger spacing, hairlines and glow.
 */
body.lang-zh-cn h1,
body.lang-zh-cn h2,
body.lang-zh-cn h3,
body.lang-zh-cn .pillar-title,
body.lang-zh-cn .fl-title,
body.lang-zh-cn .nav-logo {
  font-family: var(--zelda-font-title-zh-cn);
}

body.lang-zh h1,
body.lang-zh h2,
body.lang-zh h3,
body.lang-zh .pillar-title,
body.lang-zh .fl-title,
body.lang-zh .nav-logo {
  font-family: var(--zelda-font-title-zh-hant);
}

body.lang-zh-cn .hero h1,
body.lang-zh .hero h1 {
  max-width: 900px;
  font-size: clamp(3rem, 6vw, 5.75rem);
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.14;
  text-shadow:
    0 0 28px rgba(0, 0, 0, 0.82),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(60, 211, 252, 0.2);
  -webkit-text-stroke: 0.25px rgba(226, 222, 211, 0.32);
}

body.lang-zh-cn .hero-sub,
body.lang-zh .hero-sub {
  max-width: 720px;
  line-height: 1.9;
  letter-spacing: 0.025em;
}

body.lang-zh-cn .section-label,
body.lang-zh .section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-style: italic;
  letter-spacing: 0.18em;
}

body.lang-zh-cn .section-label::before,
body.lang-zh-cn .section-label::after,
body.lang-zh .section-label::before,
body.lang-zh .section-label::after {
  content: '';
  width: 20px;
  height: 18px;
  flex: 0 0 20px;
  opacity: 0.82;
  background: url('./text-divider-ornament.svg') center / contain no-repeat;
  filter: drop-shadow(0 0 4px rgba(79, 192, 255, 0.5));
}

body.lang-zh-cn .section-label::after,
body.lang-zh .section-label::after {
  transform: scaleX(-1);
}

body.lang-zh-cn .section-title,
body.lang-zh .section-title {
  max-width: 720px;
  padding: 0.12em 0 0.18em;
  font-size: clamp(2.15rem, 4.3vw, 3.65rem);
  font-weight: 600;
  letter-spacing: 0.09em;
  line-height: 1.2;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 246, 196, 0.07) 18%,
    rgba(255, 246, 196, 0.07) 82%,
    transparent
  );
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.78),
    0 0 14px rgba(60, 211, 252, 0.16);
  -webkit-text-stroke: 0.2px rgba(226, 222, 211, 0.28);
}

body.lang-zh-cn .vision-text blockquote,
body.lang-zh .vision-text blockquote {
  font-family: var(--zelda-font-title-zh-cn);
  font-size: clamp(1.25rem, 2.2vw, 1.78rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  line-height: 1.65;
}

body.lang-zh .vision-text blockquote {
  font-family: var(--zelda-font-title-zh-hant);
}

body.lang-zh-cn .pillar-title,
body.lang-zh .pillar-title,
body.lang-zh-cn .content-card h3,
body.lang-zh .content-card h3 {
  font-size: 1.38rem;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.35;
  text-shadow: 0 0 12px rgba(60, 211, 252, 0.12);
}

body.lang-zh-cn .cta-band h2,
body.lang-zh .cta-band h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.065em;
  line-height: 1.55;
}

body.lang-zh-cn .pillar-num,
body.lang-zh .pillar-num,
body.lang-zh-cn .card-kicker,
body.lang-zh .card-kicker,
body.lang-zh-cn .flow-label,
body.lang-zh .flow-label,
body.lang-zh-cn .vc-label,
body.lang-zh .vc-label {
  letter-spacing: 0.18em;
}

body.lang-zh-cn .btn,
body.lang-zh .btn,
body.lang-zh-cn nav a,
body.lang-zh nav a {
  letter-spacing: 0.09em;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.4s var(--zelda-ease),
    transform 0.4s var(--zelda-ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes hyrule-slide-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hyrule-scan-move {
  from { background-position: 0 0; }
  to { background-position: 0 200px; }
}

/* Responsive */
@media (max-width: 1040px) {
  nav ul {
    gap: 0.8rem;
  }

  nav a {
    font-size: 0.76rem;
  }

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

  .pillar-card:last-child {
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  html {
    scroll-padding-top: 82px;
  }

  header {
    height: 68px;
  }

  .nav-logo > .en,
  .nav-logo > .zh-cn,
  .nav-logo > .zh {
    display: none;
  }

  nav ul {
    display: none;
  }

  .hero {
    min-height: 920px;
    padding-top: 8rem;
  }

  .hero::before {
    width: min(88vw, 540px);
  }

  .hero::after {
    right: -10rem;
    width: 360px;
    opacity: 0.24;
  }

  .hero h1 {
    font-size: clamp(3rem, 11vw, 5.4rem);
  }

  body.lang-zh-cn .hero h1,
  body.lang-zh .hero h1 {
    font-size: clamp(2.75rem, 9.5vw, 4.65rem);
  }

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

  .stat:nth-child(3) {
    border-left: 0;
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid rgba(226, 222, 211, 0.14);
  }

  .vision {
    grid-template-columns: 1fr;
  }

  .approach-wrapper {
    grid-template-columns: 1fr;
  }

  section::after {
    opacity: 0.18;
  }
}

@media (max-width: 620px) {
  :root {
    --page-gutter: 1rem;
  }

  .lang-btn {
    min-height: 34px;
    padding-inline: 0.5rem;
    font-size: 0.68rem;
  }

  .hero {
    min-height: 860px;
    padding-bottom: 3.5rem;
  }

  .hero-badge {
    max-width: 100%;
    padding-inline: 0.75rem;
    font-size: 0.63rem;
    letter-spacing: 0.1em;
  }

  .hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
    line-height: 1.02;
  }

  .hero-sub {
    font-size: 0.94rem;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .hero-stats {
    margin-top: 3.5rem;
  }

  .stat {
    padding-inline: 0.65rem;
  }

  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  section::before {
    background:
      url('./text-divider-ornament.svg') left center / auto 19px no-repeat,
      url('./text-divider-ornament.svg') right center / auto 19px no-repeat,
      linear-gradient(
        90deg,
        transparent 2.8rem,
        rgba(226, 222, 211, 0.38) 4.5rem,
        rgba(226, 222, 211, 0.1) 50%,
        rgba(226, 222, 211, 0.38) calc(100% - 4.5rem),
        transparent calc(100% - 2.8rem)
      ) center / 100% 1px no-repeat;
  }

  .section-title {
    font-size: clamp(2.25rem, 11vw, 3.5rem);
  }

  body.lang-zh-cn .section-title,
  body.lang-zh .section-title {
    font-size: clamp(1.95rem, 9vw, 3rem);
  }

  .section-title br {
    display: none;
  }

  .vision {
    padding: 1.6rem 1.25rem;
  }

  .vision-cards,
  .pillars-grid,
  .contents-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card:last-child {
    grid-column: auto;
  }

  .pillar-card,
  .content-card {
    padding-inline: 1.35rem;
  }

  .content-card {
    min-height: 185px;
  }

  .approach-visual {
    padding: 1.5rem 1rem;
  }

  .flow-step {
    padding-inline: 0.8rem;
  }

  .cta-band {
    max-width: calc(100% - 2rem);
    padding: 3rem 1.45rem;
    border-radius: 42px;
  }

  .cta-band::after {
    border-radius: 37px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

/* ── Sheikah Blue Editorial Theme ──────────────────────────────────────────
 * The editorial layout stays intact while the palette returns to the cool,
 * luminous blue treatment used by the earlier visual direction.
 */
:root {
  --scroll-ink: #e9f6ff;
  --scroll-muted: rgba(221, 238, 248, 0.66);
  --scroll-faint: rgba(221, 238, 248, 0.4);
  --scroll-gold: #3cd3fc;
  --scroll-gold-bright: #a9ecff;
  --scroll-gold-dark: #0a8dd7;
  --scroll-paper: rgba(10, 20, 40, 0.88);
  --scroll-paper-deep: rgba(4, 11, 22, 0.93);
  --scroll-line: rgba(60, 211, 252, 0.36);
  --scroll-line-soft: rgba(60, 211, 252, 0.16);
}

body {
  color: var(--scroll-ink);
  background:
    linear-gradient(rgba(5, 13, 25, 0.9), rgba(4, 9, 18, 0.97)),
    url('./sheikah-bg-dark.png') top center / 920px auto repeat,
    #07111f;
}

body::before {
  opacity: 0.035;
}

body::after {
  background:
    radial-gradient(circle at 50% -8%, rgba(60, 211, 252, 0.17), transparent 34rem),
    radial-gradient(circle at 8% 45%, rgba(10, 141, 215, 0.08), transparent 32rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 16%, transparent 84%, rgba(0, 0, 0, 0.2));
}

h1,
h2,
h3,
.pillar-title,
.fl-title,
.nav-logo {
  color: var(--scroll-ink);
}

header {
  height: 72px;
  background:
    linear-gradient(90deg, rgba(5, 14, 28, 0.97), rgba(4, 11, 23, 0.95) 50%, rgba(5, 14, 28, 0.97));
  border-bottom-color: var(--scroll-line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.46);
}

header::before,
header::after {
  width: 28%;
  background: linear-gradient(90deg, transparent, var(--scroll-gold));
  box-shadow: 0 0 7px rgba(60, 211, 252, 0.36);
}

header::after {
  background: linear-gradient(90deg, var(--scroll-gold), transparent);
}

.nav-logo {
  color: var(--scroll-gold-bright);
  text-shadow: 0 0 16px rgba(60, 211, 252, 0.3);
}

.logo-mark {
  color: var(--scroll-gold-bright);
  background:
    linear-gradient(135deg, transparent 49%, rgba(60, 211, 252, 0.2) 50%, transparent 51%),
    rgba(5, 17, 32, 0.96);
  box-shadow: 0 0 10px rgba(60, 211, 252, 0.3);
}

.logo-mark::before {
  border-color: rgba(60, 211, 252, 0.52);
}

.logo-mark::after {
  border-color: rgba(60, 211, 252, 0.36);
}

nav a,
.footer-right a {
  color: var(--scroll-muted);
}

nav a:hover,
.footer-right a:hover {
  color: var(--scroll-gold-bright);
  text-shadow: 0 0 8px rgba(60, 211, 252, 0.44);
}

.nav-cta {
  color: var(--scroll-gold-bright) !important;
  background: rgba(5, 20, 37, 0.9);
  box-shadow: inset 0 0 14px rgba(60, 211, 252, 0.08);
}

.nav-cta::after {
  border-color: rgba(60, 211, 252, 0.4);
}

.nav-cta:hover {
  box-shadow:
    0 0 8px rgba(60, 211, 252, 0.5),
    inset 0 0 15px rgba(60, 211, 252, 0.1);
}

.nav-cta:hover::after {
  border-color: var(--scroll-gold-bright);
}

.lang-toggle {
  background: rgba(4, 15, 29, 0.84);
}

.lang-toggle::after {
  border-color: rgba(60, 211, 252, 0.28);
}

.lang-btn {
  color: var(--scroll-muted);
}

.lang-btn.active {
  color: var(--zelda-sheikah-blue);
  background: rgba(60, 211, 252, 0.08);
}

.lang-divider {
  background: var(--scroll-line-soft);
}

/* Scroll-cover hero */
.hero {
  min-height: 100vh;
  padding-top: 9rem;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.18), transparent 22%, transparent 78%, rgba(0, 0, 0, 0.2)),
    radial-gradient(circle at 50% 36%, rgba(60, 211, 252, 0.15), transparent 29rem),
    linear-gradient(180deg, rgba(8, 28, 50, 0.48), rgba(3, 12, 24, 0.5));
  border-bottom-color: var(--scroll-line-soft);
}

.hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 9% clamp(1.25rem, 9vw, 9rem) 8%;
  pointer-events: none;
  border-top: 1px solid var(--scroll-line);
  border-bottom: 1px solid var(--scroll-line);
  background:
    linear-gradient(90deg, var(--scroll-gold), transparent 12%) top left / 32% 1px no-repeat,
    linear-gradient(-90deg, var(--scroll-gold), transparent 12%) top right / 32% 1px no-repeat,
    linear-gradient(90deg, var(--scroll-gold), transparent 12%) bottom left / 32% 1px no-repeat,
    linear-gradient(-90deg, var(--scroll-gold), transparent 12%) bottom right / 32% 1px no-repeat;
  opacity: 0.6;
}

.hero::after {
  top: 6%;
  right: max(-6rem, -4vw);
  width: min(30vw, 400px);
  height: 90%;
  opacity: 0.28;
  mix-blend-mode: screen;
  filter: saturate(0.72) hue-rotate(145deg) brightness(1.15);
}

.hero-badge {
  color: var(--zelda-sheikah-blue);
  background: rgba(17, 25, 27, 0.82);
  box-shadow: 0 0 9px rgba(79, 192, 255, 0.28);
}

.hero-badge::after {
  border-color: rgba(60, 211, 252, 0.35);
}

.hero h1 {
  max-width: 1020px;
  color: var(--scroll-ink);
  text-shadow:
    0 3px 24px rgba(0, 0, 0, 0.88),
    0 0 18px rgba(60, 211, 252, 0.28);
}

.hero h1 .gradient-text {
  color: var(--scroll-gold-bright);
  filter: drop-shadow(0 0 9px rgba(60, 211, 252, 0.42));
}

.hero-sub {
  color: var(--scroll-muted);
}

.btn-primary {
  color: var(--scroll-ink);
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.06), transparent),
    rgba(20, 29, 31, 0.94);
  box-shadow: 0 0 9px rgba(79, 192, 255, 0.28);
}

.btn-primary::after {
  border-color: rgba(60, 211, 252, 0.42);
}

.btn-primary:hover {
  color: var(--zelda-sheikah-blue);
  box-shadow:
    0 0 10px rgba(79, 192, 255, 0.55),
    inset 0 0 18px rgba(60, 211, 252, 0.08);
}

.btn-outline {
  color: var(--scroll-gold-bright);
  background: rgba(6, 21, 38, 0.88);
}

.btn-outline::after {
  border-color: rgba(60, 211, 252, 0.5);
}

.btn-outline:hover {
  color: var(--scroll-ink);
  box-shadow:
    0 0 8px rgba(60, 211, 252, 0.5),
    inset 0 0 18px rgba(60, 211, 252, 0.1);
}

.hero-stats {
  max-width: 920px;
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.045), transparent 30%, transparent 70%, rgba(60, 211, 252, 0.045)),
    rgba(4, 15, 28, 0.86);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.34);
}

.hero-stats::before {
  background: linear-gradient(90deg, transparent, var(--scroll-gold), transparent);
  box-shadow: 0 0 5px rgba(60, 211, 252, 0.34);
}

.hero-stats::after {
  border-color: var(--scroll-line);
}

.stat + .stat {
  border-left-color: var(--scroll-line-soft);
}

.stat-num {
  color: var(--scroll-gold-bright);
  font-family: var(--zelda-font-title);
  text-shadow: 0 0 9px rgba(60, 211, 252, 0.34);
}

.stat-label {
  color: var(--scroll-muted);
}

/* Editorial section frame */
section {
  max-width: 1240px;
  padding-top: clamp(6rem, 11vw, 9rem);
  padding-bottom: clamp(6rem, 11vw, 9rem);
}

section::before {
  opacity: 0.7;
  filter: drop-shadow(0 0 4px rgba(60, 211, 252, 0.34));
  background:
    url('./text-divider-ornament.svg') left center / 32px 25px no-repeat,
    url('./text-divider-ornament.svg') right center / 32px 25px no-repeat,
    linear-gradient(
      90deg,
      transparent 4rem,
      rgba(60, 211, 252, 0.52) 8rem,
      rgba(60, 211, 252, 0.14) 50%,
      rgba(60, 211, 252, 0.52) calc(100% - 8rem),
      transparent calc(100% - 4rem)
    ) center / 100% 1px no-repeat;
}

section::after {
  opacity: 0.18;
  filter: saturate(0.7) hue-rotate(145deg) brightness(1.1);
}

.section-label {
  color: var(--zelda-sheikah-blue);
  text-shadow: 0 0 7px rgba(79, 192, 255, 0.34);
}

.section-title {
  color: var(--scroll-gold-bright);
  text-shadow:
    0 3px 20px rgba(0, 0, 0, 0.75),
    0 0 13px rgba(60, 211, 252, 0.24);
}

.section-desc {
  color: var(--scroll-muted);
}

/* Dark parchment primitives */
.vision,
.vision-card,
.pillar-card,
.approach-visual,
.flow-step,
.content-card,
.cta-band {
  background: var(--scroll-paper-deep);
}

.vision::after,
.vision-card::after,
.pillar-card::after,
.approach-visual::after,
.flow-step::after,
.content-card::after,
.cta-band::after {
  border-color: var(--scroll-line);
}

.vision::before,
.approach-visual::before,
.pillar-card::before,
.content-card::before {
  background: linear-gradient(90deg, transparent, var(--scroll-gold), transparent);
  box-shadow: 0 0 5px rgba(60, 211, 252, 0.3);
}

/* Vision: framed archival excerpt */
.vision {
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.065), transparent 38%, transparent),
    var(--scroll-paper);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.34);
}

.vision-text blockquote {
  color: var(--scroll-gold-bright);
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.11), transparent),
    rgba(0, 0, 0, 0.18);
  border-left-color: var(--scroll-gold);
  text-shadow: 0 0 12px rgba(60, 211, 252, 0.22);
}

.vision-body {
  color: var(--scroll-muted);
}

.vision-body strong {
  color: var(--scroll-gold-bright);
}

.vision-card {
  background: rgba(4, 16, 30, 0.5);
}

.vision-card:hover {
  background: rgba(8, 31, 52, 0.76);
  box-shadow: 0 0 9px rgba(60, 211, 252, 0.3);
}

.vc-label {
  color: var(--zelda-sheikah-blue);
}

.vc-value {
  color: var(--scroll-ink);
}

/* Three pillars: horizontal quest entries, not dashboard cards */
.pillars-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--scroll-line);
}

.pillar-card,
.pillar-card:last-child {
  min-height: 0;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  grid-template-rows: auto auto auto auto;
  column-gap: clamp(1.2rem, 3vw, 2.4rem);
  padding: clamp(1.8rem, 4vw, 2.75rem) clamp(1rem, 3vw, 2.2rem);
  overflow: visible;
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.055), transparent 58%),
    rgba(4, 14, 27, 0.66);
  border-bottom: 1px solid var(--scroll-line);
  border-radius: 0;
  box-shadow: none;
}

.pillar-card::before {
  display: none;
}

.pillar-card::after {
  inset: 7px 3px;
  border-color: transparent;
  border-radius: 0;
}

.pillar-card:hover {
  z-index: auto;
  transform: none;
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.12), transparent 68%),
    rgba(6, 24, 42, 0.8);
  box-shadow: inset 3px 0 0 var(--scroll-gold);
}

.pillar-card:hover::after {
  border-color: transparent;
}

.pillar-icon {
  grid-column: 1;
  grid-row: 1 / 5;
  align-self: center;
  width: 58px;
  height: 58px;
  margin: 0;
  color: var(--zelda-sheikah-blue);
  background: rgba(18, 27, 29, 0.84);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(79, 192, 255, 0.2);
}

.pillar-icon::after {
  inset: 3px;
  border-color: rgba(60, 211, 252, 0.3);
  border-radius: 2px;
}

.pillar-num,
.pillar-title,
.pillar-focus,
.pillar-tags {
  grid-column: 2;
}

.pillar-num {
  grid-row: 1;
  color: var(--zelda-sheikah-blue);
  margin-bottom: 0.25rem;
}

.pillar-title {
  grid-row: 2;
  color: var(--scroll-gold-bright);
  margin-bottom: 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.pillar-focus {
  grid-row: 3;
  max-width: 820px;
  margin-bottom: 1rem;
  color: var(--scroll-muted);
}

.pillar-tags {
  grid-row: 4;
}

.tag {
  color: var(--scroll-muted);
  background: rgba(60, 211, 252, 0.05);
  border-color: rgba(60, 211, 252, 0.22);
}

/* Journey: manuscript notes + restrained blue route */
.approach-step:not(:last-child)::after {
  background: linear-gradient(var(--scroll-gold), transparent);
  opacity: 0.3;
}

.step-num {
  color: var(--scroll-gold-bright);
  background: rgba(5, 20, 37, 0.92);
  border-color: rgba(60, 211, 252, 0.46);
  box-shadow: 0 0 8px rgba(60, 211, 252, 0.24);
}

.step-body h4 {
  color: var(--scroll-gold-bright);
}

.step-body p {
  color: var(--scroll-muted);
}

.approach-visual {
  background:
    linear-gradient(135deg, rgba(60, 211, 252, 0.06), transparent 44%),
    var(--scroll-paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.flow-label {
  color: var(--zelda-sheikah-blue);
  text-shadow: 0 0 7px rgba(79, 192, 255, 0.28);
}

.flow-step {
  background: rgba(4, 14, 27, 0.46);
}

.flow-step:hover {
  background: rgba(7, 28, 48, 0.76);
  box-shadow: inset 3px 0 0 var(--zelda-sheikah-blue);
}

.flow-dot {
  color: var(--zelda-sheikah-blue) !important;
  background: rgba(17, 26, 28, 0.84) !important;
  box-shadow: 0 0 6px rgba(79, 192, 255, 0.24);
}

.flow-arrow {
  color: var(--scroll-gold);
  text-shadow: none;
}

/* Repository: catalogue entries */
.contents-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--scroll-line);
  border-left: 1px solid var(--scroll-line-soft);
}

.content-card {
  min-height: 190px;
  padding: 2rem clamp(1.35rem, 3vw, 2.2rem);
  background:
    linear-gradient(145deg, rgba(60, 211, 252, 0.055), transparent 58%),
    rgba(4, 14, 27, 0.68);
  border-right: 1px solid var(--scroll-line-soft);
  border-bottom: 1px solid var(--scroll-line);
  border-radius: 0;
  box-shadow: none;
}

.content-card::before {
  display: none;
}

.content-card::after {
  inset: 5px;
  border-color: transparent;
  border-radius: 0;
}

.content-card:hover {
  z-index: auto;
  transform: none;
  background:
    linear-gradient(145deg, rgba(60, 211, 252, 0.12), transparent 68%),
    rgba(6, 25, 44, 0.84);
  box-shadow: inset 3px 0 0 var(--zelda-sheikah-blue);
}

.content-card:hover::after {
  border-color: transparent;
}

.card-kicker {
  color: var(--zelda-sheikah-blue);
}

.content-card h3 {
  color: var(--scroll-gold-bright);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.content-card p {
  color: var(--scroll-muted);
}

/* Closing quotation as an opened scroll rather than a dialog capsule */
.cta-band {
  max-width: min(1120px, calc(100% - 2 * var(--page-gutter)));
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(60, 211, 252, 0.09), transparent 24%, transparent 76%, rgba(60, 211, 252, 0.09)),
    var(--scroll-paper);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.32);
}

.cta-band::before {
  background: linear-gradient(90deg, transparent, var(--scroll-gold), transparent);
  box-shadow: 0 0 5px rgba(60, 211, 252, 0.32);
}

.cta-band::after {
  inset: 4px;
  border-color: var(--scroll-line);
  border-radius: 2px;
}

.cta-band h2 {
  color: var(--scroll-gold-bright);
  text-shadow: 0 0 14px rgba(60, 211, 252, 0.24);
}

.cta-band p {
  color: var(--scroll-muted);
}

footer {
  border-top-color: var(--scroll-line-soft);
}

footer::before {
  background: linear-gradient(90deg, transparent, var(--scroll-gold), transparent);
  box-shadow: 0 0 5px rgba(60, 211, 252, 0.28);
}

.fl-title {
  color: var(--scroll-gold-bright);
}

.fl-sub {
  color: var(--scroll-muted);
}

/* Chinese scroll typography */
body.lang-zh-cn .hero h1,
body.lang-zh .hero h1 {
  color: var(--scroll-ink);
  text-shadow:
    0 3px 28px rgba(0, 0, 0, 0.82),
    0 0 18px rgba(60, 211, 252, 0.28);
}

body.lang-zh-cn .section-label::before,
body.lang-zh-cn .section-label::after,
body.lang-zh .section-label::before,
body.lang-zh .section-label::after {
  filter: drop-shadow(0 0 3px rgba(60, 211, 252, 0.4));
}

body.lang-zh-cn .section-title,
body.lang-zh .section-title {
  color: var(--scroll-gold-bright);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(60, 211, 252, 0.085) 18%,
    rgba(60, 211, 252, 0.085) 82%,
    transparent
  );
  text-shadow:
    0 0 22px rgba(0, 0, 0, 0.75),
    0 0 12px rgba(60, 211, 252, 0.23);
}

body.lang-zh-cn .vision-text blockquote,
body.lang-zh .vision-text blockquote,
body.lang-zh-cn .pillar-title,
body.lang-zh .pillar-title,
body.lang-zh-cn .content-card h3,
body.lang-zh .content-card h3,
body.lang-zh-cn .cta-band h2,
body.lang-zh .cta-band h2 {
  color: var(--scroll-gold-bright);
  text-shadow: 0 0 10px rgba(60, 211, 252, 0.22);
}

@media (max-width: 1040px) {
  .pillars-grid {
    display: flex;
  }

  .pillar-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 820px) {
  header {
    height: 68px;
  }

  .hero::before {
    inset: 8% 1.5rem 7%;
    width: auto;
  }

  .hero::after {
    right: -9rem;
  }

  .contents-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero::before {
    inset-inline: 0.65rem;
  }

  .pillar-card,
  .pillar-card:last-child {
    grid-template-columns: 50px minmax(0, 1fr);
    column-gap: 0.9rem;
    padding: 1.6rem 0.75rem;
  }

  .pillar-icon {
    width: 46px;
    height: 46px;
    font-size: 0.56rem;
  }

  .pillar-title {
    font-size: 1.45rem;
  }

  .contents-grid {
    border-left: 0;
  }

  .content-card {
    min-height: 170px;
    border-left: 1px solid var(--scroll-line-soft);
  }

  .cta-band {
    border-radius: 4px;
  }

  .cta-band::after {
    border-radius: 2px;
  }
}

/* ── Disable all hover/transition effects in #vision, #approach ── */
#vision .vision,
#vision .vision-card,
#approach .approach-visual,
#approach .flow-step {
  transition: none !important;
}

#vision .vision::after,
#vision .vision-card::after,
#approach .approach-visual::after,
#approach .flow-step::after {
  transition: none !important;
}

#vision .vision-card:hover {
  background: rgba(4, 16, 30, 0.5) !important;
  box-shadow: none !important;
}

#vision .vision:hover::after,
#vision .vision-card:hover::after {
  border-color: var(--scroll-line) !important;
}

#approach .flow-step:hover {
  background: rgba(4, 14, 27, 0.46) !important;
  box-shadow: none !important;
}

#approach .flow-step:hover::after,
#approach .approach-visual:hover::after {
  border-color: var(--scroll-line) !important;
}
