/* ============================================
   HOURGL — The Bottomless Hourglass
   Design tokens
   ============================================ */
:root {
  --bg: #0B0A0A;
  --bg-raised: #161413;
  --border: #2A2724;
  --purple: #772abf;
  --purple-text: #9F6BDA;
  --purple-dim: rgba(119, 42, 191, 0.35);
  --text: #E8E4DC;
  --text-muted: #8A857D;
  --text-dim: #4A4742;
  --font: -apple-system, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 720px;
}

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

html { scroll-behavior: smooth; }

@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; }
}

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

a { color: var(--purple-text); text-decoration: none; }
a:hover { text-decoration: underline; }

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

::selection { background: var(--purple-dim); color: var(--text); }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg-raised);
  color: var(--text);
  padding: 12px 20px;
  z-index: 200;
  border: 1px solid var(--purple);
}
.skip-link:focus { left: 16px; top: 16px; }

/* ============================================
   Layout primitives
   ============================================ */
.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 90px;
}

section:last-of-type { border-bottom: none; }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--purple-text);
  margin-bottom: 20px;
  display: block;
}

h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(28px, 4.4vw, 40px);
  margin-bottom: 28px;
}

h3 {
  font-size: 19px;
  margin-bottom: 12px;
}

p {
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.85;
  margin-bottom: 18px;
}

p strong, li strong { color: var(--text); font-weight: 600; }

.lede {
  font-size: 19px;
  color: var(--text);
  line-height: 1.75;
}

/* ============================================
   Nav
   ============================================ */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 28px;
  background: rgba(11, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.05em;
  color: var(--text);
}
.nav-mark svg { height: 22px; width: auto; }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.nav-links a:hover { color: var(--purple-text); text-decoration: none; }

/* ============================================
   Hero
   ============================================ */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 140px 28px 80px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.hero-symbol {
  margin-bottom: 40px;
  filter: drop-shadow(0 0 40px rgba(119, 42, 191, 0.25));
}
.hero-symbol svg { height: 132px; width: auto; }

.hero h1 {
  font-size: clamp(52px, 12vw, 104px);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 36px;
}

.hero-tagline {
  font-size: clamp(18px, 2.6vw, 23px);
  color: var(--text);
  max-width: 480px;
  line-height: 1.6;
}

.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
}
.scroll-cue span {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}
.scroll-cue svg {
  animation: driftDown 2s ease-in-out infinite;
}
@keyframes driftDown {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(6px); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-cue svg { animation: none; }
}

/* ============================================
   Word transform (Why Hourgl section)
   ============================================ */
.word-transform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin: 48px 0;
  padding: 48px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
}

.word-transform .wt-row {
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(28px, 7vw, 48px);
  letter-spacing: 0.02em;
  display: flex;
}

.wt-keep { color: var(--text); }

.wt-fade {
  color: var(--purple-text);
  opacity: 1;
  letter-spacing: 0.02em;
  filter: blur(0px);
  display: inline-block;
  transition: opacity 7s ease, filter 7s ease, letter-spacing 7s ease, transform 7s ease;
}

.word-transform.is-revealed .wt-fade {
  opacity: 0;
  filter: blur(6px);
  letter-spacing: 0.35em;
  transform: translateY(6px);
}

.wt-arrow {
  color: var(--purple-text);
  font-size: 22px;
}

.wt-caption {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   Symbol breakdown section
   ============================================ */
.symbol-build {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 48px 0 44px;
  flex-wrap: wrap;
}
.sb-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.sb-step svg { height: 120px; width: auto; }
.sb-result svg { height: 150px; }
.sb-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.sb-result .sb-label { color: var(--text); font-weight: 600; }
.sb-plus, .sb-equals {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dim);
  align-self: center;
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .symbol-build { gap: 12px; }
  .sb-step svg { height: 90px; }
  .sb-result svg { height: 110px; }
  .sb-plus, .sb-equals { font-size: 22px; margin-bottom: 20px; }
}

.symbol-points {
  list-style: none;
}
.symbol-points li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.symbol-points li:last-child { border-bottom: none; padding-bottom: 0; }
.symbol-points .sp-mark {
  color: var(--purple-text);
  font-weight: 800;
  flex-shrink: 0;
  width: 22px;
}
.symbol-points p { margin-bottom: 0; font-size: 16px; color: var(--text-muted); }

/* ============================================
   Quote / SEBIV link block
   ============================================ */
.quote-block {
  border-left: 2px solid var(--purple);
  padding-left: 24px;
  margin: 32px 0;
}
.quote-block p.q {
  font-size: 20px;
  font-style: italic;
  color: var(--text);
  margin-bottom: 6px;
}
.quote-block .q-sub {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sebiv-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  flex-wrap: wrap;
}
.sebiv-link-card span { font-size: 15px; color: var(--text); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--purple);
  padding: 12px 22px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn:hover {
  background: var(--purple);
  color: #fff;
  text-decoration: none;
}

/* ============================================
   Collection / Coming Soon
   ============================================ */
.collection-card {
  text-align: center;
  padding: 56px 32px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.collection-card .cc-mark svg { height: 60px; margin: 0 auto 24px; }
.collection-card h3 { font-size: 22px; margin-bottom: 10px; }
.collection-card p { max-width: 420px; margin: 0 auto 24px; }
.status-pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--purple-text);
  border: 1px solid var(--purple-dim);
  padding: 8px 18px;
  border-radius: 100px;
}

/* ============================================
   Footer
   ============================================ */
footer {
  text-align: center;
  padding: 56px 28px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-dim);
}
footer .footer-mark { margin-bottom: 18px; }
footer .footer-mark svg { height: 26px; opacity: 0.6; }
footer a { color: var(--text-muted); }
footer .foot-links { margin-top: 14px; }
footer .foot-links a { margin: 0 10px; }

/* ============================================
   404 page
   ============================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 28px;
}
.error-page svg { height: 100px; margin-bottom: 32px; opacity: 0.7; }
.error-page h1 { font-size: clamp(36px, 8vw, 56px); margin-bottom: 16px; }
.error-page p { max-width: 420px; margin: 0 auto 32px; }

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.1em; }
}

@media (max-width: 460px) {
  nav.site-nav { flex-wrap: wrap; row-gap: 10px; padding: 16px 20px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 8px; }
  .nav-links a { font-size: 9px; letter-spacing: 0.06em; }
  section { scroll-margin-top: 125px; }
}
