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

:root {
  --bg: #0a0a12;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --surface: #12121f;
  --surface-alt: #161625;

  --coral: #ff6b6b;
  --violet: #a855f7;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --amber: #fbbf24;

  --gradient-main: linear-gradient(135deg, var(--coral), var(--violet), var(--cyan));
  --gradient-text: linear-gradient(135deg, #fff 0%, var(--cyan) 50%, var(--violet) 100%);
  --gradient-accent: linear-gradient(90deg, var(--coral), var(--pink), var(--violet));

  --text: #f1f0f7;
  --text-muted: #9490a8;
  --text-dim: #6b6780;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(168, 85, 247, 0.35);

  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --max-width: 1080px;
  --nav-height: 72px;
  --radius: 16px;
  --radius-sm: 10px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 1.5rem);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Background — static, no animation */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(168, 85, 247, 0.14), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(255, 107, 107, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(34, 211, 238, 0.07), transparent 50%),
    var(--bg);
  pointer-events: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  padding: 0 2rem;
  background: rgba(10, 10, 18, 0.92);
  border-bottom: 1px solid var(--border);
}

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.nav__brand span {
  color: var(--cyan);
}

.nav__links {
  display: flex;
  gap: 0.25rem;
}

.nav__link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  transition: color 0.25s, background 0.25s;
}

.nav__link:hover,
.nav__link.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 768px) {
  .nav {
    padding: 0 1rem;
  }

  .nav__links {
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav__links::-webkit-scrollbar { display: none; }

  .nav__link {
    font-size: 0.75rem;
    padding: 0.4rem 0.625rem;
    white-space: nowrap;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--nav-height) + 2rem) 1.5rem 6rem;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.hero__badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  margin-bottom: 2rem;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
}

.hero__line {
  display: block;
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  color: var(--text);
}

.hero__line--accent {
  color: var(--cyan);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.hero__nickname {
  font-size: 1rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
}

.hero__nickname strong {
  color: var(--coral);
  font-weight: 600;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 1.25rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 120px;
  transition: border-color 0.3s;
}

.stat:hover {
  border-color: var(--border-glow);
}

.stat__num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--violet);
  line-height: 1;
}

.stat__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--violet);
  padding: 1rem 2.25rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.25s, box-shadow 0.25s;
  box-shadow: 0 4px 20px rgba(168, 85, 247, 0.3);
}

.hero__cta:hover {
  background: #9333ea;
  box-shadow: 0 6px 28px rgba(168, 85, 247, 0.4);
}

/* Waveform — subtle, reduced motion friendly */
.waveform {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 32px;
  opacity: 0.35;
}

.waveform span {
  display: block;
  width: 3px;
  border-radius: 3px;
  background: var(--violet);
}

.waveform span:nth-child(1)  { height: 30%; }
.waveform span:nth-child(2)  { height: 55%; }
.waveform span:nth-child(3)  { height: 80%; }
.waveform span:nth-child(4)  { height: 45%; }
.waveform span:nth-child(5)  { height: 70%; }
.waveform span:nth-child(6)  { height: 50%; }
.waveform span:nth-child(7)  { height: 85%; }
.waveform span:nth-child(8)  { height: 40%; }
.waveform span:nth-child(9)  { height: 65%; }
.waveform span:nth-child(10) { height: 35%; }
.waveform span:nth-child(11) { height: 75%; }
.waveform span:nth-child(12) { height: 50%; }
.waveform span:nth-child(13) { height: 60%; }
.waveform span:nth-child(14) { height: 30%; }
.waveform span:nth-child(15) { height: 55%; }
.waveform span:nth-child(16) { height: 70%; }
.waveform span:nth-child(17) { height: 45%; }
.waveform span:nth-child(18) { height: 65%; }
.waveform span:nth-child(19) { height: 40%; }
.waveform span:nth-child(20) { height: 55%; }

@media (prefers-reduced-motion: no-preference) {
  .waveform span {
    animation: wave 2s ease-in-out infinite;
  }

  .waveform span:nth-child(odd)  { animation-delay: 0.2s; }
  .waveform span:nth-child(even) { animation-delay: 0.6s; }
}

@keyframes wave {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section--alt {
  background: rgba(255, 255, 255, 0.015);
}

.section--marquee {
  padding: 3rem 0;
  overflow: hidden;
}

.section-header {
  margin-bottom: 3rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.section__intro {
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: 40rem;
  font-size: 1.0625rem;
}

/* About */
.about-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.about-text .lead {
  font-size: 1.1875rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.about-text p + p {
  margin-top: 1.25rem;
  color: var(--text-muted);
}

.about-text strong {
  color: var(--cyan);
  font-weight: 600;
}

.fact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  position: sticky;
  top: calc(var(--nav-height) + 1.5rem);
}

.fact-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--violet);
}

.fact-list__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.fact-list__item:last-child {
  border-bottom: none;
}

.fact-list dt {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.fact-list dd {
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}

/* Timeline */
.timeline {
  list-style: none;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

.timeline__item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.25s;
}

.timeline__item:hover {
  border-color: var(--border-glow);
}

.timeline__year {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
  background: rgba(244, 114, 182, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.875rem;
}

.timeline__content h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.timeline__content p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.timeline__content em {
  color: var(--cyan);
  font-style: italic;
}

/* Media grid */
.media-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.media-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.media-card:hover {
  background: var(--surface-alt);
  border-color: rgba(34, 211, 238, 0.3);
}

.media-card__icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Marquee */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
}

@media (prefers-reduced-motion: no-preference) {
  .marquee__track {
    animation: marquee 30s linear infinite;
  }
}

.marquee__track span:not(:nth-child(even)) {
  white-space: nowrap;
}

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

.marquee-label {
  text-align: center;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 1.5rem;
}

/* Highlights */
.highlights-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.75rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  transition: all 0.3s;
  cursor: default;
}

.highlight-card:hover {
  color: var(--text);
  border-color: var(--border-glow);
  background: var(--surface-alt);
}

.festivals {
  margin-top: 3rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  border-left: 3px solid var(--violet);
}

.festivals__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--violet);
  margin-bottom: 0.75rem;
}

.festivals__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Quote & Craft */
.quote {
  position: relative;
  padding: 2.5rem 2rem 2.5rem 2.5rem;
  margin-bottom: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 0.5rem;
  left: 1.25rem;
  font-family: var(--font-display);
  font-size: 4rem;
  line-height: 1;
  color: var(--violet);
  opacity: 0.35;
}

.quote p {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.55;
  color: var(--text-muted);
}

.craft-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .craft-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .craft-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.craft-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.25s;
}

.craft-card:hover {
  border-color: var(--border-glow);
}

.craft-card__icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.craft-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.craft-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.craft-card em {
  color: var(--coral);
  font-style: italic;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}

.footer__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer__tag {
  font-size: 0.8125rem;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Scroll reveal — visible by default; animate only when JS is ready */
.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
  }

  html.js .reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}
