/* ============ Luminous Sports — Motorsports Experience ============ */
:root {
  --yellow: #FEDC54;
  --yellow-deep: #F5C518;
  --ink: #141414;
  --ink-soft: #2b2b2b;
  --paper: #fffdf4;
  --red: #E03131;
  --font-cn: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-display: 'Archivo', var(--font-cn);
  --font-script: 'Sacramento', cursive;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-interactive: 180ms var(--ease-out);
  --maxw: 1120px;
}
html[lang="zh-TW"] body { --font-cn: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-cn);
  background: var(--yellow);
  color: var(--ink);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  /* subtle paper grain */
  background-image: radial-gradient(rgba(0,0,0,0.028) 1px, transparent 1px);
  background-size: 5px 5px;
}
img { display: block; max-width: 100%; }
h1,h2,h3 { line-height: 1.2; font-weight: 900; }
ul { list-style: none; }

/* ============ Header ============ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254, 220, 84, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow 0.3s var(--ease-out);
}
.header--scrolled { box-shadow: 0 1px 0 rgba(20,20,20,0.18), 0 8px 24px rgba(20,20,20,0.08); }
.header__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}
.header__brand { display: flex; align-items: center; gap: 14px; color: var(--ink); }
.header__logo { height: 34px; width: auto; }
.header__mark { height: 30px; width: auto; }
.header__nav { display: flex; gap: 26px; margin-left: auto; }
.header__nav a {
  color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 700;
  padding: 4px 2px; border-bottom: 2px solid transparent;
  transition: border-color var(--transition-interactive), opacity var(--transition-interactive);
}
.header__nav a:hover { border-bottom-color: var(--ink); }
.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; margin-left: 8px; flex: none; }
.lang__btn {
  appearance: none; border: 0; background: transparent; color: var(--ink);
  font-family: inherit; font-size: 13px; font-weight: 700; padding: 6px 13px; cursor: pointer;
  transition: background var(--transition-interactive), color var(--transition-interactive);
}
.lang__btn:hover { background: rgba(20,20,20,0.08); }
.lang__btn.is-active { background: var(--ink); color: var(--yellow); }

/* ============ Hero ============ */
.hero { padding: clamp(48px, 8vh, 96px) 24px 0; text-align: center; }
.hero__inner { max-width: 900px; margin: 0 auto; }
.hero__kicker {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(18px, 2.6vw, 26px); letter-spacing: 0.01em;
}
.hero__title {
  font-size: clamp(34px, 6vw, 68px);
  letter-spacing: 0.02em;
  margin-top: 10px;
  white-space: pre-line;
}
html[lang="en"] .hero__title { text-wrap: balance; }
html[lang="en"] .hero__title { font-family: var(--font-display); font-style: italic; letter-spacing: 0; font-size: clamp(30px, 5vw, 58px); }
.hero__script {
  font-family: var(--font-script); font-weight: 400;
  font-size: clamp(38px, 5.2vw, 62px);
  letter-spacing: 0.05em;
  margin-top: 10px;
  transform: rotate(-2deg);
}
html[lang="en"] .hero__kicker { display: none; }

/* hero photo stage */
.hero__stage {
  position: relative;
  max-width: 1180px;
  height: clamp(300px, 44vw, 560px);
  margin: clamp(8px, 2vw, 24px) auto 0;
}
.hero__card {
  position: absolute;
  background: #fff;
  padding: 8px;
  box-shadow: 0 18px 50px rgba(20,20,20,0.28);
  will-change: transform;
  transition: transform 0.25s var(--ease-out);
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card--museum { width: 36%; left: 4%; top: 6%; transform: rotate(-3deg); }
.hero__card--sim    { width: 30%; right: 4%; top: 0; transform: rotate(2.5deg); }
.hero__card--car    { width: 38%; left: 31%; top: 26%; transform: rotate(1deg); z-index: 2; }

/* hero bullet points */
.hero__points {
  max-width: 720px; margin: clamp(28px, 5vw, 56px) auto 0;
  padding: 0 8px clamp(48px, 7vw, 80px);
  text-align: left;
  display: grid; gap: 14px;
}
.hero__points li {
  display: flex; gap: 12px; align-items: baseline;
  font-size: clamp(16px, 2vw, 19px); font-weight: 700;
}
.spark { flex: none; font-size: 1.1em; line-height: 1; }

/* ============ Checkered marquee ============ */
.checker { overflow: hidden; background: var(--ink); }
.checker__track {
  height: 44px; width: 200%;
  background-color: var(--ink);
  background-image:
    linear-gradient(45deg, var(--yellow) 25%, transparent 25%, transparent 75%, var(--yellow) 75%),
    linear-gradient(45deg, var(--yellow) 25%, transparent 25%, transparent 75%, var(--yellow) 75%);
  background-size: 44px 44px;
  background-position: 0 0, 22px 22px;
  animation: checker-slide 14s linear infinite;
}
@keyframes checker-slide { to { transform: translateX(-44px); } }
@media (prefers-reduced-motion: reduce) { .checker__track { animation: none; } }

/* ============ Facts ============ */
.facts { background: var(--ink); color: var(--yellow); padding: clamp(48px, 7vw, 88px) 24px; }
.facts__grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  text-align: center;
}
.facts__icon { width: 52px; height: 52px; margin: 0 auto 14px; }
.facts__value {
  font-family: var(--font-display); font-weight: 900; font-style: italic;
  font-size: clamp(24px, 3.2vw, 34px); line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.facts__cur { font-size: 0.55em; font-style: italic; letter-spacing: 0.06em; vertical-align: 0.16em; margin-right: 2px; }
.facts__label { font-size: 14px; font-weight: 500; opacity: 0.85; margin-top: 6px; }
.facts__prices { display: grid; gap: 2px; }

/* ============ Sections ============ */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 24px 0; }
.section__title {
  display: flex; align-items: center; gap: 16px;
  font-size: clamp(26px, 3.6vw, 40px);
  margin-bottom: clamp(36px, 5vw, 64px);
}
html[lang="en"] .section__title { font-family: var(--font-display); font-style: italic; }
.section__slash {
  flex: none; width: 16px; height: 38px; background: var(--ink);
  transform: skewX(-18deg);
}

/* ============ Coaches ============ */
.coaches__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px) clamp(28px, 4vw, 56px); }
.coach { display: grid; grid-template-columns: 44% 1fr; gap: 20px; align-items: center; }
.coach--flip { grid-template-columns: 1fr 44%; }
.coach--flip .coach__photo { order: 2; }
.coach__photo img { width: 100%; }
.coach__info h3 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.coach__info li {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding-left: 16px; position: relative; margin-bottom: 5px;
}
.coach__info li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 7px; height: 7px; background: var(--ink); transform: rotate(45deg);
}

/* ============ Program modules ============ */
.module {
  display: grid;
  grid-template-areas: "num body photo";
  grid-template-columns: minmax(90px, 150px) 1fr minmax(280px, 420px);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(32px, 4.5vw, 56px) 0;
  border-top: 2px solid rgba(20,20,20,0.22);
}
.module__num { grid-area: num; }
.module__body { grid-area: body; }
.module__photo { grid-area: photo; }
.module--flip {
  grid-template-areas: "photo body num";
  grid-template-columns: minmax(280px, 420px) 1fr minmax(90px, 150px);
}
.module__num {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: clamp(64px, 9vw, 120px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
}
.module__body h3 { font-size: clamp(22px, 2.8vw, 32px); margin-bottom: 8px; }
.module__tag {
  display: inline-block;
  background: var(--ink); color: var(--yellow);
  font-size: 13px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
  margin-bottom: 12px;
}
.module__body p:not(.module__tag) { font-size: 15px; color: var(--ink-soft); font-weight: 500; margin-top: 6px; max-width: 46ch; }
.module__photo { margin: 0; background: #fff; padding: 8px; box-shadow: 0 14px 36px rgba(20,20,20,0.22); transform: rotate(-1deg); }
.module--flip .module__photo { transform: rotate(1deg); }
.module__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ Itinerary ============ */
.itinerary__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 32px); }
.day {
  background: var(--ink); color: var(--yellow);
  padding: clamp(28px, 3.4vw, 40px) clamp(22px, 3vw, 34px);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(20,20,20,0.24);
}
.day__badge {
  font-family: var(--font-display); font-style: italic; font-weight: 900;
  font-size: 15px; letter-spacing: 0.14em;
  color: var(--ink); background: var(--yellow);
  display: inline-block; padding: 3px 14px; transform: skewX(-10deg);
  margin-bottom: 16px;
}
.day h3 { font-size: clamp(19px, 2.2vw, 23px); margin-bottom: 16px; }
.day li {
  font-size: 14.5px; font-weight: 500; opacity: 0.92;
  padding: 8px 0 8px 2px;
  border-top: 1px solid rgba(254,220,84,0.22);
}
.day li:last-child { padding-bottom: 0; }

/* ============ Care ============ */
.care { padding-bottom: clamp(64px, 9vw, 120px); }
.care__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 48px); }
.care__item { text-align: left; }
.care__item figure { margin: 0 0 18px; background: #fff; padding: 7px; box-shadow: 0 12px 30px rgba(20,20,20,0.2); }
.care__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.care__char { font-size: clamp(30px, 3.6vw, 40px); font-weight: 900; line-height: 1; }
html[lang="en"] .care__char { font-family: var(--font-display); font-style: italic; font-size: clamp(24px, 3vw, 32px); }
.care__lead { font-weight: 700; font-size: 16px; margin-top: 10px; }
.care__desc { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); margin-top: 2px; }
.care__notes {
  margin-top: clamp(48px, 6vw, 72px);
  border: 2px dashed rgba(20,20,20,0.4);
  border-radius: 14px;
  padding: 24px 28px;
  max-width: 640px;
}
.care__notes-title { font-weight: 900; margin-bottom: 6px; }
.care__notes li { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); padding: 2px 0; }

/* ============ Contact ============ */
.contact {
  background: var(--ink); color: var(--yellow);
  text-align: center;
  padding: clamp(64px, 9vw, 110px) 24px 0;
}
.contact__inner { max-width: 640px; margin: 0 auto; }
.contact__form { display: grid; gap: 14px; text-align: left; }
.contact__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact__field {
  width: 100%; box-sizing: border-box;
  background: rgba(254, 220, 84, 0.05);
  border: 1.5px solid rgba(254, 220, 84, 0.35);
  border-radius: 14px;
  color: var(--yellow);
  font-family: inherit; font-size: 15px; font-weight: 500;
  padding: 13px 16px;
  transition: border-color var(--transition-interactive), background var(--transition-interactive);
}
.contact__field::placeholder { color: rgba(254, 220, 84, 0.5); }
.contact__field:focus {
  outline: none;
  border-color: var(--yellow);
  background: rgba(254, 220, 84, 0.09);
}
textarea.contact__field { resize: vertical; min-height: 120px; }
.contact__honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact__status { min-height: 20px; font-size: 14px; font-weight: 500; text-align: center; margin-top: 2px; }
.contact__status.is-error { color: #FF8A80; }
.contact__capture-email {
  display: none;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 17px; letter-spacing: 0.03em;
}
.contact__title { font-size: clamp(28px, 3.8vw, 44px); }
html[lang="en"] .contact__title { font-family: var(--font-display); font-style: italic; }
.contact__desc { margin-top: 12px; font-size: 15.5px; font-weight: 500; opacity: 0.88; }
.contact__actions {
  display: flex; justify-content: center; align-items: center;
  gap: 14px; flex-wrap: wrap; margin-top: 8px;
}
.contact__btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--yellow); color: var(--ink);
  border: 2px solid var(--yellow); border-radius: 999px;
  font-family: inherit; font-size: 15px; font-weight: 800;
  padding: 12px 26px; cursor: pointer; text-decoration: none;
  transition: transform var(--transition-interactive), background var(--transition-interactive), color var(--transition-interactive);
}
.contact__btn:hover { transform: translateY(-2px); }
.contact__btn--ghost { background: transparent; color: var(--yellow); }
.contact__btn--ghost:hover { background: rgba(254, 220, 84, 0.12); }
.contact__btn.is-busy { opacity: 0.55; pointer-events: none; }
.contact__icon { width: 20px; height: 20px; flex: none; }
.contact__email {
  display: inline-block; margin-top: 20px;
  color: var(--yellow); text-decoration: none;
  font-family: var(--font-display); font-style: italic; font-weight: 700;
  font-size: 15px; letter-spacing: 0.03em; opacity: 0.85;
}
.contact__email:hover { text-decoration: underline; }
.contact__skyline {
  max-width: 1080px;
  margin: clamp(44px, 6vw, 76px) auto 0;
  padding: 0 24px;
  color: var(--yellow);
  opacity: 0.5;
}
.contact__skyline svg { display: block; width: 100%; height: auto; }

/* ============ Footer ============ */
.footer {
  background: var(--ink); color: var(--yellow);
  text-align: center;
  padding: clamp(24px, 4vw, 48px) 24px 40px;
  margin-top: 0;
}
.footer__spark { width: 56px; height: 56px; margin: 0 auto 20px; animation: spark-pulse 4s ease-in-out infinite; }
@keyframes spark-pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.88); opacity: 0.8; } }
@media (prefers-reduced-motion: reduce) { .footer__spark { animation: none; } }
.footer__legal { font-size: 12.5px; opacity: 0.6; margin-top: 14px; max-width: 640px; margin-left: auto; margin-right: auto; }

/* ============ Scroll reveal (opacity + blur only — no layout shift) ============ */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    filter: blur(6px);
    transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out);
  }
  .reveal.in { opacity: 1; filter: blur(0); }
}

/* ============ Long-image capture mode ============ */
html.capturing .checker__track,
html.capturing .footer__spark { animation: none; }
html.capturing .module__num { color: var(--ink); -webkit-text-stroke: 0; }
html.capturing .contact__form { display: none; }
html.capturing .contact__capture-email { display: block; }
html.capturing .header { position: static; }

/* ============ Responsive ============ */
@media (max-width: 900px) {
  .header__nav { display: none; }
  .coaches__grid { grid-template-columns: 1fr; }
  .module, .module--flip {
    grid-template-areas: "num" "body" "photo";
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .module__num { font-size: 56px; }
  .module__photo { max-width: 480px; }
  .facts__grid { grid-template-columns: 1fr; gap: 40px; }
  .itinerary__grid { grid-template-columns: 1fr; }
  .care__grid { grid-template-columns: 1fr; }
  .care__item figure { max-width: 480px; }
  .hero__stage { height: 52vw; }
}
@media (max-width: 560px) {
  .contact__row { grid-template-columns: 1fr; }
  .header__logo { height: 26px; }
  .header__mark { height: 24px; }
  .header__inner { padding: 12px 16px; gap: 12px; }
  .section { padding-left: 18px; padding-right: 18px; }
  .coach { grid-template-columns: 1fr; }
  .coach--flip { grid-template-columns: 1fr; }
  .coach--flip .coach__photo { order: 0; }
  .coach__photo { max-width: 320px; margin: 0 auto; }
  .hero__title { font-size: 27px; letter-spacing: 0.01em; }
  html[lang="en"] .hero__title { font-size: 26px; }
}
