/*
  Bold, mobile-first styling for a GitHub Pages static site.
  No frameworks required.
*/

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #0b0f14;
  --bg2: #101926;
  --surface: rgba(255, 255, 255, 0.03);
  /* Subtle surface */
  --surface2: rgba(255, 255, 255, 0.08);
  /* Slightly lighter */
  --stroke: rgba(255, 255, 255, 0.08);
  /* Clean borders */
  --text: rgba(255, 255, 255, 0.95);
  --muted: rgba(255, 255, 255, 0.65);
  --muted2: rgba(255, 255, 255, 0.45);
  --accent: #ffb347;
  /* Warm Gold */
  --accent-glow: rgba(255, 179, 71, 0.4);
  --accent2: #4fd1c5;
  /* Teal */
  --accent3: #ff7a5c;
  /* Coral */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --alt-border: rgba(255, 255, 255, 0.06);
  --radius: 24px;
  --radius-sm: 16px;
  --max: 1200px;
  /* Wider content area */
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --top-slideshow-ratio: 21 / 9;
  /* Cinematic ratio */
  --transition: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="light"] {
  --bg: #fdfbf7;
  --bg2: #ffffff;
  --surface: #ffffff;
  --surface2: #f2efe9;
  --stroke: rgba(0, 0, 0, 0.06);
  --text: #1a1e23;
  --muted: rgba(26, 30, 35, 0.65);
  --muted2: rgba(26, 30, 35, 0.45);
  --accent: #d97706;
  --accent-glow: rgba(217, 119, 6, 0.25);
  --accent2: #0f9e8a;
  --accent3: #e4573f;
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.12);
  --alt-border: rgba(0, 0, 0, 0.04);
}


* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  min-height: 100vh;
  scroll-behavior: smooth;
  overflow-x: hidden;
  /* Fix empty side space */
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

.site-footer {
  flex-shrink: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
  line-height: 1.7;
  letter-spacing: -0.01em;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@keyframes bgPulse {
  0% {
    background-position: 0% 0%;
    filter: hue-rotate(0deg);
  }

  100% {
    background-position: 100% 100%;
    filter: hue-rotate(15deg);
  }
}

#mobile-bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Behind main content */
  pointer-events: none;
  /* Let clicks pass through */
  display: none;
  /* Hidden by default (desktop) */
}

@media (max-width: 768px) {
  #mobile-bg-canvas {
    display: block;
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 179, 71, 0.3);
  border-radius: 99px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 179, 71, 0.5);
}

html[data-theme="light"] body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(217, 119, 6, 0.15), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(15, 158, 138, 0.15), transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, #ffffff 60%, #f4efe7 100%);
  background-size: 200% 200%;
  animation: bgPulse 8s ease-in-out infinite alternate;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

a:hover {
  color: var(--text);
  text-shadow: 0 0 12px rgba(255, 179, 71, 0.4);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

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

main {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(255, 179, 71, 0.3);
  color: var(--text);
}

code {
  padding: 0.1em 0.35em;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  border-radius: 8px;
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 179, 71, 0.18);
  border: 1px solid rgba(255, 179, 71, 0.4);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 15, 20, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--stroke);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  background: rgba(11, 15, 20, 0.85);
  box-shadow: var(--shadow-sm);
}

html[data-theme="light"] .site-header {
  background: rgba(248, 244, 238, 0.9);
  border-bottom: 1px solid rgba(21, 30, 44, 0.1);
  box-shadow: 0 12px 25px rgba(15, 20, 30, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 24px;
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 180px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  object-fit: cover;
  display: block;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.28), rgba(79, 209, 197, 0.22));
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text {
  display: grid;
  line-height: 1.15;
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-subtitle {
  font-size: 11px;
  color: var(--muted2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-nav {
  position: fixed;
  right: 16px;
  top: 68px;
  display: none;
  flex-direction: column;
  align-items: stretch;
  width: min(320px, calc(100% - 32px));
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(11, 15, 20, 0.92);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  z-index: 70;
}

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

.site-nav a {
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: var(--surface2);
}

.site-nav a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

html[data-theme="light"] .site-nav {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(21, 30, 44, 0.14);
}

.nav-cta {
  border: 1px solid rgba(255, 179, 71, 0.45);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.35), rgba(79, 209, 197, 0.2));
  color: var(--text);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.nav-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 34px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.theme-switch:hover {
  background: var(--surface2);
}

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

.theme-switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

.theme-switch-track {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  position: relative;
}

.theme-switch-thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 160ms ease;
}

.theme-switch[aria-checked="true"] .theme-switch-thumb {
  transform: translateX(20px);
}

.theme-switch-icon {
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: transform 0.3s cubic-bezier(.68, -0.55, .27, 1.55), opacity 0.3s;
  will-change: transform, opacity;
}

.theme-switch-icon.switching {
  transform: scale(1.5) rotate(20deg);
  opacity: 0.5;
}

.nav-toggle-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 0 auto;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

.top-slideshow {
  background: var(--bg);
  border-bottom: 1px solid var(--alt-border);
  position: relative;
  isolation: isolate;
}

.top-slideshow-track {
  position: relative;
  width: 100%;
  aspect-ratio: var(--top-slideshow-ratio);
  height: auto;
  overflow: hidden;
  background: var(--bg);
}

.top-slideshow-track::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 15, 20, 0.05) 0%, rgba(11, 15, 20, 0.65) 100%),
    linear-gradient(120deg, rgba(255, 179, 71, 0.14), transparent 45%);
  pointer-events: none;
}

.top-slideshow-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 50%;
  filter: saturate(1.05) contrast(1.02);
  opacity: 1;
  transform: scale(1);
  transition: opacity 800ms cubic-bezier(0.4, 0, 0.2, 1), transform 1200ms cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform, filter;
}

.top-slideshow-image.is-fading {
  opacity: 0;
  transform: scale(1.05);
  /* Slightly larger zoom */
  filter: blur(8px);
  /* Dreamy blur effect */
}


.top-slideshow-controls {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(11, 15, 20, 0.5);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(10px);
  /* Safari support */
  backdrop-filter: blur(10px);
  z-index: 1;
  max-width: min(var(--max), calc(100% - 32px));
  overflow-x: auto;
  overflow-y: hidden;
  white-space: nowrap;
  /* -webkit-overflow-scrolling removed for compatibility */
}

/* Hide scrollbar (keeps a clean look while still scrollable) */
.top-slideshow-controls::-webkit-scrollbar {
  height: 0;
}

.top-slideshow-controls::-webkit-scrollbar {
  display: none;
}

@media (max-width: 480px) {
  .top-slideshow-track {
    position: relative;
    min-height: 220px;
    display: flex;
    flex-direction: column;
  }

  .top-slideshow-image {
    order: 1;
  }

  .top-slideshow-controls {
    position: static;
    order: 2;
    width: 100%;
    margin-top: -12px;
    margin-bottom: 24px;
    transform: none;
    gap: 6px;
    padding: 10px 12px;
    max-width: 100%;
    justify-content: center;
    background: linear-gradient(90deg, rgba(11, 15, 20, 0.85) 0%, rgba(255, 179, 71, 0.12) 100%);
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10);
    z-index: 2;
  }
}

html[data-theme="light"] .top-slideshow-controls {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 12px 25px rgba(15, 20, 30, 0.12);
}

.top-slideshow-btn {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  opacity: 0.38;
  transform: scale(1);
  transition: width 0.5s cubic-bezier(0.25, 1, 0.5, 1), background 0.5s ease, opacity 0.5s ease;
}

html[data-theme="light"] .top-slideshow-btn {
  border: 1px solid rgba(11, 18, 32, 0.12);
  background: rgba(11, 18, 32, 0.05);
  color: rgba(11, 18, 32, 0.88);
}

.top-slideshow-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.65;
}

html[data-theme="light"] .top-slideshow-btn:hover {
  background: rgba(11, 18, 32, 0.08);
}

.top-slideshow-btn[aria-current="true"] {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  opacity: 1;
  width: 32px;
  transform: scale(1);
}



@media (prefers-reduced-motion: reduce) {

  .top-slideshow-image,
  .top-slideshow-btn {
    transition: none;
  }

  .top-slideshow-btn[aria-current="true"] {
    animation: none;
  }
}

/* Desktop crop control (set per-slide with CSS var --top-slide-pos via script.js) */
@media (min-width: 901px) {
  .top-slideshow-image {
    object-position: var(--top-slide-pos, 50% 35%);
  }
}

.top-slideshow-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

.hero {
  padding: 80px 0 60px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--accent-glow);
  background: rgba(255, 179, 71, 0.08);
  color: var(--accent);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.kicker:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--accent-glow);
  border-color: var(--accent);
  background: rgba(255, 179, 71, 0.15);
}

h1 {
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text) 30%, rgba(255, 255, 255, 0.6));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  margin: 0 auto 32px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  max-width: 60ch;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-actions .btn {
  width: auto;
  min-width: 160px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(79, 209, 197, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

html[data-theme="light"] .badge {
  background: var(--surface2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  cursor: pointer;
}

.btn:hover {
  background: var(--surface);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--text);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.btn.primary {
  border: none;
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 20px var(--accent-glow);
  position: relative;
  overflow: hidden;
}

.btn.primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.btn.primary:hover::after {
  left: 100%;
}

.btn.primary:hover {
  background: #ffc46b;
  box-shadow: 0 8px 30px var(--accent-glow);
  transform: translateY(-2px);
}

html[data-theme="light"] .btn:not(.primary) {
  border-color: rgba(0, 0, 0, 0.1);
  background: #fff;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 0;
}

.hero-stats>div {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 179, 71, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 179, 71, 0.05) 100%);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.hero-stats>div:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(255, 179, 71, 0.15);
  border-color: rgba(255, 179, 71, 0.4);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 179, 71, 0.1) 100%);
}

.hero-stats dt {
  color: var(--muted2);
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-stats .yt-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.hero-stats dd {
  margin: 4px 0 0;
  font-weight: 800;
  font-size: 15px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.hero-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card-top {
  padding: 16px 16px 10px;
}

.hero-card-label {
  margin: 0;
  font-size: 12px;
  color: var(--muted2);
}

.hero-card-title {
  margin: 6px 0 4px;
  font-weight: 800;
  font-size: 16px;
}

.hero-card-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-embed {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border-top: 1px solid var(--stroke);
}

.hero-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.yt-poster {
  width: 100%;
  height: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: block;
}

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

.yt-poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: white;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.section {
  padding: 32px 0;
  background: var(--bg2);
  scroll-margin-top: 90px;
}

.section.alt {
  background: var(--bg);
  border-top: 1px solid var(--alt-border);
  border-bottom: 1px solid var(--alt-border);
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 22px;
}

.section-head h2::after {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

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

.grid.grid-scroll {
  grid-auto-flow: row;
}

.video-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface2);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 179, 71, 0.3);
}

.video-card-link {
  display: block;
  color: inherit;
}

.video-card-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

.video-thumb {
  aspect-ratio: 16 / 9;
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}

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

.video-meta {
  padding: 12px 12px 14px;
}

.video-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
}

.video-title a {
  color: inherit;
}

.video-desc {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.video-meta-line {
  margin: 8px 0 0;
  color: var(--muted2);
  font-size: 12px;
}

.video-card--empty .video-meta {
  padding: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  padding: 16px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.22);
  border-color: rgba(79, 209, 197, 0.3);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.card p {
  margin: 0 0 10px;
  color: var(--muted);
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.list li {
  margin: 6px 0;
}

.callout {
  margin-top: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 179, 71, 0.35);
  background: rgba(255, 179, 71, 0.12);
  padding: 12px;
}

.callout-title {
  margin: 0;
  font-weight: 800;
  font-size: 13px;
}

.callout-body {
  margin: 6px 0 0;
  color: var(--muted);
}

.social-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-card:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 179, 71, 0.1) 100%);
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 32px rgba(255, 179, 71, 0.15);
  border-color: rgba(255, 179, 71, 0.4);
}

.social-card:hover .social-icon {
  background: var(--accent);
  color: #000;
  box-shadow: 0 4px 12px var(--accent-glow);
  border-color: transparent;
}

.social-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.3);
}

.social-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  color: var(--text);
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-title {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
}

.social-desc {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.social-arrow {
  margin-left: auto;
  color: var(--muted2);
  font-weight: 800;
}

.contact-card {
  border-radius: var(--radius);
  border: 1px solid var(--accent-glow);
  background: linear-gradient(135deg, rgba(255, 179, 71, 0.1), rgba(79, 209, 197, 0.05));
  padding: 32px;
  display: flex;
  align-items: center;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.contact-actions .btn {
  width: 100%;
}

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

.site-footer {
  padding: 34px 0 46px;
  background:
    radial-gradient(800px 220px at 10% -20%, rgba(255, 179, 71, 0.18), transparent 60%),
    radial-gradient(800px 220px at 90% -10%, rgba(79, 209, 197, 0.18), transparent 60%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #0b0f14 0%, #0a0e14 100%);
  border-top: 1px solid rgba(255, 179, 71, 0.12);
  position: relative;
  overflow: visible;
  /* Changed from hidden to allow button to sit outside */
}

.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 71, 0.55), rgba(79, 209, 197, 0.45), transparent);
  opacity: 0.9;
}

.site-footer::after {
  content: "";
  position: absolute;
  left: -140px;
  right: -140px;
  top: -160px;
  height: 280px;
  background:
    radial-gradient(closest-side, rgba(255, 179, 71, 0.18), transparent 70%),
    radial-gradient(closest-side, rgba(79, 209, 197, 0.14), transparent 70%);
  filter: blur(0px);
  opacity: 0.35;
  pointer-events: none;
  animation: footerGlow 14s ease-in-out infinite;
  will-change: transform, opacity;
}

html[data-theme="light"] .site-footer {
  background:
    radial-gradient(800px 220px at 10% -20%, rgba(217, 119, 6, 0.12), transparent 60%),
    radial-gradient(800px 220px at 90% -10%, rgba(15, 158, 138, 0.1), transparent 60%),
    repeating-linear-gradient(135deg, rgba(21, 30, 44, 0.04) 0 2px, transparent 2px 14px),
    linear-gradient(180deg, #ffffff 0%, #f6efe5 100%);
  border-top: 1px solid rgba(217, 119, 6, 0.18);
}

html[data-theme="light"] .site-footer::after {
  opacity: 0.18;
}

@keyframes footerGlow {
  0% {
    transform: translateX(-2%) translateY(0);
    opacity: 0.25;
  }

  50% {
    transform: translateX(2%) translateY(6px);
    opacity: 0.45;
  }

  100% {
    transform: translateX(-2%) translateY(0);
    opacity: 0.25;
  }
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-radius: 99px;
  border: 1px solid var(--stroke);
  background: rgba(11, 15, 20, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  max-width: 900px;
  margin: 0 auto;
}

html[data-theme="light"] .footer-inner {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(21, 30, 44, 0.1);
  box-shadow: var(--shadow-sm);
}

.footer-meta {
  display: grid;
  gap: 4px;
}

.footer-meta p {
  margin: 0;
}



html.js [data-animate] {
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  filter: blur(6px);
  transition: opacity 600ms ease, transform 600ms ease, filter 600ms ease;
  transition-delay: var(--delay, 0ms);
}

html.js [data-animate].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  html.js [data-animate] {
    transition: none;
    transform: none;
    filter: none;
  }

  .site-footer::after {
    animation: none;
  }
}

/* Responsive */
@media (max-width: 520px) {
  .brand-subtitle {
    display: none;
  }
}

@media (max-width: 719px) {
  .top-slideshow-image {
    object-fit: cover;
  }

  .top-slideshow-controls {
    top: auto;
    bottom: 14px;
    transform: translateX(-50%);
  }

  .grid.grid-scroll {
    grid-auto-flow: column;
    grid-auto-columns: minmax(78%, 1fr);
    grid-template-columns: minmax(78%, 1fr);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }

  .grid.grid-scroll .video-card {
    scroll-snap-align: start;
  }
}

/* Ensure Slideshow Controls are perfectly centered on Desktop */
@media (min-width: 720px) {
  .top-slideshow-controls {
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: 24px !important;
    /* Slightly raised for better look */
    width: auto !important;
    position: absolute !important;
  }
}

@media (min-width: 720px) {
  .container {
    padding: 0 20px;
  }

  .hero-actions {
    flex-direction: row;
    align-items: center;
    margin-bottom: 16px;
  }

  .hero-actions .btn {
    width: auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .social-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .contact-actions {
    width: auto;
  }

  /* Fix Inquiry button alignment on PC */
  .contact-actions .btn {
    width: auto;
    min-width: 140px;
    padding: 12px 24px;
  }

  .footer-inner {
    flex-direction: row;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .section {
    padding: 60px 0;
    /* Increased padding */
  }

  .hero {
    padding: 72px 0 36px;
  }

  .site-nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    /* Increased gap */
    width: auto;
    padding: 0;
    margin-left: auto;
    border: none;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .site-nav a {
    padding: 8px 0;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    color: var(--muted);
  }

  .site-nav a:hover {
    background: transparent;
    color: var(--text);
  }

  /* Nav Link Underline Animation */
  .site-nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
    border-radius: 99px;
  }

  .site-nav a:hover::after {
    width: 100%;
  }

  /* Section Head Typography */
  .section-head h2 {
    font-size: 24px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }

  .site-nav a {
    padding: 9px 10px;
  }

  .nav-toggle {
    display: none;
  }

  .header-actions {
    margin-left: 0;
  }

  .two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Hero Typography Enhancement */
  h1 {
    font-size: clamp(36px, 4.5vw, 64px);
    letter-spacing: -0.02em;
  }
}

@media (min-width: 1100px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .social-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Marquee Animation (Footer) */
.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  flex: 1;
  /* Allow it to take up space in footer flex but respect limits */
  min-width: 0;
  /* Critical for flex child overflow hidden */
  margin-right: 0;
  /* Space before 'Back to top' button */
  padding-right: 0;
}

@media (max-width: 480px) {
  .marquee-content span {
    font-size: 13px;
    /* Adjusted for phone readability */
    padding-right: 20px;
  }
}

.marquee-content {
  display: inline-block;
  padding-left: 100%;
  width: max-content;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-content span {
  color: var(--muted);
  font-size: 14px;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

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

/* Ensure links in marquee are clickable and visible */
.marquee-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(255, 179, 71, 0.4);
  /* Hide duplicate on reduced motion */
}


.back-to-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, opacity 300ms ease;
  flex-shrink: 0;
  opacity: 0.5;
  /* Always visible but dim when not hovered, typical footer element behavior */
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #1a202c;
  /* distinct on accent */
  opacity: 1;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(255, 179, 71, 0.4);
}

.back-to-top-icon {
  width: 20px;
  height: 20px;
  pointer-events: none;
  /* Ensure click passes to button */
}

@media (max-width: 480px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }

  .marquee-container {
    padding-right: 0;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
  }

  .back-to-top {
    width: 36px;
    height: 36px;
  }
}

.marquee-content a:hover {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .marquee-content {
    animation: none;
    width: 100%;
    white-space: normal;
    display: block;
  }

  .marquee-content span {
    display: block;
    padding-right: 0;
    text-align: center;
  }

  .marquee-content span:last-child {
    display: none;
    /* Hide duplicate on reduced motion */
  }
}