
    /* ========== BASE & DARK THEME ========== */
    :root {
      --bg: #0a0a0a;
      --bg-elevated: #141414;
      --text: #c8c8c8;
      --text-dim: #888;
      --accent: #e60000;
      --accent-soft: #ff4d4d;
      --red: #e60000;
      --border: #333;
      --control: #555;
    }

    * {
      box-sizing: border-box;
      -webkit-tap-highlight-color: transparent;
    }

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

    body {
      margin: 0;
      padding: 0;
      background: var(--bg);
      color: var(--text);
      font-family: 'Inter', system-ui, sans-serif;
      line-height: 1.5;
      min-height: 100vh;
      overflow-x: hidden;
    }

    /* ========== HEADER ========== */
    .header {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(10, 10, 10, 0.92);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 0.75rem 1rem;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: space-between;
      max-width: 720px;
      margin: 0 auto;
    }

    .nav__left {
      display: flex;
      align-items: center;
      gap: 0.6rem;
      font-size: 0.85rem;
      color: var(--text-dim);
    }

    .nav__left a {
      color: var(--text);
      text-decoration: none;
      font-weight: 500;
    }

    .nav__center img {
      height: 42px;
      width: 42px;
      border-radius: 50%;
      object-fit: cover;
      border: 1px solid var(--border);
    }

    .nav__right button {
      background: var(--accent);
      color: #fff;
      border: none;
      padding: 0.4rem 0.9rem;
      font-size: 0.8rem;
      border-radius: 4px;
      cursor: pointer;
      font-family: inherit;
    }

    /* ========== MAIN TITLE ========== */
    .main-title-block {
      text-align: center;
      padding: 1.5rem 1rem 0.5rem;
    }

    .main-title {
      font-family: 'Cormorant Garamond', serif;
      font-size: clamp(1.8rem, 6vw, 2.6rem);
      font-weight: 400;
      letter-spacing: 0.04em;
      margin: 0 0 0.3rem;
      color: #eee;
    }

    .subtitle {
      font-size: 0.9rem;
      color: var(--text-dim);
      font-style: italic;
    }

    .meta {
      font-size: 0.75rem;
      color: var(--control);
      margin-top: 0.4rem;
    }

    /* ========== TRIANGLE VIDEO ========== */
    .triangle-section {
      display: flex;
      justify-content: center;
      padding: 1rem;
    }

    .triangle-wrapper {
      position: relative;
      width: min(280px, 70vw);
      height: min(280px, 70vw);
      transform: rotate(180deg);
    }

    .triangle-border {
      position: absolute;
      inset: -2px;
      background: var(--accent);
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      opacity: 0.65;
      z-index: 1;
    }

    .triangle-shape {
      width: 100%;
      height: 100%;
      clip-path: polygon(0 0, 100% 0, 50% 100%);
      background: #000;
      position: relative;
      z-index: 2;
      overflow: hidden;
    }

    .triangle-shape video {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.7;
      filter: contrast(1.15);
      transform: scale(1.08);
    }

    /* ========== SPRITZ READER ========== */
    .spritz-container {
      max-width: 36rem;
      margin: 0 auto;
      padding: 0 1rem 2rem;
    }

    .spritz {
      position: relative;
      max-width: 100%;
      padding: 1.2rem 0 1.4rem;
      border-top: 2px solid var(--border);
      border-bottom: 2px solid var(--border);
      margin: 1.5rem auto 1rem;
      text-align: center;
    }

    .spritz:before,
    .spritz:after {
      content: "";
      position: absolute;
      left: 40%;
      height: 0.7rem;
      width: 2px;
      margin-left: -1px;
      background: var(--control);
    }

    .spritz:before { top: 0; }
    .spritz:after { bottom: 0; }

    .spritz-word {
      font-size: clamp(1.4rem, 5vw, 1.9rem);
      line-height: 1.6;
      height: 1.7em;
      font-weight: 600;
      color: var(--text);
      font-family: 'Share Tech Mono', monospace;
    }

    .spritz-word div {
      display: table-cell;
    }

    .spritz-word div:first-child {
      width: 40%;
      text-align: right;
    }

    .spritz-word div:nth-child(2) {
      color: var(--accent-soft);
    }

    .spritz-word div:last-child {
      width: 60%;
      text-align: left;
    }

    /* Controls */
    .controls {
      text-align: center;
      margin: 0.8rem 0;
    }

    .settings-controls {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      align-items: center;
      gap: 0.6rem 1rem;
      max-width: 100%;
    }

    .settings-controls a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: var(--control);
      text-decoration: none;
      font-size: 1.6rem;
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 50%;
      transition: color 0.15s, background 0.15s;
    }

    .settings-controls a:hover,
    .settings-controls a:active {
      color: var(--text);
      background: rgba(255,255,255,0.06);
    }

    .wpm {
      width: 4.5rem;
      text-align: center;
      font-weight: 600;
      font-size: 1.1rem;
      background: transparent;
      border: 1px solid var(--border);
      color: var(--text);
      padding: 0.35rem;
      border-radius: 4px;
      -moz-appearance: textfield;
    }

    .wpm::-webkit-inner-spin-button {
      -webkit-appearance: none;
    }

    .extra-controls {
      margin-top: 0.8rem;
    }

    .extra-controls .toggle {
      font-size: 1.4rem;
      color: var(--control);
      text-decoration: none;
    }

    .togglable {
      display: none;
      margin-top: 0.6rem;
    }

    .togglable.open {
      display: block;
    }

    .zoom a {
      font-size: 1.3rem;
      color: var(--control);
      margin: 0 0.5rem;
      text-decoration: none;
    }

    /* Words area */
    .words {
      margin-top: 1.2rem;
    }

    .words-controls {
      display: flex;
      justify-content: center;
      gap: 1.2rem;
      margin-bottom: 0.6rem;
    }

    .words-controls a {
      color: var(--control);
      font-size: 1.3rem;
      text-decoration: none;
    }

    .progress-bar {
      height: 2px;
      width: 0;
      background: var(--accent);
      opacity: 0.5;
      margin-bottom: 0.4rem;
      transition: width 0.1s linear;
    }

    .demo-words {
      width: 100%;
      height: 26rem;
      padding: 0.9rem 1rem;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      color: var(--text);
      font-family: 'Inter', sans-serif;
      font-size: 0.9rem;
      line-height: 1.55;
      resize: vertical;
      border-radius: 4px;
    }

    .demo-words:focus {
      outline: 1px solid var(--accent);
    }

    /* Theme toggle */
    .theme-toggle {
      position: fixed;
      bottom: 1.2rem;
      right: 1.2rem;
      width: 2.8rem;
      height: 2.8rem;
      border-radius: 50%;
      background: var(--bg-elevated);
      border: 1px solid var(--border);
      color: var(--text-dim);
      font-size: 1.2rem;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      z-index: 50;
      box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    }
 } 
       /* ========== FOOTER LINKS LAYOUT ========== */
/* =========================================
             FOOTER STYLES (FIXED)
   ========================================= */

/* Base reset for footer lists */
.footer ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.footer li {
  display: block;
}

/* 1. Prevent mobile blowout (replaces fixed 1166px width) */
.upper-footer,
.middle-footer {
  width: 100%;
  max-width: 1166px;
  margin: 0 auto;
  padding: 0 1rem;
  box-sizing: border-box;
}

/* Upper footer container layout */
.upper-footer {
  margin-top: 2rem;
}

.upper-footer .new-logo {
  width: 150px;
  max-width: 100%;
  margin-bottom: 1rem;
  display: block;
}

/* 2. Main footer links container: Stacks content & subscribe aside cleanly */
.footer-links {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
}

/* 3. Column-stacked link grid:
   Maintains side-by-side columns (instead of 1 straight downward line)
   and automatically adapts to screen width */
.content-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1.5rem 1rem;
  width: 75%;
}

.content-links ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.content-links li {
  font-size: calc(var(--main-font-size) - 3px);
  font-family: var(--helvetica-font-family);
  margin-top: 0;
}

.content-links .span {
  display: block;
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-size: calc(var(--small-font-size) + 2px);
  color: inherit;
}

/* Subscribe aside column */
.subscribe-aside {
  width: 23%;
  border-left: 1px solid rgba(128, 128, 128, 0.25);
  padding-left: 15px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe-aside span {
  font-weight: bold;
  text-transform: uppercase;
  font-size: calc(var(--small-font-size) + 2px);
  color: inherit;
}

.subscribe-aside i {
  width: 20px;
}

.subscribe-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.subscribe-links li {
  display: inline-flex;
  margin: 0;
}

.subscribe-links li a {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.subscribe-links li a:hover {
  color: #fff;
  background: var(--accent);
}

.corporate-links a,
.alternate-links a {
  font-size: var(--small-font-size);
  display: block;
  margin-top: 4px;
}

/* Dividers that adapt to any color scheme */
.side-line,
.separator-content {
  border: none;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  margin: 8px 0;
}

/* 4. Link & color scheme preservation: Inherits theme colors */
.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

/* 5. Middle footer (Copyright & legal links) */
.middle-footer {
  margin-top: 25px;
  border-top: 1px solid rgba(128, 128, 128, 0.25);
  padding: 1rem 1rem 4.5rem 1rem; /* bottom padding leaves room for fixed-footer */
}

.middle-footer ul {
  display: flex;
  flex-wrap: wrap;              /* Wraps items cleanly on smaller screens */
  justify-content: center;
  align-items: center;
  gap: 8px 16px;                /* Compact gap replaces the bloated 5rem margin */
  font-size: var(--xsmall-font-size);
}

.middle-footer li {
  margin: 0;                    /* Removed the 5rem margin that made it huge */
}

/* 6. Fixed bottom bar: Centered and responsive */
.fixed-footer {
  background-color: var(--button-bg-color, #333);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  color: var(--main-color, #fff);
  padding: 0.6rem 1rem;
  cursor: pointer;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
}

.fixed-footer span {
  margin-left: 0;               /* Removed 15rem offset that pushed text offscreen */
  font-size: var(--small-font-size);
  font-weight: bold;
}

.fa-angle-up {
  margin-left: 0;
}
  #ton-qr {
            width: 60px; 
            border: 1px solid #ff0033;
            padding: 2px;
            background: #000;
            cursor: zoom-in; 
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
            box-shadow: 0 0 10px rgba(255, 0, 51, 0.2);
            position: relative; 
            z-index: 10001; 
        }
        #ton-qr:hover {
            box-shadow: 0 0 20px rgba(255, 0, 51, 0.6);
            border-color: #fff;
        }
   #ton-qr.expanded {
    position: fixed;
    top: 50vh;
    left: 50vw;
    transform: translate(-50%, -50%);
    margin: 0;
    width: min(75vmin, 280px);
    height: min(75vmin, 280px);
    z-index: 9999;
    background: #fff;
    padding: 8px;
    border: 2px solid var(--red);
    /* 100vmax creates an instant dark backdrop over the rest of the screen */
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.82), 0 0 30px var(--red);
    cursor: pointer;
}

/* --- GYRO-CORE LOGO SYSTEM --- */
.gyro-container {
    position: relative;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    perspective: 500px; /* Deep 3D space */
}

/* The Anchor Logo (Center) */
.anchor-logo {
    width: 40px;
    height: 40px;
    z-index: 10;
    filter: drop-shadow(0 0 5px var(--red));
    transition: transform 0.3s ease;
}

.gyro-container:hover .anchor-logo {
    transform: scale(1.1);
}

/* The Orbital Rings */
.gyro-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-style: preserve-3d;
    border-radius: 50%;
    pointer-events: none; /* Let clicks pass through to logo */
}

/* Ring 1: The Red Orbit */
.ring-1 {
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    border: 1px solid var(--red);
    border-left-color: transparent;
    border-right-color: transparent;
    animation: gyro-spin 4s infinite linear;
    box-shadow: 0 0 10px rgba(255, 0, 0, 0.2);
}

/* Ring 2: The White Ellipse */
.ring-2 {
    width: 70px;
    height: 70px;
    margin-top: -35px;
    margin-left: -35px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    animation: gyro-spin-reverse 7s infinite linear;
}

/* Ring 3: The Fast Data Stream */
.ring-3 {
    width: 50px;
    height: 50px;
    margin-top: -25px;
    margin-left: -25px;
    border-top: 2px solid #333;
    animation: gyro-tumble 5s infinite linear;
}

/* Animations */
@keyframes gyro-spin {
    0% { transform: rotateX(70deg) rotateZ(0deg); }
    100% { transform: rotateX(70deg) rotateZ(360deg); }
}

@keyframes gyro-spin-reverse {
    0% { transform: rotateX(-70deg) rotateY(20deg) rotateZ(360deg); }
    100% { transform: rotateX(-70deg) rotateY(20deg) rotateZ(0deg); }
}

@keyframes gyro-tumble {
    0% { transform: rotateY(0deg) rotateZ(45deg); }
    100% { transform: rotateY(360deg) rotateZ(45deg); }
}

/* --- THE GLITCH TRIANGLE OVERLAY --- */
.glitch-triangle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20; /* Top layer for clicking */
    cursor: pointer;
    background: transparent;
}

.glitch-triangle:active {
    background: rgba(255, 0, 0, 0.1);
}

/* Fix rail visibility against dark backgrounds */
.fixed-rail { mix-blend-mode: normal !important; }

.glitch-link {
  color: var(--accent) !important;
  text-decoration: none;
  font-size: 1.4rem;
  display: block;
  text-align: center;
  margin-top: 0.25rem;
  transition: color 0.15s, text-shadow 0.15s;
}

.glitch-link:hover,
.glitch-link:visited,
.glitch-link:active {
  color: var(--accent-soft) !important;
  text-shadow: 0 0 8px rgba(230, 0, 0, 0.5);
}

.rotator {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
	  
@media screen and (max-width: 768px) {
  /* 1. Tighten footer page margins & shrink logo */
  .upper-footer,
  .middle-footer {
    padding: 0 0.5rem !important;
  }

  .upper-footer {
    margin-top: 1rem !important;
  }

  .upper-footer .new-logo {
    width: 85px !important;
    margin-bottom: 0.4rem !important;
  }

  /* 2. Stack link sections with minimal vertical gap */
  .footer-links {
    flex-direction: column !important;
    gap: 0.75rem !important;
  }

  /* 3. 3-Column micro-grid (dramatically cuts vertical scrolling height) */
  .content-links {
    width: 100% !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.6rem 0.35rem !important;
  }

  .content-links ul {
    gap: 2px !important;
  }

  /* Micro headings */
  .content-links .span,
  .subscribe-aside span {
    font-size: 0.62rem !important; /* ~10px */
    letter-spacing: 0.3px;
    margin-bottom: 2px !important;
    line-height: 1.15 !important;
  }

  /* Micro text links */
  .content-links li {
    font-size: 0.58rem !important; /* ~9.2px */
    line-height: 1.2 !important;
  }

  /* 4. Compressed aside / subscription section */
  .subscribe-aside {
    width: 100% !important;
    border-left: none !important;
    border-top: 1px solid rgba(128, 128, 128, 0.2) !important;
    padding-left: 0 !important;
    padding-top: 0.4rem !important;
    gap: 4px !important;
  }

  .subscribe-links {
    gap: 0.5rem !important;
  }

  .subscribe-links li a {
    font-size: 1.1rem !important;
    width: 2rem !important;
    height: 2rem !important;
    margin-bottom: 0 !important;
  }

  .corporate-links a,
  .alternate-links a {
    font-size: 0.55rem !important; /* ~8.8px */
    line-height: 1.2 !important;
    margin-top: 1px !important;
  }

  .side-line,
  .separator-content {
    margin: 3px 0 !important;
  }

  /* 5. Minimal middle footer (legal/copyright row) */
  .middle-footer {
    margin-top: 8px !important;
    padding: 0.4rem 0.25rem 2rem 0.25rem !important; /* leaves minimal room for the slim fixed bar */
  }

  .middle-footer ul {
    gap: 2px 6px !important;
    font-size: 0.52rem !important; /* ~8.3px */
    line-height: 1.2 !important;
  }

  /* 6. Ultra-slim fixed bottom bar */
  .fixed-footer {
    padding: 0.25rem 0.5rem !important;
    min-height: unset !important;
    gap: 6px !important;
  }

  .fixed-footer span {
    font-size: 0.6rem !important;
  }

  .fixed-footer .fa-angle-up {
    font-size: 0.6rem !important;
  }
}

/* Fallback for ultra-narrow screens (under 340px) */
@media screen and (max-width: 340px) {
  .content-links {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
    /* ========== MOBILE REFINEMENTS ========== */
    @media (max-width: 480px) {
      .header {
        padding: 0.6rem 0.8rem;
      }

      .nav__left {
        font-size: 0.75rem;
      }

      .nav__center img {
        height: 36px;
        width: 36px;
      }

      .settings-controls a {
        width: 2.6rem;
        height: 2.6rem;
        font-size: 1.4rem;
      }

      .demo-words {
        height: 14rem;
        font-size: 0.85rem;
      }

      .triangle-wrapper {
        width: min(240px, 75vw);
        height: min(240px, 75vw);
      }

      .theme-toggle {
        bottom: 1rem;
        right: 1rem;
      }
    }

    /* Light theme override (if toggled) */
    html:not(.night) {
      --bg: #e8e8e8;
      --bg-elevated: #f5f5f5;
      --text: #1a1a1a;
      --text-dim: #555;
      --border: #ccc;
      --control: #777;
    }

    html:not(.night) body {
      background: var(--bg);
      color: var(--text);
    }

    html:not(.night) .header {
      background: rgba(232, 232, 232, 0.92);
    }

    html:not(.night) .spritz-word div:nth-child(2) {
      color: var(--accent);
    }

.w-2 { width: 0.5rem; }
.h-2 { height: 0.5rem; }
.bg-zinc-900 { background-color: #18181b; }
.rounded-full { border-radius: 9999px; }
.bg-red-600 { background-color: #dc2626; }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }
#power-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  animation: redWhiteAlternate 1s infinite;
}

@keyframes redWhiteAlternate {
  0%, 50% { 
    background-color: #ef4444;
    box-shadow: 0 0 10px #ef4444;
  }
  51%, 100% { 
    background-color: #ffffff;
    box-shadow: 0 0 10px #ffffff;
  }
}
