/* ================================================================
   OddlyJobs Design System v1.0
   "Neighbors hiring neighbors. Tools that don't charge rent."

   MDX-grade design tokens, components, and utilities.
   Dark premium aesthetic with community warmth.

   Palette distinction:
   - OddlyJobs   = Electric Teal + Sunshine Yellow on Near-Black
   - RunBackHome  = Cyan / Navy-Black
   - FaithKit     = Cream / Gold / Navy

   Design principles:
   1. Every pixel earns its place — no decoration without function
   2. Glass over gradients — depth through translucency, not color
   3. Fluid everything — type, space, layout scale with the viewport
   4. Motion rewards interaction — micro-feedback on every gesture
   5. Community warmth in a premium shell — approachable, not corporate

   Font stack:
   - Headlines:  Poppins (rounded, friendly energy)
   - Body:       Inter (clean readability)
   - Display:    Space Grotesk (weird-jobs character)

   Usage:
   @import url('brand/design-system.css');
   <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&display=swap" rel="stylesheet">

   ================================================================ */


/* ================================================================
   1. CSS RESET
   Complete box-model reset, form normalization, media defaults.
   ================================================================ */

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

html {
  -moz-tab-size: 4;
  tab-size: 4;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  text-wrap: balance;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove default focus outline — we add our own below */
:focus {
  outline: none;
}

/* Accessible focus ring for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}


/* ================================================================
   2. CSS CUSTOM PROPERTIES — :root
   Complete token architecture. Every value used in the system
   lives here. No magic numbers in component code.
   ================================================================ */

:root {

  /* ---- Color: Surfaces ---- */
  --bg-primary: #0B0B0B;
  --bg-secondary: #151515;
  --bg-elevated: #1a1a1a;
  --bg-glass: rgba(13, 148, 136, 0.06);
  --bg-glass-hover: rgba(13, 148, 136, 0.12);
  --bg-glass-active: rgba(13, 148, 136, 0.18);

  /* ---- Color: Brand — Electric Teal (primary) ---- */
  --accent: #0d9488;
  --accent-rgb: 13, 148, 136;
  --accent-light: #14b8a6;
  --accent-dark: #0a7a70;
  --accent-glow: rgba(13, 148, 136, 0.4);
  --accent-subtle: rgba(13, 148, 136, 0.1);

  /* ---- Color: Brand — Sunshine Yellow (secondary, sparingly) ---- */
  --highlight: #f59e0b;
  --highlight-rgb: 245, 158, 11;
  --highlight-light: #fbbf24;
  --highlight-dark: #d97706;
  --highlight-glow: rgba(245, 158, 11, 0.3);
  --highlight-subtle: rgba(245, 158, 11, 0.08);

  /* ---- Color: Semantic status ---- */
  --success: #34d399;
  --success-bg: rgba(52, 211, 153, 0.1);
  --warning: #fbbf24;
  --warning-bg: rgba(251, 191, 36, 0.1);
  --error: #f87171;
  --error-bg: rgba(248, 113, 113, 0.1);
  --info: #60a5fa;
  --info-bg: rgba(96, 165, 250, 0.1);

  /* ---- Color: Text ---- */
  --text-primary: #ffffff;
  --text-secondary: #b0b8c4;
  --text-muted: rgba(255, 255, 255, 0.5);
  --text-watermark: rgba(255, 255, 255, 0.03);
  --text-link: var(--accent-light);
  --text-link-hover: var(--accent);

  /* ---- Color: Borders ---- */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-medium: rgba(255, 255, 255, 0.15);
  --border-accent: rgba(13, 148, 136, 0.3);
  --border-highlight: rgba(245, 158, 11, 0.3);

  /* ---- Shadows ---- */
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  --shadow-elevated: 0 16px 64px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px rgba(13, 148, 136, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(13, 148, 136, 0.25),
                         0 0 120px rgba(13, 148, 136, 0.08);
  --shadow-highlight-glow: 0 0 40px rgba(245, 158, 11, 0.15);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --shadow-none: 0 0 0 rgba(0, 0, 0, 0);

  /* ---- Typography: Font Families ---- */
  --font-primary: 'Poppins', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Poppins', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;

  /* ---- Typography: Fluid Font Sizes ---- */
  --fs-xs: clamp(11px, 0.8vw, 13px);
  --fs-sm: clamp(12px, 1vw, 14px);
  --fs-body: clamp(16px, 1.4vw, 20px);
  --fs-lg: clamp(20px, 2vw, 28px);
  --fs-h3: clamp(24px, 3vw, 42px);
  --fs-h2: clamp(36px, 5vw, 72px);
  --fs-h1: clamp(48px, 8vw, 120px);
  --fs-display: clamp(64px, 12vw, 180px);
  --fs-watermark: clamp(80px, 15vw, 240px);

  /* ---- Typography: Font Weights ---- */
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  --fw-black: 900;

  /* ---- Typography: Line Heights ---- */
  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.6;
  --lh-relaxed: 1.8;

  /* ---- Typography: Letter Spacing ---- */
  --ls-tight: -0.03em;
  --ls-normal: -0.01em;
  --ls-wide: 0.05em;
  --ls-ultra-wide: 0.15em;

  /* ---- Spacing: Fluid Scale ---- */
  --space-xs: clamp(4px, 0.5vw, 8px);
  --space-sm: clamp(8px, 1vw, 16px);
  --space-md: clamp(16px, 2vw, 32px);
  --space-lg: clamp(32px, 4vw, 64px);
  --space-xl: clamp(64px, 8vw, 128px);
  --space-section: clamp(80px, 12vh, 160px);

  /* ---- Border Radius ---- */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --radius-round: 50%;

  /* ---- Layout ---- */
  --max-width: 1440px;
  --content-padding: clamp(20px, 4vw, 80px);
  --nav-height: 72px;
  --nav-height-scrolled: 60px;

  /* ---- Z-Index Scale ---- */
  --z-base: 1;
  --z-card: 10;
  --z-sticky: 100;
  --z-nav: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-preloader: 9999;

  /* ---- Easing (MDX signature curves) ---- */
  --ease-mdx: cubic-bezier(0.625, 0.05, 0, 1);
  --ease-smooth: cubic-bezier(0.33, 1, 0.68, 1);
  --ease-snap: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- Transition Durations ---- */
  --dur-fast: 0.3s;
  --dur-medium: 0.5s;
  --dur-slow: 0.8s;
  --dur-dramatic: 1.2s;

  /* ---- Glassmorphism Base Values ---- */
  --glass-blur: 20px;
  --glass-blur-heavy: 40px;
  --glass-saturation: 1.2;
}


/* ================================================================
   3. HTML & BODY BASE STYLES
   Font smoothing, overflow, Lenis smooth-scroll compat,
   selection styling, scrollbar theming.
   ================================================================ */

html {
  font-size: 100%;
  overflow-x: hidden;
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Lenis smooth scroll compatibility */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* Selection styling */
::selection {
  background-color: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

::-moz-selection {
  background-color: rgba(var(--accent-rgb), 0.3);
  color: var(--text-primary);
}

/* Custom scrollbar (Webkit) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(var(--accent-rgb), 0.3);
  border-radius: var(--radius-pill);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--accent-rgb), 0.5);
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(var(--accent-rgb), 0.3) var(--bg-primary);
}


/* ================================================================
   4. TYPOGRAPHY SYSTEM
   Fluid headings, display text, labels, body text,
   watermark overlays, stat numbers.
   ================================================================ */

/* ---- Headings ---- */

h1, .h1 {
  font-family: var(--font-primary);
  font-size: var(--fs-h1);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h2, .h2 {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h3, .h3 {
  font-family: var(--font-primary);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

h4, .h4 {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-normal);
  color: var(--text-primary);
}

h5, .h5 {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-normal);
  color: var(--text-secondary);
}

h6, .h6 {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---- Display text (hero, splash) ---- */

.display-text {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: var(--fw-bold);
  line-height: 0.95;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
  text-wrap: balance;
}

.display-text--accent {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Section heading (uppercase label + main heading combo) ---- */

.section-heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.section-heading__label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-ultra-wide);
  text-transform: uppercase;
  color: var(--accent);
}

.section-heading__title {
  font-family: var(--font-primary);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

.section-heading__subtitle {
  font-size: var(--fs-lg);
  font-weight: var(--fw-regular);
  color: var(--text-secondary);
  max-width: 600px;
  line-height: var(--lh-body);
}

/* ---- Labels ---- */

.label {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-ultra-wide);
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
}

.label--muted {
  color: var(--text-muted);
}

.label--highlight {
  color: var(--highlight);
}

/* ---- Body text ---- */

.body-text {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-body);
  color: var(--text-secondary);
}

.body-text--large {
  font-size: var(--fs-lg);
  line-height: var(--lh-relaxed);
}

.body-text--small {
  font-size: var(--fs-sm);
}

/* ---- Links in body ---- */

.body-text a,
.text-link {
  color: var(--text-link);
  text-decoration: none;
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.body-text a::after,
.text-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent-light);
  transition: width var(--dur-fast) var(--ease-mdx);
}

.body-text a:hover::after,
.text-link:hover::after {
  width: 100%;
}

.body-text a:hover,
.text-link:hover {
  color: var(--text-link-hover);
}

/* ---- Watermark (giant background text) ---- */

.watermark {
  font-family: var(--font-display);
  font-size: var(--fs-watermark);
  font-weight: var(--fw-black);
  line-height: 0.85;
  letter-spacing: var(--ls-tight);
  color: var(--text-watermark);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* ---- Stat numbers (metric displays) ---- */

.stat-number {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--text-primary);
}

.stat-number--accent {
  color: var(--accent-light);
}

.stat-number--highlight {
  color: var(--highlight);
}

.stat-label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}


/* ================================================================
   5. DARK THEME TOKENS
   Default is dark. These are explicit for clarity and to support
   future light-mode toggling if ever needed.
   ================================================================ */

[data-theme="dark"],
:root {
  color-scheme: dark;
}

/* Potential future light mode hook (not active) */
[data-theme="light"] {
  --bg-primary: #f8fafb;
  --bg-secondary: #ffffff;
  --bg-elevated: #f0f4f7;
  --bg-glass: rgba(13, 148, 136, 0.04);
  --bg-glass-hover: rgba(13, 148, 136, 0.08);
  --bg-glass-active: rgba(13, 148, 136, 0.12);

  --text-primary: #0B0B0B;
  --text-secondary: #4a5568;
  --text-muted: rgba(0, 0, 0, 0.45);
  --text-watermark: rgba(0, 0, 0, 0.03);

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.15);

  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 16px 64px rgba(0, 0, 0, 0.12);
}


/* ================================================================
   6. GLASS CARD PATTERNS
   Glassmorphism cards with backdrop-blur, teal-tinted surfaces,
   and layered border effects.
   ================================================================ */

/* ---- Base glass card ---- */

.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-medium) var(--ease-mdx),
    transform var(--dur-medium) var(--ease-mdx);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  pointer-events: none;
}

.glass-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  transform: translateY(-4px);
}

.glass-card:active {
  background: var(--bg-glass-active);
  transform: translateY(-2px);
}

/* ---- Feature card (icon + heading + body) ---- */

.feature-card {
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturation));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card), var(--shadow-inset);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-medium) var(--ease-mdx),
    transform var(--dur-medium) var(--ease-mdx);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--accent-subtle);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  font-size: var(--fs-lg);
  flex-shrink: 0;
  transition: background var(--dur-fast) var(--ease-smooth);
}

.feature-card:hover .feature-card__icon {
  background: rgba(var(--accent-rgb), 0.2);
}

.feature-card__title {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
}

.feature-card__body {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}

.feature-card:hover {
  background: var(--bg-glass-hover);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-elevated), var(--shadow-glow);
  transform: translateY(-6px);
}

/* Number indicator for feature cards */
.feature-card__number {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-watermark);
  line-height: 1;
  user-select: none;
}

/* ---- Process card (step-based, with connector line) ---- */

.process-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-medium) var(--ease-mdx);
}

.process-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(
    180deg,
    var(--accent),
    rgba(var(--accent-rgb), 0.2)
  );
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  opacity: 0;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.process-card:hover::after {
  opacity: 1;
}

.process-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-glow);
}

.process-card__step {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-ultra-wide);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.process-card__title {
  font-family: var(--font-primary);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.process-card__body {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-body);
}


/* ================================================================
   7. BUTTON SYSTEM
   Primary (teal fill + arrow-circle), secondary (outline),
   ghost (text-only), grouped CTAs.
   ================================================================ */

/* ---- Shared base ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-medium) var(--ease-mdx),
    transform var(--dur-fast) var(--ease-snap);
  -webkit-tap-highlight-color: transparent;
}

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

/* ---- Primary: Teal fill with arrow-circle ---- */

.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  box-shadow: var(--shadow-glow-strong);
}

.btn-primary:active {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* Arrow-circle icon within primary button */
.btn-primary .btn__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-round);
  background: rgba(0, 0, 0, 0.15);
  margin-left: 4px;
  transition: transform var(--dur-fast) var(--ease-mdx);
}

.btn-primary .btn__arrow svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-primary:hover .btn__arrow {
  transform: translateX(4px);
}

/* ---- Secondary: Teal outline ---- */

.btn-secondary {
  background: transparent;
  color: var(--accent-light);
  border-color: var(--border-accent);
}

.btn-secondary:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-glow);
}

.btn-secondary:active {
  background: var(--bg-glass-active);
}

/* ---- Ghost: Text-only, minimal hover ---- */

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border-color: transparent;
  padding: 10px 20px;
}

.btn-ghost:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.btn-ghost:active {
  background: var(--bg-glass-hover);
}

/* ---- Highlight variant (yellow) ---- */

.btn-highlight {
  background: var(--highlight);
  color: var(--bg-primary);
  border-color: var(--highlight);
}

.btn-highlight:hover {
  background: var(--highlight-light);
  border-color: var(--highlight-light);
  box-shadow: var(--shadow-highlight-glow);
}

/* ---- Button sizes ---- */

.btn--sm {
  font-size: var(--fs-xs);
  padding: 10px 20px;
}

.btn--lg {
  font-size: var(--fs-body);
  padding: 18px 40px;
}

/* ---- CTA group (primary + secondary side-by-side) ---- */

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

@media (max-width: 480px) {
  .cta-group {
    flex-direction: column;
    width: 100%;
  }

  .cta-group .btn {
    width: 100%;
    justify-content: center;
  }
}


/* ================================================================
   8. LAYOUT UTILITIES
   Container, sections, grids, split layouts, stat rows.
   ================================================================ */

/* ---- Container ---- */

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--content-padding);
  padding-right: var(--content-padding);
}

.container--narrow {
  max-width: 960px;
}

.container--wide {
  max-width: 1600px;
}

/* ---- Section ---- */

.section {
  padding-top: var(--space-section);
  padding-bottom: var(--space-section);
  position: relative;
  min-height: 60vh;
}

.section--flush {
  padding-top: 0;
  padding-bottom: 0;
}

.section--half {
  padding-top: calc(var(--space-section) / 2);
  padding-bottom: calc(var(--space-section) / 2);
}

/* Section divider */
.section + .section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-subtle),
    transparent
  );
  position: absolute;
  top: 0;
  left: 0;
}

/* ---- Grid systems ---- */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

/* ---- Split layouts ---- */

.split-60-40 {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-40-60 {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: var(--space-lg);
  align-items: center;
}

.split-50-50 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: center;
}

/* ---- Stats row ---- */

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-lg);
  justify-content: center;
  padding: var(--space-lg) 0;
}

.stats-row__item {
  text-align: center;
  flex: 1;
  min-width: 120px;
}

.stats-row__divider {
  width: 1px;
  background: var(--border-subtle);
  align-self: stretch;
}

/* ---- Flex utilities ---- */

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

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

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

.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }


/* ================================================================
   9. NAVIGATION
   Sticky nav with scroll-triggered compact state, glass bg,
   icon button, animated links.
   ================================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: var(--z-nav);
  transition:
    height var(--dur-fast) var(--ease-smooth),
    background var(--dur-fast) var(--ease-smooth),
    backdrop-filter var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.nav.scrolled {
  height: var(--nav-height-scrolled);
  background: rgba(11, 11, 11, 0.85);
  backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.3);
  -webkit-backdrop-filter: blur(var(--glass-blur-heavy)) saturate(1.3);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  padding: 0 var(--content-padding);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
  letter-spacing: var(--ls-tight);
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.nav__logo:hover {
  opacity: 0.8;
}

.nav__logo span {
  color: var(--accent-light);
}

/* ---- Nav links ---- */

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.nav-link {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: 8px 4px;
  position: relative;
  transition: color var(--dur-fast) var(--ease-smooth);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--dur-fast) var(--ease-mdx);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-primary);
}

/* ---- Nav icon button (hamburger, etc.) ---- */

.nav-icon {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition:
    background var(--dur-fast) var(--ease-smooth),
    color var(--dur-fast) var(--ease-smooth),
    border-color var(--dur-fast) var(--ease-smooth);
}

.nav-icon:hover {
  background: var(--bg-glass);
  color: var(--text-primary);
  border-color: var(--border-accent);
}

/* Mobile nav toggle */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    z-index: var(--z-overlay);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    font-size: var(--fs-lg);
  }

  .nav-icon {
    display: flex;
  }
}


/* ================================================================
   10. BACKGROUND TEXTURES
   Grid overlay, radial glows, noise grain.
   Positioned absolutely within their parent section.
   ================================================================ */

/* ---- Dot grid pattern ---- */

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.04) 1px,
    transparent 0
  );
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Teal radial glow ---- */

.bg-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: var(--radius-round);
  background: radial-gradient(
    circle,
    rgba(var(--accent-rgb), 0.12) 0%,
    rgba(var(--accent-rgb), 0.04) 40%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.bg-glow--top-right {
  top: -200px;
  right: -200px;
}

.bg-glow--bottom-left {
  bottom: -200px;
  left: -200px;
}

.bg-glow--center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.bg-glow--highlight {
  background: radial-gradient(
    circle,
    rgba(var(--highlight-rgb), 0.08) 0%,
    rgba(var(--highlight-rgb), 0.02) 40%,
    transparent 70%
  );
}

/* ---- Film grain noise overlay ---- */

/* When .bg-noise is on a wrapper div (positioned overlay) */
div.bg-noise,
span.bg-noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
  mix-blend-mode: overlay;
}

/* When .bg-noise is on body or a structural element — only the pseudo-element gets noise */
.bg-noise::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.015;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}


/* ================================================================
   11. SCROLL INDICATORS
   Vertical scroll cue + section navigation dots.
   ================================================================ */

/* ---- Scroll indicator (bouncing arrow, usually in hero) ---- */

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator__text {
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-ultra-wide);
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-indicator__arrow {
  width: 24px;
  height: 24px;
  color: var(--accent);
  animation: scroll-bounce 2s var(--ease-smooth) infinite;
}

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

/* ---- Section navigation dots (side rail) ---- */

.section-nav {
  position: fixed;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: var(--z-sticky);
}

.section-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-round);
  background: var(--border-medium);
  border: none;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease-smooth),
    transform var(--dur-fast) var(--ease-snap),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.section-dot:hover {
  background: var(--accent);
  transform: scale(1.3);
}

.section-dot.active {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  transform: scale(1.4);
}

.section-dot[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-fast) var(--ease-smooth);
}

.section-dot[data-tooltip]:hover::before {
  opacity: 1;
}

/* Hide dots on narrow screens */
@media (max-width: 768px) {
  .section-nav {
    display: none;
  }
}


/* ================================================================
   12. MARQUEE
   Infinite horizontal scrolling text. Pure CSS animation.
   Supports pause-on-hover.
   ================================================================ */

.marquee {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

/* Fade edges */
.marquee::before,
.marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-inner {
  display: inline-flex;
  gap: var(--space-lg);
  animation: marquee-scroll 30s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-inner {
  animation-play-state: paused;
}

.marquee-inner__item {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-muted);
  flex-shrink: 0;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Separator dot between marquee items */
.marquee-inner__item::after {
  content: '\2022';
  color: var(--accent);
  font-size: 0.6em;
}

/* Reverse direction variant */
.marquee--reverse .marquee-inner {
  animation-direction: reverse;
}

/* Slow variant */
.marquee--slow .marquee-inner {
  animation-duration: 50s;
}

/* Fast variant */
.marquee--fast .marquee-inner {
  animation-duration: 15s;
}

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


/* ================================================================
   13. FORM INPUTS
   Glassmorphism-styled inputs, textareas, selects.
   Consistent focus/error/disabled states.
   ================================================================ */

/* ---- Shared input base ---- */

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  color: var(--text-primary);
  background: var(--bg-glass);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition:
    border-color var(--dur-fast) var(--ease-smooth),
    background var(--dur-fast) var(--ease-smooth),
    box-shadow var(--dur-fast) var(--ease-smooth);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-muted);
}

/* Focus state */
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--bg-glass-hover);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.15);
}

/* Hover (non-focused) */
.input:hover:not(:focus),
.textarea:hover:not(:focus),
.select:hover:not(:focus) {
  border-color: var(--border-medium);
  background: var(--bg-glass-hover);
}

/* Error state */
.input--error,
.textarea--error,
.select--error {
  border-color: var(--error) !important;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.15) !important;
}

/* Success state */
.input--success,
.textarea--success,
.select--success {
  border-color: var(--success) !important;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15) !important;
}

/* Disabled */
.input:disabled,
.textarea:disabled,
.select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---- Textarea ---- */

.textarea {
  resize: vertical;
  min-height: 120px;
  line-height: var(--lh-body);
}

/* ---- Select ---- */

.select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23b0b8c4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 44px;
  cursor: pointer;
}

.select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* ---- Form group (label + input + hint) ---- */

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.form-group__label {
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
}

.form-group__hint {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.form-group__error {
  font-size: var(--fs-xs);
  color: var(--error);
}


/* ================================================================
   14. BADGES
   Status indicators, oddity level, category labels.
   ================================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-glass);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Oddity Level badge — the OddlyJobs signature */
.badge-odd {
  background: var(--accent-subtle);
  border-color: var(--border-accent);
  color: var(--accent-light);
}

/* Pulsing dot indicator for oddity */
.badge-odd::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-round);
  background: var(--accent-light);
  animation: pulse-dot 2s var(--ease-smooth) infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* Oddity level variants */
.badge-odd--mild {
  --accent-local: #34d399;
  background: rgba(52, 211, 153, 0.1);
  border-color: rgba(52, 211, 153, 0.3);
  color: #34d399;
}

.badge-odd--mild::before { background: #34d399; }

.badge-odd--spicy {
  --accent-local: var(--highlight);
  background: var(--highlight-subtle);
  border-color: var(--border-highlight);
  color: var(--highlight);
}

.badge-odd--spicy::before { background: var(--highlight); }

.badge-odd--wild {
  --accent-local: #f87171;
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.3);
  color: #f87171;
}

.badge-odd--wild::before { background: #f87171; }

/* Category badge */
.badge-category {
  background: var(--bg-secondary);
  border-color: var(--border-medium);
  color: var(--text-primary);
}

/* Badge color variants */
.badge--success {
  background: var(--success-bg);
  border-color: rgba(52, 211, 153, 0.3);
  color: var(--success);
}

.badge--warning {
  background: var(--warning-bg);
  border-color: rgba(251, 191, 36, 0.3);
  color: var(--warning);
}

.badge--error {
  background: var(--error-bg);
  border-color: rgba(248, 113, 113, 0.3);
  color: var(--error);
}

.badge--info {
  background: var(--info-bg);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--info);
}


/* ================================================================
   15. RESPONSIVE BREAKPOINTS
   Mobile-first approach. Breakpoints at standard widths.
   Grid collapse, typography scaling, nav behavior.
   ================================================================ */

/* ---- 320px: Smallest phones ---- */
@media (max-width: 320px) {
  :root {
    --content-padding: 16px;
  }

  .display-text {
    font-size: clamp(36px, 10vw, 48px);
  }

  .stats-row {
    flex-direction: column;
    gap: var(--space-md);
  }

  .stats-row__divider {
    width: 60px;
    height: 1px;
    align-self: center;
  }
}

/* ---- 480px: Large phones ---- */
@media (max-width: 480px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .split-60-40,
  .split-40-60,
  .split-50-50 {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .feature-card {
    padding: var(--space-md);
  }

  .btn {
    padding: 12px 24px;
    font-size: var(--fs-xs);
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: var(--fs-sm);
  }
}

/* ---- 768px: Tablets ---- */
@media (max-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .split-60-40,
  .split-40-60 {
    grid-template-columns: 1fr;
  }

  .marquee-inner__item {
    font-size: var(--fs-lg);
  }

  h1, .h1 {
    font-size: clamp(36px, 6vw, 72px);
  }

  h2, .h2 {
    font-size: clamp(28px, 4vw, 48px);
  }
}

/* ---- 1024px: Small laptops ---- */
@media (max-width: 1024px) {
  .grid-4 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- 1440px: Standard desktop (design baseline) ---- */
/* No changes needed — this is the design target */

/* ---- 1920px+: Large displays ---- */
@media (min-width: 1920px) {
  :root {
    --max-width: 1600px;
  }

  .container--wide {
    max-width: 1920px;
  }
}


/* ================================================================
   16. REDUCED MOTION SUPPORT
   Respect user system preferences. Disable transforms,
   animations, and transitions when requested.
   ================================================================ */

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

  .glass-card:hover,
  .feature-card:hover {
    transform: none;
  }

  .marquee-inner {
    animation: none;
  }

  .scroll-indicator__arrow {
    animation: none;
  }

  .badge-odd::before {
    animation: none;
  }

  /* Keep visual state changes, just remove motion */
  .glass-card:hover {
    border-color: var(--border-accent);
    box-shadow: var(--shadow-elevated), var(--shadow-glow);
  }

  .btn-primary:hover {
    background: var(--accent-light);
    box-shadow: var(--shadow-glow-strong);
  }
}


/* ================================================================
   17. HOVER MICRO-INTERACTIONS
   Image zoom in containers, card lift refinements,
   link underline slide animation.
   ================================================================ */

/* ---- Image zoom on hover (within a container) ---- */

.img-zoom {
  overflow: hidden;
  border-radius: var(--radius-md);
}

.img-zoom img,
.img-zoom video {
  transition: transform var(--dur-slow) var(--ease-mdx);
  will-change: transform;
}

.img-zoom:hover img,
.img-zoom:hover video {
  transform: scale(1.06);
}

/* ---- Card lift (generic hover lift for any element) ---- */

.hover-lift {
  transition:
    transform var(--dur-medium) var(--ease-mdx),
    box-shadow var(--dur-medium) var(--ease-mdx);
}

.hover-lift:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-elevated);
}

/* Subtle version */
.hover-lift--subtle:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

/* ---- Link underline slide (left-to-right reveal) ---- */

.link-slide {
  position: relative;
  display: inline;
}

.link-slide::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: var(--radius-pill);
  transition: width var(--dur-fast) var(--ease-mdx);
}

.link-slide:hover::after {
  width: 100%;
}

/* Variant: accent color underline on white text */
.link-slide--accent {
  color: var(--text-primary);
}

.link-slide--accent::after {
  background: var(--accent-light);
}

/* ---- Icon hover rotate ---- */

.hover-rotate {
  transition: transform var(--dur-fast) var(--ease-snap);
}

.hover-rotate:hover {
  transform: rotate(15deg);
}

/* ---- Glow on hover (any element) ---- */

.hover-glow {
  transition: box-shadow var(--dur-medium) var(--ease-mdx);
}

.hover-glow:hover {
  box-shadow: var(--shadow-glow);
}

.hover-glow--strong:hover {
  box-shadow: var(--shadow-glow-strong);
}

/* ---- Scale on hover ---- */

.hover-scale {
  transition: transform var(--dur-fast) var(--ease-snap);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-scale:active {
  transform: scale(0.98);
}


/* ================================================================
   18. PRELOADER
   Fullscreen overlay that covers page during load.
   Use JS to add .preloader--hidden when ready.
   ================================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: var(--z-preloader);
  background: var(--bg-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  transition: opacity var(--dur-slow) var(--ease-mdx);
}

.preloader--hidden {
  opacity: 0;
  pointer-events: none;
}

.preloader__logo {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--text-primary);
}

.preloader__logo span {
  color: var(--accent-light);
}

/* Teal pulse ring loader */
.preloader__ring {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-round);
  border: 3px solid var(--border-subtle);
  border-top-color: var(--accent);
  animation: preloader-spin 1s linear infinite;
}

@keyframes preloader-spin {
  to { transform: rotate(360deg); }
}

/* Progress bar variant */
.preloader__bar {
  width: 200px;
  height: 2px;
  background: var(--border-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.preloader__bar-fill {
  height: 100%;
  background: var(--accent);
  border-radius: var(--radius-pill);
  width: 0;
  transition: width var(--dur-medium) var(--ease-smooth);
}


/* ================================================================
   19. UTILITY CLASSES
   Common helpers for spacing, visibility, and special effects.
   ================================================================ */

/* ---- Visibility ---- */

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

/* Skip link: visible on focus for keyboard users */
.sr-only:focus {
  position: fixed;
  width: auto;
  height: auto;
  padding: 8px 16px;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  z-index: var(--z-preloader);
  top: 0;
  left: 0;
  background: var(--accent);
  color: var(--bg-primary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: 0 0 var(--radius-sm) 0;
}

.hidden {
  display: none !important;
}

.invisible {
  visibility: hidden;
}

/* ---- Overflow ---- */

.overflow-hidden {
  overflow: hidden;
}

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---- Spacing helpers ---- */

.mt-xs { margin-top: var(--space-xs); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-xs { margin-bottom: var(--space-xs); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.pt-section { padding-top: var(--space-section); }
.pb-section { padding-bottom: var(--space-section); }

/* ---- Width constraints ---- */

.max-w-narrow { max-width: 600px; }
.max-w-medium { max-width: 800px; }
.max-w-content { max-width: 960px; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Relative positioning for bg textures ---- */

.relative { position: relative; }
.z-content { position: relative; z-index: 1; }

/* ---- Teal accent gradient text ---- */

.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient--warm {
  background: linear-gradient(135deg, var(--highlight), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Dividers ---- */

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--border-subtle),
    transparent
  );
  border: none;
}

.divider--accent {
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  opacity: 0.3;
}

/* ---- Reveal animation bases ---- */
/* Apply these with JS (IntersectionObserver) by toggling .is-visible */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity var(--dur-slow) var(--ease-mdx),
    transform var(--dur-slow) var(--ease-mdx);
}

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

.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.is-visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.is-visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.is-visible {
  transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--dur-medium) var(--ease-mdx),
    transform var(--dur-medium) var(--ease-mdx);
}

.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.30s; }

.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
