/*
Theme Name: iKnowMe® Sovereign Engine v1.6.5
Theme URI: https://iknowme.example.com
Author: iKnowMe® Development Team
Author URI: https://iknowme.example.com
Description: A premium, dark cyber-oasis WordPress theme for iKnowMe® Pty Ltd – The Quiet Engine of Human Capability. Features a one-page layout with fixed navigation (including the official Zenith Aperture V3.3 logo asset), hero, Corporate Manifesto, governance cards, four Portfolio Focus pillar cards color-coded to the logo mark in a responsive 2x2 grid, working investor Data Room modal, and modern glassmorphism aesthetics. Built with pure CSS (no frameworks) and vanilla JS. Fully responsive, accessibility-ready, and optimized for performance.
Version: 1.6.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: iknowme
Tags: one-column, custom-menu, featured-images, full-width-template, dark, business, portfolio
*/

/**
 * ==========================================================================
 * iKnowMe® Sovereign Engine v1.6.5 – Main Stylesheet
 * ==========================================================================
 *
 * DOCUMENTATION:
 * This is the primary stylesheet for the iKnowMe® theme. All visual styling
 * is contained here. The design uses a "Cyber-Oasis" color palette with
 * bioluminescent emerald (#00FF9D) and prism cyan (#00E5FF) accents on a
 * deep abyss background (#030708).
 *
 * Key design principles:
 * - Glassmorphism cards with subtle borders and backdrop blur
 * - Soft radial gradients for ambient lighting
 * - Smooth hover transitions and elevation effects
 * - Fully responsive breakpoints at 992px and 768px
 * - CSS custom properties (variables) for easy theming
 *
 * File Structure:
 * 1. CSS Custom Properties (Root Variables)
 * 2. Reset & Base Styles
 * 3. Navigation (incl. logo SVG)
 * 4. Buttons
 * 5. Hero Section
 * 6. Manifesto Section (NEW in v1.1)
 * 7. Governance Section
 * 8. Brands / Product Portfolio Section
 * 9. Modal (Investor Portal)
 * 10. Footer
 * 11. Media Queries
 *
 * How to customize:
 * - Change colors via the :root variables at the top.
 * - All spacing uses rem units for scalability.
 * - Font stack is system-native for performance.
 * ==========================================================================
 */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties – Cyber-Oasis Palette
   -------------------------------------------------------------------------- */
:root {
  --bg-abyss: #030708;
  --bg-card: rgba(10, 37, 44, 0.4);
  --bg-card-hover: rgba(10, 37, 44, 0.75);
  --biolum-emerald: #00FF9D;
  --prism-cyan: #00E5FF;
  --solar-titanium: #E0E8E6;
  --text-muted: #809C96;
  --border-glow: rgba(0, 255, 157, 0.25);
  --border-color: rgba(224, 232, 230, 0.1);
  --font-main: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   2. Reset & Base Styles
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-abyss);
  color: var(--solar-titanium);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 255, 157, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 80% 100%, rgba(0, 229, 255, 0.05) 0%, transparent 50%);
}

body.home,
body.front-page {
  /* Homepage-specific styles if needed */
}


/* --------------------------------------------------------------------------
   Accessibility utilities (skip link + screen-reader text)
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  padding: 0.75rem 1.25rem;
  background: var(--biolum-emerald);
  color: #030708;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transition: top 0.2s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 1rem;
  outline: 2px solid var(--prism-cyan);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  white-space: nowrap;
}

.screen-reader-text:focus {
  clip: auto;
  clip-path: none;
  height: auto;
  margin: 0;
  overflow: visible;
  width: auto;
  white-space: normal;
}

/* --------------------------------------------------------------------------
   3. Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(3, 7, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glow);
  padding: 0 5%;
}

.site-header-inner {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-width: 0;
}

.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-container svg,
.logo-container .site-logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.footer-brand .site-logo-mark {
  width: 30px;
  height: 30px;
}

.logo-text {
  font-size: 1.6rem;
  font-weight: 900;
  background: linear-gradient(135deg, #FFF 0%, var(--biolum-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.badge-2017 {
  background: rgba(0, 255, 157, 0.1);
  color: var(--biolum-emerald);
  border: 1px solid var(--border-glow);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.2);
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--biolum-emerald);
}

.primary-nav {
  position: static;
  display: flex;
  align-items: center;
  margin-left: auto;
  flex: 0 1 auto;
  background: transparent;
  border: 0;
  padding: 0;
}

/* Mobile hamburger toggle button (hidden above 768px, see media query) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--solar-titanium);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  padding: 0.85rem 1.75rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  border: none;
  font-family: inherit;
}

.btn-emerald {
  background: var(--biolum-emerald);
  color: #030708;
  box-shadow: 0 0 25px rgba(0, 255, 157, 0.4);
}

.btn-emerald:hover,
.btn-emerald:focus {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 255, 157, 0.7);
  color: #030708;
}

.btn-outline {
  background: transparent;
  color: var(--solar-titanium);
  border: 1px solid var(--border-color);
}

.btn-outline:hover,
.btn-outline:focus {
  border-color: var(--prism-cyan);
  color: var(--prism-cyan);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.2);
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 12rem 5% 5rem;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}

.hero-tag {
  display: inline-block;
  color: var(--prism-cyan);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.3);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 2rem;
  letter-spacing: 1.5px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.8rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 30%, var(--text-muted) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 840px;
  margin: 0 auto 3rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   6. Manifesto Section (NEW)
   -------------------------------------------------------------------------- */
.manifesto-section {
  padding: 6rem 5%;
  max-width: 1100px;
  margin: 0 auto;
  border-top: 1px solid var(--border-glow);
}

.manifesto-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 3.5rem;
  border-radius: 24px;
  margin-bottom: 2rem;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Hover elevation only on devices that truly support hover (not sticky touch). */
@media (hover: hover) and (pointer: fine) {
  .manifesto-block:hover {
    border-color: var(--border-glow);
    box-shadow: 0 8px 24px rgba(0, 255, 157, 0.08);
    transform: translateY(-3px);
  }
}

.manifesto-block h3 {
  font-size: 1.3rem;
  color: var(--biolum-emerald);
  letter-spacing: 1px;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.manifesto-block p {
  color: var(--solar-titanium);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.manifesto-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.manifesto-list li {
  color: var(--text-muted);
  font-size: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(224, 232, 230, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

.manifesto-list li::before {
  content: "—";
  color: var(--prism-cyan);
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   6b. Quiet Engine Framework (added 1.5.0)
   -------------------------------------------------------------------------- */
.framework-outcomes {
  list-style: none;
  margin: 1rem 0 3rem;
  padding: 0;
  max-width: 760px;
}

.framework-outcomes li {
  color: var(--text-muted);
  font-size: 0.98rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(224, 232, 230, 0.05);
  padding-left: 1.5rem;
  position: relative;
}

.framework-outcomes li::before {
  content: "—";
  color: var(--prism-cyan);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.framework-grid .manifesto-block h3 {
  margin-bottom: 0.25rem;
}

.framework-grid .manifesto-block em {
  display: inline-block;
  color: var(--prism-cyan);
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.framework-output {
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--biolum-emerald);
}

.framework-closing {
  text-align: center;
  margin-top: 3rem;
  font-size: 1.3rem;
  color: var(--solar-titanium);
  font-style: italic;
}

/* --------------------------------------------------------------------------
   7. Governance Section
   -------------------------------------------------------------------------- */
.gov-section {
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
  background: rgba(10, 37, 44, 0.2);
  padding: 5rem 5%;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.gov-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

/* Generic 2-column utility grid — used by the About section's
   Core Team / Project Capability cards. Referenced in front-page.php
   since 1.3.0 but never defined in style.css; added in 1.3.1. */
.grid {
  display: grid;
  gap: 2rem;
}

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

.gov-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 3rem;
  border-radius: 20px;
}

.gov-card h3 {
  color: var(--biolum-emerald);
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.gov-card p {
  font-size: 1.05rem;
  color: var(--solar-titanium);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   8. "What We Do" / Portfolio Focus shared card + header primitives

   Note (1.3.1): .section-header was defined twice in 1.3.0 (once here,
   once in the Portfolio Focus block below) with the second silently
   overriding the first. Consolidated into one definition.

   Each .brand-card in the Portfolio Focus grid sets its own --accent
   custom property inline (see front-page.php), matching that pillar's
   shape color in the Zenith Aperture logo mark: Cognition = Biolum-Emerald,
   Technology = Prism-Cyan, Vitality = Solar-Titanium, Presence = Text-Muted.
   -------------------------------------------------------------------------- */
.brands-section {
  padding: 8rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.section-header {
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  color: var(--solar-titanium);
}

.section-header p {
  max-width: 820px;
  margin: 0 auto 1rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section-kicker {
  display: inline-block;
  color: var(--prism-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-caption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--text-muted);
  opacity: 0.75;
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.brand-card {
  --accent: var(--biolum-emerald); /* overridden inline per card */
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (hover: hover) and (pointer: fine) {
  .brand-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 157, 0.15);
  }
}

.brand-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

@media (hover: hover) and (pointer: fine) {
  .brand-card:hover::before {
    opacity: 1;
  }
}

.brand-number {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}

.brand-title {
  font-size: 2rem;
  color: #FFF;
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.brand-subtitle {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.brand-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.brand-pill {
  align-self: flex-start;
  display: inline-block;
  background: rgba(224, 232, 230, 0.05);
  border: 1px solid var(--border-color);
  color: var(--accent);
  font-size: 0.75rem;
  padding: 6px 14px;
  border-radius: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --------------------------------------------------------------------------
   9. Portfolio Focus Section (layout wrapper only — cards styled above)
   -------------------------------------------------------------------------- */
.portfolio-section {
  padding: 8rem 5%;
  max-width: 1280px;
  margin: 0 auto;
}

.portfolio-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.portfolio-title-row h3 {
  font-size: 2.5rem;
  line-height: 1;
  letter-spacing: -1px;
  margin: 0;
}

.portfolio-title-row p {
  color: var(--text-muted);
  margin: 0;
}

.portfolio-bridge {
  border-top: 1px solid var(--border-glow);
  margin-top: 3.5rem;
  padding-top: 2rem;
}

.portfolio-bridge strong {
  display: block;
  color: var(--solar-titanium);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -1px;
  margin-bottom: .5rem;
}

.portfolio-bridge span {
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Modal (Investor Portal) – with smooth fade + scale transitions
   -------------------------------------------------------------------------- */
.modal {
  display: flex;                 /* always flex so we can animate */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(3, 7, 8, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  /* Transitionable properties */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-content {
  background: rgba(10, 37, 44, 0.95);
  border: 1px solid var(--biolum-emerald);
  border-radius: 20px;
  padding: 3rem;
  max-width: 520px;
  width: 90%;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 255, 157, 0.2);
  /* Entrance animation */
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

.modal.is-open .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.close-modal {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.25s ease, transform 0.25s ease;
}

.close-modal:hover {
  color: var(--biolum-emerald);
  transform: scale(1.15);
}

.modal-content h3 {
  margin-bottom: 0.5rem;
  color: var(--biolum-emerald);
}

.modal-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
  padding: 0.85rem;
  background: rgba(3, 7, 8, 0.8);
  border: 1px solid var(--border-glow);
  border-radius: 10px;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.modal-content input:focus {
  outline: none;
  border-color: var(--biolum-emerald);
  box-shadow: 0 0 10px rgba(0, 255, 157, 0.3);
}

.modal-content .btn {
  width: 100%;
  margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
footer,
.site-footer {
  border-top: 1px solid var(--border-glow);
  padding: 4rem 5% 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand .logo-text {
  font-size: 1.2rem;
}

.site-footer p {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin: 0;
}

/* .footer-bottom was used in footer.php since 1.3.0 but never styled;
   added in 1.3.1 so it doesn't just render as raw, unstyled block text. */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-bottom a:hover,
.footer-bottom a:focus {
  color: var(--biolum-emerald);
}

/* --------------------------------------------------------------------------
   11. Media Queries – Responsive Design
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.2rem;
  }

  .brands-grid {
    gap: 1.5rem;
  }

  .brand-card {
    padding: 2rem;
  }

  .gov-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .brands-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-title-row {
    display: block;
  }

  .portfolio-title-row p {
    margin-top: 0.75rem;
  }

  .nav-toggle {
    display: flex;
    flex-shrink: 0;
    z-index: 1002;
  }

  .primary-nav {
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    background: rgba(3, 7, 8, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-glow);
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  .primary-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .primary-nav .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1rem 5% 2rem;
  }

  .primary-nav .nav-links a {
    display: block;
    padding: 0.85rem 0;
    width: 100%;
    border-bottom: 1px solid var(--border-color);
  }

  .site-header {
    padding: 0 4%;
  }

  .site-header-inner {
    min-height: 72px;
    gap: 1rem;
  }

  .hero {
    padding-top: 9rem;
  }

  .manifesto-block {
    padding: 2rem;
  }

  .badge-2017 {
    display: none; /* Hide badge on very small screens */
  }
}

/**
 * END OF STYLESHEET
 * ==========================================================================
 * Additional notes for developers:
 * - All colors are CSS variables – change them once and the whole theme updates.
 * - The modal uses a class .is-open for accessibility and easier JS control.
 * - WordPress will automatically load this file via wp_enqueue_style in functions.php.
 * - 1.3.1: fixed mobile nav (the .nav-toggle button had no matching CSS in 1.3.0,
 *   and the primary <ul> was missing the .nav-links class it needed to be styled
 *   at all); added --accent wiring to .brand-card for per-pillar color coding;
 *   consolidated the duplicate .section-header definition.
 */

/* iKnowMe® registered trademark
   Must NOT inherit gradient text clipping from .logo-text — on iOS/Android
   WebKit, -webkit-text-fill-color: transparent on the parent makes ® invisible. */
.trademark {
  font-size: 0.55em;
  line-height: 1;
  vertical-align: super;
  position: relative;
  top: -0.15em;
  margin-left: 0.08em;
  letter-spacing: 0;
  text-decoration: none;
  font-weight: 700;
  /* Break out of parent gradient text treatment */
  background: none !important;
  -webkit-background-clip: border-box !important;
  background-clip: border-box !important;
  -webkit-text-fill-color: var(--biolum-emerald) !important;
  color: var(--biolum-emerald) !important;
  display: inline;
}

/* Footer wordmark is not always gradient-clipped the same way; keep ® visible */
.footer-brand .trademark,
.logo-text .trademark {
  -webkit-text-fill-color: var(--biolum-emerald) !important;
  color: var(--biolum-emerald) !important;
}

/* --------------------------------------------------------------------------
   12. V1.6 Commercial + AI / Human-in-the-Loop additions
   -------------------------------------------------------------------------- */
.hero-capability-callout {
  max-width: 900px;
  margin: 2.5rem auto 0;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-glow);
  border-radius: 18px;
  background: rgba(0, 255, 157, 0.045);
  text-align: left;
  display: grid;
  gap: 0.35rem;
}

.hero-capability-callout strong {
  color: var(--solar-titanium);
  font-size: 1.15rem;
}

.hero-capability-callout span {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.hero-capability-callout.section-callout {
  margin-top: 2rem;
}

.solutions-grid {
  grid-template-columns: repeat(3, 1fr);
}

.offer-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.offer-card h3,
.ai-card h3 {
  color: #FFF;
}

.offer-card .brand-number,
.ai-card .brand-number {
  margin-bottom: 0.85rem;
}

.offer-output {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  color: var(--solar-titanium) !important;
  font-size: 0.9rem !important;
}

.offer-buy {
  margin-bottom: 0 !important;
  color: var(--biolum-emerald) !important;
  font-size: 0.82rem !important;
  font-weight: 700;
}

.ai-section {
  background: rgba(0, 229, 255, 0.018);
}

.ai-grid,
.human-capability-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ai-card,
.human-capability-grid .manifesto-block {
  min-height: 100%;
}

.proof-grid {
  max-width: 1100px;
  margin: 0 auto;
}

.proof-lead {
  font-size: 1.8rem !important;
  line-height: 1.3 !important;
  color: var(--solar-titanium) !important;
}

.proof-principle {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proof-quote {
  font-size: 1.35rem !important;
  line-height: 1.45 !important;
  color: var(--solar-titanium) !important;
  border-left: 3px solid var(--biolum-emerald);
  padding-left: 1.25rem;
}

.human-capability-section {
  background: rgba(0, 255, 157, 0.018);
}

@media (max-width: 992px) {
  .solutions-grid,
  .ai-grid,
  .human-capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .solutions-grid,
  .ai-grid,
  .human-capability-grid {
    grid-template-columns: 1fr;
  }

  .hero-capability-callout {
    text-align: center;
  }
}



/* --------------------------------------------------------------------------
   2026-09-26 Header correction
   -------------------------------------------------------------------------- */
@media (min-width: 769px) {
  .site-header .nav-links {
    justify-content: flex-end;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding-left: 16px;
    padding-right: 16px;
  }

  .site-logo-mark {
    width: 38px !important;
    height: 38px !important;
  }

  .logo-text {
    font-size: 1.35rem;
  }

  .nav-toggle {
    width: 30px;
    height: 30px;
  }
}

/* --------------------------------------------------------------------------
   Prefer reduced motion (a11y / performance)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .primary-nav,
  .modal,
  .modal-content {
    transition: none !important;
  }
}

/* --------------------------------------------------------------------------
   1.6.3 — Data Room form fields, CTA strip, outcomes
   -------------------------------------------------------------------------- */
.iknowme-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.modal-content .form-field {
  margin-bottom: 1rem;
  text-align: left;
}

.modal-content .form-field label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.modal-content input[type="text"],
.modal-content input[type="email"] {
  width: 100%;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.form-status-success {
  color: var(--biolum-emerald);
}

.form-status-error {
  color: #ff8a8a;
}

.cta-strip {
  margin: 0 auto 4rem;
  padding: 0 5%;
  max-width: 1200px;
}

.cta-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.cta-strip-copy {
  flex: 1 1 280px;
}

.cta-strip-copy h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  margin: 0.35rem 0 0.5rem;
  color: #fff;
}

.cta-strip-copy p {
  color: var(--text-muted);
  margin: 0;
  max-width: 36rem;
}

.cta-strip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  flex: 0 1 auto;
}

.outcomes-section .outcomes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.outcome-card {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.outcome-card .offer-output {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

@media (max-width: 992px) {
  .outcomes-section .outcomes-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .outcomes-section .outcomes-grid {
    grid-template-columns: 1fr;
  }

  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Footer cleanup (1.6.3b) */
.footer-brand-block {
  max-width: 22rem;
}

.footer-tagline {
  margin-top: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.footer-nav .footer-links,
.footer-nav .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-nav a {
  color: var(--solar-titanium);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover,
.footer-nav a:focus {
  color: var(--biolum-emerald);
}

/* Footer accessibility: visible keyboard focus */
.footer-nav a:focus-visible,
.footer-bottom a:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--prism-cyan);
  outline-offset: 3px;
  color: var(--biolum-emerald);
}

.footer-copyright,
.footer-contact {
  margin: 0;
}

.footer-bottom {
  gap: 1rem;
}

.footer-bottom .footer-contact a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Mobile card stability (UAT: iOS/Android tap stretch + gaps)
   -------------------------------------------------------------------------- */
.brands-grid .manifesto-block,
.solutions-grid .manifesto-block,
.outcomes-grid .manifesto-block,
.ai-grid .manifesto-block,
.human-capability-grid .manifesto-block,
.framework-grid .manifesto-block,
.gov-grid .gov-card {
  margin-bottom: 0;
}

.solutions-grid,
.brands-grid,
.outcomes-grid,
.ai-grid,
.human-capability-grid {
  align-items: start;
}

.offer-card,
.ai-card,
.outcome-card,
.human-capability-grid .manifesto-block {
  min-height: 0;
  height: auto;
  align-self: start;
}

/* Touch devices: never leave hover transform / sticky lift applied */
@media (hover: none), (pointer: coarse) {
  .manifesto-block,
  .brand-card,
  .offer-card,
  .ai-card,
  .outcome-card {
    transform: none !important;
  }

  .manifesto-block:active,
  .brand-card:active,
  .offer-card:active {
    border-color: var(--border-glow);
    /* No translateY — avoids layout jump and “missing content” scroll gaps */
  }
}

@media (max-width: 768px) {
  .solutions-grid,
  .brands-grid,
  .outcomes-grid,
  .ai-grid,
  .human-capability-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: stretch;
  }

  .offer-card,
  .ai-card,
  .outcome-card,
  .brand-card,
  .solutions-grid .manifesto-block {
    min-height: 0 !important;
    height: auto !important;
    transform: none !important;
    margin-bottom: 0 !important;
  }

  /* Slightly tighter padding so five stacked cards don’t feel sparse */
  .solutions-section .offer-card {
    padding: 1.5rem 1.35rem;
  }

  .solutions-section .offer-card p {
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 0.75rem;
  }
}

