/* ============================================
   CERES STRATEGY — ceresstrategy.co.uk
   ============================================ */

/* --- Custom Properties --- */
:root {
  --color-dark: #0c1829;
  --color-dark-mid: #132238;
  --color-primary: #1a365d;
  --color-primary-light: #2b5797;
  --color-accent: #3b82f6;
  --color-accent-soft: #60a5fa;
  --color-warm: #d97706;
  --color-warm-light: #f59e0b;
  --color-success: #059669;
  --color-text: #1e293b;
  --color-text-light: #64748b;
  --color-text-on-dark: #e2e8f0;
  --color-text-muted-on-dark: #94a3b8;
  --color-bg: #ffffff;
  --color-bg-alt: #f1f5f9;
  --color-bg-warm: #fffbeb;
  --color-border: #e2e8f0;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --nav-height: 72px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p {
  max-width: 65ch;
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--color-text-light);
}

.lead--on-dark {
  color: var(--color-text-muted-on-dark);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  display: block;
}

.eyebrow--warm {
  color: var(--color-warm);
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.container--narrow {
  max-width: var(--max-width-narrow);
}

.section {
  padding: 5rem 0;
}

.section--dark {
  background: var(--color-dark);
  color: var(--color-text-on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--warm {
  background: var(--color-bg-warm);
}

.grid {
  display: grid;
  gap: 2rem;
}

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 0; }
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(12, 24, 41, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

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

.nav__brand {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.nav__brand span {
  color: var(--color-accent-soft);
  font-weight: 400;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav__links a {
  color: var(--color-text-muted-on-dark);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav__links a:hover,
.nav__links a.active {
  color: #fff;
}

.nav__links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav__toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}

@media (max-width: 768px) {
  .nav__toggle {
    display: block;
  }
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(12, 24, 41, 0.98);
    backdrop-filter: blur(12px);
    padding: 1.5rem 2rem;
    gap: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }
  .nav__links.open {
    display: flex;
  }
}

/* --- Hero --- */
.hero {
  padding: 10rem 0 6rem;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -20%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.08) 0%, transparent 40%),
    radial-gradient(ellipse at 60% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 45%);
  pointer-events: none;
  animation: auroraShift 20s ease-in-out infinite alternate;
}

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

.hero h1 {
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero .lead {
  color: var(--color-text-muted-on-dark);
  margin-bottom: 2.5rem;
  max-width: 55ch;
}

.hero--page {
  padding: 9rem 0 4rem;
}

.hero--page h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--color-primary-light);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-accent-soft);
  border: 1.5px solid var(--color-accent);
}

.btn--outline:hover {
  background: var(--color-accent);
  color: #fff;
}

.btn--warm {
  background: var(--color-warm);
  color: #fff;
}

.btn--warm:hover {
  background: var(--color-warm-light);
  color: #fff;
  transform: translateY(-1px);
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* --- Cards --- */
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.card--dark {
  background: rgba(19, 34, 56, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: rgba(255,255,255,0.08);
}

.card--dark h3 {
  color: #fff;
}

.card--dark p {
  color: var(--color-text-muted-on-dark);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
}

.card--dark .card__icon {
  background: rgba(59, 130, 246, 0.15);
}

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
}

.stat__number {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat__label {
  font-size: 0.9rem;
  color: var(--color-text-muted-on-dark);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; gap: 1rem; }
}

/* --- Session/Feature List --- */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-item__marker {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
}

.feature-item__content h4 {
  margin-bottom: 0.25rem;
}

.feature-item__content p {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* --- Two-Column Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.split--wide-left {
  grid-template-columns: 1.2fr 0.8fr;
}

.split--wide-right {
  grid-template-columns: 0.8fr 1.2fr;
}

@media (max-width: 768px) {
  .split, .split--wide-left, .split--wide-right {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- Photo Placeholder --- */
.photo-placeholder {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-bg-alt);
  border: 3px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.photo-placeholder svg {
  width: 80px;
  height: 80px;
  opacity: 0.3;
}

/* --- Quote/Callout --- */
.callout {
  border-left: 3px solid var(--color-accent);
  padding: 1.5rem 2rem;
  background: rgba(59, 130, 246, 0.04);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 2rem 0;
}

.callout--warm {
  border-left-color: var(--color-warm);
  background: rgba(217, 119, 6, 0.04);
}

.callout p {
  font-size: 1.1rem;
  font-style: italic;
  color: var(--color-text);
  max-width: 100%;
}

/* --- Workshop Sessions --- */
.session-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.session-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--color-accent), var(--color-primary-light));
}

.session-card__number {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.session-card h3 {
  margin-bottom: 0.5rem;
}

.session-card p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.session-card ul {
  list-style: none;
  padding: 0;
}

.session-card ul li {
  padding: 0.3rem 0;
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.session-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  opacity: 0.5;
}

/* --- Coming Soon Banner --- */
.coming-soon {
  display: inline-block;
  background: var(--color-warm);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 0.8rem;
  border-radius: 3px;
  margin-bottom: 1rem;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: 5rem 0;
  background: var(--color-dark);
  color: var(--color-text-on-dark);
}

.cta-section h2 {
  color: #fff;
  margin-bottom: 1rem;
}

.cta-section p {
  color: var(--color-text-muted-on-dark);
  margin: 0 auto 2rem;
  max-width: 50ch;
}

/* --- Contact Form --- */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* --- Footer --- */
.footer {
  background: var(--color-dark);
  color: var(--color-text-muted-on-dark);
  padding: 3rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.85rem;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer__links a {
  color: var(--color-text-muted-on-dark);
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: #fff;
}

/* --- Utilities --- */
.text-center { text-align: center; }
.text-white { color: #fff; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mt-4 { margin-top: 2rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

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

/* --- Page-specific: Research division accent --- */
.section--research {
  background: #faf7f2;
}

.section--research .eyebrow {
  color: var(--color-warm);
}

.section--research .card__icon {
  background: rgba(217, 119, 6, 0.1);
  color: var(--color-warm);
}

/* --- Contrast Section --- */
.contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.contrast__panel {
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

.contrast__panel--left {
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.contrast__panel--right {
  background: rgba(217, 119, 6, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.12);
}

.contrast__divider {
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

.contrast__divider span {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-muted-on-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contrast__panel h3 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contrast__panel--left h3 {
  color: var(--color-accent-soft);
}

.contrast__panel--right h3 {
  color: var(--color-warm-light);
}

.contrast__panel .stat__number {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 0.25rem;
}

.contrast__panel--left .stat__number {
  color: var(--color-accent-soft);
}

.contrast__panel--right .stat__number {
  color: var(--color-warm-light);
}

.contrast__panel p,
.contrast__panel .stat__label {
  color: var(--color-text-muted-on-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.contrast__bridge {
  text-align: center;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}

.contrast__bridge h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.contrast__bridge p {
  color: var(--color-text-muted-on-dark);
  max-width: 100%;
}

@media (max-width: 768px) {
  .contrast {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .contrast__divider {
    padding: 0.5rem 0;
    justify-content: center;
  }
}

/* --- Print --- */
@media print {
  .nav, .footer, .btn { display: none; }
  .hero { padding-top: 2rem; background: #fff; color: #000; }
  .section { padding: 2rem 0; }
}

/* ============================================
   VISUAL EFFECTS & ANIMATIONS
   ============================================ */

/* --- Aurora Gradient Keyframes --- */
@keyframes auroraShift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(2%, -1%) scale(1.02); }
  66% { transform: translate(-1%, 2%) scale(0.98); }
  100% { transform: translate(1%, -1%) scale(1.01); }
}

@keyframes auroraShift2 {
  0% { transform: translate(0, 0) scale(1.02); }
  50% { transform: translate(-3%, 1%) scale(0.98); }
  100% { transform: translate(1%, -2%) scale(1.02); }
}

/* --- Dark Section Aurora Blobs --- */
.section--dark,
.cta-section {
  position: relative;
  overflow: hidden;
}

.section--dark::before,
.cta-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  right: -10%;
  bottom: -20%;
  background:
    radial-gradient(ellipse at 25% 40%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
  pointer-events: none;
  animation: auroraShift2 25s ease-in-out infinite alternate;
}

.section--dark > .container,
.cta-section > .container {
  position: relative;
  z-index: 1;
}

/* --- Glow Effects (wide spread) --- */
.hero h1 {
  text-shadow: 0 0 120px rgba(59, 130, 246, 0.25), 0 0 50px rgba(59, 130, 246, 0.15), 0 0 10px rgba(59, 130, 246, 0.05);
}

.stat__number {
  text-shadow: 0 0 60px currentColor, 0 0 20px currentColor;
}

.btn--primary {
  box-shadow: 0 0 30px rgba(59, 130, 246, 0.35), 0 0 60px rgba(59, 130, 246, 0.12), 0 0 100px rgba(59, 130, 246, 0.05);
}

.btn--primary:hover {
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.2), 0 0 120px rgba(59, 130, 246, 0.08);
}

.card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 30px rgba(59, 130, 246, 0.08);
}

.card--dark:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), 0 0 50px rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.2);
}

/* --- Glassmorphism Enhancement --- */
.contrast__panel {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 4px 30px rgba(0, 0, 0, 0.2);
}

.card--dark {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 4px 20px rgba(0, 0, 0, 0.15);
}

.callout {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* --- CSS Scroll-Driven Animations --- */
@keyframes revealUp {
  from {
    opacity: 0;
    transform: translateY(40px);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes revealScale {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@supports (animation-timeline: view()) {
  .section > .container,
  .callout,
  .feature-item,
  .contrast__panel,
  .contrast__bridge {
    animation: revealUp 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

  .card,
  .session-card {
    animation: revealScale 0.8s ease both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }
}

/* JS-triggered fallback for browsers without scroll-driven animations */
@supports not (animation-timeline: view()) {
  .reveal-item {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(2px);
    transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
  }

  .reveal-item.revealed {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* --- Text Reveal Animation --- */
.text-reveal .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(25px);
  filter: blur(4px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 0.018s);
}

.text-reveal.revealed .char {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* --- Custom Cursor (ring style) --- */
.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  margin-left: -14px;
  margin-top: -14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.9);
  background: transparent;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              margin 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease;
  will-change: transform;
  opacity: 0;
}

.cursor.active {
  opacity: 1;
}

.cursor.hover {
  width: 52px;
  height: 52px;
  margin-left: -26px;
  margin-top: -26px;
  border-width: 1.5px;
}

@media (pointer: coarse) {
  .cursor { display: none !important; }
}

@media (pointer: fine) {
  .has-custom-cursor,
  .has-custom-cursor * {
    cursor: none !important;
  }
}

/* --- Particle Canvas --- */
#hero-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
