:root {
    --black: #0F0F0F;
    --dark-gray: #1A1A1A; 
    --white: #F5F5F5;
    --green: #C1FF00;
    --magenta: #FF2A6D;
    --nav-width: 220px;
    --header-height: 52px;
}

* {
    box-sizing: border-box;
    border-radius: 0 !important;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* LAYOUT & BORDERS */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--black);
    z-index: 1000;
    border: 1px solid var(--white);
    border-top: 0; border-left: 0; border-right: 0;
}

nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    bottom: 0;
    width: var(--nav-width);
    border-right: 1px solid var(--white);
    z-index: 999;
    background: var(--black);
}

main {
    margin-left: var(--nav-width);
    padding-top: var(--header-height);
}

section {
    min-height: 100vh;
    padding: 60px 40px;
    border-bottom: 1px solid var(--white);
    position: relative;
    background-color: var(--black); /* Default background */
}

section:nth-of-type(even) {
    background-color: var(--dark-gray);
}

.grid-2col > div,
.process-list li {
    background: transparent;
}

section:last-of-type {
    border-bottom: none;
}

footer {
    margin-left: var(--nav-width);
    padding: 20px;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid var(--white);
    background-color: var(--black);
}

/* HEADER & CURSOR */
.logo-text {
    font-weight: bold;
    font-size: 1.3rem;
}
.blinking-cursor {
    animation: blink 1s step-end infinite;
    background-color: var(--white);
    display: inline-block;
    width: 0.6em;
    height: 1em;
    margin-left: 2px;
    vertical-align: text-bottom;
}
@keyframes blink {
    from, to { background-color: transparent; }
    50% { background-color: var(--white); }
}

/* NAVIGATION */
nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
nav a {
    display: inline-block;
    width: 100%;
    color: var(--white);
    text-decoration: none;
    padding: 12px 20px;
    border-bottom: 1px solid var(--white);
    transition: color 0.2s, background-color 0.2s;
    font-size: 0.8rem;
}
nav li:last-child a {
    border-bottom: none;
}
nav a:hover {
    outline: 1px solid var(--green);
    outline-offset: -2px;
    color: var(--green);
}
nav a.active {
    position: relative; 
    background-color: var(--white);
    color: var(--black);
    font-weight: 700;
}

/* SPRITE CONTAINER */
.sprite-container {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--black);
}

#animated-sprite {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.1s ease;
    filter: brightness(1.1) contrast(1.1);
}

/* Glitch effect for sprite on hover */
.sprite-container.glitch #animated-sprite {
    animation: sprite-glitch 0.3s ease-in-out;
}

@keyframes sprite-glitch {
    0% { transform: translate(0, 0) scaleX(1); }
    10% { transform: translate(-2px, 0) scaleX(1.02); }
    20% { transform: translate(2px, 0) scaleX(0.98); }
    30% { transform: translate(-1px, 0) scaleX(1.01); }
    40% { transform: translate(1px, 0) scaleX(0.99); }
    50% { transform: translate(0, -1px) scaleX(1); }
    60% { transform: translate(0, 1px) scaleX(1.01); }
    70% { transform: translate(-1px, 0) scaleX(0.99); }
    80% { transform: translate(1px, 0) scaleX(1.02); }
    90% { transform: translate(0, -1px) scaleX(0.98); }
    100% { transform: translate(0, 0) scaleX(1); }
}

@keyframes glitchy-border {
  0% { clip-path: inset(0 0 98% 0); }
  10% { clip-path: inset(98% 0 0 0); }
  20% { clip-path: inset(0 0 98% 0); }
  30% { clip-path: inset(98% 0 0 0); }
  40% { clip-path: inset(40% 0 40% 0); }
  50% { clip-path: inset(98% 0 0 0); }
  60% { clip-path: inset(0 0 98% 0); }
  70% { clip-path: inset(98% 0 0 0); }
  80% { clip-path: inset(0 0 40% 0); }
  90% { clip-path: inset(60% 0 0 0); }
  100% { clip-path: inset(0 0 98% 0); }
}

/* NEW: VIBRATION KEYFRAMES */
@keyframes vibrate-glitch {
    0% { transform: translate(0, 0); }
    20% { transform: translate(-1px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(1px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0, 0); }
}

nav a.active::before,
nav a.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

nav a.active::before {
    border-top: 2px solid var(--green);
    border-bottom: 2px solid var(--green);
    animation: glitchy-border 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
}

nav a.active::after {
    border-top: 2px solid var(--magenta);
    border-bottom: 2px solid var(--magenta);
    animation: glitchy-border 2s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    animation-delay: -1s;
}

/* HERO SECTION */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction: column;
    position: relative;
}
.brand-title {
    font-size: 60px;
    font-weight: 700;
    line-height: 1.1;
    z-index: 10;
    color: var(--green);
    text-shadow: 
        -1px -1px 0 var(--black),  
         1px -1px 0 var(--black),
        -1px  1px 0 var(--black),
         1px  1px 0 var(--black),
         2px 2px 0px var(--green);
    margin-bottom: 1rem;
    margin-top: 0;
}
.hero-heading {
    font-size: 80px;
    font-weight: 700;
    line-height: 1.1;
    /* text-transform: uppercase; */ /* Removed for new copy */
    z-index: 10;
    color: var(--white);
    text-shadow: 
        -1px -1px 0 var(--black),  
         1px -1px 0 var(--black),
        -1px  1px 0 var(--black),
         1px  1px 0 var(--black),
         2px 2px 0px var(--white);
}
.hero-heading span {
    color: var(--green);
    text-shadow: 
        -1px -1px 0 var(--black),  
         1px -1px 0 var(--black),
        -1px  1px 0 var(--black),
         1px  1px 0 var(--black),
         2px 2px 0px var(--green);
}
.hero-subheading {
    margin-top: 2rem;
    max-width: 60ch;
    font-size: 1.25rem;
    line-height: 1.6;
    z-index: 10;
}
#tesseract-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: all; 
}

/* CONTENT & TYPOGRAPHY */
h2 {
    font-size: 2.5rem;
    color: var(--green);
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Special spacing for Who We Empower title - it's the second h2 in solutions section */
#solutions h2:nth-of-type(2) {
    margin-top: 3.75rem;
    padding-top: 3.75rem;
    border-top: 1px solid var(--white);
}
h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.grid-2col h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 0;
    margin-bottom: 0.8rem;
}

p, li {
    max-width: 80ch;
    line-height: 1.7;
    font-size: 1.05rem;
}
ul {
    list-style: none;
    padding-left: 0;
}

blockquote {
    font-style: italic;
    border-left: 3px solid var(--green);
    padding-left: 2rem;
    margin: 2rem 0;
    max-width: 80ch;
}
ul li::before {
    content: "•"; /* Changed from - */
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    color: var(--green);
}

.grid-2col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-2col > div,
.grid-2col > ul,
.process-list li {
    padding: 1.5rem;
    border: 1px solid rgba(245, 245, 245, 0.2);
    transition: all 0.2s ease-out;
}

@keyframes glitch-glow {
    0%   { box-shadow: 0 0 6px -3px var(--green), inset 0 0 6px -3px var(--green); }
    25%  { box-shadow: 0 0 12px -3px var(--green), inset 0 0 10px -3px var(--green), 0 0 3px var(--magenta); }
    50%  { box-shadow: 0 0 6px -3px var(--green), inset 0 0 6px -3px var(--green); }
    75%  { box-shadow: 0 0 14px -3px var(--green), inset 0 0 12px -3px var(--green), 0 0 5px var(--magenta) ; }
    100% { box-shadow: 0 0 6px -3px var(--green), inset 0 0 6px -3px var(--green); }
}

@keyframes text-glow-glitch {
    0% { text-shadow: 0 0 5px var(--green), 0 0 1px var(--white); }
    20% { text-shadow: 0 0 6px var(--green), 2px 0 3px var(--magenta); }
    40% { text-shadow: 0 0 5px var(--green), 0 0 1px var(--white); }
    60% { text-shadow: 0 0 7px var(--green), -2px 0 3px var(--magenta); }
    80% { text-shadow: 0 0 5px var(--green), 0 0 1px var(--white); }
    100% { text-shadow: 0 0 6px var(--green); }
}

.grid-2col > div:hover,
.grid-2col > ul:hover,
.process-list li:hover {
    border-color: var(--green);
    transform: translateY(0); 
    animation: glitch-glow 0.8s infinite;
}

.kanji-glow {
    color: var(--green);
    animation: text-glow-glitch 1.5s linear infinite;
}

/* IMPROVED ROADMAP STYLES */
.roadmap-wrapper {
    margin: 4rem auto;
    max-width: 900px;
}
.roadmap-step {
    margin-bottom: 2.5rem;
}
.roadmap-bar-container {
    position: relative;
    height: 60px; /* Make the bar thick */
    border: 2px solid var(--white);
    background-image: repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.05),
        rgba(255,255,255,0.05) 1px,
        transparent 1px,
        transparent 4px
    );
}
.roadmap-bar-label-bg, .roadmap-bar-label-fg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 25px;
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
}
.roadmap-bar-label-bg {
    color: rgba(245, 245, 245, 0.4);
}
.roadmap-bar-label-fg {
    color: var(--black);
}
.roadmap-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background-color: var(--green);
    transition: width 1.5s cubic-bezier(0.65, 0, 0.35, 1);
    overflow: hidden; /* Key for revealing the fg label */
}
.roadmap-step-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease-in, max-height 0.6s ease-in, padding-top 0.6s, padding-bottom 0.6s;
    padding-left: 20px;
    padding-right: 20px;
}
.roadmap-step.is-loading .roadmap-bar-fill {
    width: 100%;
}
.roadmap-step.is-loaded .roadmap-step-content {
    opacity: 1;
    max-height: 200px; /* Large enough to not clip content */
    padding-top: 20px;
    padding-bottom: 15px;
}
.roadmap-step-content p {
    border-left: 2px solid var(--green);
    padding-left: 20px;
    margin: 0;
    max-width: 100%;
}

/* TEAM SECTION */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}
.team-member img {
    max-width: 100%;
    height: 350px;
    object-fit: cover;
    border: none;
    margin-bottom: 1rem;
}
.team-member h3 {
    margin-top: 0;
}

/* PERSONA SWITCHER */
.persona-switcher {
    margin: 3rem auto 3rem auto;
    max-width: 800px;
    padding-bottom: 2rem;
}

.persona-tabs {
    display: flex;
    justify-content: center;
    gap: 2px;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    border: 1px solid var(--white);
}

.persona-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--white);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1rem;
    font-weight: 400;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-right: 1px solid var(--white);
    position: relative;
}

.persona-tab:last-child {
    border-right: none;
}

.persona-tab:hover {
    background-color: rgba(193, 255, 0, 0.1);
    color: var(--green);
}

.persona-tab.active {
    background-color: var(--green);
    color: var(--black);
    font-weight: 700;
    animation: vibrate-glitch 0.3s ease-in-out;
}

.persona-content-container {
    position: relative;
    min-height: 200px;
    background-color: transparent;
    margin-top: 0;
}

.persona-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2rem 2rem 1.5rem 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    box-sizing: border-box;
    text-align: center;
}

.persona-content.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.persona-content h4 {
    font-size: 1.8rem;
    color: var(--green);
    text-align: center;
    margin-bottom: 1.8rem;
    margin-top: 0;
    text-shadow: 0 0 5px var(--green);
}

.persona-content p {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
}

/* QUIZ ASIDE BOX */
.quiz-box {
    border: 1px solid var(--green);
    padding: 40px 30px;
    margin: 4rem 0;
    position: relative;
    background-color: var(--black); /* Ensure contrast */
    text-align: center; /* MODIFIED: Center content */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.quiz-box h3 {
    margin-top: 0;
    margin-bottom: 1rem;
}

.quiz-box p {
    margin-bottom: 1.5rem;
}

.quiz-box .cta-button {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* Add bottom border to quiz box when it's the last element in Who We Empower section */
#solutions .quiz-box {
    border-bottom: 1px solid var(--white);
    padding-bottom: 3.75rem;
    margin-bottom: 3.75rem;
}
.quiz-box::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 2rem;
    background: var(--black);
    padding: 0 10px;
}

.quiz-box p.small-text {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

/* NEW: Button Centering Container */
.button-container {
    text-align: center;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-block;
    background: var(--green); /* MODIFIED: Green by default */
    border: 1px solid var(--green); /* MODIFIED: Green by default */
    color: var(--black); /* MODIFIED: Black text by default */
    font-family: 'IBM Plex Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700; /* ADDED: Bold text by default */
    padding: 15px 30px;
    cursor: pointer;
    text-decoration: none;
    margin-top: 20px;
    min-width: 180px;
    text-align: center;
    transition: all 0.2s;
    position: relative;
    z-index: 11;
    box-shadow: 0 0 15px var(--green); /* ADDED: Glow by default */
}

.cta-button:hover {
     /* MODIFIED: Add vibration animation on hover */
    animation: vibrate-glitch 0.2s linear infinite;
}

header .cta-button {
    margin-top: 0;
    font-size: 1rem;
    padding: 10px 20px;
}

/* CRT WIPE DOWN EFFECT */
/* Removed CRT wipe effect styles to fix navigation flash issue */

/* VHS NOISE OVERLAY */
#vhs-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 5000; /* Back to higher z-index for more visible effect */
    pointer-events: none;
    opacity: 0.12; /* Reduced opacity by 40% for subtler effect */
}

/* LINKEDIN LINKS */
.linkedin-link {
    display: inline-block;
    background: transparent;
    border: 1px solid var(--green);
    color: var(--green);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 6px 8px;
    text-decoration: none;
    margin-top: 10px;
    text-align: center;
    transition: all 0.2s;
    min-width: 24px;
    border-radius: 0;
}

.linkedin-link:hover {
    background: var(--green);
    color: var(--black);
    box-shadow: 0 0 10px var(--green);
    animation: vibrate-glitch 0.2s linear infinite;
}

.team-member {
    text-align: center;
}

/* RESPONSIVENESS */
@media (max-width: 900px) {
    :root {
        --nav-width: 0px;
    }
    nav { display: none; }
    main, footer { margin-left: 0; }
    .brand-title { font-size: 40px; }
    .hero-heading { font-size: 52px; }
    section { padding: 40px 20px; }
    .roadmap-bar-label-bg, .roadmap-bar-label-fg { font-size: 1rem; padding: 0 15px;}
} 