/*
Theme Name: Hari Thangavelu
Theme URI: https://harithangavelu.com
Author: Hari Thangavelu
Author URI: https://harithangavelu.com
Description: Custom Modern Portfolio & Developer Theme with JetBrains Mono and Anton typography.
Version: 1.0.0
Text Domain: harithangavelu
*/

/* ==========================================================================
   CSS Variables & Design Tokens
   ========================================================================== */
:root {
  --font-primary: 'Anton', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bg-main: #ECEAE4;
  --bg-card: #F5F4F0;
  --bg-pill: rgba(215, 213, 207, 0.7);
  --bg-pill-hover: rgba(198, 196, 190, 0.85);

  --text-dark: #121212;
  --text-muted: #555555;
  --text-light: #F8F8F8;

  --btn-dark-bg: #141414;
  --btn-dark-hover: #262626;
  --btn-dark-border: #2C2C2C;

  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-pill: rgba(0, 0, 0, 0.06);

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-btn: 0 4px 10px rgba(0, 0, 0, 0.15);

  --hg-cta-glow-strong: rgba(255, 255, 255, 0.32);

  --accent-green: #00ff00;
  --accent-green-dim: rgba(0, 255, 0, 0.15);
  --hg-tilt-glare-strong: rgba(255, 255, 255, 0.45);

  --header-height: 80px;
}

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

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
  html:not(.lenis) {
    scroll-behavior: smooth;
  }
}

html, body {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-main);
  background-image: radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 0);
  background-size: 24px 24px;
  color: var(--text-dark);
  font-family: var(--font-mono);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hg-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.hg-reveal.is-inview {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hg-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

/* ==========================================================================
   Site Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(236, 234, 228, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

/* Brand / Logo */
.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-primary);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  line-height: 1;
}

/* Center Pill Navigation */
.header-nav-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-pill-container {
  display: inline-flex;
  align-items: center;
  background: var(--bg-pill);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-pill);
  border-radius: 10px;
  padding: 6px 12px;
  box-shadow: var(--shadow-sm);
}

.nav-pill-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.nav-pill-item {
  position: relative;
}

.nav-pill-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2b2b2b;
  padding: 8px 14px;
  border-radius: 6px;
  display: block;
  transition: all 0.15s ease-in-out;
}

.nav-pill-link:hover,
.nav-pill-item.current-menu-item .nav-pill-link,
.nav-pill-item.is-active .nav-pill-link,
.nav-pill-link.is-active {
  color: #000000;
  background-color: var(--bg-pill-hover);
}

/* Right Actions / CTAs */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ==========================================================================
   Retro-Tech 3D Button Style
   ========================================================================== */
.custom-button,
.nav-action-signup,
.footer-newsletter-btn,
.books-card-title,
.course-enquiry-submit {
  cursor: none;
}

@media (max-width: 768px), (hover: none) {
  .custom-button,
  .nav-action-signup,
  .footer-newsletter-btn,
  .books-card-title,
  .course-enquiry-submit {
    cursor: pointer;
  }
}

.custom-button,
.retro-tech-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 32px;
  gap: 8px;
  white-space: nowrap;

  font-family: var(--font-mono), "JetBrains Mono", monospace;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;

  background-color: rgba(20, 20, 20, 0.92);
  color: rgb(230, 229, 222);
  border-radius: 6px;
  border-bottom: 0.8px solid rgba(20, 20, 20, 0.2);
  
  /* Core 3D tactile inset shadow */
  box-shadow: inset 0 -6px 0 0 rgb(0, 0, 0);
  
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.custom-button:hover,
.retro-tech-btn:hover {
  background-color: rgba(20, 20, 20, 0.85);
  color: #00ff00; 
  box-shadow: inset 0 -1px 0 0 rgb(0, 0, 0);
  transform: translateY(2px);
}

.custom-button:active,
.retro-tech-btn:active {
  transform: translateY(4px);
  box-shadow: none;
}

.custom-button:focus-visible,
.retro-tech-btn:focus-visible {
  outline: 2px solid #00ff00;
  outline-offset: 3px;
}

.custom-button .icon-container,
.retro-tech-btn .icon-container,
.custom-button .arrow-icon,
.retro-tech-btn .arrow-icon {
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-button:hover .icon-container,
.retro-tech-btn:hover .icon-container,
.custom-button:hover .arrow-icon,
.retro-tech-btn:hover .arrow-icon {
  transform: translateX(3px);
}

/* ==========================================================================
   Smooth Glow Button Style (Previous Style)
   ========================================================================== */
.hg-about-story__btn,
.nav-action-signup {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  border-radius: 0.625rem;
  background-color: var(--btn-dark-bg);
  border: 1px solid var(--btn-dark-border);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.3s ease;
  will-change: transform, box-shadow;
  text-decoration: none;
}

/* Optimization: GPU-accelerated pseudo-element for radial gradient glow transition */
.hg-about-story__btn::before,
.nav-action-signup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 95% 75% at 50% 100%, var(--hg-cta-glow-strong) 0%, transparent 62%);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  z-index: -1;
  pointer-events: none;
}

.hg-about-story__btn:hover,
.nav-action-signup:hover {
  transform: scale(1.03);
  box-shadow: 0 10px 24px -4px rgba(0, 0, 0, 0.35), 0 4px 10px -2px rgba(0, 0, 0, 0.2);
  color: #FFFFFF;
}

.hg-about-story__btn:hover::before,
.nav-action-signup:hover::before {
  opacity: 1;
}

/* Accessibility: Distinct focus ring */
.hg-about-story__btn:focus-visible,
.nav-action-signup:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Child Icon Micro-interaction */
.hg-about-story__btn i,
.hg-about-story__btn svg,
.hg-about-story__btn .arrow-icon,
.nav-action-signup i,
.nav-action-signup svg,
.nav-action-signup .arrow-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}

.hg-about-story__btn:hover i,
.hg-about-story__btn:hover svg,
.hg-about-story__btn:hover .arrow-icon,
.nav-action-signup:hover i,
.nav-action-signup:hover svg,
.nav-action-signup:hover .arrow-icon {
  transform: translateX(3px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-dark);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
  display: block;
}

/* ==========================================================================
   Mobile Nav Drawer
   ========================================================================== */
.mobile-menu-drawer {
  display: none;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 28px 28px;
}

.mobile-menu-drawer.is-active {
  display: block;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 14px;
  background: var(--bg-pill);
  border-radius: 8px;
  display: block;
}

.mobile-nav-link.is-active,
.mobile-nav-link:hover {
  background: var(--bg-pill-hover);
  color: #000000;
}

.mobile-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ==========================================================================
   Hero & Page Layout (Showcase)
   ========================================================================== */
.site-main {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 28px 100px;
}

.site-main:has(> .initiative-section:last-child) {
  padding-bottom: 0;
}

.site-main:has(> .initiative-section:last-child) + .site-footer {
  margin-top: 32px;
}

.hero-section {
  position: relative;
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
}

.blinking-squares-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 50%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 50%, transparent 95%);
}

.hero-content-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 20px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2D2D2D;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.badge-dot {
  color: #888888;
  font-size: 13px;
  line-height: 1;
  opacity: 0.6;
}

.hero-title {
  font-family: 'Plus Jakarta Sans', var(--font-primary), -apple-system, sans-serif;
  font-size: clamp(28px, 4.2vw, 52px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: #0E0E0E;
  margin-bottom: 20px;
}

.hero-title-line {
  display: block;
}

.hero-highlight {
  display: inline;
}

.hero-description {
  font-family: var(--font-mono);
  font-size: clamp(13px, 1.3vw, 15px);
  color: #505050;
  max-width: 680px;
  margin: 0 auto 28px;
  line-height: 1.6;
  text-align: center;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-btn-secondary {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 22px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.625rem;
  background: var(--bg-pill);
  border: 1px solid var(--border-pill);
  color: var(--text-dark);
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.hero-btn-secondary:hover {
  background: var(--bg-pill-hover);
  transform: translateY(-1px);
  color: #000000;
}

/* ==========================================================================
   About Section (Card Container Style)
   ========================================================================== */
.about-section {
  padding: 60px 0 80px;
}

.about-card-container {
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  padding: 50px 56px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 34% 66%;
  gap: 48px;
  align-items: center;
}

/* Left: Media Card */
.about-card-wrapper {
  position: relative;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
}

.about-image-card {
  width: 100%;
  aspect-ratio: 1 / 1.15;
  min-height: 320px;
  max-height: 390px;
  background-color: var(--bg-main);
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.about-featured-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.about-img-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #7E7E7E;
  font-family: var(--font-mono);
  font-size: 12px;
  max-width: 220px;
}

.about-img-icon {
  width: 34px;
  height: 34px;
  color: #666666;
}

/* Right: Content */
.about-content-col {
  display: flex;
  flex-direction: column;
}

.about-eyebrow-wrap,
.features-eyebrow-wrap,
.hg-eyebrow-wrap {
  margin-bottom: 12px;
}

.about-eyebrow,
.features-eyebrow,
.hg-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.about-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.about-bio-text p {
  font-family: var(--font-mono), monospace;
  font-size: 13.5px;
  line-height: 1.75;
  color: #555555;
  margin-bottom: 18px;
  letter-spacing: 0.01em;
}

.about-bio-text p strong {
  color: var(--text-dark);
  font-weight: 700;
}

.about-cta-wrap {
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin-top: 10px;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 80px 0 100px;
}

.features-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 64px;
}

.features-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 35px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.features-subheading {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.features-course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.features-course-card.is-tilting {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.hg-tilt-card__glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  border-radius: inherit;
  transition: opacity 0.3s ease;
}

.features-course-card.is-tilting .hg-tilt-card__glare,
.hg-tilt-card.is-tilting .hg-tilt-card__glare {
  opacity: 0.12;
}

.features-course-card > :not(.hg-tilt-card__glare) {
  position: relative;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .features-course-card {
    will-change: auto;
    transition: none;
  }
}

.features-course-category {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.features-course-title {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.features-course-desc {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.features-course-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 4px 0 8px;
  padding: 0;
}

.features-course-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dark);
}

.features-course-list li::before {
  content: "";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--bg-pill);
  border: 1px solid var(--border-pill);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23121212' stroke-width='2'%3E%3Cpath d='M5 10l3 3 7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.features-course-btn {
  align-self: flex-start;
  margin-top: auto;
}

button.features-course-btn {
  appearance: none;
  -webkit-appearance: none;
}

button.nav-action-signup,
button.custom-button {
  appearance: none;
  -webkit-appearance: none;
}

.course-enquiry-course-name[hidden] {
  display: none;
}

/* ==========================================================================
   Course Enquiry Modal
   ========================================================================== */
body.course-enquiry-open {
  overflow: hidden;
}

body.hg-target-cursor-active.course-enquiry-open,
body.hg-target-cursor-active.course-enquiry-open .course-enquiry-modal,
body.hg-target-cursor-active.course-enquiry-open .course-enquiry-modal * {
  cursor: none;
}

.course-enquiry-modal {
  position: fixed;
  inset: 0;
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.course-enquiry-modal[hidden] {
  display: none;
}

.course-enquiry-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.course-enquiry-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
  outline: none;
}

.course-enquiry-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text-dark);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.course-enquiry-close:hover {
  background: var(--bg-pill);
}

.course-enquiry-announcement {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 16px;
  padding-right: 36px;
}

.course-enquiry-intro {
  margin-bottom: 24px;
  padding-right: 36px;
}

.course-enquiry-intro .course-enquiry-announcement {
  margin-bottom: 16px;
}

.course-enquiry-course-name {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin: 0;
}

.course-enquiry-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.course-enquiry-checkbox {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  border: 1px solid rgba(18, 18, 18, 0.22);
  border-radius: 4px;
  background: var(--bg-main);
  cursor: pointer;
  display: grid;
  place-content: center;
}

.course-enquiry-checkbox::after {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--btn-dark-bg);
  border-radius: 2px;
  transform: scale(0);
  transition: transform 0.15s ease;
}

.course-enquiry-checkbox:checked::after {
  transform: scale(1);
}

.course-enquiry-checkbox:focus-visible {
  outline: 2px solid var(--btn-dark-border);
  outline-offset: 2px;
}

.course-enquiry-consent-label {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  cursor: pointer;
}

.course-enquiry-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.course-enquiry-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.course-enquiry-field label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dark);
}

.course-enquiry-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(18, 18, 18, 0.18);
  border-radius: 10px;
  background: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-mono);
  font-size: 14px;
  box-sizing: border-box;
  box-shadow: none;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.course-enquiry-input:hover,
.course-enquiry-input:focus,
.course-enquiry-input:focus-visible {
  outline: none;
  background: var(--bg-main);
  border-color: rgba(18, 18, 18, 0.18);
  box-shadow: none;
}

.course-enquiry-input:-webkit-autofill,
.course-enquiry-input:-webkit-autofill:hover,
.course-enquiry-input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text-dark);
  caret-color: var(--text-dark);
  box-shadow: 0 0 0 1000px var(--bg-main) inset;
  border: 1px solid rgba(18, 18, 18, 0.18);
  transition: background-color 9999s ease-out;
}

.course-enquiry-feedback {
  min-height: 0;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.course-enquiry-feedback:empty {
  display: none;
}

.course-enquiry-feedback.is-success {
  color: #1f6b3f;
}

.course-enquiry-feedback.is-error {
  color: #9b2c2c;
}

.course-enquiry-submit {
  align-self: stretch;
  width: 100%;
  height: 48px;
  justify-content: center;
}

.course-enquiry-submit:hover {
  transform: none;
}

.course-enquiry-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* ==========================================================================
   In the Media Section
   ========================================================================== */
.media-section {
  padding: 80px 0 100px;
}

.media-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 48px;
}

.media-eyebrow-wrap {
  margin-bottom: 12px;
}

.media-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  text-transform: none;
  color: var(--text-dark);
  margin-bottom: 16px;
}

.media-subheading {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.media-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-card.is-tilting {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.media-card > :not(.hg-tilt-card__glare) {
  position: relative;
  z-index: 1;
}

.media-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.media-card-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.media-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-card:hover .media-card-img {
  transform: scale(1.03);
}

.media-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7e7e7e;
  background: var(--bg-main);
}

.media-card-placeholder-icon {
  width: 36px;
  height: 36px;
}

.media-card-body {
  padding: 24px 22px 28px;
  flex: 1;
}

.media-card-title {
  font-family: var(--font-mono), 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
  color: var(--text-dark);
  letter-spacing: 0.01em;
}

.media-empty {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.media-cta-wrap {
  display: flex;
  justify-content: flex-start;
}

/* ==========================================================================
   Featured Books Section
   ========================================================================== */
.books-section {
  padding: 80px 0 100px;
}

.books-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 48px 56px;
  align-items: start;
}

.books-content-col {
  max-width: 420px;
}

.books-eyebrow-wrap {
  margin-bottom: 12px;
}

.books-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.books-description {
  font-family: var(--font-mono), 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  min-height: 1.75em;
  margin-bottom: 32px;
}

.books-description:empty {
  display: none;
}

.books-description p + p {
  margin-top: 16px;
}

.books-grid-col {
  min-width: 0;
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.books-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.books-card.is-tilting {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.books-card > :not(.hg-tilt-card__glare) {
  position: relative;
  z-index: 1;
}

.books-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.books-card-media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--bg-main);
  border-bottom: 1px solid var(--border-subtle);
}

.books-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.books-card:hover .books-card-img {
  transform: scale(1.03);
}

.books-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(0, 0, 0, 0.18);
  background: linear-gradient(145deg, #f0efea 0%, #e8e6e0 100%);
}

.books-card-placeholder-icon {
  width: 40px;
  height: 40px;
}

.books-card-body {
  padding: 14px 12px 16px;
  flex: 1;
}

.books-card-title {
  position: relative;
  display: inline-block;
  max-width: 100%;
  font-family: var(--font-mono), 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.25s ease, font-weight 0.25s ease;
  cursor: none;
}

.books-card-title.is-scroll-targeted {
  color: var(--text-dark);
  font-weight: 700;
}

.books-cta-wrap {
  display: flex;
  justify-content: flex-start;
}

.hg-tilt-card.books-card.is-tilting .hg-tilt-card__glare {
  opacity: 0.06;
}

/* ==========================================================================
   Instagram Reels Section
   ========================================================================== */
.reels-section {
  padding: 80px 0 48px;
}

.reels-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 48px;
}

.reels-eyebrow-wrap {
  margin-bottom: 12px;
}

.reels-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--text-dark);
}

.reels-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 36px;
}

.reels-card {
  background: var(--btn-dark-bg);
  border: 1px solid var(--btn-dark-border);
  border-radius: 14px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reels-card.is-tilting {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.reels-card > :not(.hg-tilt-card__glare) {
  position: relative;
  z-index: 1;
}

.reels-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.reels-card-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  flex-shrink: 0;
}

.reels-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reels-card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0a0a0a;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.reels-card-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.reels-card.has-video.is-playing .reels-card-play {
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.92);
}

.reels-card.has-video.is-playing .reels-card-overlay {
  opacity: 0.15;
}

.reels-card:hover .reels-card-img,
.reels-card:hover .reels-card-video {
  transform: scale(1.05);
}

.reels-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
}

.reels-card-placeholder svg {
  width: 36px;
  height: 36px;
}

.reels-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.reels-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.reels-card-play svg {
  width: 14px;
  height: 14px;
  margin-left: 2px;
  fill: #111;
}

.reels-card:hover .reels-card-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.reels-card-caption {
  margin: 0;
  padding: 12px 14px 14px;
  min-height: 66px;
  font-family: var(--font-mono), 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  background: var(--btn-dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.reels-empty {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  padding: 32px;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.reels-cta-wrap {
  display: flex;
  justify-content: flex-start;
}

.reels-follow-btn {
  gap: 10px;
}

.reels-follow-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.hg-tilt-card.reels-card.is-tilting .hg-tilt-card__glare {
  opacity: 0.08;
}

/* ==========================================================================
   YouTube Section
   ========================================================================== */
.youtube-section {
  padding: 80px 0 48px;
}

.youtube-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.5fr);
  gap: 48px 56px;
  align-items: start;
}

.youtube-content-col {
  max-width: 420px;
}

.youtube-eyebrow-wrap {
  margin-bottom: 12px;
}

.youtube-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.youtube-description {
  font-family: var(--font-mono), 'Noto Sans Tamil', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
}

.youtube-cta-wrap {
  display: flex;
  justify-content: flex-start;
}

.youtube-watch-btn {
  gap: 10px;
}

.youtube-watch-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.youtube-grid-col {
  min-width: 0;
}

.youtube-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.youtube-card {
  background: var(--btn-dark-bg);
  border: 1px solid var(--btn-dark-border);
  border-radius: 16px;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.youtube-card.is-tilting {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.youtube-card > :not(.hg-tilt-card__glare) {
  position: relative;
  z-index: 1;
}

.youtube-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.youtube-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0a0a0a;
}

.youtube-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease;
}

.youtube-card--rotator .youtube-card-img {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.youtube-card--rotator .youtube-card-img.is-active {
  opacity: 1;
  pointer-events: auto;
}

.youtube-card:hover .youtube-card-img.is-active,
.youtube-card:hover .youtube-card-img {
  transform: scale(1.03);
}

.youtube-card--rotator:hover .youtube-card-img:not(.is-active) {
  transform: none;
}

.youtube-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
}

.youtube-card-placeholder svg {
  width: 56px;
  height: 56px;
}

.youtube-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.45) 0%, transparent 55%);
  pointer-events: none;
}

.youtube-card-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.youtube-card-play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  fill: #111;
}

.youtube-card:hover .youtube-card-play {
  transform: translate(-50%, -50%) scale(1.08);
  background: #fff;
}

.youtube-card-caption {
  margin: 0;
  padding: 14px 16px 16px;
  font-family: var(--font-mono), system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  color: #f0f0f0;
  background: var(--btn-dark-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.youtube-empty {
  margin: 0;
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

@media (prefers-reduced-motion: reduce) {
  .youtube-card--rotator .youtube-card-img {
    transition: none;
  }
}

.hg-tilt-card.youtube-card.is-tilting .hg-tilt-card__glare {
  opacity: 0.08;
}

/* ==========================================================================
   Community & Speaking / Initiative Section
   ========================================================================== */
.initiative-section {
  padding: 80px 0 48px;
}

.initiative-header {
  text-align: left;
  max-width: 720px;
  margin: 0 0 40px;
}

.initiative-eyebrow-wrap {
  margin-bottom: 12px;
}

.initiative-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(32px, 3.6vw, 44px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin: 0;
}

.initiative-subheading {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.initiative-card {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(0, 1fr);
  align-items: stretch;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03);
}

.initiative-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 48px 36px 48px 44px;
}

.initiative-card__title {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: clamp(26px, 2.8vw, 34px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0.4px;
  color: var(--text-dark);
  margin: 0;
}

.initiative-card__text {
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  margin: 0;
  max-width: none;
}

.initiative-card__cta {
  padding-top: 8px;
}

.initiative-card__media {
  min-height: 240px;
  max-height: 380px;
}

.initiative-card__frame {
  height: 100%;
  min-height: 240px;
  max-height: 380px;
  padding: 14px 14px 14px 0;
  background: repeating-linear-gradient(
    90deg,
    var(--bg-card) 0 8px,
    var(--btn-dark-bg) 8px 14px
  );
}

.initiative-card__photo {
  height: 100%;
  min-height: 212px;
  max-height: 352px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-main);
}

.initiative-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.initiative-card__placeholder {
  width: 100%;
  height: 100%;
  min-height: 212px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(18, 18, 18, 0.22);
  background: linear-gradient(145deg, #f0efea 0%, #e4e2dc 100%);
}

.initiative-card__placeholder svg {
  width: 48px;
  height: 48px;
}

.initiative-empty {
  margin: 0;
  padding: 32px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

.initiative-carousel {
  position: relative;
}

.initiative-carousel__viewport {
  overflow: hidden;
  border-radius: 24px;
}

.initiative-carousel__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.initiative-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.initiative-carousel .initiative-card {
  border-radius: 24px;
}

.initiative-card__video-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
}

.initiative-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.initiative-card__play svg {
  width: 18px;
  height: 18px;
  margin-left: 2px;
  fill: #111;
}

.initiative-card__video-link:hover .initiative-card__play {
  transform: translate(-50%, -50%) scale(1.08);
}

.initiative-carousel__controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: 4px;
}

.initiative-carousel__arrow {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: #121212;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.initiative-carousel__arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.initiative-carousel__arrow--prev,
.initiative-carousel__arrow--next {
  left: auto;
  right: auto;
  top: auto;
  transform: none;
  position: static;
}

.initiative-carousel__arrow:hover {
  background: #262626;
}

@media (prefers-reduced-motion: reduce) {
  .initiative-carousel__track {
    transition: none;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-pill-link {
    padding: 7px 10px;
    font-size: 11px;
  }
  .header-actions {
    gap: 10px;
  }
  .about-grid {
    gap: 40px;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 28px;
  }
}

@media (max-width: 1200px) {
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .books-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .books-content-col {
    max-width: none;
  }

  .books-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .youtube-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .youtube-content-col {
    max-width: none;
  }

  .initiative-card {
    grid-template-columns: 1fr;
  }

  .initiative-card__content {
    padding: 40px 32px 28px;
  }

  .initiative-card__frame {
    padding: 0 16px 16px;
  }

  .reels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}

@media (max-width: 860px) {
  .header-nav-wrapper,
  .header-actions {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .features-section {
    padding: 60px 0 80px;
  }
  .features-header {
    margin-bottom: 48px;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .media-section {
    padding: 60px 0 80px;
  }
  .media-header {
    margin-bottom: 40px;
  }
  .media-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .books-section {
    padding: 60px 0 80px;
  }
  .books-layout {
    gap: 32px;
  }
  .books-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .reels-section {
    padding: 60px 0 40px;
  }
  .reels-header {
    margin-bottom: 40px;
  }
  .reels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .youtube-section {
    padding: 60px 0 40px;
  }

  .youtube-layout {
    gap: 32px;
  }

  .initiative-section {
    padding: 60px 0 40px;
  }

  .initiative-header {
    margin-bottom: 28px;
  }

  .initiative-card__content {
    padding: 32px 24px 24px;
  }

  .initiative-card__text {
    max-width: none;
  }

  .reels-card-caption {
    min-height: 58px;
    padding: 10px 12px 12px;
    font-size: 10px;
  }
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  margin-top: 80px;
  padding: 64px 28px 32px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-main);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 0.9fr 1.3fr;
  gap: 40px 32px;
  padding-bottom: 48px;
}

.footer-brand-name {
  display: inline-block;
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  margin-bottom: 10px;
}

.footer-brand-name:hover {
  color: var(--text-dark);
  opacity: 0.85;
}

.footer-brand-tagline {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 260px;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

.footer-social-link:hover {
  color: var(--text-dark);
  transform: translateY(-1px);
}

.footer-nav-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888888;
  margin-bottom: 16px;
}

.footer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-nav-list a,
.footer-nav-list .footer-nav-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-list .footer-nav-link {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  text-align: left;
}

.footer-nav-list a:hover,
.footer-nav-list .footer-nav-link:hover {
  color: var(--text-dark);
}

.footer-newsletter-heading {
  font-family: var(--font-primary), 'Anton', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.footer-newsletter-desc {
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-newsletter-input {
  flex: 1 1 160px;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  background: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-input::placeholder {
  color: #999999;
}

.footer-newsletter-input:focus {
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.footer-newsletter-btn {
  height: 44px;
  padding: 0 22px;
  border: none;
  border-radius: 8px;
  background: var(--btn-dark-bg);
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.footer-newsletter-btn:hover {
  background: var(--btn-dark-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-copyright {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #888888;
  letter-spacing: 0.04em;
  text-transform: none;
}

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

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

  .footer-brand-col {
    grid-column: 1 / -1;
  }

  .footer-newsletter-col {
    grid-column: 1 / -1;
    max-width: 420px;
  }
}

@media (max-width: 860px) {
  .site-main:has(> .initiative-section:last-child) + .site-footer {
    margin-top: 24px;
  }

  .site-footer {
    padding: 48px 28px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
  }

  .footer-brand-col,
  .footer-newsletter-col {
    grid-column: 1 / -1;
  }

  .footer-newsletter-col {
    max-width: none;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-newsletter-form {
    flex-direction: column;
  }

  .footer-newsletter-input,
  .footer-newsletter-btn {
    width: 100%;
  }
}
