/* ============================================================
   ASCOR Performance Pathway — styles.css
   Dark, minimal, volt-accented theme.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0a0a0b;
  --bg-raised: #101012;
  --bg-card: #131316;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f4f2;
  --text-muted: #9a9aa2;
  --text-faint: #55555c;
  --volt: #d3f435;
  --volt-dim: rgba(211, 244, 53, 0.14);
  --font-sans: "Inter", "Noto Sans TC", system-ui, -apple-system, sans-serif;
  --font-zh: "Noto Sans TC", "Inter", sans-serif;
  --container: 1200px;
  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

ul {
  list-style: none;
}

::selection {
  background: var(--volt);
  color: #0a0a0b;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.volt {
  color: var(--volt);
}

/* ---------- Traditional Chinese page (zh.html) ---------- */
html[lang="zh-Hant"] body {
  font-family: var(--font-zh);
}

html[lang="zh-Hant"] .hero__title {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  letter-spacing: 0.04em;
}

html[lang="zh-Hant"] .section__title {
  letter-spacing: 0.04em;
  line-height: 1.18;
}

html[lang="zh-Hant"] .nav__links a,
html[lang="zh-Hant"] .btn,
html[lang="zh-Hant"] .section__eyebrow,
html[lang="zh-Hant"] .hero__strip-inner,
html[lang="zh-Hant"] .contact__label {
  letter-spacing: 0.18em;
}

/* ---------- Page loader ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  color: var(--volt);
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loader__mark {
  animation: loader-pulse 1.1s ease-in-out infinite;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
}

@keyframes loader-pulse {
  0%, 100% { opacity: 1; transform: translateY(0); }
  50% { opacity: 0.35; transform: translateY(-6px); }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

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

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(10, 10, 11, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  height: var(--nav-h);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.nav__logo svg {
  color: var(--volt);
}

.nav__wordmark {
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  margin-left: auto;
}

.nav__links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.25s ease;
}

.nav__links a:hover {
  color: var(--text);
}

.nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--volt);
  border-radius: 999px;
  color: var(--volt) !important;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav__cta:hover {
  background: var(--volt);
  color: #0a0a0b !important;
}

/* ---------- Language picker ---------- */
.nav__lang {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  margin-left: clamp(16px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.nav__lang a {
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  transition: color 0.25s ease, background 0.25s ease;
}

.nav__lang a[lang="zh-Hant"] {
  font-family: var(--font-zh);
  letter-spacing: 0.12em;
}

.nav__lang a:hover {
  color: var(--text);
}

.nav__lang a.is-active {
  background: var(--volt);
  color: #0a0a0b;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  margin-inline: auto;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 34px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.25s var(--ease-out), background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.btn--volt {
  background: var(--volt);
  color: #0a0a0b;
  box-shadow: 0 0 0 0 rgba(211, 244, 53, 0);
}

.btn--volt:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px -8px rgba(211, 244, 53, 0.45);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--text-muted);
}

.btn--ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  transform: translateY(-2px);
}

/* ---------- Sections (shared) ---------- */
.section {
  padding-block: clamp(90px, 12vw, 160px);
  position: relative;
}

.section__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--volt);
  margin-bottom: 22px;
}

.section__title {
  font-size: clamp(2.2rem, 5.4vw, 4.2rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.section__lead {
  max-width: 620px;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--text-muted);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero__video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.85) contrast(1.05) brightness(0.6);
}

/* Dimming overlay: darkens the footage and fades it into the page background */
.hero__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 11, 0.72) 0%, rgba(10, 10, 11, 0.55) 45%, var(--bg) 100%),
    radial-gradient(ellipse 80% 60% at 30% 60%, rgba(10, 10, 11, 0.5) 0%, transparent 70%);
}

.hero__glow {
  position: absolute;
  top: -30%;
  right: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(211, 244, 53, 0.13) 0%, transparent 62%);
  pointer-events: none;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 90px 90px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 90% 70% at 60% 20%, black 0%, transparent 70%);
  opacity: 0.5;
  pointer-events: none;
}

.hero__watermark {
  position: absolute;
  right: -6vw;
  bottom: -12vh;
  width: clamp(340px, 42vw, 640px);
  height: auto;
  color: #ffffff;
  opacity: 0.03;
  pointer-events: none;
  will-change: transform;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-block: clamp(40px, 8vh, 90px);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  margin-bottom: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
}

.hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--volt);
  box-shadow: 0 0 12px var(--volt);
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.hero__title {
  font-size: clamp(2.9rem, 8.4vw, 6.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 34px;
}

/* Line-by-line mask reveal */
.hero__line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.hero__line span {
  display: inline-block;
  transform: translateY(110%);
  animation: line-up 1s var(--ease-out) forwards;
}

.hero__line:nth-child(2) span {
  animation-delay: 0.14s;
}

@keyframes line-up {
  to { transform: translateY(0); }
}

.hero__sub {
  max-width: 560px;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__strip {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.hero__strip-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px clamp(24px, 4vw, 64px);
  padding-block: 22px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding-block: 26px;
  background: var(--bg-raised);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee__track span {
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.28);
}

.marquee__track .marquee__zh {
  font-family: var(--font-zh);
  -webkit-text-stroke: 0;
  color: var(--volt);
  font-weight: 500;
  letter-spacing: 0.3em;
}

.marquee__track i {
  font-style: normal;
  font-size: 0.7rem;
  color: var(--volt);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- Pillars ---------- */
.pillars__list {
  margin-top: clamp(50px, 7vw, 90px);
  border-top: 1px solid var(--line);
}

.pillar {
  display: grid;
  grid-template-columns: minmax(70px, 130px) 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding-block: clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  transition: background 0.35s ease, padding-inline 0.35s var(--ease-out);
}

.pillar:hover {
  background: linear-gradient(90deg, var(--volt-dim), transparent 55%);
  padding-inline: clamp(12px, 2vw, 28px);
}

.pillar__letter {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--volt);
  transition: color 0.35s ease;
}

.pillar:hover .pillar__letter {
  color: var(--volt);
}

.pillar__body h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 8px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}

.pillar__zh {
  font-family: var(--font-zh);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--text-faint);
}

.pillar__body p {
  max-width: 560px;
  font-size: 0.98rem;
  color: var(--text-muted);
}

.pillar__index {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--text-faint);
}

/* ---------- Story ---------- */
.story {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.story__grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.story__side {
  position: sticky;
  top: calc(var(--nav-h) + 40px);
}

.story__mark {
  margin-top: clamp(36px, 5vw, 70px);
  width: clamp(110px, 12vw, 170px);
  color: rgba(255, 255, 255, 0.05);
}

.story__body p {
  color: var(--text-muted);
  margin-bottom: 26px;
  font-size: clamp(0.98rem, 1.3vw, 1.08rem);
}

.story__highlight {
  color: var(--text) !important;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem) !important;
  font-weight: 600;
  line-height: 1.45;
  margin-bottom: 36px !important;
}

/* ---------- Pathway ---------- */
.pathway__steps {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.step {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  transition: background 0.35s ease;
}

.step:hover {
  background: var(--bg-card);
}

.step__num {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--volt);
  margin-bottom: clamp(30px, 4vw, 70px);
}

.step h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.step p {
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Programs ---------- */
.programs {
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.programs__grid {
  margin-top: clamp(50px, 7vw, 90px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
}

.program {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(30px, 3.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg-card);
  transition: transform 0.35s var(--ease-out), border-color 0.35s ease;
}

.program:hover {
  transform: translateY(-6px);
  border-color: rgba(211, 244, 53, 0.4);
}

.program__icon {
  width: 34px;
  height: 34px;
  color: var(--volt);
  margin-bottom: 28px;
}

.program h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.program p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.program__link {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--volt);
  transition: opacity 0.25s ease;
}

.program__link:hover {
  opacity: 0.7;
}

/* ---------- Statement ---------- */
.statement {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding-block: clamp(120px, 16vw, 220px);
}

.statement__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80vw;
  height: 80vw;
  max-width: 1000px;
  max-height: 1000px;
  background: radial-gradient(circle, rgba(211, 244, 53, 0.09) 0%, transparent 60%);
  pointer-events: none;
}

.statement__intro {
  position: relative;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 60px);
  color: var(--text-muted);
}

.statement__zh {
  position: relative;
  font-family: var(--font-zh);
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  margin-bottom: 24px;
  text-shadow: 0 0 60px rgba(211, 244, 53, 0.25);
}

.statement__en {
  position: relative;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--volt);
}

/* ---------- Contact ---------- */
.contact {
  background: var(--bg-raised);
  border-top: 1px solid var(--line);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(48px, 7vw, 110px);
  align-items: start;
}

.contact__details {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.contact__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 30px;
  background: var(--bg-card);
  transition: background 0.3s ease;
}

a.contact__item:hover {
  background: #1a1a1e;
}

.contact__label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact__value {
  font-size: 1rem;
  font-weight: 500;
  text-align: right;
}

a.contact__item .contact__value {
  color: var(--volt);
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding-block: 48px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--volt);
}

.footer__logo span {
  display: flex;
  flex-direction: column;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.3em;
  font-size: 0.95rem;
}

.footer__logo em {
  font-style: normal;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.footer__meta {
  font-size: 0.8rem;
  line-height: 1.8;
  color: var(--text-faint);
  text-align: right;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .story__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .story__side {
    position: static;
  }

  .story__mark {
    display: none;
  }

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

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

@media (max-width: 760px) {
  .nav__toggle {
    display: flex;
  }

  .nav__lang {
    margin-left: auto;
    margin-right: 10px;
  }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 24px clamp(20px, 4vw, 40px) 36px;
    background: rgba(10, 10, 11, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s var(--ease-out), opacity 0.35s ease, visibility 0.35s;
  }

  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__links a {
    padding-block: 10px;
    font-size: 1rem;
  }

  .nav__cta {
    margin-top: 12px;
  }

  .nav__toggle[aria-expanded="true"] span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .nav__toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .pillar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pillar__index {
    display: none;
  }

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

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

  .footer__meta {
    text-align: left;
  }
}

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

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

  .hero__line span {
    transform: none;
    animation: none;
  }

  .marquee__track,
  .loader__mark,
  .hero__eyebrow-dot {
    animation: none;
  }
}
