/* ==========================================================================
   Core Design System — Dark Literary Data Visualization
   ========================================================================== */

/* --- CSS Custom Properties --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a28;
  --bg-card: rgba(18, 18, 26, 0.8);
  --gold-primary: #c9a84c;
  --gold-light: #e8d48b;
  --gold-dark: #8a6d2b;
  --gold-glow: rgba(201, 168, 76, 0.15);
  --text-primary: #e8e0d0;
  --text-secondary: #9a9484;
  --text-dim: #5a5548;
  --wine: #722f37;
  --wine-light: #a44a54;
  --border-subtle: rgba(201, 168, 76, 0.12);
  --emotion-love: #e8a0bf;
  --emotion-sorrow: #5b8fb9;
  --emotion-battle: #c41e3a;
  --emotion-joy: #e8d48b;
  --emotion-beauty: #d4a017;
  --emotion-loyalty: #4a7c59;
  --emotion-death: #5a5548;
  --emotion-longing: #9b7cb9;
  --emotion-anger: #d45e3a;
  --emotion-hope: #7bc8a4;

  --font-heading-ka: 'Noto Serif Georgian', serif;
  --font-body-ka: 'Noto Sans Georgian', sans-serif;
  --font-heading-en: 'Cormorant Garamond', serif;
  --font-data: 'Inter', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(201, 168, 76, 0.08);

  --transition-base: 0.3s ease;
  --transition-slow: 0.6s ease;

  --content-max-width: 1200px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body-ka);
  background-color: var(--bg-primary);
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(201, 168, 76, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(114, 47, 55, 0.04) 0%, transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(26, 26, 40, 0.5) 0%, transparent 80%);
  background-attachment: scroll;
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover {
  color: var(--gold-light);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-dark);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-primary);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--gold-dark) var(--bg-secondary);
}

/* --- Selection --- */
::selection {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

::-moz-selection {
  background: var(--gold-primary);
  color: var(--bg-primary);
}


/* --- Main content above floating letters --- */
main {
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  position: relative;
  padding: 6rem 2rem;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.section--full {
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}

.section-inner {
  width: 100%;
}

.section-title {
  font-family: var(--font-heading-ka);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--gold-primary);
  text-shadow: 0 0 40px rgba(201, 168, 76, 0.3);
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
}

.section-title--en {
  font-family: var(--font-heading-en);
  font-weight: 600;
  font-style: italic;
}

.section-subtitle {
  font-family: var(--font-body-ka);
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  max-width: 640px;
  line-height: 1.8;
}

.section-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  border: none;
  margin: 3rem auto;
}


/* ==========================================================================
   Hero Section
   ========================================================================== */

.section--hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.section--hero .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Small badge above the title */
.hero-badge {
  display: inline-block;
  font-family: var(--font-body-ka);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dark);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: var(--radius-pill);
  padding: 0.3rem 1.2rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 168, 76, 0.05);
}

.hero-title {
  font-family: var(--font-heading-ka);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1.3;
  padding-bottom: 0.1em;
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
  /* Gold gradient text */
  background: linear-gradient(
    180deg,
    #e8d48b 0%,
    #c9a84c 40%,
    #a07c30 70%,
    #8a6d2b 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* Glow behind the text */
  filter: drop-shadow(0 0 40px rgba(201, 168, 76, 0.25))
          drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero-subtitle {
  font-family: var(--font-body-ka);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
  letter-spacing: 0.04em;
}

.hero-period {
  font-family: var(--font-body-ka);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-dim);
  margin-bottom: 0;
}

/* Decorative gold gradient divider */
.hero-divider {
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
  margin: 1.5rem 0;
  opacity: 0.6;
}

.hero-meter {
  font-family: var(--font-body-ka);
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  font-style: italic;
  letter-spacing: 0.02em;
}

/* Stat pills with card backgrounds */
.stat-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.25rem 1.5rem;
  min-width: 120px;
  background: rgba(18, 18, 26, 0.6);
  border: 1px solid rgba(201, 168, 76, 0.1);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
}

.stat-pill:hover {
  border-color: rgba(201, 168, 76, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(201, 168, 76, 0.1);
}

.stat-pill__number {
  font-family: var(--font-data);
  font-size: 2rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--gold-primary);
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-pill__label {
  font-family: var(--font-body-ka);
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.4;
}

.stat-row {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 700px;
}

/* Scroll indicator — double chevron */
.scroll-indicator {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  animation: scrollBounce 2.5s ease-in-out infinite;
}

.scroll-chevron {
  display: block;
  width: 16px;
  height: 16px;
  border-right: 1.5px solid var(--gold-dark);
  border-bottom: 1.5px solid var(--gold-dark);
  transform: rotate(45deg);
  opacity: 0.45;
}

.scroll-chevron--second {
  margin-top: -8px;
  opacity: 0.25;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}


/* ==========================================================================
   Cards
   ========================================================================== */

.card {
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  border-color: rgba(201, 168, 76, 0.25);
  box-shadow: var(--shadow-glow);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-grid--2 {
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.card-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}


/* ==========================================================================
   Badges
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  background: transparent;
}

.badge--gold {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.08);
}

.badge--wine {
  border-color: var(--wine-light);
  color: var(--wine-light);
  background: rgba(114, 47, 55, 0.12);
}

.badge--muted {
  border-color: var(--text-dim);
  color: var(--text-dim);
  background: rgba(90, 85, 72, 0.08);
}


/* ==========================================================================
   Chart Container
   ========================================================================== */

.chart-container {
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
}

.chart-container__title {
  font-family: var(--font-heading-ka);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.chart-container__subtitle {
  font-family: var(--font-body-ka);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}


/* ==========================================================================
   Quote Block
   ========================================================================== */

.quote-block {
  position: relative;
  padding: 1.75rem 2rem 1.75rem 2.5rem;
  margin: 1.5rem 0;
  border-left: 2px solid var(--gold-dark);
  background: linear-gradient(135deg, rgba(201, 168, 76, 0.04), transparent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.quote-block::before {
  content: '\201C';
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-family: var(--font-heading-en);
  font-size: 2.5rem;
  color: var(--gold-dark);
  line-height: 1;
  opacity: 0.5;
}

.quote-block__text {
  font-family: var(--font-heading-ka);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.9;
  font-style: italic;
}

.quote-block__attribution {
  display: block;
  margin-top: 0.75rem;
  font-family: var(--font-body-ka);
  font-size: 0.8rem;
  color: var(--text-dim);
}


/* ==========================================================================
   Card Content Typography
   ========================================================================== */

.card__title {
  font-family: var(--font-heading-ka);
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.card__subtitle {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.card__body {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.card__meta {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
}

.card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.card__stats {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
}

/* Character card — arc text with read more toggle */
.card__body--arc {
  position: relative;
}

.card__body--truncated {
  margin-bottom: 0;
}

.card__body--full {
  display: none;
  margin-bottom: 0.5rem;
}

.card__body--full.is-visible {
  display: block;
}

.card__body--truncated.is-collapsed {
  display: none;
}

/* Strengths / Flaws side-by-side */
.card__traits-row {
  display: flex;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.card__traits-col {
  flex: 1;
  min-width: 0;
}

.card__traits-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  font-family: var(--font-data);
}

.card__traits-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.card__traits-list li {
  margin-bottom: 0.15rem;
  line-height: 1.5;
}

.card__traits-list li::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-dim);
  margin-right: 0.5rem;
  vertical-align: middle;
}


/* ==========================================================================
   Section Content Blocks
   ========================================================================== */

.section-block {
  margin-bottom: 2.5rem;
}

.section-block__title {
  font-family: var(--font-heading-ka);
  font-size: 1rem;
  color: var(--gold-primary);
  margin-bottom: 1rem;
}

.section-block__intro {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 800px;
}


/* ==========================================================================
   Tags
   ========================================================================== */

.tag-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-body-ka);
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
}

.tag-chip:hover {
  color: var(--gold-primary);
  border-color: var(--border-subtle);
  background: rgba(201, 168, 76, 0.06);
}

.tag-chip:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.tag-chip.active {
  color: var(--gold-primary);
  border-color: var(--gold-primary);
  background: rgba(201, 168, 76, 0.1);
}

/* Display-only chips inside cards (not interactive) */
.card .tag-chip {
  cursor: default;
}

.card .tag-chip:hover {
  color: var(--text-secondary);
  border-color: transparent;
  background: var(--bg-tertiary);
}


/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-data);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
  user-select: none;
}

.btn:hover {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.97);
}

.btn--gold {
  border-color: var(--gold-primary);
  color: var(--gold-primary);
}

.btn--gold:hover,
.btn--gold:focus-visible {
  background: rgba(201, 168, 76, 0.1);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

.btn--link {
  display: inline;
  padding: 0;
  border: none;
  border-radius: 0;
  background: none;
  color: var(--gold-primary);
  font-family: var(--font-body-ka);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  cursor: pointer;
  transition: color var(--transition-base);
  white-space: normal;
}

.btn--link:hover,
.btn--link:focus-visible {
  color: var(--gold-light);
  border-color: transparent;
  background: none;
}

.btn--link:focus-visible {
  outline: 1px solid var(--gold-dark);
  outline-offset: 2px;
  border-radius: 2px;
}

.btn--link:active {
  transform: none;
}


/* ==========================================================================
   Language Toggle
   ========================================================================== */

/* GitHub corner link */
.github-link {
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 1000;
  color: var(--text-dim);
  opacity: 0.5;
  transition: opacity var(--transition-base), color var(--transition-base);
}

.github-link:hover {
  opacity: 1;
  color: var(--gold-primary);
}

.lang-toggle {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--bg-card);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.25rem;
  overflow: hidden;
}

.lang-toggle__btn {
  padding: 0.35rem 0.85rem;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-data);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  border-radius: var(--radius-pill);
  transition: all var(--transition-base);
}

.lang-toggle__btn.active {
  background: var(--gold-primary);
  color: var(--bg-primary);
}

.lang-toggle__btn:hover:not(.active) {
  color: var(--text-primary);
}


/* ==========================================================================
   Navigation Dots (Desktop)
   ========================================================================== */

.nav-dots {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
  position: relative;
}

.nav-dot::after {
  content: attr(data-label);
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-data);
  font-size: 0.7rem;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.nav-dot:hover::after {
  opacity: 1;
}

.nav-dot:hover,
.nav-dot:focus-visible {
  background: var(--gold-dark);
  transform: scale(1.3);
}

.nav-dot:focus-visible {
  outline: 2px solid var(--gold-primary);
  outline-offset: 4px;
}

.nav-dot.active {
  background: var(--gold-primary);
  box-shadow: 0 0 8px rgba(201, 168, 76, 0.4);
  transform: scale(1.4);
}


/* ==========================================================================
   Tooltip
   ========================================================================== */

.tooltip-custom {
  position: absolute;
  z-index: 1100;
  padding: 0.6rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-family: var(--font-data);
  font-size: 0.78rem;
  color: var(--text-primary);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 280px;
  line-height: 1.5;
}

.tooltip-custom.visible {
  opacity: 1;
  transform: translateY(0);
}

.tooltip-custom__title {
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 0.2rem;
}

.tooltip-custom__value {
  font-variant-numeric: tabular-nums;
}


/* ==========================================================================
   Decorative Gold Line
   ========================================================================== */

.gold-line {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-primary) 30%, var(--gold-primary) 70%, transparent);
  opacity: 0.3;
  margin: 2rem 0;
}

.gold-line--short {
  max-width: 120px;
  margin-left: auto;
  margin-right: auto;
}


/* ==========================================================================
   Site Footer
   ========================================================================== */

.section--footer {
  padding-top: 2rem;
}

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  text-align: center;
}

.footer-disclaimer {
  font-family: var(--font-body-ka);
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin: 0 auto 2rem;
}

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.fade-up {
  opacity: 0;
  transform: translateY(30px);
  will-change: opacity, transform;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: auto;
}

.fade-up.visible:nth-child(2) {
  transition-delay: 0.1s;
}

.fade-up.visible:nth-child(3) {
  transition-delay: 0.2s;
}

.fade-up.visible:nth-child(4) {
  transition-delay: 0.3s;
}

.fade-up.visible:nth-child(5) {
  transition-delay: 0.4s;
}

.fade-up.visible:nth-child(6) {
  transition-delay: 0.5s;
}


/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* --- Text Colors --- */
.text-gold { color: var(--gold-primary); }
.text-gold-light { color: var(--gold-light); }
.text-wine { color: var(--wine-light); }
.text-dim { color: var(--text-dim); }
.text-secondary { color: var(--text-secondary); }

/* --- Text Alignment --- */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- Margins --- */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }

/* --- Flex Helpers --- */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* --- Font Families --- */
.font-ka-heading { font-family: var(--font-heading-ka); }
.font-ka-body { font-family: var(--font-body-ka); }
.font-en { font-family: var(--font-heading-en); }
.font-data { font-family: var(--font-data); font-variant-numeric: tabular-nums; }

/* --- Visibility --- */
.is-hidden {
  display: none !important;
}

/* --- Misc --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .fade-up {
    opacity: 1;
    transform: none;
  }

  .fade-up.visible {
    transition: none;
  }
}
