/* --- Base & Reset --- */
:root {
    --primary-gradient-start: #6e45e2;
    --primary-gradient-end: #88d3ce;
    --primary-gradient: linear-gradient(90deg, var(--primary-gradient-start), var(--primary-gradient-end));
    --secondary-color: #f8f9fa; /* Very light gray */
    --dark-color: #1a1a1d; /* Very dark gray/off-black */
    --text-color: #343a40;
    --light-text: #f1f1f1;
    --subtle-gray: #e9ecef;
    --border-color: #dee2e6;
    --header-height: 75px;
    --font-family: 'Inter', sans-serif;
    --border-radius: 8px;
    --transition-speed: 0.3s;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-family); line-height: 1.7; color: var(--text-color);
    background-color: #fff; overflow-x: hidden;
}
a { text-decoration: none; color: var(--primary-gradient-start); transition: color var(--transition-speed) ease; }
a:hover { color: var(--primary-gradient-end); }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }

/* Remove default outline and prepare for custom focus */
a, button, input, article, select, textarea, .team-member, .location-node { outline: none; } /* Include clickable divs */

/* Custom Focus Styles */
a:focus-visible,
button:focus-visible,
input[type="email"]:focus-visible,
article.job-listing:focus-visible,
.team-member:focus-visible,
.blog-post-item:focus-visible, /* Target the wrapper */
.location-node:focus-visible { /* Target the wrapper */
    outline: 3px solid var(--primary-gradient-end);
    outline-offset: 3px;
    border-radius: 3px;
}
/* Specific focus shape for inputs */
input[type="email"]:focus-visible { border-radius: 50px; }
article.job-listing:focus-visible,
.team-member:focus-visible,
.blog-post-item:focus-visible,
.location-node:focus-visible { border-radius: var(--border-radius); } /* Match element shape */
/* Specific focus for links inside blog items (often better than focusing the whole div) */
.blog-post-item h3 a:focus-visible {
     outline: 3px solid var(--primary-gradient-end);
     outline-offset: 3px;
     border-radius: 3px;
}

h1, h2, h3 { margin-bottom: 1rem; line-height: 1.3; font-weight: 700; color: var(--dark-color); }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2rem, 5vw, 2.8rem); text-align: center; margin-bottom: 1.5rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }

/* Accessibility helper class */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 25px; }
section { padding: 100px 0; position: relative; }
.section-subtitle { text-align: center; font-size: 1.1rem; color: #6c757d; max-width: 600px; margin: -1rem auto 3rem auto; }
.highlight { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-center { text-align: center; } /* Utility class */

/* --- Header --- */
#header { background-color: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); position: sticky; top: 0; left: 0; width: 100%; z-index: 1000; height: var(--header-height); display: flex; align-items: center; }
#header nav { display: flex; justify-content: space-between; align-items: center; width: 100%; }
#header .logo { display: flex; align-items: center; font-size: 1.4rem; font-weight: 700; color: var(--dark-color); }
#header .logo svg { margin-right: 10px; } #header .logo:hover { color: var(--dark-color); }
#header .nav-links { display: flex; align-items: center; flex-wrap: wrap; /* Allow wrap on smaller screens if needed */ }
#header .nav-links li { margin: 0 10px; /* Reduced margin for more links */ }
#header .nav-links a { color: var(--text-color); font-weight: 600; font-size: 0.9rem; /* Slightly smaller */ padding-bottom: 5px; position: relative; white-space: nowrap; /* Prevent wrapping link text */ }
#header .nav-links a::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 0; height: 2px; background: var(--primary-gradient); transition: width var(--transition-speed) ease; }
#header .nav-links a:hover::after { width: 100%; }
#header .nav-links a:hover { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta-button.nav-cta { padding: 8px 18px; font-size: 0.85rem; margin-left: 10px; /* Reduced margin */ white-space: nowrap; }

/* --- Mobile Menu --- */
.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 1001; }
.hamburger-line { display: block; width: 25px; height: 2px; background-color: var(--dark-color); margin: 5px 0; transition: all var(--transition-speed) ease-in-out; border-radius: 1px; }
/* Active states handled by JS */

/* --- Hero Section (index.html) --- */
#hero { min-height: calc(100vh - var(--header-height)); display: flex; align-items: center; padding-top: 60px; padding-bottom: 60px; background-color: #fff; overflow: hidden; }
.hero-content { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-text { flex-basis: 55%; animation: fadeInText 1s ease-out forwards; }
.hero-text h1 { line-height: 1.2; margin-bottom: 1.5rem; }
.hero-text .subtitle { font-size: 1.2rem; margin-bottom: 2.5rem; color: #555; font-weight: 300; max-width: 600px; }
.hero-buttons { display: flex; gap: 15px; flex-wrap: wrap; }
.hero-visual { flex-basis: 40%; display: flex; justify-content: center; align-items: center; position: relative; min-height: 350px; }
.abstract-graphic { position: relative; width: 250px; height: 250px; animation: rotateGraphic 30s linear infinite; }
.node { width: 25px; height: 25px; border-radius: 50%; background: var(--primary-gradient); position: absolute; box-shadow: 0 0 15px rgba(110, 69, 226, 0.4); animation: pulseNode 2s infinite ease-in-out alternate; }
.node.n1 { top: 10%; left: 10%; animation-delay: 0s; } .node.n2 { top: 10%; right: 10%; animation-delay: 0.4s; } .node.n3 { bottom: 10%; left: 10%; animation-delay: 0.8s; } .node.n4 { bottom: 10%; right: 10%; animation-delay: 1.2s; } .node.n5 { top: 50%; left: 50%; transform: translate(-50%, -50%); width: 35px; height: 35px; animation-delay: 0.2s;}
.connections { position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); opacity: 0.3; stroke: var(--primary-gradient-end); stroke-width: 1.5; animation: dash 5s linear infinite; }
.connections line { stroke-dasharray: 10; }
@keyframes rotateGraphic { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes pulseNode { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(1.1); opacity: 1; } }
@keyframes dash { to { stroke-dashoffset: -100; } }

/* Background Gradient Blurs */
.background-blur-gradient { position: absolute; border-radius: 50%; filter: blur(80px); z-index: -1; opacity: 0.6; pointer-events: none; }
.hero-blur { top: -10%; right: -15%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(136, 211, 206, 0.2) 0%, rgba(110, 69, 226, 0.0) 70%); }
.content-page .background-blur-gradient { bottom: -15%; left: -10%; width: 450px; height: 450px; background: radial-gradient(circle, rgba(136, 211, 206, 0.15) 0%, rgba(110, 69, 226, 0.0) 70%); filter: blur(70px); opacity: 0.5; }

/* --- Buttons --- */
.cta-button { display: inline-block; padding: 14px 35px; border-radius: 50px; font-weight: 600; transition: all var(--transition-speed) ease; cursor: pointer; border: 2px solid transparent; font-size: 1rem; text-align: center; }
.cta-button.primary { background: var(--primary-gradient); color: #fff; border: none; }
.cta-button.primary:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(110, 69, 226, 0.3); color: #fff; }
.cta-button.secondary { background-color: #fff; color: var(--primary-gradient-start); border: 2px solid var(--subtle-gray); }
.cta-button.secondary:hover { border-color: var(--primary-gradient-start); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); }
.cta-button.large { padding: 16px 40px; font-size: 1.1rem; }
.cta-button.small { padding: 8px 18px; font-size: 0.85rem; }

/* --- The Lattice Section (index.html) --- */
#the-lattice { background-color: var(--secondary-color); }
.lattice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; margin-top: 40px; }
.lattice-item { background-color: #fff; padding: 40px 30px; border-radius: var(--border-radius); text-align: center; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; border: 1px solid var(--subtle-gray); }
.lattice-item:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.07); }
.lattice-icon { font-size: 2.8rem; margin-bottom: 1.5rem; line-height: 1; display: inline-block; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lattice-item p { color: #6c757d; font-size: 0.95rem; }

/* --- Social Proof Section (index.html) --- */
#social-proof { background-color: #fff; }
#social-proof h2 { text-align: center; }
#social-proof .section-subtitle { margin-bottom: 3.5rem; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-bottom: 4rem; }
.testimonial-item { background-color: var(--secondary-color); padding: 30px; border-radius: var(--border-radius); border-left: 5px solid; border-image: var(--primary-gradient) 1; box-shadow: 0 4px 10px rgba(0,0,0,0.04); }
.testimonial-item blockquote { font-style: italic; color: #555; margin-bottom: 1rem; font-size: 1.05rem; line-height: 1.7; position: relative; padding-left: 25px; }
.testimonial-item blockquote::before { content: '“'; position: absolute; left: -5px; top: -5px; font-size: 2.5rem; color: var(--primary-gradient-start); opacity: 0.6; line-height: 1; }
.testimonial-item .attribution { font-weight: 600; font-size: 0.9rem; color: var(--text-color); text-align: right; }
.featured-logos h3 { text-align: center; color: #999; font-weight: 600; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 1px; margin-bottom: 2rem; }
.logo-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 30px 50px; opacity: 0.7; margin-bottom: 3rem; }
.logo-grid span { font-weight: 700; font-size: 1.1rem; color: #777; }
.user-metrics { margin-top: 2rem; color: #6c757d; }
.user-metrics h4 { font-weight: 400; font-size: 1.1rem; }
.user-metrics .metric-number { font-weight: 700; color: var(--primary-gradient-start); }

/* --- Manifesto Section (index.html) --- */
#manifesto { background-color: var(--dark-color); color: var(--light-text); text-align: center; }
#manifesto h2 { color: #fff; margin-bottom: 2.5rem; }
#manifesto blockquote { font-size: 1.5rem; font-style: italic; font-weight: 300; max-width: 800px; margin: 0 auto 1.5rem auto; line-height: 1.8; position: relative; padding: 0 20px; color: rgba(255, 255, 255, 0.9); }
#manifesto blockquote::before, #manifesto blockquote::after { content: '“'; font-size: 5rem; position: absolute; opacity: 0.1; line-height: 1; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
#manifesto blockquote::before { content: '“'; top: -10px; left: -15px; } #manifesto blockquote::after { content: '”'; bottom: -30px; right: -15px; }
#manifesto .attribution { font-size: 1rem; font-weight: 600; color: rgba(255, 255, 255, 0.7); }

/* --- Convergence (CTA) Section (index.html) --- */
#convergence { background: var(--primary-gradient); color: #fff; text-align: center; }
.cta-content { max-width: 700px; margin: 0 auto; }
#convergence h2 { color: #fff; }
#convergence p { margin-bottom: 2rem; opacity: 0.9; font-size: 1.1rem; }
.beta-form { display: flex; justify-content: center; align-items: center; gap: 15px; flex-wrap: wrap; margin-bottom: 1rem; }
.beta-form input[type="email"] { padding: 16px 25px; border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.5); background-color: rgba(255, 255, 255, 0.1); color: #fff; font-size: 1rem; min-width: 300px; flex-grow: 1; transition: background-color var(--transition-speed), border-color var(--transition-speed); }
.beta-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.7); }
.beta-form input[type="email"]:focus { background-color: rgba(255, 255, 255, 0.2); border-color: #fff; }
#convergence .cta-button.primary { background: #fff; color: var(--primary-gradient-start); border: none; box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); }
#convergence .cta-button.primary:hover { background: var(--secondary-color); color: var(--primary-gradient-start); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15); }
.form-status { min-height: 1.5em; font-weight: 600; }

/* --- Styles for Secondary Content Pages (Privacy, Terms, Careers, etc.) --- */
main.content-page { padding-top: 60px; padding-bottom: 80px; position: relative; overflow: hidden; }
.page-header { text-align: center; padding: 60px 0 40px 0; margin-bottom: 50px; position: relative; }
.page-header h1 { margin-bottom: 1rem; font-size: clamp(2.2rem, 5vw, 3.5rem); }
.page-intro { font-size: 1.15rem; color: #555; font-weight: 300; max-width: 750px; margin: 0 auto; line-height: 1.7; }
.content-page h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 3rem; margin-bottom: 1.5rem; padding-bottom: 0.5rem; border-bottom: 2px solid var(--subtle-gray); text-align: left; color: var(--dark-color); }
.content-page .container > h2:first-of-type { margin-top: 0; }
.content-page ul { list-style: none; padding-left: 20px; margin-bottom: 1.5rem; }
.content-page ul li { position: relative; padding-left: 25px; margin-bottom: 0.8rem; color: var(--text-color); line-height: 1.7; }
.content-page ul li::before { content: ''; position: absolute; left: 0; top: 0.5em; transform: translateY(-50%); width: 8px; height: 8px; background: var(--primary-gradient); border-radius: 50%; }
.content-page .footnote { font-size: 0.85rem; color: #6c757d; margin-top: -0.5rem; margin-bottom: 1.5rem; padding-left: 20px; }

/* --- Careers Page Specific Styling --- */
#careers-content h2 { border-bottom: none; text-align: center; margin-bottom: 2rem; }
#careers-content .container > h2:first-of-type { text-align: center; border-bottom: none; margin-top: 0; }
#careers-content h2:nth-of-type(2) { margin-top: 3.5rem; }
.job-listing { background-color: #fff; border: 1px solid var(--subtle-gray); border-radius: var(--border-radius); padding: 30px 35px; margin-bottom: 30px; transition: all var(--transition-speed) ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03); position: relative; overflow: hidden; }
.job-listing::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 4px; background: var(--primary-gradient); transition: left var(--transition-speed) ease; }
.job-listing:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.07); }
.job-listing:hover::before { left: 0; }
.job-listing h3 { margin-bottom: 0.5rem; font-size: 1.3rem; background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-block; }
.job-listing .location { font-weight: 600; color: var(--text-color); margin-bottom: 12px; display: block; font-size: 0.9rem; opacity: 0.8; }
.job-listing p { color: #555; font-size: 0.98rem; margin-bottom: 20px; }
.apply-button { display: inline-block; padding: 10px 22px; background: var(--primary-gradient); color: #fff; border-radius: 25px; font-size: 0.9rem; font-weight: 600; text-align: center; transition: all var(--transition-speed) ease; border: none; }
.apply-button:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(110, 69, 226, 0.3); color: #fff; }
.no-openings { text-align: center; padding: 50px 40px; background-color: var(--secondary-color); border-radius: var(--border-radius); border: 1px dashed var(--border-color); margin-top: 40px; }
.no-openings p { color: #6c757d; font-size: 1.1rem; margin-bottom: 1.5rem; }
.no-openings .cta-button { background: var(--primary-gradient); color: #fff; }

/* --- Team Page Styles --- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; margin-top: 3rem; }
.team-member { text-align: center; background-color: var(--secondary-color); padding: 35px 25px; border-radius: var(--border-radius); box-shadow: 0 5px 15px rgba(0,0,0,0.04); transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease; border: 1px solid var(--subtle-gray); }
.team-member:hover { transform: translateY(-8px); box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08); }
.team-member-avatar { width: 130px; height: 130px; border-radius: 50%; margin: 0 auto 1.5rem auto; background: var(--primary-gradient); display: flex; justify-content: center; align-items: center; font-size: 3rem; color: #fff; overflow: hidden; position: relative; }
.team-member-avatar::after { content: ''; position: absolute; inset: 10px; border: 3px dashed rgba(255,255,255,0.3); border-radius: 50%; animation: rotateGraphic 15s linear infinite reverse; }
.team-member h3 { font-size: 1.4rem; margin-bottom: 0.25rem; color: var(--dark-color); }
.team-member .title { font-size: 0.95rem; font-weight: 600; color: var(--primary-gradient-start); margin-bottom: 1rem; display: block; }
.team-member p { font-size: 0.9rem; color: #6c757d; line-height: 1.6; }

/* --- Blog Page Styles (Listing) --- */
.blog-post-list { margin-top: 3rem; }
.blog-post-item { background-color: #fff; border: 1px solid var(--subtle-gray); border-radius: var(--border-radius); padding: 30px 35px; margin-bottom: 30px; transition: all var(--transition-speed) ease; box-shadow: 0 4px 10px rgba(0,0,0,0.03); }
.blog-post-item:hover { transform: translateY(-6px); box-shadow: 0 10px 20px rgba(0,0,0,0.07); }
.blog-post-item h3 { margin-bottom: 0.5rem; }
.blog-post-item h3 a { color: var(--dark-color); transition: color var(--transition-speed) ease; }
.blog-post-item h3 a:hover { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-post-meta { font-size: 0.85rem; color: #999; margin-bottom: 1rem; display: block; }
.blog-post-excerpt { color: #555; font-size: 1rem; margin-bottom: 1.5rem; }
.read-more-link { font-weight: 600; font-size: 0.95rem; }

/* --- Single Blog Post Page Styles --- */
.single-blog-post main { padding-top: 80px; }
.blog-post-content { max-width: 800px; margin: 0 auto; }
.blog-post-content .post-title { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 0.5rem; line-height: 1.2; text-align: center; }
.blog-post-content .post-meta { display: block; text-align: center; font-size: 0.9rem; color: #888; margin-bottom: 2.5rem; }
.blog-post-content .post-meta span { margin: 0 8px; }
.post-featured-image { width: 100%; height: 350px; background: var(--primary-gradient); border-radius: var(--border-radius); margin-bottom: 2.5rem; display: flex; justify-content: center; align-items: center; color: rgba(255, 255, 255, 0.5); font-size: 1.5rem; font-style: italic; background: linear-gradient(45deg, rgba(110, 69, 226, 0.2), rgba(136, 211, 206, 0.2)), url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"%3E%3Cg fill-rule="evenodd"%3E%3Cg fill="%239C92AC" fill-opacity="0.07"%3E%3Cpath opacity=".5" d="M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9h4v1h-4v9zm-1 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-10 0v-9h-9v9h9zm-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{ margin-top: 2.5rem; }
.blog-post-content .post-body h2, .blog-post-content .post-body h3, .blog-post-content .post-body h4 { text-align: left; margin-top: 2.5rem; margin-bottom: 1rem; border-bottom: none; }
.blog-post-content .post-body h2 { font-size: 1.8rem; } .blog-post-content .post-body h3 { font-size: 1.5rem; } .blog-post-content .post-body h4 { font-size: 1.2rem; }
.blog-post-content .post-body p { font-size: 1.05rem; line-height: 1.8; margin-bottom: 1.5rem; color: var(--text-color); }
.blog-post-content .post-body ul, .blog-post-content .post-body ol { margin-bottom: 1.5rem; padding-left: 40px; }
.blog-post-content .post-body ul li::before { top: 0.6em; }
.blog-post-content .post-body ol { list-style: decimal; }
.blog-post-content .post-body ol li { padding-left: 10px; margin-bottom: 0.8rem; }
.blog-post-content .post-body blockquote { border-left: 4px solid var(--primary-gradient-end); margin: 2rem 0; padding: 1rem 1.5rem; background-color: var(--secondary-color); font-style: italic; color: #444; font-size: 1.1rem; }
.blog-post-content .post-body blockquote p { margin-bottom: 0.5rem; }
.blog-post-content .post-body blockquote footer { font-style: normal; font-weight: 600; font-size: 0.9rem; text-align: right; color: var(--primary-gradient-start); }
.back-to-blog { display: inline-block; margin-top: 3rem; font-weight: 600; color: var(--primary-gradient-start); }
.back-to-blog:hover { color: var(--primary-gradient-end); text-decoration: underline; }

/* --- Whitepaper/Ethics Page Styles --- */
.download-button-area { text-align: center; margin: 3rem 0; }
.doctrine-summary ul li::before { background: var(--primary-gradient-end); }
#ethics-content blockquote { border-left: 4px solid var(--primary-gradient-start); margin: 2rem 0; padding: 1rem 1.5rem; background-color: var(--secondary-color); font-style: italic; color: #444; }
#ethics-content blockquote p { margin-bottom: 0.5rem; }
#ethics-content blockquote footer { font-style: normal; font-weight: 600; font-size: 0.9rem; text-align: right; color: var(--primary-gradient-start); }

/* --- Locations Page Styles --- */
.location-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; margin-top: 3rem; }
.location-node { border: 1px solid var(--subtle-gray); border-radius: var(--border-radius); background-color: var(--secondary-color); padding: 30px; position: relative; overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,0.03); transition: all var(--transition-speed) ease; }
.location-node:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 10px 20px rgba(0,0,0,0.06); }
.location-node::before { content: ''; position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: radial-gradient(circle, var(--primary-gradient-end) 0%, transparent 70%); opacity: 0.08; border-radius: 50%; transition: opacity var(--transition-speed) ease; }
.location-node:hover::before { opacity: 0.15; }
.location-node h3 { margin-bottom: 0.5rem; color: var(--dark-color); position: relative; z-index: 1; }
.node-coordinates { display: block; font-size: 0.9rem; color: #777; margin-bottom: 1rem; font-family: monospace; position: relative; z-index: 1; }
.node-description { font-size: 0.95rem; color: #555; position: relative; z-index: 1; }
.abstract-map-container { margin-top: 4rem; text-align: center; }
.abstract-map-container h2 { margin-bottom: 1rem; }
.abstract-map { width: 100%; max-width: 600px; height: auto; margin: 0 auto; border: 1px dashed var(--border-color); padding: 20px; border-radius: var(--border-radius); background-color: #fff; position: relative; }
.abstract-map svg { width: 100%; height: 100%; stroke-width: 2; stroke-linecap: round; }
.map-node { fill: var(--primary-gradient-start); r: 6; transition: r 0.2s ease, fill 0.2s ease; cursor: pointer; }
.map-node:hover { fill: var(--primary-gradient-end); r: 8; }
.map-connection { stroke: var(--primary-gradient-end); opacity: 0.3; stroke-dasharray: 5, 5; animation: dash 10s linear infinite reverse; }

/* --- About Page Styles --- */
#about-content .mission-statement { font-size: 1.3rem; font-style: italic; text-align: center; margin: 2.5rem auto 3.5rem auto; max-width: 800px; color: #444; position: relative; padding: 1rem 0; border-top: 1px solid var(--subtle-gray); border-bottom: 1px solid var(--subtle-gray); }
#about-content .mission-statement::before, #about-content .mission-statement::after { content: '≈'; font-size: 2rem; position: absolute; opacity: 0.2; line-height: 1; color: var(--primary-gradient-start); }
#about-content .mission-statement::before { top: 5px; left: 10px; } #about-content .mission-statement::after { bottom: 5px; right: 10px; }
#about-content .core-values-list li { font-weight: 600; }
#about-content .core-values-list li strong { color: var(--primary-gradient-start); margin-right: 5px; }

/* --- Footer Section --- */
#footer { background-color: #fff; border-top: 1px solid var(--subtle-gray); color: #6c757d; text-align: center; padding: 30px 0; font-size: 0.9rem; }
.footer-links { margin-top: 10px; }
.footer-links a { color: #6c757d; margin: 0 8px; font-size: 0.85rem; display: inline-block; }
.footer-links a:hover { color: var(--primary-gradient-start); }

/* --- Cookie Consent Banner --- */
.cookie-banner { position: fixed; bottom: 0; left: 0; width: 100%; background-color: rgba(26, 26, 29, 0.95); backdrop-filter: blur(5px); color: var(--light-text); padding: 15px 0; z-index: 2000; transform: translateY(100%); transition: transform 0.5s ease-in-out; box-shadow: 0 -5px 15px rgba(0,0,0,0.1); }
.cookie-banner.visible { transform: translateY(0); }
.cookie-content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-content p { margin: 0; font-size: 0.9rem; line-height: 1.6; flex-grow: 1; color: rgba(255, 255, 255, 0.85); }
.cookie-content p a { color: var(--primary-gradient-end); text-decoration: underline; }
.cookie-content p a:hover { color: #fff; }

/* --- Animations --- */
@keyframes fadeInText { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
.scroll-animate { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; will-change: opacity, transform; }
.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* --- Responsiveness --- */
@media (max-width: 1100px) { /* Adjust breakpoint if nav wraps too early */
    #header .nav-links li { margin: 0 5px; } /* Even tighter nav spacing */
     #header .nav-links a { font-size: 0.8rem; }
    .cta-button.nav-cta { padding: 7px 15px; font-size: 0.8rem; margin-left: 8px; }
}

@media (max-width: 992px) {
    .hero-content { flex-direction: column; text-align: center; }
    .hero-text { flex-basis: auto; margin-bottom: 40px; }
    .hero-text .subtitle { margin-left: auto; margin-right: auto; }
    .hero-buttons { justify-content: center; }
    .hero-visual { flex-basis: auto; margin-top: 30px; min-height: 300px; }
    .abstract-graphic { width: 200px; height: 200px; }
    #header .nav-links { display: none; } /* Hide desktop nav earlier if needed */
    .mobile-menu-toggle { display: block; } /* Show hamburger earlier */
}

@media (max-width: 768px) {
    h1 { font-size: clamp(2rem, 7vw, 3rem); } h2 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
    section { padding: 80px 0; }
    main.content-page { padding-top: 40px; padding-bottom: 60px; }
    .page-header { padding: 40px 0 30px 0; margin-bottom: 40px; }

    /* Mobile Navigation */
    #header .nav-links, #header .nav-cta { display: none; } /* Ensure hidden */
    #header .nav-links { flex-direction: column; position: absolute; top: var(--header-height); left: 0; width: 100%; background-color: rgba(255, 255, 255, 0.98); backdrop-filter: blur(5px); box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08); padding: 20px 0; max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
    #header .nav-links.active { display: flex; max-height: 60vh; /* Limit height */ overflow-y: auto; /* Allow scroll if needed */ }
    #header .nav-links li { margin: 0; width: 100%; }
    #header .nav-links a { display: block; padding: 15px 30px; text-align: center; width: 100%; border-bottom: 1px solid var(--subtle-gray); }
    #header .nav-links li:last-child a { border-bottom: none; }
    #header .nav-links a:hover { background-color: var(--subtle-gray); color: var(--primary-gradient-start); }
    #header .nav-links a::after { display: none; }
    .mobile-menu-toggle { display: block; } /* Ensure hamburger shown */
    .mobile-menu-toggle.active .hamburger-line:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-menu-toggle.active .hamburger-line:nth-child(2) { opacity: 0; }
    .mobile-menu-toggle.active .hamburger-line:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

    .beta-form { flex-direction: column; align-items: stretch; }
    .beta-form input[type="email"] { min-width: auto; width: 100%; }
    .beta-form button { width: 100%; }

    #manifesto blockquote { font-size: 1.3rem; }
    #manifesto blockquote::before, #manifesto blockquote::after { font-size: 4rem; }

    .content-page h2 { text-align: center; }
    .content-page ul { padding-left: 10px; } .content-page ul li { padding-left: 20px; } .content-page ul li::before { width: 6px; height: 6px; }

    .cookie-content { flex-direction: column; text-align: center; }
    .cookie-content p { margin-bottom: 15px; }

    .footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px 10px; }
    .footer-links a { margin: 0; }
    .footer-links br { display: none; } /* Hide breaks if any between links */
    .footer-links span.separator { display: none; } /* Hide pipe separators on mobile */

    .blog-post-content { padding: 0 15px; }
    .post-featured-image { height: 250px; }
    .blog-post-content .post-body h2 { font-size: 1.6rem; }
    .blog-post-content .post-body h3 { font-size: 1.3rem; }

    .team-grid { grid-template-columns: 1fr; } /* Stack team members */
    .location-grid { grid-template-columns: 1fr; } /* Stack locations */
}