:root {
  --antidras-bg: #09090B;
  --antidras-surface: #141418;
  --antidras-logo: #FFFFFF;
  --antidras-text: #E4E4E7;
  --antidras-muted: #A1A1AA;
  --antidras-dim: #71717A;
  --antidras-accent: #FF4D00;
  --antidras-accent-soft: rgba(255, 77, 0, 0.25);
  --antidras-border: rgba(255, 255, 255, 0.08);
}

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

html,
body {
  width: 100%;
  min-height: 100%;
  background-color: var(--antidras-bg);
  color: var(--antidras-text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Fullwidth Canvas Layer */
#reaction-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
}

/* Subtle radial vignette so centered typography stays ultra-legible */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 56% 44% at 50% 46%,
      rgba(9, 9, 11, 0.72) 0%,
      rgba(9, 9, 11, 0.34) 55%,
      rgba(9, 9, 11, 0.78) 100%
    );
}

/* Main Page Grid */
.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem);
}

/* Centerpiece Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
  user-select: none;
}

/* Locked Brand Lockup: [A] Antidras */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: clamp(0.85rem, 2vw, 1.35rem);
  animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-icon {
  height: clamp(2.85rem, 6.2vw, 4.4rem);
  width: auto;
  display: block;
}

.brand-name {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: clamp(2.25rem, 5.2vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--antidras-logo);
}

/* Motto */
.motto {
  margin-top: clamp(1.35rem, 2.8vw, 2rem);
  font-size: clamp(1.05rem, 2.1vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--antidras-text);
  animation: fadeUp 750ms 120ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Alternating Strip: MEASURE | ANALYZE | ACT */
.pillars {
  margin-top: clamp(1.15rem, 2.2vw, 1.65rem);
  display: inline-flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.72rem, 1.15vw, 0.85rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  animation: fadeUp 800ms 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.pillar {
  position: relative;
  padding: 0.35rem 0;
  padding-left: 0.24em; /* optical centering for letter-spacing */
  color: var(--antidras-dim);
  cursor: pointer;
  transition: color 360ms ease, text-shadow 360ms ease, transform 360ms ease;
}

.pillar::after {
  content: '';
  position: absolute;
  left: 0.24em;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--antidras-accent);
  transform: scaleX(0);
  transform-origin: center;
  opacity: 0;
  transition: transform 380ms cubic-bezier(0.22, 1, 0.36, 1), opacity 320ms ease;
}

.pillar:hover {
  color: var(--antidras-muted);
}

.pillar.is-active {
  color: var(--antidras-logo);
  text-shadow: 0 0 22px var(--antidras-accent-soft);
}

.pillar.is-active::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Upright Neon Orange Vertical Bar (0deg) */
.pillar-divider {
  width: 2px;
  height: 0.95rem;
  background-color: var(--antidras-accent);
  opacity: 0.9;
  flex-shrink: 0;
}

/* Bottom Footer: Etymology + Pronunciation + Email */
.site-footer {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding-top: 1.35rem;
  border-top: 1px solid var(--antidras-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;
  animation: fadeUp 850ms 360ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.etymology {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.etymology-phonetics {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem 0.75rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.74rem, 1.1vw, 0.82rem);
}

.etymology-word {
  color: var(--antidras-logo);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.etymology-ipa {
  color: var(--antidras-accent);
  font-weight: 500;
}

.etymology-respelling {
  color: var(--antidras-muted);
  font-weight: 400;
}

.etymology-meaning {
  font-size: clamp(0.75rem, 1.05vw, 0.82rem);
  line-height: 1.55;
  color: var(--antidras-dim);
}

.etymology-greek {
  color: var(--antidras-muted);
  font-weight: 500;
}

.etymology-sep {
  margin: 0 0.25rem;
  color: rgba(255, 255, 255, 0.2);
}

.etymology-meaning em {
  color: var(--antidras-muted);
  font-style: italic;
}

/* Contact Email */
.contact-email {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.76rem, 1.1vw, 0.84rem);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--antidras-muted);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  transition: color 220ms ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--antidras-accent);
  outline: none;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .pillars {
    gap: 0.65rem;
    letter-spacing: 0.16em;
  }

  .pillar-divider {
    height: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup,
  .motto,
  .pillars,
  .site-footer {
    animation: none;
  }

  .pillar,
  .pillar::after {
    transition: none;
  }
}
