:root {
  --testimonial-padding: clamp(2rem, 4vw, 4rem);
  --page-gutter: clamp(1.5rem, 3vw, 3rem); /* slightly reduced for balance */

  --font-sans: 'Segoe UI', sans-serif;
  --font-size-base: 1.1rem;      /* body, paragraphs */
  --font-size-small: 0.9rem;     /* footers, less important text */
  --font-size-medium: 1.25rem;   /* testimonials, hero text */
  --font-size-large: 1.5rem;     /* h2, key headlines */
  --font-size-xlarge: 2rem;      /* hero title */

  --line-height-tight: 1.4;
  --line-height-normal: 1.6;
  --line-height-loose: 1.8;

  /* Default (light) theme - active when no class is applied */
  --bg-color: #f5f5f5;
  --text-color: #333;
  --accent-bg: #fff;
  --link-color: rgb(0, 102, 204);
  --link-hover: rgb(0, 70, 160);
  --c64-black: #000000;
  --c64-white: #FFFFFF;
  --c64-red: #9F4E44;
  --c64-cyan: #6ABFC6;
  --c64-purple: #A057A3;
  --c64-green: #5CAB5E;
  --c64-blue: #50459B;
  --c64-yellow: #C9D487;
  --c64-orange: #A1683C;
  --c64-brown: #6D5412;
  --c64-light-red: #CB7E75;
  --c64-dark-grey: #626262;
  --c64-mid-gray: #898989;
  --c64-light-green: #9AE29B;
  --c64-light-blue: #887ECB;
  --c64-light-gray: #ADADAD;
  --blockquote-border: var(--c64-light-red); /* default */
  --blockquote-color: var(--c64-black);
  --contrast-color: var(--c64-black);
  --footer-bg: #222;
  --footer-text: #ccc;
  --nav-bg: #ffffff;
  --nav-shadow: 0 4px 2px -2px gray;
  --nav-link: #333;
  --nav-link-hover: #ff5733;
  --button-bg: #003366;
  --button-text: #ffffff;
  --button-hover: #0055aa;
  --header-bg: #003366;
  --header-text: #ffffff;
  --column-header-color: #004466;
  --bullet-color: #0078D4;
  --compass-title-color: #444;
  --compass-text-color: #555;
  --compass-strong-color: #222;
  --quote-border-color: #ccc;
  --quote-footer-color: #888;
  --testimonial-text-color: #333;
  --compass-border-color: #888;
  --divider-color: #ccc;
  --subtitle-color: #444;
  --pillar-shadow: rgba(0,0,0,0.06);
  --pillar-em-color: #444;
  --card-bg: #f9f9f9; /* Light theme card background */
  --accent: #0078D4;         /* Bright blue */
  --accent-hover: #005fa3;   /* Darker blue */
  --button-text: #ffffff;    /* White text */
  --section-bg: #f9f9f9;
  --section-bg-hover: #eeeeee;
}

/* Manual override - dark mode */
.theme-dark {
  --bg-color: #111;
  --text-color: #ddd;
  --accent-bg: #1a1a1a;
  --link-color: #66b3ff;
  --link-hover: #3399ff;
  --c64-black: #000000;
  --c64-white: #FFFFFF;
  --c64-red: #9F4E44;
  --c64-cyan: #6ABFC6;
  --c64-purple: #A057A3;
  --c64-green: #5CAB5E;
  --c64-blue: #50459B;
  --c64-yellow: #C9D487;
  --c64-orange: #A1683C;
  --c64-brown: #6D5412;
  --c64-light-red: #CB7E75;
  --c64-dark-grey: #626262;
  --c64-mid-gray: #898989;
  --c64-light-green: #9AE29B;
  --c64-light-blue: #887ECB;
  --c64-light-gray: #ADADAD;
  --blockquote-border: var(--c64-orange);  /* or --c64-light-gray for subtle */
  --blockquote-color: var(--c64-white);
  --contrast-color: var(--c64-black);
  --footer-bg: #000;
  --footer-text: #888;
  --nav-bg: #1a1a1a;
  --nav-shadow: 0 4px 2px -2px #000;
  --nav-link: #ccc;
  --nav-link-hover: #ff5733;
  --button-bg: #0055aa;
  --button-text: #ffffff;
  --button-hover: #3399ff;
  --header-bg: #003366;
  --header-text: #eeeeee;
  --column-header-color: #66ccff; /* or a softer light blue, like #99ddff */
  --bullet-color: #66ccff; /* Or try a softer tone: #88cce0 */
  --compass-title-color: #ddd;
  --compass-text-color: #bbb;
  --compass-strong-color: #fff;
  --quote-border-color: #444;
  --quote-footer-color: #aaa;
  --testimonial-text-color: #ddd;
  --compass-border-color: #444;
  --divider-color: #444;
  --subtitle-color: #ccc;
  --pillar-shadow: rgba(0,0,0,0.4);
  --pillar-em-color: #ccc;
  --card-bg: #222; /* Dark theme card background */
  --accent: #3399ff;         /* Lighter, vibrant blue for contrast */
  --accent-hover: #66b3ff;   /* Even lighter on hover */
  --button-text: #000000;    /* Black text for contrast on lighter button */
  --section-bg: #1f1f1f;
  --section-bg-hover: #2a2a2a;

  input,
  textarea {
    background-color: #1e1e1e;
    color: #ffffff;
    border: 1px solid #444;
    padding: 0.75rem;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

/* Manual ovveride - light mode */
.theme-light {
  --bg-color: #f5f5f5;
  --text-color: #333;
  --accent-bg: #fff;
  --link-color: rgb(0, 102, 204);
  --link-hover: rgb(0, 70, 160);
  --c64-black: #000000;
  --c64-white: #FFFFFF;
  --c64-red: #9F4E44;
  --c64-cyan: #6ABFC6;
  --c64-purple: #A057A3;
  --c64-green: #5CAB5E;
  --c64-blue: #50459B;
  --c64-yellow: #C9D487;
  --c64-orange: #A1683C;
  --c64-brown: #6D5412;
  --c64-light-red: #CB7E75;
  --c64-dark-grey: #626262;
  --c64-mid-gray: #898989;
  --c64-light-green: #9AE29B;
  --c64-light-blue: #887ECB;
  --c64-light-gray: #ADADAD;
  --blockquote-border: var(--c64-light-red); /* default */
  --blockquote-color: var(--c64-black);
  --contrast-color: var(--c64-black);
  --footer-bg: #222;
  --footer-text: #ccc;
  --nav-bg: #ffffff;
  --nav-shadow: 0 4px 2px -2px gray;
  --nav-link: #333;
  --nav-link-hover: #ff5733;
  --button-bg: #003366;
  --button-text: #ffffff;
  --button-hover: #0055aa;
  --header-bg: #003366;
  --header-text: #ffffff;
  --column-header-color: #004466;
  --bullet-color: #0078D4;
  --compass-title-color: #444;
  --compass-text-color: #555;
  --compass-strong-color: #222;
  --quote-border-color: #ccc;
  --quote-footer-color: #888;
  --testimonial-text-color: #333;
  --compass-border-color: #888;
  --divider-color: #ccc;
  --subtitle-color: #444;
  --pillar-shadow: rgba(0,0,0,0.06);
  --pillar-em-color: #444;
  --card-bg: #f9f9f9; /* Light theme card background */
  --accent: #0078D4;         /* Bright blue */
  --accent-hover: #005fa3;   /* Darker blue */
  --button-text: #ffffff;    /* White text */
  --section-bg: #f9f9f9;
  --section-bg-hover: #eeeeee;

  input,
  textarea {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #ccc;
    padding: 0.75rem;
    border-radius: 6px;
    width: 100%;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
textarea {
  background-color: #ffffff;
  color: #000000;
  border: 1px solid #ccc;
  padding: 0.75rem;
  border-radius: 6px;
  width: 100%;
  font-size: 1rem;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset, 96px);
}

p, li, .subtitle, .pillar {
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

h2 {
  padding-top: 1rem;
  margin-bottom: 1rem;
}

body {

  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  color: var(--text-color);
  background: var(--bg-color);
  text-align: justify;

/*  padding-top: 90px; /* enough room for the header */
/*  padding-bottom: 60px; /* enough room for the footer */
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: url('/images/Reigniting_The_Spark-Wallpaper-v2.png') no-repeat center center fixed;
  background-size: cover;
  opacity: 0.06; /* ghostly */
  z-index: -1;
  pointer-events: none;
}

@font-face {
  font-family: 'C64 Pro Mono';
  src: url('/fonts/C64_Pro_Mono-STYLE.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Dancing Script';
  src: url('/fonts/DancingScript-Regular.ttf') format('truetype');
  font-weight: 400;
}

@font-face {
  font-family: 'Dancing Script';
  src: url('/fonts/DancingScript-Medium.ttf') format('truetype');
  font-weight: 500;
}

@font-face {
  font-family: 'Dancing Script';
  src: url('/fonts/DancingScript-SemiBold.ttf') format('truetype');
  font-weight: 600;
}

@font-face {
  font-family: 'Dancing Script';
  src: url('/fonts/DancingScript-Bold.ttf') format('truetype');
  font-weight: 700;
}

.about h1 {
  margin-bottom: 1rem;
}

.about h2 {
  padding-top: 0;
}

.about ul {
  padding-bottom: 1rem;
}

#boot-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: black;  /* starting with full black background */
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 3s ease;
  opacity: 1;
  pointer-events: auto;
  overflow: hidden; /* optional: avoids overflow on scaling */
}

#boot-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.reigniting,
.horizon,
.reflections,
.commodore,
.meaning {
  color: var(--c64-black);
}

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
/*  padding: 2rem 1.5rem;*/
}

.retro-c64 {
  margin-bottom: 1rem;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

.c64-screen-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;            /* horizontal centering */
  justify-content: center;        /* vertical centering */
  margin-bottom: 1rem;
  opacity: 0;
  transition: opacity 3s ease;
}

.skip-intro-wrapper {
  position: fixed; /* changed from absolute */
  bottom: 1.5rem;
  right: 2rem;
  z-index: 10000; /* Bring it above everything else */
  pointer-events: auto;  /* Allow interaction */
}

.skip-intro-button {
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background-color: var(--c64-light-blue);
  color: var(--c64-blue);
  border: 2px solid var(--c64-black);
  font-family: 'C64 Pro Mono', monospace;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.skip-intro-button:hover {
  background-color: var(--c64-blue);
  color: var(--c64-light-blue);
}

.c64-screen {
  width: 403px;
  height: 284px;
  background-color: var(--c64-light-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.c64-inner {
  width: 320px;
  height: 200px;
  background-color: var(--c64-blue);
  color: var(--c64-light-blue);
  box-sizing: border-box;
  padding: 0;
  overflow: hidden;
}

.c64-inner pre {
  font-family: 'C64 Pro Mono', monospace;
  font-size: 8px;           /* 1 character = 8 pixels wide */
  line-height: 8px;         /* 1 line = 8 pixels tall      */
  letter-spacing: 0px;      /* no kerning, no cheating     */
  white-space: pre-wrap;    /* allows wrapping + \n support */
  margin: 0;
}

.c64-cursor {
  display: inline-block;
  color: var(--c64-light-blue);
  animation: blink 0.666s step-start infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

.c64-cursor.solid {
  animation: none;
}

.c64-restart {
  align-self: flex-start;
  margin: 0;
  padding: 0;
}

.spark-64 p {
  font-family: 'Dancing Script', cursive;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-color);
  align-self: flex-end;
  text-align: right;
  margin: 0;
}

p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-normal);
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: break-word;
  text-align: justify;
}

h1 {
  font-size: var(--font-size-xlarge);
  line-height: var(--line-height-tight);
}

h2 {
  font-size: var(--font-size-large);
  line-height: var(--line-height-tight);
  font-weight: 600;
}

h3 {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-normal);
  font-weight: 600;
}

h2, h3, h4, .subtitle {
  text-align: left;
}

/* ───────────────────────────────
   🌐 DESKTOP (default ≥ 801px)
─────────────────────────────── */

/* === SIDEBAR NAVIGATION === */

/* Default: nav hidden */
.sidebar-nav {
  position: fixed;
  top: 60px; /* below the fixed header */
  right: 0;
  width: max-content;        /* shrink to fit content */
/*  max-width: 320px;          /* reasonable cap */
  white-space: nowrap;
/*   height: calc(100% - 60px); */
  background-color: var(--nav-bg);
  border-left: 1px solid var(--divider-color);
  padding: 1rem;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease-in-out;
  gap: 0.8rem;
  display: none;
  z-index: 1001;
}

.sidebar-nav.show {
  display: block;
  transform: translateX(0);
}

.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  margin: 0.5rem 0;
}

.sidebar-nav a {
  display: block;
  text-decoration: none;
  color: var(--nav-link);
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s ease-in-out;
}

.sidebar-nav a:hover {
  color: var(--nav-link-hover);
}

.logo-link {
  order: 2;
  display: flex;
  justify-content: center;
  justify-self: center;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: auto;
  color: var(--c64-light-red);
}

/* === HAMBURGER ICON === */
#hamburger-icon {
  order: 3; /* RIGHT */
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--header-text);
  text-decoration: none;
  justify-self: end;
  justify-content: flex-end;
  z-index: 1002; /* must be higher than .sidebar-nav */
}

/* === THEME TOGGLE BUTTON === */
/* Theme toggle stays left, vertically aligned */
.theme-toggle-wrapper {
  order: 1; /* LEFT */
  display: flex;
  align-items: center;
  justify-self: start;
  justify-content: flex-start;
}

#theme-toggle {
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  color: var(--text-color);
}

/* === ROOT STRUCTURE === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

.page-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  overflow: visible;
}

nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow, 0 4px 2px -2px rgba(0,0,0,0.2));
}

.nav-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;                /* ✅ Force single line */
  overflow: hidden;                 /* prevents flex freakouts */
  white-space: nowrap;              /* ✅ Prevents text wrapping */
  gap: 1rem;
  padding: 1rem;
  height: 80px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 1;                   /* ✅ Shrink if tight */
  overflow: hidden;
  white-space: nowrap;
}

/* Theme toggle wrapper */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
}

#theme-toggle {
  font-size: 1.4rem;
  padding: 0.5rem;
/*   margin-left: 0.5rem; */
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--nav-link, #333);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
  line-height: 1;
}

/* Hover: always visible on desktop */
#theme-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--nav-link-hover, #ff5733);
}

/* Focus: visible only when appropriate (keyboard, not mouse) */
#theme-toggle:focus {
  outline: none;
}
#theme-toggle:focus-visible {
  background: rgba(0, 0, 0, 0.05);
  border-color: var(--nav-link-hover, #ff5733);
}
.theme-dark #theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

header {
  background: var(--header-bg);
  color: var(--header-text);
  padding: 0; /*2rem 1rem;*/
  text-align: center;
}

.content-wrapper {
  max-width: 720px;
  margin: 0 auto;
/*  padding: 2rem 1.5rem;*/
}

#hero, #intro, #origin-story, #philosophy, #reflections, #systems-steward  {
  color: var(--c64-black);
}

#hero { background-color: var(--c64-light-blue); }
#intro { background-color: var(--c64-light-red); }
#origin-story { background-color: var(--c64-light-blue); }
#philosophy { background-color: var(--c64-purple); }
#reflections { background-color: rgba(154, 226, 155, 0.8);}
#systems-steward { background-color: var(--c64-orange); }

#hero, #intro, #origin-story, #philosophy, #reflections, #systems-steward {
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
  border-radius: 10px;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.05);
/*  min-width: 403px;*/
}

#hero h2, #intro h2, #origin-story h2, #philosophy h2, #reflections h2, #systems-steward h2 {
  text-align: left;
  margin-bottom: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

#hero p, #intro p, #origin-story p, #philosophy p, #reflections p, #systems-steward p {
  padding-left: 2rem;
  padding-right: 2rem;
  text-align: justify;
  hyphens: auto;
  overflow-wrap: break-word;
}

#hero blockquote, #origin-story blockquote, #reflections blockquote {
  margin: 0;
  padding-left: 1rem;
  margin-left: 3rem;
  margin-right: 2rem;
  margin-bottom: 1rem;
  border-left: 4px solid var(--c64-light-green);
  color: var(--c64-black);
  font-style: italic;
  text-align: left;
}

#reflections blockquote footer {
  margin-top: 0.5rem;
  color: var(--c64-black);
  opacity: 0.6;
  text-align: right;
  margin-bottom: 0 !important;
  padding-bottom: 1rem;
}

.signature-block {
  padding-bottom: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-family: system-ui, sans-serif;
}

.signature {
  display: flex;
  align-items: center;
  flex-grow: 1;
  width: 100%;
}

.signature-logo {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  color: var(--c64-red);
  padding-right: 1rem;
}

.signature-text {
  line-height: 1.4;
  font-size: 0.95rem;
  text-align: left;
  padding-left: 1rem;
  border-left: 4px solid var(--c64-red);
}

.signature-text strong {
  font-size: 1rem;
}

.signature-text em {
  font-style: italic;
  font-weight: bold;
  display: inline-block;
  margin-top: 0.3rem;
}

#origin-story ul {
  padding-left: 2rem;
  padding-right: 2rem;
}

#origin-story li {
  padding-bottom: 1rem;
}

.landing-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  font-size: 1.2rem;
  padding: 1.2rem;
}

.landing-nav a {
  display: inline-block;
  min-width: 320px; /* Or whatever feels right visually */
  text-align: center;
  padding: 0.6em 1.2em;
  border-radius: 0.5em;
  background: var(--card-bg);
  color: var(--nav-link);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.landing-nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

h2, h3 {
  margin-bottom: 1rem;
}

/* === FIXED HEADER === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--header-bg);
  color: var(--header-text);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 2rem;
  z-index: 1000;
  box-shadow: var(--nav-shadow);
}

/* === MAIN AREA === */
main {
  padding-top: 60px; /* for fixed header */
  flex-grow: 1;
  display: block;
  padding-bottom: 37px; /* for fixed footer */
  overflow: visible; /* this is crucial */
}

/* === HOME SECTION FOR INDEX PAGE — Harmonized Layout === */
main.welcome {
  text-align: center;
  padding: 1rem 2rem;  /* unified side spacing */
}

main.welcome .portrait {
  width: 120px;
  height: auto;
  padding-top: 60px;
  margin-top: 1.25rem;
  border-radius: 8px;
  margin-bottom: 1.25rem;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

main.welcome h1 {
  font-size: var(--font-size-xlarge);
  margin-bottom: 1.25rem;
  color: var(--text-color);
}

main.welcome p {
  margin-bottom: 1rem;
  color: var(--text-color);
}

main.welcome .signature {
  font-family: "Georgia", serif;
  font-style: italic;
  font-size: 1.1em;
  color: var(--text-color);
  margin-top: 1.25rem;
}

main.welcome .tagline {
  margin-top: 1.25rem;
  font-weight: bold;
  color: var(--link-color);
}

section {
  margin-bottom: 2rem;
  padding-top: 2rem;
  scroll-margin-top: 96px;
  padding-left: 2rem;
  padding-right: 2rem;
/*  min-width: 403px;*/
}

/* Minimal checkbox with theme-based coloring */

input[type="checkbox"] {
  width: 1rem !important;
  flex: 0 0 auto !important;
  display: inline-block !important;
}

.toggle-switch {
  padding-bottom: 1rem;
}

.toggle-switch input[type="checkbox"] {
  border: 2px dashed blue;
  background: rgba(0, 0, 255, 0.2);
}

.label-text {
  padding-left: 1rem;
}

.privacy ul {
  padding-bottom: 1rem;
}

/* NEW: Style the .slider span so it's not invisible */
/* Keep for future enhancement - commented out for now */
/* Hides checkbox */
/* .toggle-switch input[type="checkbox"] {
  display: none;
} */

/* This becomes the full toggle UI */
/* .toggle-switch .slider {
  width: 2.5rem;
  height: 1.4rem;
  background-color: var(--toggle-bg, #666);
  border-radius: 1rem;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch .slider::before {
  content: "";
  position: absolute;
  width: 1.2rem;
  height: 1.2rem;
  background: var(--toggle-knob, #fff);
  border-radius: 50%;
  top: 0.1rem;
  left: 0.1rem;
  transition: transform 0.2s ease;
}

.toggle-switch input[type="checkbox"]:checked + .slider::before {
  transform: translateX(1.2rem);
} */

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-size: var(--font-size-small);
  padding: 0.4rem var(--page-gutter);
  border-top: 1px solid var(--divider-color);
  z-index: 999; /* stay above other content */
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 100%;
}

.footer-left {
  text-align: left;
  flex: 1;
}

.footer-right {
  text-align: right;
}

.footer-right a {
  margin-left: 1rem;
  color: var(--footer-text);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-right a:hover {
  color: var(--text-color);
}

@media (min-height: 500px) {
  .site-footer {
    position: fixed;
  }
}

ul {
  padding-left: 1.2rem;
  list-style-position: outside;
}

#projects ul {
  margin-bottom: 1rem;
}

#projects li {
  margin-bottom: 1rem;
}

blockquote {
  font-style: italic;
  font-size: var(--font-size-medium);
  line-height: var(--line-height-loose);
  padding-left: 1rem;
  border-left: 4px solid var(--blockquote-border);
  color: var(--blockquote-color);
  margin: 1rem 0;
}

blockquote footer {
  font-size: var(--font-size-small);
  color: var(--c64-black);
}

.divider {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid var(--divider-color);
  width: 100%;
}

p {
  margin-bottom: 1rem;
}

.compass-column-group {
  margin-bottom: 1rem;
}

.column-header {
  font-size: var(--font-size-medium);
  font-weight: bold;
  color: var(--column-header-color);
  margin-bottom: 1rem;
}

/* Section container */
.compass-section {
  margin-left: 0;
  margin-right: auto;
  padding-top: 1rem;
  padding-left: 1rem;
  padding-right: 1rem;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
}

/*#self-leadership-compass {
  background: rgba(255, 220, 200, 0.2);
  outline: 1px dashed orange;
}*/

/* Subtitle styling */
.subtitle {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--subtitle-color);
}

/* Grid layout */
.compass-paired-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 0; /*2rem;*/
}

/* Compass grid row: 2 columns when there's space, 1 column when narrow */
.compass-pair-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Optional: give each pillar padding and styling */
.pillar {
  padding: 1.5rem;
  background: var(--accent-bg);
  border-radius: 10px;
  box-shadow: 0 2px 6px var(--pillar-shadow);
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease; /* 🔹 Added for animation */
}

.pillar:hover {
  transform: translateY(-6px); /* 🔹 Subtle lift */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* 🔹 Enhanced shadow on hover */
}

.pillar strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 0; /*0.25rem;*/
}

.pillar em {
  display: block;
  font-style: italic;
  color: var(--pillar-em-color);
  margin-bottom: 0;
}

.custom-bullet {
  list-style: none;
  padding-left: 0; /*1.5em; /* space for the bullet */
}

.custom-bullet li {
  position: relative;
  text-align: justify;
  padding-left: 1.5em; /* shift text to the right */
}

.custom-bullet li::before {
  content: "➣";
  position: absolute;
  left: 0;
  top: 0.05em;
  color: var(--c64-black);
  font-weight: bold;
  width: 1em;
  text-align: center;
}

/* Living Compass Block */
.living-compass {
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background-color: var(--accent-bg);
  border-left: 4px solid var(--compass-border-color);
  border-radius: 6px;
  opacity: 1;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.living-compass.revealed {
  opacity: 1;
  transform: translateY(0);
}

.living-compass h3 {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-normal);
  margin-top: 0;
  color: var(--compass-title-color);
}

.living-compass p {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  color: var(--compass-text-color);
}

.living-compass strong {
  color: var(--compass-strong-color);
  font-weight: 600;
}

.living-compass .closing-line {
  margin-top: 0; /*1rem;*/
  font-weight: 500;
}

.reflections {
  margin-bottom: 1rem !important;
  padding-bottom: 0.5rem !important;
}

.reflections h2 {
  text-align: left;
  margin-bottom: 1rem;
}

.reflections blockquote {
  margin: 0;
  padding-left: 1rem;
  border-left: 4px solid var(--quote-border-color);
  font-style: italic;
  text-align: left;
}

.reflections blockquote p {
  padding-right: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  margin-left: 0 !important;
}

.reflections blockquote footer {
  margin-top: 0.5rem;
  color: var(--quote-footer-color);
  text-align: right;
  margin-bottom: 0 !important;
}

.carousel {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
  margin-left: 0; /* var(--page-gutter); */
  height: auto;
  padding: 0 0; /* var(--testimonial-padding); */
  /*padding-bottom: 1rem;*/
  transition: height 0.3s ease, padding 0.3s ease;
}

.carousel-container {
  /*max-width: 900px;*/                      /* matches layout width */
  margin-left: 0; /*var(--page-gutter);      /* ✅ left-align with main content */
  padding-right: 0; /*var(--page-gutter);    /* right-side breathing room */
  box-sizing: border-box;
}

.testimonial-slide {
  position: absolute;       /* stack all testimonials on top of each other */
  left: 0;
  right: 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;     /* ignore inactive testimonials */
}

.testimonial-slide.in {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.testimonial-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0;
  position: relative;
  height: auto;
  text-align: justify;
  font-style: italic;
  color: var(--testimonial-text-color);
  padding-inline: 0;
  transition: height 0.3s ease;
  overflow: hidden;
}

.buttons-wrapper {
  display: flex;
  justify-content: center;
  gap: 1rem; /* optional: space between buttons */
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.testimonial-slide p {
  font-size: var(--font-size-medium);
  line-height: var(--line-height-loose);
  color: var(--c64-black);
}

.testimonial-slide footer {
  font-size: var(--font-size-small);
  line-height: var(--line-height-tight);
  background: none;
  color: var(--c64-black);
  text-align: right;
  padding: 0;
  margin-top: 0.75rem;
}

button.prev,
button.next {
  position: static;
  background: var(--button-bg);
  color: var(--button-text);
  border: none;
  padding: 0.5rem 1rem;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 4px;
  z-index: 1;
  transform: none;
  margin-inline: 0.5rem;
}

.section-wrapper {
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
}

.section-wrapper h1 {
  padding-top: 0;
  margin-bottom: 1rem;
}

#contact p {
  padding: 0;
  margin: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  font-weight: bold;
  font-size: 1rem;
  display: block;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem !important;
  margin-top: 2rem;
}

.contact-form input {
  padding: 0.5rem;
  font-size: 1rem;
}

.contact-form textarea {
  padding: 0.5rem;
  font-size: 1rem;
}

.contact-button {
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: bold;
  background-color: var(--accent-hover, #0078D4);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-button:hover {
  background-color: var(--accent-hover, #005fa3);
  transform: scale(1.02);
}

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

/* ✅ Form submission status message */
.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  transition: opacity 0.3s ease-in-out;
}

.form-status.success {
  background-color: var(--accent-bg, #d4edda);
  color: var(--accent-text, #155724);
  border: 1px solid #c3e6cb;
}

.form-status.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.soundtrack-section-list {
  max-width: 800px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.soundtrack-section-list h2 {
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.soundtrack-quote {
  margin: 2rem auto 2rem;
  max-width: 800px;
  padding: 1.5rem;
  font-style: italic;
  color: var(--subtitle-color, #bbb);
  border-left: 4px solid var(--accent, #0078D4);
  background-color: var(--section-bg, rgba(255, 255, 255, 0.04));
  border-radius: 6px;
  text-align: center;
  line-height: 1.6;
}

.soundtrack-quote p {
  font-size: 1.1rem;
}

.soundtrack-quote:hover {
  box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
  transition: box-shadow 0.3s ease;
}

/* Hover glow in light mode */
.theme-light .soundtrack-quote:hover {
  box-shadow: 0 0 8px rgba(0, 120, 212, 0.3);
}

/* Dark theme — stronger, brighter glow */
/*First layer: subtle halo, keeps it grounded.
  Second layer: bold aqua glow, center glow.
  Third layer: ambient bloom, adds that dreamlike pulse.*/
.theme-dark .soundtrack-quote:hover {
  box-shadow:
    0 0 6px rgba(0, 120, 212, 0.3),
    0 0 12px rgba(0, 180, 255, 0.5),
    0 0 20px rgba(0, 200, 255, 0.35);
}

@keyframes glowPulse {
  0% {
    box-shadow:
      0 0 6px rgba(0, 120, 212, 0.3),
      0 0 12px rgba(0, 180, 255, 0.5),
      0 0 20px rgba(0, 200, 255, 0.35);
  }
  50% {
    box-shadow:
      0 0 10px rgba(0, 120, 212, 0.45),
      0 0 16px rgba(0, 200, 255, 0.6),
      0 0 28px rgba(0, 240, 255, 0.4);
  }
  100% {
    box-shadow:
      0 0 6px rgba(0, 120, 212, 0.3),
      0 0 12px rgba(0, 180, 255, 0.5),
      0 0 20px rgba(0, 200, 255, 0.35);
  }
}

.theme-dark .soundtrack-quote:hover {
  animation: glowPulse 2.5s ease-in-out infinite;
}

.playlist-feature {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  padding: 1.25rem; /* was 1.5rem */
  gap: 1.25rem;      /* was 1.5rem */
  margin: 1.5rem auto;
  max-width: 800px;
  background-color: var(--section-bg, rgba(255, 255, 255, 0.05));
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0, 120, 212, 0.05);
}

.playlist-cover {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.playlist-content {
  display: flex;
  max-width: 360px;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.playlist-button {
  background: var(--accent-hover, #0078D4);
  color: var(--button-text);
  padding: 0.75em 1.5em;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
  display: inline-block;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.playlist-button:hover {
  background: #005a9e;
  color: var(--button-text);
  transform: translateY(-2px);
}

.playlist-divider {
  border: none;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent, #0078D4), transparent);
  margin: 2.5rem auto 1.5rem;
  width: 80%;
}

.scroll-fade-in {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.playlist-caption {
  font-size: 0.85rem;
  color: var(--subtitle-color, #bbb);
  font-style: italic;
}

.cluster-nav-wrapper {
  position: sticky;
  top: 61px; /* exactly below your top nav */
  z-index: 1001; /* above content, below top nav */
  margin-bottom: 1rem;
  background-color: var(--nav-bg);
  box-shadow: var(--nav-shadow, 0 4px 2px -2px rgba(0,0,0,0.2));
}

.cluster-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  z-index: 0; /* stays below top nav */
  border-radius: 6px;
}

.cluster-nav a {
  flex: 0 0 140px; /* fixed width for visual consistency */  text-align: center;
  min-width: 140px;
  padding: 0.5em 1em;
  border: 1px solid var(--nav-link, #0078D4);
  border-radius: 20px;
  text-decoration: none;
  color: var(--nav-link, #0078D4);
  font-size: 0.95rem;
  transition: background 0.3s ease, color 0.3s ease;
}

@media (max-width: 300px) {
  .cluster-nav a {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

.cluster-nav a.active {
  background-color: var(--nav-link, #0078D4);
  color: white;
  font-weight: bold;
  border-color: var(--nav-link, #0078D4);
}

.cluster-nav a:hover {
  background: var(--nav-link, #0078D4);
  color: white;
}

.track-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.track {
  background-color: var(--section-bg, rgba(255, 255, 255, 0.05));
  padding: 1rem;
  max-width: 800px;
  border-radius: 6px;
  border-left: 4px solid var(--accent, #0078D4);
  transition: background 0.3s ease;
}

.track:hover {
  background-color: var(--section-bg-hover, rgba(255, 255, 255, 0.08));
  transform: translateY(-6px); /* 🔹 Subtle lift */
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); /* 🔹 Enhanced shadow on hover */
}

.track .title {
  text-align: center;
  font-weight: bold;
  font-size: 1.05rem;
  display: block;
  color: var(--text-color, #fff);
}

.track .composer {
  text-align: center;
  font-size: 0.95rem;
  display: block;
  color: var(--subtitle-color, #aaa);
}

.track .album {
  font-style: italic;
  color: var(--subtitle-color, #aaa);
}

.track .why {
  text-align: center;
  font-size: 0.85rem;
  color: var(--subtitle-color, #bbb);
  margin-top: 0.35rem;
  line-height: 1.4;
  font-style: italic;
  display: block;
}

@media (max-width: 600px) {
  .track {
    padding: 0.75rem;
  }

  .track .title {
    font-size: 1rem;
  }

  .track .composer {
    font-size: 0.9rem;
  }
}

.play-button {
  margin-top: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--accent-hover, #0078D4);
  transition: background 0.3s ease, transform 0.3s ease;
  color: var(--button-text);
  font-weight: 600;
  border: none;
  border-radius: 6px;
  box-shadow: 0 0px 6px rgba(0,0,0,0.2);
  cursor: pointer;
  font-size: 0.95rem;
}

.play-button:hover {
  background: #005a9e;
  color: var(--button-text);
  transform: translateY(-2px);
}

.yt-player {
  margin-top: 1rem;
  transition: opacity 0.3s ease-in-out;
}

/* ───────────────────────────────────────────────
    Responsive Layout Adjustments for ≤ 800px
   ─────────────────────────────────────────────── */

/* Existing media query for screens below 800px */
@media (max-width: 800px) {

  /* Existing styles for testimonial-wrapper and carousel */
  .testimonial-wrapper {
    padding-inline: 0; /* only if carousel handles it */
    min-height: 120px;
    text-align: justify;
    font-style: italic;
  }

  .testimonial-wrapper,
  .testimonial-slide p {
    font-size: 1.35rem;
    line-height: 1.7;
  }

  .carousel {
    width: 100%;
    max-width: none;
    height: auto; /* allow vertical expansion */
    align-items: center; /* keep buttons centered */
    /*padding-bottom: 1rem;*/
    margin-left: 0; /* var(--page-gutter);  /* match desktop alignment */
  }

  button.prev,
  button.next {
    font-size: 1.25rem;
    padding: 0.3rem 0.5rem;
  }

  /* Mobile layout */

  .contact-form label {
    font-weight: bold;
    font-size: 1rem;
    display: block;
    text-align: left;
  }

  .footer-epilogue {
    min-height: 3.2rem; /* Reserve space for up to 2 lines on smaller screens */
  }

  .skip-intro-button {
    font-size: 0.5rem;
  }
}

footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 1rem;
  text-align: center;
/*   margin: 0; */
  margin-top: auto;
}

footer p {
  text-align: center;
}

.footer-epilogue {
  min-height: 3.2rem;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
  font-style: italic;
  margin: 0;
}

.footer-epilogue.visible {
  opacity: 0.7;
  transform: translateY(0);
}

.hero p {
  text-align: center;
}

a {
  color: var(--link-color);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* Dark theme via media query (fallback) */
@media (prefers-color-scheme: dark) {
  :root:not(.theme-dark):not(.theme-light) {
    /* Only apply if no manual override */
    --bg-color: #111;
    --text-color: #ddd;
    --accent-bg: #1a1a1a;
    --link-color: #66b3ff;
    --link-hover: #3399ff;
    --c64-black: #000000;
    --c64-white: #FFFFFF;
    --c64-red: #9F4E44;
    --c64-cyan: #6ABFC6;
    --c64-purple: #A057A3;
    --c64-green: #5CAB5E;
    --c64-blue: #50459B;
    --c64-yellow: #C9D487;
    --c64-orange: #A1683C;
    --c64-brown: #6D5412;
    --c64-light-red: #CB7E75;
    --c64-dark-grey: #626262;
    --c64-mid-gray: #898989;
    --c64-light-green: #9AE29B;
    --c64-light-blue: #887ECB;
    --c64-light-gray: #ADADAD;
    --blockquote-border: var(--c64-orange);  /* or --c64-light-gray for subtle */
    --blockquote-color: var(--c64-white);
    --contrast-color: var(--c64-black);
    --footer-bg: #000;
    --footer-text: #888;
    --nav-bg: #1a1a1a;
    --nav-shadow: 0 4px 2px -2px #000;
    --nav-link: #ccc;
    --nav-link-hover: #ff5733;
    --button-bg: #0055aa;
    --button-text: #ffffff;
    --button-hover: #3399ff;
    --header-bg: #003366;
    --header-text: #eeeeee;
    --column-header-color: #66ccff; /* or a softer light blue, like #99ddff */
    --bullet-color: #66ccff; /* Or try a softer tone: #88cce0 */
    --compass-title-color: #ddd;
    --compass-text-color: #bbb;
    --compass-strong-color: #fff;
    --quote-border-color: #444;
    --quote-footer-color: #aaa;
    --testimonial-text-color: #ddd;
    --compass-border-color: #444;
    --divider-color: #444;
    --subtitle-color: #ccc;
    --pillar-shadow: rgba(0,0,0,0.4);
    --pillar-em-color: #ccc;
    --card-bg: #222; /* Dark theme card background */
    --accent: #3399ff;         /* Lighter, vibrant blue for contrast */
    --accent-hover: #66b3ff;   /* Even lighter on hover */
    --button-text: #000000;    /* Black text for contrast on lighter button */
    --section-bg: #1f1f1f;
    --section-bg-hover: #2a2a2a;

    input,
    textarea {
      background-color: #1e1e1e;
      color: #ffffff;
      border: 1px solid #444;
      padding: 0.75rem;
      border-radius: 6px;
      width: 100%;
      font-size: 1rem;
      transition: background-color 0.3s ease, color 0.3s ease;
    }
  }
}