:root {
  --bg: #0E0D0B;
  --bg-alt: #14120F;
  --surface: #1B1813;
  --surface-2: #221E18;
  --line: #2E2A22;
  --line-soft: #241F19;
  --text: #F4EFE7;
  --muted: #A79F92;
  --coral: #FF5C2B;
  --coral-deep: #D85A30;
  --coral-ink: #1A0D06;
  --radius: 16px;
  --font-display: "Archivo Black", "Noto Sans SC", system-ui, sans-serif;
  --font-body: "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--coral); color: var(--coral-ink); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { width: min(1120px, 92vw); margin-inline: auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s;
}
.site-header.is-scrolled, .site-header.is-solid {
  background: rgba(14, 13, 11, .82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand {
  font-family: var(--font-display);
  font-size: 1.05rem; letter-spacing: .02em;
  color: var(--text);
}
.brand-tld { color: var(--coral); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links > a:not(.btn) {
  font-size: .95rem; color: var(--muted);
  transition: color .2s;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  flex-direction: column; gap: 5px; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); transition: transform .3s, opacity .3s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  padding: .85em 1.9em; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--coral); color: var(--coral-ink); }
.btn-primary:hover { background: #ff7445; transform: translateY(-2px); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-dark { background: var(--coral-ink); color: var(--text); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-sm { padding: .55em 1.3em; font-size: .9rem; }
.btn-lg { padding: 1em 2.6em; font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 2%, rgba(14, 13, 11, .55) 45%, rgba(14, 13, 11, .25) 100%),
    linear-gradient(to right, rgba(14, 13, 11, .88) 0%, rgba(14, 13, 11, .35) 55%, rgba(14, 13, 11, .1) 100%);
}
.hero-content { position: relative; padding-block: 8rem 4.5rem; }
.kicker {
  display: inline-flex; align-items: center; gap: .8em;
  font-size: .8rem; font-weight: 700; letter-spacing: .28em;
  text-transform: uppercase; color: var(--coral);
  margin-bottom: 1.4rem;
}
.kicker::before { content: ""; width: 42px; height: 1px; background: var(--coral); }
.wordmark {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 11vw, 8.2rem);
  line-height: .95; letter-spacing: -.01em;
  text-transform: uppercase;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .5);
}
.wordmark .tld { color: var(--coral); }
.slogan {
  font-weight: 900; font-size: clamp(1.35rem, 3.4vw, 2.2rem);
  margin-top: 1.2rem; letter-spacing: .02em;
}
.hero-sub {
  max-width: 34em; color: var(--muted);
  margin-top: 1.1rem; font-size: 1.02rem;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.2rem; }
.hero-meta {
  margin-top: 1.6rem; font-size: .82rem; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: .6em 1.2em;
}
.hero-meta::before { content: ""; }

/* ---------- marquee ---------- */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden; padding-block: .9rem;
}
.marquee-track {
  display: flex; width: max-content;
  font-family: var(--font-display); font-size: .95rem;
  letter-spacing: .06em; color: var(--muted);
  animation: marquee 36s linear infinite;
}
.marquee-track span { white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.block { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.block-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 3.2rem; }
.section-index {
  font-family: var(--font-display); font-size: .82rem;
  letter-spacing: .2em; color: var(--coral); text-transform: uppercase;
  margin-bottom: .9rem;
}
.section-head h2, .work-info h2, .join-inner h2 {
  font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem);
  line-height: 1.25; letter-spacing: .01em;
}
.section-desc { color: var(--muted); margin-top: 1rem; }

/* ---------- cards ---------- */
.cards {
  display: grid; gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.9rem;
  transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--coral-deep); background: var(--surface-2); }
.card-num {
  font-family: var(--font-display); color: var(--coral);
  font-size: .95rem; letter-spacing: .1em; margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .7rem; }
.card-en {
  display: block; font-family: var(--font-display);
  font-size: .68rem; letter-spacing: .14em; color: var(--muted);
  margin-top: .35em; text-transform: uppercase;
}
.card p:last-child { color: var(--muted); font-size: .95rem; }

/* ---------- work ---------- */
.work-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4.5rem);
  grid-template-columns: 5fr 6fr; align-items: center;
}
.work-visual img {
  border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 14px 14px 0 var(--coral-deep);
}
.work-caption { margin-top: 1rem; font-size: .82rem; color: var(--muted); }
.work-type {
  font-family: var(--font-display); font-size: .8rem; color: var(--coral);
  letter-spacing: .12em; margin-left: .8em; vertical-align: middle;
  text-transform: uppercase;
}
.work-info .section-index { margin-bottom: .8rem; }
.work-desc { color: var(--muted); margin: 1.4rem 0 1.8rem; max-width: 32em; }
.spec-list { list-style: none; margin-bottom: 1.8rem; }
.spec-list li {
  padding: .55em 0 .55em 1.8em; position: relative;
  border-bottom: 1px dashed var(--line); font-size: .98rem; color: var(--muted);
}
.spec-list li::before {
  content: "→"; position: absolute; left: 0; color: var(--coral); font-weight: 700;
}
.spec-list b { color: var(--text); }
.status {
  display: inline-flex; align-items: center; gap: .6em;
  font-size: .88rem; font-weight: 700; color: var(--coral);
  border: 1px solid var(--coral-deep); border-radius: 999px;
  padding: .45em 1.1em; margin-bottom: 1.8rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ---------- cta band ---------- */
.cta-band {
  background: var(--coral); color: var(--coral-ink);
  border-radius: 24px; padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.8rem;
}
.cta-band h2 { font-weight: 900; font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
.cta-band p { margin-top: .5rem; font-weight: 500; opacity: .85; }

/* ---------- flywheel ---------- */
.flywheel {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1rem;
  counter-reset: step;
}
.flywheel li {
  flex: 1 1 220px;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.6rem;
  position: relative;
}
.flywheel li:not(:last-child)::after {
  content: "→"; position: absolute; right: -1.05rem; top: 50%;
  transform: translateY(-50%); color: var(--coral);
  font-weight: 900; font-size: 1.2rem;
}
.flywheel b { display: block; font-size: 1.05rem; margin-bottom: .4rem; }
.flywheel span { color: var(--muted); font-size: .88rem; }
.flywheel-note { margin-top: 1.6rem; color: var(--muted); font-size: .9rem; }

/* ---------- join ---------- */
.join-inner { max-width: 40rem; text-align: center; margin-inline: auto; }
.join-inner .section-index { margin-bottom: .8rem; }
.join-desc { color: var(--muted); margin: 1.3rem 0 2rem; }
.join-inner .hero-ctas { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-alt); padding-block: 3.5rem 2rem; }
.footer-grid {
  display: grid; gap: 2.5rem;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  margin-bottom: 2.5rem;
}
.footer-brand p { color: var(--muted); font-size: .9rem; margin-top: .8rem; }
.footer-col h4 {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 1rem; font-weight: 700;
}
.footer-col a { display: block; color: var(--text); font-size: .92rem; padding: .3em 0; transition: color .2s; }
.footer-col a:hover { color: var(--coral); }
.footer-col p { color: var(--muted); font-size: .88rem; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 1.6rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between;
  color: var(--muted); font-size: .82rem;
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- quiz page ---------- */
.quiz-main { padding-block: 10rem 5rem; min-height: 80svh; }
.quiz-shell { max-width: 44rem; }
.quiz-panel { text-align: center; }
.quiz-panel[hidden] { display: none; }
.quiz-title {
  font-weight: 900; font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.2; margin-bottom: 1.2rem;
}
.quiz-lead { color: var(--muted); margin-bottom: 2rem; }
.quiz-types-preview {
  display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem;
  margin-bottom: 2.6rem;
}
.quiz-types-preview span {
  border: 1px solid var(--line); border-radius: 999px;
  padding: .4em 1.1em; font-size: .85rem; color: var(--muted);
}
.quiz-progress {
  height: 6px; background: var(--surface); border-radius: 999px;
  overflow: hidden; margin-bottom: 1.6rem;
}
.quiz-progress-bar {
  height: 100%; width: 0; background: var(--coral);
  border-radius: 999px; transition: width .35s ease;
}
.quiz-step {
  font-family: var(--font-display); font-size: .78rem;
  letter-spacing: .2em; color: var(--coral); text-transform: uppercase;
  margin-bottom: 1rem;
}
.quiz-question {
  font-weight: 900; font-size: clamp(1.3rem, 3.6vw, 1.8rem);
  line-height: 1.4; margin-bottom: 2.2rem;
}
.quiz-options { display: grid; gap: .9rem; }
.quiz-option {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: 14px; padding: 1.05rem 1.4rem;
  color: var(--text); font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  text-align: left; cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
}
.quiz-option:hover { border-color: var(--coral); background: var(--surface-2); transform: translateX(6px); }
.quiz-option:active { transform: scale(.99); }
.quiz-result-title {
  font-weight: 900; font-size: clamp(1.9rem, 5.4vw, 2.8rem);
  color: var(--coral); margin-bottom: 1rem;
}
.quiz-result-desc { color: var(--muted); max-width: 30em; margin: 0 auto 2.2rem; }
.quiz-bars { display: grid; gap: .8rem; max-width: 26rem; margin: 0 auto 2.4rem; text-align: left; }
.quiz-bar-row { display: grid; grid-template-columns: 6.5em 1fr 3em; align-items: center; gap: .8rem; font-size: .88rem; }
.quiz-bar-label { color: var(--muted); }
.quiz-bar-track { height: 8px; background: var(--surface); border-radius: 999px; overflow: hidden; }
.quiz-bar-fill { height: 100%; background: var(--coral-deep); border-radius: 999px; width: 0; transition: width .8s ease; }
.quiz-bar-row.is-top .quiz-bar-fill { background: var(--coral); }
.quiz-bar-row.is-top .quiz-bar-label, .quiz-bar-row.is-top .quiz-bar-value { color: var(--text); font-weight: 700; }
.quiz-bar-value { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.quiz-share { margin-bottom: 2.2rem; }
.quiz-share-label { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; }
.quiz-share-text {
  width: 100%; background: var(--surface); border: 1px dashed var(--line);
  border-radius: 12px; padding: 1rem 1.2rem; color: var(--muted);
  font-family: var(--font-body); font-size: .9rem; text-align: left;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.quiz-share-text:hover { border-color: var(--coral); color: var(--text); }
.quiz-share-hint { margin-top: .6rem; font-size: .82rem; color: var(--coral); font-weight: 700; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .work-grid { grid-template-columns: 1fr; }
  .work-visual { max-width: 30rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(14, 13, 11, .97); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 1rem 4vw 1.6rem;
    transform: translateY(-130%); transition: transform .3s ease;
  }
  .site-header.nav-open .nav-links { transform: none; }
  .nav-links > a:not(.btn) { padding: .9em 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links .btn { margin-top: 1rem; }
  .site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-content { padding-block: 7rem 3.5rem; }
  .flywheel li:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -1.1rem; transform: translateX(50%); }
  .flywheel { gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .status-dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}
