/*
Theme Name: TSO - Tailored Security Operations V3
Theme URI: https://tailoredsecops.eu/
Author: Tailored Security Operations
Author URI: https://tailoredsecops.eu/
Description: Premium layout theme for TSO. Black canvas, light headings, hairline columns and calm scroll motion.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tso-theme
Tags: one-column, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================
   CSS CUSTOM PROPERTIES — DUAL THEME SYSTEM
   ============================================ */
:root {
    /* Typography (shared) */
    --font-display: 'Barlow', system-ui, sans-serif;
    --font-text: 'Barlow', system-ui, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;

    /* Spacing (shared) */
    --section-padding: clamp(80px, 10vw, 140px);
    --container-max: 1120px;
    --container-wide: 1440px;

    /* Transitions (shared) */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
    --duration-fast: 0.2s;
    --duration-medium: 0.4s;
    --duration-slow: 0.8s;

    /* Accent (grey, shared) */
    --color-accent-dim: #1a1a1a;
    --color-accent-dark: #333333;
    --color-accent-mid: #555555;
    --color-accent: #8a8a8a;
    --color-accent-hover: #ababab;
    --color-accent-glow: #b0b0b0;
    --color-green: #6fbc6f;
    --color-red: #c44040;
}

/* --- DARK THEME (default) --- */
:root,
[data-theme="dark"] {
    --color-black: #000000;
    --color-black-100: #080808;
    --color-black-200: #0d0d0d;
    --color-black-300: #141414;
    --color-black-400: #1a1a1a;
    --color-dark: #0d0d0d;
    --color-off-white: #0d0d0d;
    --color-pure-white: #ffffff;

    --color-white: #e8e8e8;
    --color-gray-light: #666666;
    --color-gray: #444444;
    --color-gray-dark: #999999;

    --border-color: rgba(255, 255, 255, 0.07);
    --border-accent: rgba(255, 255, 255, 0.12);

    --header-bg: rgba(0, 0, 0, 0.8);
    --header-bg-scrolled: rgba(0, 0, 0, 0.92);
    --grid-line-color: rgba(255, 255, 255, 0.025);
    --grid-line-strong: rgba(255, 255, 255, 0.04);
    --noise-opacity: 0.03;
    --logo-filter: brightness(10);
    --logo-filter-footer: brightness(10);
    --nav-overlay-bg: #000000;
    --card-shadow: 0 1px 12px rgba(255, 255, 255, 0.03);
    --card-shadow-hover: 0 2px 20px rgba(255, 255, 255, 0.06);
    --service-icon-bg: rgba(255, 255, 255, 0.04);
    --annotation-color: #555555;
    --coord-label-color: rgba(255, 255, 255, 0.12);
    --stat-border: rgba(255, 255, 255, 0.1);
    --theme-color: #000000;
}

/* --- LIGHT THEME --- */
[data-theme="light"] {
    --color-black: #F5F3F0;
    --color-black-100: #EFEDE9;
    --color-black-200: #E8E5E0;
    --color-black-300: #DDDAD4;
    --color-black-400: #D2CFC9;
    --color-dark: #E8E5E0;
    --color-off-white: #F5F3F0;
    --color-pure-white: #1a1a1a;

    --color-white: #1a1a1a;
    --color-gray-light: #888888;
    --color-gray: #aaaaaa;
    --color-gray-dark: #555555;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(0, 0, 0, 0.12);

    --header-bg: rgba(245, 243, 240, 0.85);
    --header-bg-scrolled: rgba(245, 243, 240, 0.95);
    --grid-line-color: rgba(0, 0, 0, 0.04);
    --grid-line-strong: rgba(0, 0, 0, 0.06);
    --noise-opacity: 0.015;
    --logo-filter: brightness(0);
    --logo-filter-footer: brightness(0);
    --nav-overlay-bg: #F5F3F0;
    --card-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    --card-shadow-hover: 0 4px 24px rgba(0, 0, 0, 0.1);
    --service-icon-bg: rgba(0, 0, 0, 0.04);
    --annotation-color: #999999;
    --coord-label-color: rgba(0, 0, 0, 0.1);
    --stat-border: rgba(0, 0, 0, 0.1);
    --theme-color: #F5F3F0;

    --color-accent-dim: #DDDAD4;
}

/* Theme transition */
html[data-theme] body,
html[data-theme] .site-header,
html[data-theme] .site-footer,
html[data-theme] .hero,
html[data-theme] .section,
html[data-theme] .service-card,
html[data-theme] .pillar,
html[data-theme] .contact-form-wrapper,
html[data-theme] .data-ticker {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

/* ============================================
   RESET & BASE
   ============================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    font-family: var(--font-text);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--color-white);
    background-color: var(--color-black);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) var(--ease-out-quart);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--color-white);
}

.headline-hero {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.headline-section {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 500;
}

.headline-card {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
}

.text-large {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-gray-dark);
}

.text-body {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--color-gray-dark);
}

.text-small {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--color-gray-light);
}

.text-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.container--wide {
    max-width: var(--container-wide);
}

.section {
    padding: var(--section-padding) 0;
}

.section--dark {
    background-color: var(--color-black);
    color: var(--color-white);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--dark .text-large,
.section--dark .text-body {
    color: var(--color-gray-dark);
}

.section--gray {
    background-color: var(--color-black-200);
    border-top: 1px solid var(--border-color);
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    height: 56px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition: border-color var(--duration-medium), background var(--duration-medium);
}

.site-header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity var(--duration-medium);
}

.site-header.is-scrolled::before {
    opacity: 1;
}

.site-header.is-scrolled {
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: var(--container-wide);
    margin: 0 auto;
    width: 100%;
    padding: 0 48px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 1000;
}

.site-logo img {
    height: 36px;
    width: auto;
    transition: filter var(--duration-fast);
    filter: var(--logo-filter);
}

.site-logo-text {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--color-white);
    text-transform: uppercase;
}

.section--dark .site-logo img {
    filter: var(--logo-filter);
}

.site-footer .footer-logo {
    filter: var(--logo-filter-footer);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: var(--font-text);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
    opacity: 1;
    transition: color var(--duration-fast);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid var(--color-gray-light);
    border-radius: 2px;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.nav-cta:hover {
    border-color: var(--color-white);
    color: var(--color-white);
    box-shadow: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 10000;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 1px;
    background-color: var(--color-white);
    transition: all var(--duration-fast);
}

/* ============================================
   HEADER LIGHT MODE (contextual)
   ============================================ */
.site-header.header-light .site-logo img {
    filter: var(--logo-filter);
}

.site-header.header-light .site-logo-text {
    color: var(--color-white);
}

.site-header.header-light .nav-link {
    color: var(--color-gray-dark);
}

.site-header.header-light .nav-cta {
    border-color: var(--color-gray-light);
    color: var(--color-white);
}

.site-header.header-light .nav-cta:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
}

.site-header.header-light .menu-toggle span {
    background-color: var(--color-white);
}

body.menu-open .site-header.header-light .menu-toggle span {
    background-color: var(--color-white);
}

.site-header.header-light.is-scrolled::before {
    background: var(--header-bg-scrolled);
}

.site-header.header-light.is-scrolled {
    border-bottom: 1px solid var(--border-color);
}

/* Theme toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out-quart);
    flex-shrink: 0;
}

.theme-toggle:hover {
    border-color: var(--color-white);
    box-shadow: none;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-gray-dark);
    fill: none;
    stroke-width: 1.5;
    transition: stroke var(--duration-fast);
}

.theme-toggle:hover svg {
    stroke: var(--color-white);
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* Nav link // prefix */
.nav-prefix {
    color: var(--color-gray);
    font-weight: 400;
    margin-right: 2px;
}

/* Nav chevron for dropdowns */
.nav-chevron {
    margin-left: 4px;
    opacity: 0.5;
    transition: transform var(--duration-fast), opacity var(--duration-fast);
    vertical-align: middle;
}

.nav-item.has-dropdown:hover .nav-chevron,
.nav-item.has-dropdown.is-open .nav-chevron {
    opacity: 1;
    transform: rotate(180deg);
}

/* ============================================
   NAVIGATION DROPDOWNS
   ============================================ */
.nav-item {
    position: relative;
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    min-width: 340px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 1001;
    pointer-events: none;
}

.nav-item.has-dropdown:hover .nav-dropdown,
.nav-item.has-dropdown.is-open .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav-dropdown-inner {
    background: var(--color-black-200);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .nav-dropdown-inner {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12), 0 0 1px rgba(0, 0, 0, 0.08);
}

.nav-dropdown-section {
    padding: 20px 24px 12px;
}

.nav-dropdown-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    font-weight: 400;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
    padding-left: 4px;
}

.nav-dropdown-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-dropdown-link {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 12px;
    border-radius: 2px;
    transition: background var(--duration-fast), border-color var(--duration-fast);
    border: 1px solid transparent;
}

.nav-dropdown-link:hover {
    background: var(--color-black-300);
    border-color: var(--border-color);
}

.nav-dropdown-link-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.06);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    margin-top: 1px;
}

.nav-dropdown-link-icon svg {
    stroke: var(--color-accent);
    transition: stroke var(--duration-fast);
}

.nav-dropdown-link:hover .nav-dropdown-link-icon {
    border-color: var(--border-accent);
}

.nav-dropdown-link:hover .nav-dropdown-link-icon svg {
    stroke: var(--color-white);
}

.nav-dropdown-link-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.nav-dropdown-link-title {
    font-family: var(--font-text);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-white);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.3;
}

.nav-dropdown-link-desc {
    font-family: var(--font-text);
    font-size: 0.6875rem;
    font-weight: 400;
    color: var(--color-gray-light);
    letter-spacing: 0;
    text-transform: none;
    line-height: 1.4;
}

.nav-dropdown-link:hover .nav-dropdown-link-title {
    color: var(--color-white);
}

.nav-dropdown-link:hover .nav-dropdown-link-desc {
    color: var(--color-gray-dark);
}

.nav-dropdown-footer {
    padding: 12px 24px;
    border-top: 1px solid var(--border-color);
    background: var(--color-black-100);
}

.nav-dropdown-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    transition: color var(--duration-fast);
}

.nav-dropdown-footer-link:hover {
    color: var(--color-white);
}

.nav-dropdown-footer-link svg {
    transition: transform var(--duration-fast);
}

.nav-dropdown-footer-link:hover svg {
    transform: translateX(3px);
}

/* ============================================
   HERO SECTION — NEO-INDUSTRIAL
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 24px 80px;
    background: var(--color-black);
    position: relative;
    overflow: hidden;
}

.hero--neo {
    align-items: flex-start;
    text-align: left;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 50%;
    background: radial-gradient(ellipse at center top, rgba(150, 150, 150, 0.06) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* Particle Canvas */
#particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Coordinate Grid */
.hero-coord-grid {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.coord-label {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: var(--coord-label-color);
    text-transform: uppercase;
}

.coord-col {
    top: 12px;
    transform: translateX(-50%);
}

.coord-row {
    left: 12px;
    transform: translateY(-50%);
}

/* Technical Annotations */
.hero-annotations {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-annotation {
    position: absolute;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--annotation-color);
    white-space: nowrap;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1.2s forwards;
}

.annotation-tr {
    top: 100px;
    right: 48px;
}

.annotation-mr {
    top: 50%;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.annotation-bl {
    bottom: 100px;
    left: 48px;
}

.status-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gray);
}

.status-dot--live {
    background: var(--color-green);
    box-shadow: 0 0 4px rgba(111, 188, 111, 0.3);
    animation: hud-pulse 2s ease-in-out infinite;
}

/* Hero Content — Left-aligned variant */
.hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 2;
}

.hero-content--left {
    max-width: 700px;
    margin: 0;
    padding-left: 48px;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-accent);
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid rgba(150, 150, 150, 0.2);
    border-radius: 2px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero-title {
    margin-bottom: 24px;
    color: var(--color-white);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out-expo) 0.3s forwards;
}

.hero-bracket {
    color: var(--color-accent);
}

.hero-subtitle {
    max-width: 520px;
    margin: 0 0 40px 0;
    color: var(--color-gray-dark);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out-expo) 0.4s forwards;
}

.hero--neo .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out-expo) 0.5s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1s forwards;
    z-index: 2;
}

.hero-scroll-text {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

.hero-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, var(--color-accent) 0%, transparent 100%);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   HERO STATS BAR
   ============================================ */
.hero-stats-bar {
    background: var(--color-black-100);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 28px 24px;
    border-right: 1px solid var(--border-color);
    text-align: center;
}

.hero-stat:last-child {
    border-right: none;
}

.hero-stat-number {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
    line-height: 1;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
}

.hero-stat-source {
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
    opacity: 0.5;
    margin-top: 2px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: all var(--duration-fast) var(--ease-out-quart);
    white-space: nowrap;
}

.btn-primary {
    color: var(--color-black);
    background-color: var(--color-white);
    border-color: var(--color-white);
    box-shadow: none;
}

.btn-primary:hover {
    background-color: var(--color-accent-hover);
    border-color: var(--color-accent-hover);
    box-shadow: none;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--color-white);
    background-color: transparent;
    border: 1px solid var(--color-gray-light);
}

.btn-secondary:hover {
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-text {
    padding: 8px 0;
    color: var(--color-gray-dark);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border: none;
    background: none;
}

.btn-text::after {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-left: 8px;
    border-right: 1px solid currentColor;
    border-top: 1px solid currentColor;
    transform: rotate(45deg);
    transition: transform var(--duration-fast);
}

.btn-text:hover::after {
    transform: translateX(4px) rotate(45deg);
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about {
    text-align: center;
    background: var(--color-black);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-title {
    margin-bottom: 32px;
    color: var(--color-white);
}

.about-text {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--color-gray-dark);
}

.about-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 80px;
    text-align: left;
    border: 1px solid var(--border-color);
    background: var(--border-color);
}

.pillar {
    padding: 32px;
    border-top: none;
    background: var(--color-black-200);
    position: relative;
}

.pillar::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--color-accent);
    margin-bottom: 20px;
}

.pillar-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--color-white);
}

.pillar-text {
    color: var(--color-gray-dark);
    line-height: 1.7;
    font-size: 0.9375rem;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services {
    padding-top: var(--section-padding);
}

.services-header {
    text-align: center;
    margin-bottom: 80px;
}

.services-header .text-eyebrow {
    margin-bottom: 16px;
}

.services-header .headline-section {
    max-width: 600px;
    margin: 0 auto;
}

.service-category {
    margin-bottom: 120px;
}

.service-category:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-gray-light);
}

.category-number {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-accent);
}

.category-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--color-white);
}

.category-cta {
    color: var(--color-accent);
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-cta svg {
    transition: transform var(--duration-fast);
}

.category-cta:hover svg {
    transform: translateX(4px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    padding: 32px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.service-card:hover {
    border-color: var(--border-accent);
    background: var(--color-black-300);
    box-shadow: 0 0 24px rgba(150, 150, 150, 0.08);
    transform: translateY(-2px);
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.service-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--color-accent);
}

.service-card h4 {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 12px;
    color: var(--color-white);
}

.service-card p {
    color: var(--color-gray-dark);
    line-height: 1.7;
    font-size: 0.9rem;
}

.section--dark .service-card {
    background: var(--color-black-300);
    border-color: var(--border-color);
}

.section--dark .service-card:hover {
    background: var(--color-black-400);
    border-color: var(--border-accent);
    box-shadow: 0 0 24px rgba(150, 150, 150, 0.1);
}

.section--dark .service-icon {
    background: rgba(150, 150, 150, 0.08);
    border-color: var(--border-accent);
}

.section--dark .service-icon svg {
    stroke: var(--color-accent);
}

.section--dark .service-card h4 {
    color: var(--color-white);
}

.section--dark .service-card p {
    color: var(--color-gray-dark);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    text-align: center;
    background: var(--color-black-200);
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
}

.cta-section .headline-section {
    margin-bottom: 24px;
    color: var(--color-white);
}

.cta-section .text-large {
    margin-bottom: 40px;
    color: var(--color-gray-dark);
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact {
    background: var(--color-black);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact-info .text-eyebrow {
    margin-bottom: 16px;
}

.contact-info .headline-section {
    margin-bottom: 24px;
    color: var(--color-white);
}

.contact-info .text-large {
    margin-bottom: 48px;
    color: var(--color-gray-dark);
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-detail-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black-300);
    border: 1px solid var(--border-color);
    border-radius: 2px;
}

.contact-detail-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-accent);
}

.contact-detail-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-dark);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--color-black-200);
    padding: 40px;
    border: 1px solid var(--border-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
}

.form-input,
.form-textarea,
.form-select {
    padding: 12px 16px;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-white);
    background: var(--color-black-300);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    transition: all var(--duration-fast);
    outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    background: var(--color-black-400);
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(150, 150, 150, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--color-gray-light);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

.form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2386868b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 48px;
}

.checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: var(--color-gray-dark);
    background: var(--color-black-300);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.checkbox-label:hover {
    border-color: var(--border-accent);
    color: var(--color-white);
}

.checkbox-label input {
    width: 14px;
    height: 14px;
    accent-color: var(--color-accent);
}

.form-submit {
    margin-top: 8px;
    width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    padding: 80px 0 0;
    border-top: 1px solid var(--border-color);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    max-width: 280px;
}

.footer-logo {
    height: 36px;
    width: auto;
    margin-bottom: 20px;
    filter: var(--logo-filter-footer);
}

.footer-brand p {
    color: var(--color-gray-light);
    line-height: 1.7;
    font-size: 0.875rem;
}

.footer-heading {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    transition: color var(--duration-fast);
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--color-gray-light);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.08em;
    color: var(--color-gray-light);
    transition: color var(--duration-fast);
}

.footer-legal a:hover {
    color: var(--color-white);
}

/* HUD status bar */
.footer-hud {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

.footer-hud-left,
.footer-hud-right {
    display: flex;
    gap: 32px;
}

.footer-hud-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-green);
    margin-right: 6px;
    vertical-align: middle;
    animation: hud-pulse 2s ease-in-out infinite;
}

@keyframes hud-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(111, 188, 111, 0.4);
    }

    50% {
        box-shadow: 0 0 0 4px rgba(111, 188, 111, 0);
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes scrollPulse {

    0%,
    100% {
        transform: scaleY(1);
        opacity: 1;
    }

    50% {
        transform: scaleY(0.6);
        opacity: 0.5;
    }
}

/* Scroll-triggered animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out-expo);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--ease-out-expo);
}

.animate-stagger.is-visible>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.is-visible>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.is-visible>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.is-visible>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.is-visible>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.animate-stagger.is-visible>*:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .header-inner {
        padding: 0 24px;
    }

    .about-pillars {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: clamp(60px, 10vw, 100px);
    }

    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 9999;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 24px;
        background: var(--nav-overlay-bg, #0a0a0a);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--duration-medium), visibility var(--duration-medium), background var(--duration-medium);
        padding: 0 32px;
    }

    .main-nav.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 0;
        margin: 0;
        overflow-y: auto;
        max-height: calc(100vh - 200px);
        width: 100%;
    }

    .nav-menu li {
        text-align: left;
        width: 100%;
    }

    .nav-link {
        font-size: 1.25rem;
        font-weight: 500;
        display: flex;
        align-items: center;
    }

    /* Mobile dropdown overrides */
    .nav-dropdown {
        position: static;
        min-width: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, opacity 0.2s ease;
        pointer-events: auto;
        padding: 0;
    }

    .nav-item.has-dropdown:hover .nav-dropdown {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-item.has-dropdown.is-open .nav-dropdown {
        max-height: 500px;
    }

    .nav-dropdown::before {
        display: none;
    }

    .nav-dropdown-inner {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid var(--border-color);
        box-shadow: none;
        margin-top: 8px;
    }

    [data-theme="light"] .nav-dropdown-inner {
        background: rgba(0, 0, 0, 0.03);
        box-shadow: none;
    }

    .nav-dropdown-section {
        padding: 12px 16px 8px;
    }

    .nav-dropdown-link {
        padding: 10px 8px;
    }

    .nav-dropdown-link-icon {
        width: 28px;
        height: 28px;
    }

    .nav-dropdown-link-icon svg {
        width: 14px;
        height: 14px;
    }

    .nav-dropdown-link-title {
        font-size: 0.75rem;
    }

    .nav-dropdown-link-desc {
        font-size: 0.625rem;
    }

    .nav-dropdown-footer {
        padding: 8px 16px;
    }

    .main-nav.is-open .nav-link,
    .site-header.header-light .main-nav.is-open .nav-link {
        color: var(--color-white);
        transition: color var(--duration-medium);
    }

    .main-nav.is-open .nav-prefix,
    .site-header.header-light .main-nav.is-open .nav-prefix {
        color: var(--color-gray-light);
        transition: color var(--duration-medium);
    }

    .main-nav.is-open .nav-cta,
    .site-header.header-light .main-nav.is-open .nav-cta {
        background-color: transparent;
        color: var(--color-white);
        border-color: var(--color-gray-light);
        transition: color var(--duration-medium), border-color var(--duration-medium);
    }

    .main-nav.is-open .nav-cta:hover,
    .site-header.header-light .main-nav.is-open .nav-cta:hover {
        border-color: var(--color-white);
        color: var(--color-white);
    }

    .main-nav.is-open .theme-toggle {
        border-color: var(--border-color);
        transition: border-color var(--duration-medium);
    }

    .main-nav.is-open .theme-toggle svg {
        stroke: var(--color-white);
        transition: stroke var(--duration-medium);
    }

    .hero {
        padding: 100px 24px 140px;
        min-height: auto;
    }

    .hero--neo {
        align-items: center;
        text-align: center;
    }

    .hero-content--left {
        padding-left: 0;
        max-width: 100%;
    }

    .hero--neo .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero--neo .hero-cta {
        justify-content: center;
    }

    .hero-annotation {
        display: none;
    }

    .hero-coord-grid {
        display: none;
    }

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

    .hero-stat:nth-child(2) {
        border-right: none;
    }

    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) {
        border-top: 1px solid var(--border-color);
    }

    .hero-scroll {
        bottom: 24px;
    }

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

    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .contact-form-wrapper {
        padding: 32px 24px;
    }

    .footer-main {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .checkbox-group {
        flex-direction: column;
    }

    .checkbox-label {
        width: 100%;
    }
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Hero */
.about-hero {
    padding: 160px 24px 0;
    background: linear-gradient(180deg, var(--color-pure-white) 0%, var(--color-off-white) 100%);
    overflow: hidden;
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 80px;
}

.about-hero-content .text-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 8px 16px;
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 0;
}

.about-hero-title {
    margin-bottom: 24px;
}

.about-hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
}

.about-hero-visual {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.about-hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--color-black-200);
    border-radius: 2px 2px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Placeholders */
.image-placeholder-text {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-pure-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

.about-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--color-black-200);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mission Section */
.about-mission {
    overflow: hidden;
}

.mission-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.mission-content .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.mission-content .headline-section {
    margin-bottom: 24px;
}

.mission-content .text-large {
    margin-bottom: 20px;
}

.mission-content .text-body {
    color: var(--color-gray-dark);
}

.mission-image {
    height: 500px;
}

/* Values Section */
.about-values {
    text-align: center;
}

.values-header {
    max-width: 700px;
    margin: 0 auto 64px;
}

.values-header .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.values-header .headline-section {
    margin-bottom: 20px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    text-align: left;
}

.value-card {
    padding: 32px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.value-card:hover {
    border-color: var(--border-accent);
    background: var(--color-black-300);
    transform: translateY(-2px);
}

.value-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.value-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.value-description {
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* Stats Section */
.about-stats {
    padding: 100px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 48px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-white);
    line-height: 1;
}

.stat-label {
    font-size: 0.9375rem;
    color: var(--color-gray-dark);
    max-width: 180px;
    margin: 0 auto;
}

/* Team Section */
.about-team {
    overflow: hidden;
}

.team-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.team-header .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.team-header .headline-section {
    margin-bottom: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Single team member layout */
.team-grid:has(.team-card:only-child) {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.team-card {
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 0;
    overflow: hidden;
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.team-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 24px rgba(150, 150, 150, 0.1);
    transform: translateY(-3px);
}

.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.team-info {
    padding: 32px;
}

.team-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 4px;
}

.team-role {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
    margin-bottom: 20px;
}

.team-certs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-badge {
    display: inline-block;
    padding: 4px 10px;
    font-family: var(--font-mono);
    font-size: 0.625rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

/* Expertise Section */
.about-expertise {
    overflow: visible;
}

.expertise-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.expertise-header .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.expertise-card {
    padding: 40px;
    background: var(--color-black-200);
    border-radius: 2px;
    border: 1px solid var(--border-color);
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.expertise-card:hover {
    border-color: var(--border-accent);
    box-shadow: 0 0 20px rgba(150, 150, 150, 0.12);
    transform: translateY(-4px);
}

.expertise-icon {
    width: 56px;
    height: 56px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.1);
    border-radius: 2px;
}

.expertise-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--color-accent);
}

.expertise-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-white);
}

.expertise-card p {
    font-size: 0.9375rem;
    color: var(--color-gray-dark);
    line-height: 1.7;
}

/* Certifications Section */
.about-certifications {
    text-align: center;
}

.certifications-header {
    max-width: 700px;
    margin: 0 auto 64px;
}

.certifications-header .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.certifications-header .headline-section {
    margin-bottom: 20px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    align-items: center;
}

.cert-logo-placeholder {
    height: 60px;
    padding: 12px 16px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    text-decoration: none;
}

.cert-logo-placeholder:hover {
    background: var(--color-black-300);
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.cert-logo-placeholder .image-placeholder-text {
    font-size: 0.75rem;
    color: var(--color-gray);
}

.cert-logo-placeholder img {
    max-width: 100%;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    opacity: 0.6;
    transition: all var(--duration-fast);
}

.cert-logo-placeholder:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Why Choose Us Section */
.about-why {
    overflow: hidden;
}

.why-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.why-content .text-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
}

.why-content .headline-section {
    margin-bottom: 40px;
}

.why-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.why-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.why-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-accent);
    border-radius: 50%;
}

.why-icon svg {
    width: 16px;
    height: 16px;
    stroke: var(--color-pure-white);
}

.why-text strong {
    display: block;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 6px;
}

.why-text p {
    font-size: 0.9375rem;
    color: var(--color-gray-dark);
    line-height: 1.6;
    margin: 0;
}

.why-image {
    height: 600px;
}

.why-image-container {
    min-height: 100%;
}

/* About CTA Buttons */
.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

/* ============================================
   ABOUT PAGE RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 1024px) {

    .mission-grid,
    .why-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .mission-image {
        height: 400px;
    }

    .why-image {
        height: 400px;
        order: -1;
    }

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

@media (max-width: 768px) {
    .about-hero {
        padding: 120px 0 0 0;
    }

    .about-hero-content {
        padding: 0 24px;
    }

    .about-hero-visual {
        padding: 0;
    }

    .about-hero-image-placeholder {
        height: 300px;
        border-radius: 0;
        background: none;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .value-card {
        padding: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto;
    }

    .team-photo {
        aspect-ratio: 3 / 4;
    }

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

    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .cert-logo-placeholder {
        height: 50px;
        padding: 10px 12px;
    }

    .cert-logo-placeholder img {
        max-height: 32px;
    }

    .about-stats {
        padding: 80px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .about-hero-content {
        padding-bottom: 48px;
    }

    .about-hero-image-placeholder {
        height: 220px;
        border-radius: 0;
        background: none;
    }

    .about-image-container {
        min-height: 280px;
    }

    .mission-image,
    .why-image {
        height: 280px;
    }

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

/* ============================================
   SERVICES PAGE - HERO
   ============================================ */
.services-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
    background: var(--color-black);
}

.services-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(150, 150, 150, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(150, 150, 150, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 50% 30% at 20% 60%, rgba(66, 66, 69, 0.3) 0%, transparent 50%);
}

.services-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-line-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.services-hero-content {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    z-index: 1;
}

.services-hero-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 10px 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(150, 150, 150, 0.1);
    border: 1px solid rgba(150, 150, 150, 0.2);
    border-radius: 0;
}

.services-hero-title {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0c0c0 50%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.services-hero-subtitle {
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--color-gray-light);
}

.services-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 32px 48px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-number {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-accent);
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.services-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeIn 0.8s var(--ease-out-expo) 1s forwards;
}

.services-hero-scroll span {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray);
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 4px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

/* Fade up animation */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s var(--ease-out-expo) forwards;
}

/* ============================================
   SERVICES PAGE - NAVIGATION
   ============================================ */
.services-nav {
    position: sticky;
    top: 72px;
    z-index: 100;
    background: var(--header-bg-scrolled);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.services-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 0;
}

.services-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-dark);
    background: transparent;
    border-radius: 0;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.services-nav-link:hover {
    background: var(--color-black-300);
    color: var(--color-white);
}

.services-nav-link.active {
    background: var(--color-accent);
    color: var(--color-white);
}

.nav-link-number {
    font-size: 0.75rem;
    font-weight: 600;
    opacity: 0.6;
}

.services-nav-link.active .nav-link-number {
    opacity: 1;
    color: var(--color-accent);
}

/* ============================================
   SERVICES PAGE - SECTIONS
   ============================================ */
.service-section {
    padding: var(--section-padding) 0;
}

.service-section-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 80px;
}

.service-section-header--reverse {
    direction: rtl;
}

.service-section-header--reverse>* {
    direction: ltr;
}

.service-section-intro {
    max-width: 520px;
}

.section-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.section--dark .section-number {
    color: var(--color-accent);
}

.service-section-intro .headline-section {
    margin-bottom: 24px;
}

/* ============================================
   SERVICES PAGE - VISUAL PLACEHOLDERS
   ============================================ */
.service-visual {
    width: 100%;
}

.service-infographic {
    width: 100%;
    height: auto;
    border-radius: 2px;
    display: block;
}

.visual-placeholder {
    aspect-ratio: 4/3;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.visual-placeholder:hover {
    transform: scale(1.02);
}

.offensive-visual {
    background: linear-gradient(135deg, rgba(196, 64, 64, 0.1) 0%, rgba(196, 150, 64, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

.defensive-visual {
    background: linear-gradient(135deg, rgba(150, 150, 150, 0.1) 0%, rgba(150, 150, 150, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.strategic-visual {
    background: linear-gradient(135deg, rgba(111, 188, 111, 0.1) 0%, rgba(111, 188, 111, 0.1) 100%);
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.visual-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    text-align: center;
    padding: 24px;
}

.visual-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-icon svg {
    width: 64px;
    height: 64px;
    stroke-width: 1;
}

.section--dark .visual-icon svg {
    stroke: rgba(255, 255, 255, 0.4);
}

.section:not(.section--dark) .visual-icon svg {
    stroke: rgba(255, 255, 255, 0.25);
}

.visual-label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-dark);
}

.section--dark .visual-label {
    color: rgba(255, 255, 255, 0.7);
}

.visual-sublabel {
    font-size: 0.875rem;
    color: var(--color-gray);
    max-width: 200px;
}

.section--dark .visual-sublabel {
    color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   SERVICES PAGE - DETAILED CARDS
   ============================================ */
.services-detailed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.services-detailed-grid--four {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.service-detailed-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    transition: all var(--duration-medium) var(--ease-out-quart);
    display: flex;
    flex-direction: column;
}

.service-detailed-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.service-card--light {
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
}

.service-card--light:hover {
    background: var(--color-black-300);
    border-color: transparent;
    box-shadow: 0 0 24px rgba(150, 150, 150, 0.15);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
}

.card-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--color-white);
}

.service-card--light .card-icon {
    background: rgba(150, 150, 150, 0.1);
}

.service-card--light .card-icon svg {
    stroke: var(--color-accent);
}

.card-tag {
    padding: 6px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(150, 150, 150, 0.15);
    border-radius: 0;
}

.card-tag--dark {
    color: var(--color-gray-dark);
    background: var(--color-black-300);
}

.card-title {
    font-size: 1.375rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--color-white);
}

.service-card--light .card-title {
    color: var(--color-white);
}

.card-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-light);
    margin-bottom: 24px;
}

.service-card--light .card-description {
    color: var(--color-gray-dark);
}

.card-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.card-features li {
    position: relative;
    padding-left: 20px;
    font-size: 0.9375rem;
    color: var(--color-gray-light);
    margin-bottom: 10px;
}

.card-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

.service-card--light .card-features li {
    color: var(--color-gray-dark);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-accent);
    transition: gap var(--duration-fast) var(--ease-out-quart);
}

.card-link:hover {
    gap: 12px;
}

.card-link svg {
    transition: transform var(--duration-fast) var(--ease-out-quart);
}

.card-link:hover svg {
    transform: translateX(2px);
}

.card-link--dark {
    color: var(--color-accent);
}

/* ============================================
   SERVICES PAGE - PROCESS SECTION
   ============================================ */
.process-section {
    overflow: hidden;
}

.process-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.process-header .text-eyebrow {
    margin-bottom: 16px;
}

.process-header .headline-section {
    margin-bottom: 24px;
}

.process-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.process-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    position: relative;
    padding: 0 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0c0c0 100%);
    border-radius: 50%;
    margin-bottom: 24px;
    position: relative;
    z-index: 2;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 12px;
}

.step-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-gray-light);
    max-width: 180px;
    margin: 0 auto;
}

.step-connector {
    position: absolute;
    top: 32px;
    left: calc(50% + 32px);
    width: calc(100% - 64px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent), rgba(150, 150, 150, 0.2));
}

.process-step:last-child .step-connector {
    display: none;
}

/* ============================================
   SERVICES PAGE - SEO CONTENT SECTIONS
   ============================================ */
.service-seo-content {
    background: var(--color-black);
}

.service-seo-block {
    max-width: 800px;
    margin: 0 auto;
    padding: 48px 0;
    border-bottom: 1px solid var(--border-color);
}

.service-seo-block:last-child {
    border-bottom: none;
}

.service-seo-heading {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: 24px;
    line-height: 1.3;
}

.service-seo-text {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.75;
    color: var(--color-gray-dark);
}

@media (max-width: 768px) {
    .service-seo-block {
        padding: 32px 0;
    }
}

/* ============================================
   SERVICES PAGE - TEAM VISUAL
   ============================================ */
.team-visual-section {
    background: var(--color-black-200);
}

.team-visual-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 24px;
}

.team-visual-placeholder {
    aspect-ratio: 16/10;
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-black-200);
    border: 2px dashed var(--border-color);
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.team-visual-placeholder.large {
    aspect-ratio: auto;
    min-height: 400px;
}

.team-visual-placeholder:hover {
    border-color: var(--color-accent);
    transform: scale(1.01);
}

.team-visual-placeholder .visual-content {
    padding: 32px;
}

.team-visual-placeholder .visual-icon svg {
    stroke: var(--color-gray-light);
}

.team-visual-placeholder:hover .visual-icon svg {
    stroke: var(--color-accent);
}

/* ============================================
   SERVICES PAGE - CTA SECTION
   ============================================ */
.services-cta-section {
    background: linear-gradient(180deg, var(--color-black-200) 0%, var(--color-black) 100%);
}

.services-cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.services-cta-content .headline-section {
    margin-bottom: 24px;
}

.services-cta-content .text-large {
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ============================================
   SERVICES PAGE - RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .service-section-header {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .service-section-header--reverse {
        direction: ltr;
    }

    .service-section-intro {
        max-width: 100%;
        text-align: center;
    }

    .process-timeline {
        flex-wrap: wrap;
        gap: 40px;
        justify-content: center;
    }

    .process-step {
        flex: 0 0 calc(33.333% - 32px);
    }

    .step-connector {
        display: none;
    }

    .team-visual-grid {
        grid-template-columns: 1fr;
    }

    .team-visual-placeholder.large {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .services-hero {
        padding: 100px 24px 60px;
        min-height: auto;
    }

    .services-hero-stats {
        flex-direction: column;
        gap: 24px;
        padding: 24px 32px;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .services-nav-inner {
        flex-wrap: wrap;
        gap: 8px;
    }

    .services-nav-link {
        padding: 10px 16px;
        font-size: 0.8125rem;
    }

    .nav-link-number {
        display: none;
    }

    .services-detailed-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        flex: 0 0 calc(50% - 20px);
    }

    .visual-placeholder {
        aspect-ratio: 16/10;
    }
}

@media (max-width: 480px) {
    .services-hero-title {
        font-size: 2rem;
    }

    .process-step {
        flex: 0 0 100%;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .cta-buttons .btn {
        width: 100%;
    }
}

/* ============================================
   FORM MESSAGE STYLES
   ============================================ */
.form-message {
    margin-top: 16px;
    padding: 16px 20px;
    border-radius: 2px;
    font-size: 0.9375rem;
    font-weight: 500;
    text-align: center;
}

.form-message--success {
    background: rgba(111, 188, 111, 0.1);
    color: #34c759;
    border: 1px solid rgba(111, 188, 111, 0.2);
}

.form-message--error {
    background: rgba(196, 64, 64, 0.1);
    color: #ff3b30;
    border: 1px solid rgba(196, 64, 64, 0.2);
}

}

/* ============================================
   LOADING STATE
   ============================================ */
body.is-loading {
    pointer-events: none;
}

body.is-loading::after {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9998;
}

/* ============================================
   NEW DARK TERMINAL — SUPPLEMENTARY UTILITIES
   ============================================ */

/* ── Hero bracket motif ── */
.hero-bracket {
    position: relative;
    color: var(--color-white);
}

.hero-bracket::before {
    content: '[';
    color: var(--color-accent);
    margin-right: 2px;
}

.hero-bracket::after {
    content: ']';
    color: var(--color-accent);
    margin-left: 2px;
}

/* ── Hero subtle grid overlay (extra layer) ── */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
    z-index: 0;
}

/* ── Services nav — dark glass style ── */
.services-nav {
    position: sticky;
    top: 56px;
    z-index: 100;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
}

.services-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 0;
}

.services-nav-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-dark);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 2px;
    transition: all var(--duration-fast);
}

.services-nav-link:hover {
    color: var(--color-white);
    border-color: var(--border-color);
}

.services-nav-link.active {
    background: rgba(150, 150, 150, 0.08);
    border-color: var(--border-accent);
    color: var(--color-accent);
}

.nav-link-number {
    font-size: 0.625rem;
    opacity: 0.5;
}

.services-nav-link.active .nav-link-number {
    opacity: 1;
    color: var(--color-accent);
}

/* ── About hero dark ── */
.about-hero {
    padding: 160px 24px 0;
    background: var(--color-black);
    overflow: hidden;
    border-bottom: 1px solid var(--border-color);
}

.about-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 80px;
}

.about-hero-content .text-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.about-hero-title {
    color: var(--color-white);
    margin-bottom: 24px;
}

.about-hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    color: var(--color-gray-dark);
}

.about-hero-visual {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
}

.about-hero-image-placeholder {
    width: 100%;
    height: 500px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-hero-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── About image containers ── */
.about-image-container {
    width: 100%;
    height: 100%;
    min-height: 400px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.about-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ── About stats dark ── */
.about-stats {
    background: var(--color-black-200);
    border-top: 1px solid var(--border-color);
}

.stat-number {
    font-family: var(--font-mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--color-white);
    letter-spacing: -0.02em;
}

.stat-suffix {
    color: var(--color-accent);
}

.stat-label {
    color: var(--color-gray-dark);
    font-size: 0.8125rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ── Services hero dark (page-services.php) ── */
.services-hero {
    background: var(--color-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 120px 24px 80px;
    position: relative;
    overflow: hidden;
}

.services-hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(150, 150, 150, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(150, 150, 150, 0.06) 0%, transparent 40%);
}

.services-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 60px 60px;
}

.services-hero-eyebrow {
    display: inline-block;
    margin-bottom: 24px;
    padding: 6px 14px;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-accent);
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.services-hero-title {
    color: var(--color-white);
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-accent) 0%, #c0c0c0 50%, var(--color-accent) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.services-hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 48px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(20px);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--border-color), transparent);
}

/* ── Expertise cards dark ── */
.expertise-card {
    padding: 32px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 0;
    transition: all var(--duration-medium) var(--ease-out-quart);
}

.expertise-card:hover {
    border-color: var(--border-accent);
    background: var(--color-black-300);
    transform: translateY(-2px);
}

.expertise-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.expertise-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--color-accent);
}

.expertise-card h3 {
    color: var(--color-white);
    font-size: 1.0625rem;
    margin-bottom: 12px;
}

.expertise-card p {
    color: var(--color-gray-dark);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ── Cert logo dark ── */
.cert-logo-placeholder {
    height: 56px;
    padding: 10px 16px;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast);
    text-decoration: none;
}

.cert-logo-placeholder:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.cert-logo-placeholder img {
    max-width: 100%;
    max-height: 36px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) brightness(2);
    opacity: 0.6;
    transition: all var(--duration-fast);
}

.cert-logo-placeholder:hover img {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

/* ── Why section dark ── */
.why-icon {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(150, 150, 150, 0.08);
    border: 1px solid var(--border-accent);
    border-radius: 2px;
}

.why-icon svg {
    width: 14px;
    height: 14px;
    stroke: var(--color-accent);
}

.why-text strong {
    color: var(--color-white);
    font-size: 0.9375rem;
    display: block;
    margin-bottom: 4px;
}

.why-text p {
    color: var(--color-gray-dark);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* ── Visual placeholders dark ── */
.visual-placeholder {
    aspect-ratio: 4/3;
    border: 1px solid var(--border-color);
    background: var(--color-black-200);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all var(--duration-medium);
}

.visual-placeholder:hover {
    transform: scale(1.01);
    border-color: var(--border-accent);
}

.offensive-visual {
    border-color: rgba(255, 45, 85, 0.2);
}

.defensive-visual {
    border-color: var(--border-accent);
}

.strategic-visual {
    border-color: rgba(111, 188, 111, 0.15);
}

.service-infographic {
    width: 100%;
    height: auto;
    display: block;
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--color-black);
}

::-webkit-scrollbar-thumb {
    background: var(--color-black-400);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-accent-dark);
}

/* ============================================
   AWARD-WINNING VISUAL LAYER
   ============================================ */

/* ── Scan-Line Sweep ── */
@keyframes scanSweep {
    0%   { top: -2px; }
    100% { top: 100vh; }
}

.scan-line {
    position: fixed;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 5%,
        rgba(150,150,150,0.05) 20%,
        rgba(150,150,150,0.08) 50%,
        rgba(150,150,150,0.05) 80%,
        transparent 95%);
    z-index: 9998;
    pointer-events: none;
    animation: scanSweep 12s linear infinite;
}

/* ── Column Lines ── */
.col-lines {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-wide);
    pointer-events: none;
    z-index: 0;
    display: flex;
    justify-content: space-between;
    padding: 0 24px;
}

.col-lines span {
    display: block;
    width: 1px;
    height: 100%;
    background: var(--grid-line-strong);
}

/* ── Noise Grain Texture ── */
.noise-grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9997;
    opacity: 0.35;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
    background-repeat: repeat;
}

/* ── Header Accent Line ── */
.header-accent {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 10%, var(--color-accent) 50%, transparent 90%);
    z-index: 10001;
    pointer-events: none;
    opacity: 0.5;
}

/* ── Glitch Text Effect ── */
@keyframes glitchClip1 {
    0%   { clip-path: inset(40% 0 61% 0); transform: translate(-2px, 1px); }
    20%  { clip-path: inset(92% 0 1% 0);  transform: translate(1px, -1px); }
    40%  { clip-path: inset(43% 0 1% 0);  transform: translate(-1px, 2px); }
    60%  { clip-path: inset(25% 0 58% 0);  transform: translate(2px, 1px); }
    80%  { clip-path: inset(54% 0 7% 0);   transform: translate(-2px, -1px); }
    100% { clip-path: inset(58% 0 43% 0);  transform: translate(1px, -1px); }
}

@keyframes glitchClip2 {
    0%   { clip-path: inset(65% 0 13% 0);  transform: translate(2px, -1px); }
    20%  { clip-path: inset(15% 0 62% 0);  transform: translate(-1px, 2px); }
    40%  { clip-path: inset(72% 0 7% 0);   transform: translate(1px, -2px); }
    60%  { clip-path: inset(5% 0 73% 0);   transform: translate(-2px, 1px); }
    80%  { clip-path: inset(82% 0 5% 0);   transform: translate(2px, 2px); }
    100% { clip-path: inset(31% 0 48% 0);  transform: translate(-1px, -1px); }
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    letter-spacing: inherit;
}

.glitch-text::before {
    color: rgba(200,200,200,0.06);
    animation: glitchClip1 4s infinite linear alternate-reverse;
}

.glitch-text::after {
    color: rgba(150,150,150,0.08);
    animation: glitchClip2 3s infinite linear alternate;
}

/* ── Terminal Cursor Blink ── */
@keyframes cursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.cursor-blink::after {
    content: '_';
    color: var(--color-accent);
    font-weight: 400;
    animation: cursorBlink 1s steps(1) infinite;
    margin-left: 2px;
}

/* ── Data Ticker Strip ── */
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.data-ticker {
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    background: var(--color-black-100);
    position: relative;
}

.data-ticker-track {
    display: inline-flex;
    animation: tickerScroll 40s linear infinite;
}

.data-ticker-track span {
    font-family: var(--font-mono);
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gray-light);
    padding: 0 32px;
    flex-shrink: 0;
}

.data-ticker-track .tk-accent {
    color: var(--color-accent);
}

.data-ticker-track .tk-green {
    color: var(--color-green);
}

.data-ticker-track .tk-dim {
    color: var(--color-gray);
}

/* ── Card Mouse-Follow Glow ── */
.service-detailed-card {
    --mouse-x: 50%;
    --mouse-y: 50%;
    position: relative;
    overflow: hidden;
}

.service-detailed-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        400px circle at var(--mouse-x) var(--mouse-y),
        rgba(150,150,150,0.06) 0%,
        transparent 60%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 0;
}

.service-detailed-card:hover::after {
    opacity: 1;
}

.service-detailed-card > * {
    position: relative;
    z-index: 1;
}

/* ── Hero Wireframe Background ── */
@keyframes wireframeDrift {
    0%, 100% { transform: translateY(-50%) rotate(-12deg) scale(1); }
    50%      { transform: translateY(-48%) rotate(-10deg) scale(1.02); }
}

.hero-wireframe {
    position: absolute;
    right: -8%;
    top: 50%;
    transform: translateY(-50%) rotate(-12deg);
    width: 55%;
    max-width: 650px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    animation: wireframeDrift 20s ease-in-out infinite;
}

.hero-wireframe img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(200deg);
}

/* ── HUD Section Divider ── */
.hud-divider {
    height: 1px;
    background: var(--border-color);
    position: relative;
    margin: 0;
}

.hud-divider::after {
    content: attr(data-label);
    position: absolute;
    right: max(24px, calc((100% - var(--container-wide)) / 2 + 24px));
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.5625rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-gray-light);
    background: var(--color-black);
    padding: 0 12px;
}

/* ── CTA Section Enhancement ── */
.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 80% at 50% 100%,
        rgba(150,150,150,0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

/* ── Enhanced Service Card Accent Line ── */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity var(--duration-medium);
}

.service-card:hover::before {
    opacity: 1;
}

/* ── Value Card Top-Line Hover ── */
.value-card {
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.value-card:hover::before {
    opacity: 1;
}

/* ── Stats Grid Enhancement ── */
.stats-grid .stat-item {
    position: relative;
    transition: all 0.4s var(--ease-out-expo);
}

.stats-grid .stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width 0.4s var(--ease-out-expo);
}

.stats-grid .stat-item:hover::after {
    width: 60px;
}

/* ── Enhanced Hero Eyebrow Terminal Prompt ── */
.hero-eyebrow {
    position: relative;
}

/* ── Section Number Bracket Enhancement ── */
.section-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 12px;
}

/* ── Expertise Card Accent Line ── */
.expertise-card {
    position: relative;
    overflow: hidden;
}

.expertise-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}

.expertise-card:hover::before {
    opacity: 1;
}

[data-theme="light"] .services-hero-title {
    color: var(--color-white);
}

[data-theme="light"] .services-hero-subtitle {
    color: var(--color-gray-dark);
}

[data-theme="light"] .services-hero-eyebrow {
    color: var(--color-gray-dark);
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .services-hero .text-gradient {
    background: linear-gradient(135deg, #333 0%, #666 50%, #333 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

[data-theme="light"] .services-hero .glitch-text {
    color: var(--color-white);
}

[data-theme="light"] .services-hero-stats {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
}

[data-theme="light"] .services-hero .stat-number,
[data-theme="light"] .services-hero .stat-suffix {
    color: var(--color-white);
}

[data-theme="light"] .services-hero .stat-label {
    color: var(--color-gray-dark);
}

[data-theme="light"] .services-hero .stat-divider {
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12), transparent);
}

[data-theme="light"] .services-hero-scroll {
    color: var(--color-gray-dark);
}

[data-theme="light"] .services-hero-scroll .scroll-dot {
    background: var(--color-gray-dark);
}

.services-hero-content {
    position: relative;
    z-index: 1;
}

/* ── About Hero Enhancement ── */
.about-hero {
    position: relative;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(150,150,150,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(150,150,150,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    pointer-events: none;
    z-index: 0;
}

.about-hero-content {
    position: relative;
    z-index: 1;
}

/* ── Enhanced Pillar Cards ── */
.pillar {
    transition: all 0.4s var(--ease-out-expo);
}

.pillar:hover {
    background: var(--color-black-300);
}

.pillar:hover::before {
    width: 40px;
    background: var(--color-accent);
    box-shadow: 0 0 12px rgba(150,150,150,0.4);
}

/* ── Contact Form Enhancement ── */
.contact-form-wrapper {
    position: relative;
}

.form-input,
.form-textarea {
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--border-accent);
    box-shadow: 0 0 20px rgba(150,150,150,0.08);
}

/* ── Mobile: Hide Visual Layers ── */
@media (max-width: 768px) {
    .col-lines { display: none; }
    .scan-line { display: none; }
    .noise-grain { display: none; }
    .hero-wireframe { display: none; }
    .hud-divider::after { right: 24px; }
    .data-ticker-track span { padding: 0 20px; font-size: 0.5625rem; }

    .theme-toggle {
        position: absolute;
        top: 50%;
        right: 64px;
        transform: translateY(-50%);
        z-index: 11;
    }

    .footer-hud-left,
    .footer-hud-right {
        gap: 16px;
    }

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

    .hero-stat:nth-child(2) {
        border-right: none;
    }

    .hero-stat:nth-child(3),
    .hero-stat:nth-child(4) {
        border-top: 1px solid var(--border-color);
    }
}

@media (max-width: 480px) {
    .header-accent { opacity: 0.3; }
}

/* ── Reduced Motion: Disable Overlays ── */
@media (prefers-reduced-motion: reduce) {
    .scan-line,
    .noise-grain,
    .glitch-text::before,
    .glitch-text::after,
    .cursor-blink::after {
        animation: none !important;
    }
    .data-ticker-track {
        animation: none !important;
    }
    .hero-wireframe {
        animation: none !important;
    }
}

/* ============================================
   PREMIUM LAYOUT — light type, hairlines, grey light, motion
   Spec: tso-palette skill, themes/tso-premium-layout.md
   Covers the blog index, single posts, the front page and the shared header and footer.
   The remaining templates opt in by using these classes.
   ============================================ */

/* ── Tokens: the spec's names, mapped onto the theme's dual dark/light variables ── */
:root {
    --surface: var(--color-black);
    --text: var(--color-white);
    --muted: var(--color-gray-dark);
    --label: var(--color-gray-light);
    --rule: var(--border-accent);
    --grey: var(--color-accent);
    --accent: #0071E3; /* blue: 1px lines, tag tints and button hover only */
    --lum: rgba(138, 138, 138, 0.34);
    --hot: #E8E8E8;
    --m: clamp(16px, 4.8vw, 72px);

    /* Motion */
    --ease: var(--ease-out-expo);
    --t-fast: 0.2s;
    --t-base: 0.4s;
    --t-slow: 0.9s;
    --t-hero: 1.4s;
    --stagger: 90ms;
}

/* ── Stage: the always-dark surface that carries a glow. One per page, on a hero. ── */
.stage {
    --surface: #000;
    --text: #E8E8E8;
    --muted: #999;
    --label: #666;
    --rule: rgba(255, 255, 255, 0.12);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #000;
    color: var(--muted);
}

.stage::before,
.stage::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}

.stage::before {
    background: var(--glow);
    transform-origin: 50% 100%;
}

.stage::after {
    background:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 80px 80px,
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 80px 80px;
}

.glow-horizon {
    --glow:
        radial-gradient(ellipse 46% 4px at 50% 100%, var(--hot), transparent),
        radial-gradient(ellipse 50% 8% at 50% 100%, color-mix(in srgb, var(--hot) 70%, transparent), transparent 72%),
        radial-gradient(ellipse 80% 42% at 50% 100%, var(--lum), transparent 72%);
}

/* ── Type ── */
.eyebrow,
.idx,
.tag,
.col-foot,
.btn-premium {
    font-family: var(--font-mono);
    font-weight: 400;
    text-transform: uppercase;
}

.eyebrow {
    display: block;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.16em;
    color: var(--grey);
}

.br {
    color: var(--grey);
}

.head {
    max-width: 940px;
    margin: 0 auto;
    text-align: center;
}

.head h2,
.stage-hero h1,
.article-title {
    color: var(--text);
    font-weight: 300;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-wrap: balance;
}

.head h2 {
    font-size: clamp(32px, 3.5vw, 50px);
}

.head h2.sm {
    font-size: clamp(28px, 3vw, 43px);
}

.head .eyebrow + h2,
.head .eyebrow + .sub,
.head h2 + .sub {
    margin-top: 16px;
}

.sub {
    max-width: 560px;
    margin-inline: auto;
    font-size: 18px;
    line-height: 28px;
    font-weight: 300;
    color: var(--muted);
}

.head .btn-premium {
    margin-top: 40px;
}

.head--left {
    margin: 0;
    text-align: left;
}

.head--left .sub {
    margin-inline: 0;
}

/* Stat number: replaces the h3 in a column */
.num {
    display: block;
    margin-top: 72px;
    font-size: clamp(40px, 3.5vw, 50px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
}

.link-more {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease);
}

.link-more:hover {
    color: var(--text);
}

.head--left .link-more {
    margin-top: 40px;
}

.tag {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 10px;
    line-height: 14px;
    letter-spacing: 0.08em;
    color: var(--text);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    transition: background var(--t-fast) var(--ease);
}

a.tag:hover {
    background: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* ── Button: the palette's own, blue on hover, label letters roll (main.js splits them) ── */
.btn-premium {
    padding: 13px 32px;
    border: 0;
    background: var(--text);
    color: var(--surface);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    transition:
        background var(--t-base) var(--ease),
        color var(--t-base) var(--ease),
        transform var(--t-fast) var(--ease);
}

.btn-premium:hover {
    background: var(--accent);
    color: #FFF;
}

.btn-premium:active {
    transform: scale(0.97);
}

/* the arrow: always the button's last child, so a tso_t() wrapper around the label is left alone */
.btn-premium > span:last-child {
    transition: transform var(--t-base) var(--ease);
}

.btn-premium:hover > span:last-child {
    transform: translateX(4px);
}

.btn-premium b {
    display: flex;
    overflow: hidden;
    font-weight: inherit;
}

.btn-premium b span {
    white-space: pre;
    text-shadow: 0 1.5em;
    transition: transform var(--t-base) var(--ease) calc(var(--c) * 12ms);
}

.btn-premium:hover b span {
    transform: translateY(-1.5em);
}

/* ── Hairline columns ── */
.cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 96px 24px;
    max-width: 1296px;
    margin: 96px auto 0;
}

.cols:first-child {
    margin-top: 0;
}

.cols--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cols--5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* A titled group of columns inside a section (the three service lines on the front page) */
.group-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    max-width: 1296px;
    margin: 128px auto 0;
}

.group-head h3 {
    margin-top: 8px;
    font-size: clamp(24px, 2.4vw, 32px);
    line-height: 1.15;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text);
}

.group-head + .cols {
    margin-top: 48px;
}

.col {
    position: relative;
    display: block;
    padding-top: 12px;
    color: var(--muted);
}

.col > a {
    display: block;
    color: inherit;
}

.col::before,
.col::after,
.article-body h2::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: var(--rule);
    transform-origin: 0 50%;
}

.col::after {
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--t-base) var(--ease);
}

.col:hover::after,
.col.pick::after {
    transform: none;
}

.idx {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.col h3,
.col h4 {
    margin-top: 72px;
    font-size: 22px;
    line-height: 26px;
    font-weight: 300;
    letter-spacing: 0;
    color: var(--text);
}

.col p {
    max-width: 400px;
    margin-top: 16px;
    font-size: 15px;
    line-height: 26px;
}

/* A short feature list inside a column: one hairline per item */
.col ul {
    margin-top: 24px;
}

.col li {
    padding: 8px 0;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    line-height: 18px;
}

.col .link-more {
    margin-top: 24px;
}

.col-foot {
    display: block;
    margin-top: 24px;
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.08em;
    color: var(--label);
}

.cols-more {
    margin-top: 96px;
    text-align: center;
}

/* ── Motion: one curve, opacity and transform only, everything visible without JS ── */
@keyframes enter {
    from { opacity: 0; transform: translateY(16px); filter: blur(8px); }
}

@keyframes bloom {
    from { opacity: 0; transform: scale(0.7); }
}

@keyframes breathe {
    to { opacity: 0.7; }
}

/* Entrance, on load: heroes only */
.stage-hero h1,
.article-title {
    animation: enter var(--t-hero) var(--ease) 0.1s both;
}

.article-meta {
    animation: enter var(--t-slow) var(--ease) both;
}

.article-featured-image {
    animation: enter var(--t-slow) var(--ease) 0.3s both;
}

.article-excerpt {
    animation: enter var(--t-slow) var(--ease) 0.4s both;
}

.stage-hero .btn-premium,
.article-author {
    animation: enter var(--t-slow) var(--ease) 0.6s both;
}

.glow-horizon::before {
    animation: bloom 2.4s var(--ease) both, breathe 9s ease-in-out 2.4s infinite alternate;
}

/* Reveal, once, when a block scrolls into view. main.js adds .in; the .js class is set in header.php */
.js .rise,
.js .article-body > * {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity var(--t-slow) var(--ease) calc(var(--i, 0) * var(--stagger)),
        transform var(--t-slow) var(--ease) calc(var(--i, 0) * var(--stagger));
}

.js .rise.in,
.js .article-body > .in {
    opacity: 1;
    transform: none;
}

/* Hairlines draw left to right; the picked column's blue line follows */
.js .col::before,
.js .article-body h2::before {
    transform: scaleX(0);
    transition: transform 1.2s var(--ease) calc(var(--i, 0) * var(--stagger));
}

.js .col.in::before,
.js .article-body h2.in::before {
    transform: none;
}

.js .col.pick:not(.in)::after {
    transform: scaleX(0);
}

.js .col.pick::after {
    transition: transform 1.2s var(--ease) calc(var(--i, 0) * var(--stagger) + 0.4s);
}

/* Headings arrive line by line (main.js wraps each word in .w and numbers its line in --l) */
.js .w {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.4em);
    transition:
        opacity var(--t-slow) var(--ease) calc(var(--l, 0) * var(--stagger)),
        transform var(--t-slow) var(--ease) calc(var(--l, 0) * var(--stagger));
}

.js .in .w,
.js .in > .w {
    opacity: 1;
    transform: none;
}

/* Scroll-tied: the hero's content fades and falls behind as it scrolls away (main.js writes --p) */
@media screen and (prefers-reduced-motion: no-preference) {
    .glow-horizon > div {
        opacity: calc(2.5 - var(--p, 0.5) * 3);
        translate: 0 calc((var(--p, 0.5) - 0.5) * 96px);
    }
}

/* body's overflow-x: hidden (RESET & BASE) turns it into a scroll container, which stops
   position: sticky from working anywhere on the site. clip hides the overflow without that. */
body {
    overflow-x: clip;
}

/* ── Homepage flow (hero-cubes.js) ──
   One field of small cubes sits behind the whole front page and takes a new arrangement at each
   [data-cubes] slot; the slot's box is where that arrangement sits. The script adds .live to .flow.
   Without it, or with reduced motion, the slots are hidden and this is the plain page. */
.flow {
    --rails: min(1296px + var(--m), 100% - 24px);   /* always outside the text, which starts 24px in */
    position: relative;
    isolation: isolate;
}

/* One surface: no rules between sections, and two rails that run the length of the page */
.flow > .section,
.flow .about-sec {
    border-top: 0;
    background: none;
}

/* The canvas is fixed, so the footer has to sit on top of it */
.site-main:has(> .flow) ~ .site-footer {
    position: relative;
}

.flow::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: var(--rails);
    border-inline: 1px solid var(--border-color);
    translate: -50% 0;
    pointer-events: none;
    animation: rails 1.8s var(--ease) both;
}

@keyframes rails {
    from { clip-path: inset(0 0 100% 0); }
}

/* Accent: the blue shows in the heading brackets, the service numbers, a 1px line that grows down
   the left rail as the page scrolls, and the light crossing the cubes (hero-cubes.js). On black the
   text blue is lightened so small type keeps its contrast. */
.flow {
    --accent-ink: color-mix(in srgb, var(--accent) 72%, #fff);
}

[data-theme="light"] .flow {
    --accent-ink: var(--accent);
}

.flow .br,
.flow .group-head .eyebrow {
    color: var(--accent-ink);
}

@supports (animation-timeline: scroll()) {
    .flow::after {
        content: "";
        position: fixed;
        top: 0;
        bottom: 0;
        left: calc(50% - var(--rails) / 2);
        z-index: -1;
        width: 1px;
        background: var(--accent-ink);
        transform-origin: 50% 0;
        pointer-events: none;
        animation: rail-fill linear both;
        animation-timeline: scroll(root);
    }
}

@keyframes rail-fill {
    from { transform: scaleY(0); }
}

.hero-cubes {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* The cubes are light. On the light theme they turn to ink, and the hero keeps its own black stage. */
[data-theme="light"] .hero-cubes {
    filter: invert(1) hue-rotate(180deg);   /* the turn keeps the blue blue */
}

html:not([data-theme="light"]) .flow.live .stage-hero {
    background: none;
}

.cube-slot {
    display: none;
}

.flow.live .cube-slot {
    display: block;
}

/* The emblem's slot holds the logo image until the cubes take over */
.cube-slot.cube-slot--logo {
    display: grid;
    place-items: center;
    width: min(34vh, 60vw);
    width: min(34svh, 60vw);
    aspect-ratio: 1;
    margin: 0 auto 56px;
}

.cube-slot--logo img {
    width: 100%;
    height: auto;
    filter: var(--logo-filter);
}

.flow.live .cube-slot--logo img {
    visibility: hidden;
}

/* A wide band above a heading */
.cube-slot--band {
    height: 38vh;
    height: 38svh;
    margin-bottom: 56px;
}

/* The whole view, held in place behind the sections it shares a grid cell with */
.flow-ground {
    display: grid;
}

.flow-ground > * {
    grid-area: 1 / 1;
    min-width: 0;
}

.cube-slot--full {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    pointer-events: none;
}

/* The services overview lies on the dim floor: its slot covers it */
.services-intro {
    position: relative;
}

.services-intro > .cube-slot {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* (the overview's three columns only show where a section is a screen: below that the lines follow at once) */
.services-lines {
    display: none;
}

.service-category .cube-slot {
    height: 44vh;
    height: 44svh;
    margin-top: 96px;
}

/* What we have done sits above the certifications heading */
.about-sec .cols + .head {
    margin-top: 96px;
}

/* One screen per section. Every stop of the step scrolling (hero-cubes.js) is as tall as the view and
   centres what it holds, so one wheel move shows one whole section, with its arrangement of cubes
   settled. Where the view is too low for a section, the section grows and the scrolling steps through it. */
@media (min-width: 1025px) {
    .flow > .about,
    .flow .services-intro,
    .flow .service-category,
    .flow .about-sec,
    .flow > .home-cta,
    .flow > .contact {
        --gap: clamp(12px, 15vh - 80px, 48px);   /* the spacing inside a screen gives way first on a low view */
        box-sizing: border-box;
        min-height: 100vh;
        min-height: 100svh;
        padding-block: 72px clamp(16px, 4vh, 32px);   /* 56px of the top is the fixed header */
        align-content: center;
    }

    .flow > .services {
        padding: 0;
    }

    .flow .col h3,
    .flow .col h4 {
        margin-top: var(--gap);
    }

    .flow .num {
        margin-top: var(--gap);
    }

    .flow .col p {
        line-height: 24px;
    }

    .flow .cols {
        margin-top: calc(var(--gap) * 1.5);
    }

    /* About: the helix takes whatever height the text leaves */
    .flow > .about,
    .flow > .about > .container {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .flow > .about > .container {
        flex: 1;
        width: 100%;
    }

    .flow > .about .cube-slot--band {
        flex: 1 0 14vh;
        height: auto;
        margin-bottom: var(--gap);
    }

    .flow > .about .head {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 0 96px;
        width: 100%;
        max-width: 1296px;
        text-align: left;
    }

    .flow > .about .head .eyebrow {
        grid-column: 1 / -1;
    }

    .flow > .about .head .sub {
        max-width: none;
        margin: 16px 0 0;
        font-size: 16px;
        line-height: 26px;
    }

    .flow > .about .cols {
        width: 100%;
    }

    .flow .services-lines {
        display: grid;
    }

    /* A service line: its arrangement on one side, its three parts from top to bottom on the other.
       The sides alternate, so the cubes cross the page from one line to the next. */
    .flow.live .service-category {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0 96px;
        align-items: center;
        max-width: 1296px;
        margin: 0 auto;
    }

    .flow.live .service-category .cube-slot {
        height: 60vh;
        height: 60svh;
        margin-top: 0;
    }

    .flow.live #attack-prevent-section .cube-slot {
        order: 2;
    }

    .flow .service-body .group-head {
        margin-top: 0;
    }

    .flow .service-body .cols {
        margin-top: var(--gap);
    }

    .flow.live .service-body .cols {
        grid-template-columns: minmax(0, 1fr);
        gap: var(--gap);
    }

    .flow.live .service-body .col h4 {
        margin-top: calc(var(--gap) / 2);
    }

    .flow.live .service-body .col p {
        max-width: 520px;
        margin-top: 6px;
    }

    /* About: a heading on one side, its points on the other */
    .flow .about-sec .container:has(> .head + .cols) {
        display: grid;
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        gap: 96px;
        align-items: center;
        max-width: 1344px;
    }

    .flow .about-sec .head:has(+ .cols) {
        margin: 0;
        text-align: left;
    }

    .flow .about-sec .head:has(+ .cols) .sub {
        margin-inline: 0;
    }

    .flow .about-sec .head + .cols {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--gap) * 1.5) 24px;
        margin-top: 0;
    }

    .flow .about-sec .cols + .head,
    .flow .about-sec .certifications-grid {
        margin-top: calc(var(--gap) * 2);
    }

    .flow > .contact .form-textarea {
        min-height: clamp(56px, 30vh - 140px, 120px);
    }
}

@media (prefers-reduced-motion: reduce), print {
    .flow::before {
        animation: none;
    }
}

/* ── Blog index ── */
.stage-hero {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 128px var(--m);
    text-align: center;
}

.stage-hero h1 {
    max-width: 900px;
    font-size: clamp(40px, 5.3vw, 76px);
}

.stage-hero .btn-premium {
    margin-top: 64px;
}

.section-bar {
    position: sticky;
    top: 56px;
    z-index: 100;
    padding: 0 var(--m);
    background: color-mix(in srgb, var(--surface) 80%, transparent);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
}

.section-bar-inner {
    display: flex;
    justify-content: center;
    gap: 40px;
    overflow-x: auto;
    scrollbar-width: none;
}

.section-bar-inner::-webkit-scrollbar {
    display: none;
}

.section-bar-link {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 16px 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease);
}

.section-bar-link:hover,
.section-bar-link.active {
    color: var(--text);
}

.section-bar-link.active::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 1px;
    background: var(--text);
}

.section-bar-count {
    font-size: 10px;
    color: var(--label);
}

.blog-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    max-width: 1296px;
    margin: 96px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--rule);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.blog-pagination a {
    transition: color var(--t-fast) var(--ease);
}

.blog-pagination a:hover,
.pagination-number.current {
    color: var(--text);
}

.pagination-number.current {
    box-shadow: 0 1px 0 var(--text);
}

.blog-empty {
    margin-top: 96px;
    text-align: center;
}

.blog-empty h3 {
    font-size: 22px;
    line-height: 26px;
    font-weight: 300;
}

.blog-empty .sub {
    margin-top: 16px;
}

.blog-empty .btn-premium {
    margin-top: 40px;
}

.blog-newsletter,
.blog-resources,
.related-articles,
.article-cta {
    border-top: 1px solid var(--border-color);
}

.newsletter-form {
    max-width: 480px;
    margin: 48px auto 0;
}

.newsletter-input-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--rule);
    transition: border-color var(--t-fast) var(--ease);
}

.newsletter-input-wrapper:focus-within {
    border-color: var(--text);
}

.newsletter-input-wrapper .btn-premium {
    margin-top: 0;
}

.newsletter-input {
    flex: 1;
    min-width: 0;
    padding: 12px 0;
    font-family: inherit;
    font-size: 15px;
    color: var(--text);
    background: none;
    border: 0;
    outline: 0;
}

.newsletter-input::placeholder {
    color: var(--label);
}

.newsletter-disclaimer {
    margin-top: 16px;
    font-size: 13px;
    line-height: 16px;
    color: var(--label);
}

/* ── Front page ── */
.about,
.services {
    padding-top: var(--section-padding);
    text-align: left;
}

.services,
.home-cta,
.contact,
.service-section + .service-section,
.process-section,
.services-cta-section {
    border-top: 1px solid var(--border-color);
}

.services .service-category {
    margin-bottom: 0;
}

/* Contact: the form, its ids and its handler are unchanged; fields sit on hairlines */
.contact .contact-wrapper {
    max-width: 1296px;
    margin-inline: auto;
}

.contact-wrapper .contact-form-wrapper {
    padding: 0;
    background: none;
    border: 0;
}

.contact-form .form-label {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.contact-form .form-input,
.contact-form .form-textarea {
    padding: 12px 0;
    font-family: var(--font-text);
    font-size: 15px;
    line-height: 26px;
    color: var(--text);
    background: none;
    border: 0;
    border-bottom: 1px solid var(--rule);
    border-radius: 0;
    box-shadow: none;
    transition: border-color var(--t-fast) var(--ease);
}

.contact-form .form-input:focus,
.contact-form .form-textarea:focus {
    background: none;
    border-bottom-color: var(--text);
    box-shadow: none;
}

.contact-form .form-input::placeholder,
.contact-form .form-textarea::placeholder {
    color: var(--label);
}

.contact-form .checkbox-group {
    gap: 12px 24px;
}

.contact-form .checkbox-label {
    padding: 0;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    background: none;
    border: 0;
    transition: color var(--t-fast) var(--ease);
}

.contact-form .checkbox-label:hover,
.contact-form .checkbox-label:has(:checked) {
    color: var(--text);
}

.contact-form .form-submit {
    width: auto;
    align-self: flex-start;
}

/* ── Header and footer: same structure, premium type and hover ── */
.site-header .nav-cta {
    transition:
        background var(--t-base) var(--ease),
        border-color var(--t-base) var(--ease),
        color var(--t-base) var(--ease);
}

.site-header .nav-cta:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFF;
}

.site-footer .footer-column {
    padding-left: 16px;
    border-left: 1px solid var(--rule);
}

.site-footer .footer-heading {
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    color: var(--text);
}

.site-footer .footer-links a {
    font-size: 13px;
    line-height: 16px;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease);
}

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

/* only glows loop */
.site-footer .footer-hud-dot {
    animation: none;
}

/* ── Service detail ── */
.detail-section {
    border-top: 1px solid var(--border-color);
}

.stage-hero + .detail-section {
    border-top: 0;
}

.service-overview-text {
    max-width: 680px;
    margin: 40px auto 0;
    font-size: 17px;
    line-height: 30px;
    color: var(--muted);
}

.head .service-overview-text + .link-more {
    margin-top: 40px;
}

.service-seo-body {
    margin-inline: auto;
}

.article-body > h2:first-child {
    margin-top: 0;
}

/* ── About ── */
/* The sections use .about-sec rather than the legacy .about-* section classes, so no old rule applies */
.about-sec {
    border-top: 1px solid var(--border-color);
}

/* Photos are never scaled above their natural size, and are shown in grey: the page's light is grey */
.plain-figure {
    max-width: 960px;
    margin: 96px auto 0;
}

.plain-figure img {
    max-width: 100%;
    height: auto;
    margin-inline: auto;
    border: 1px solid var(--rule);
    border-radius: 2px;
    filter: grayscale(1);
}

/* Founders: three portraits on hairline columns. Grey like every photo here; colour comes back on hover. */
.founders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 72px 24px;
    max-width: 1296px;
    margin: 96px auto 0;
}

.founder-photo {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    margin-top: 24px;
    overflow: hidden;
    border: 1px solid var(--rule);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--label);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter var(--t-base) var(--ease);
}

.col:hover .founder-photo img {
    filter: none;
}

.founders h3 {
    margin-top: 24px;
}

.founders p {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .founders {
        grid-template-columns: minmax(0, 1fr);
    }
}

.about-sec .certifications-grid {
    max-width: 1296px;
    margin: 96px auto 0;
}

/* ── Single post ── */
.single-article {
    background: var(--surface);
}

.article-hero {
    padding: 176px var(--m) 72px;
    text-align: center;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-category {
    color: var(--grey);
    transition: color var(--t-fast) var(--ease);
}

.article-category:hover {
    color: var(--text);
}

.article-title {
    max-width: 900px;
    margin: 24px auto 0;
    font-size: clamp(40px, 5.3vw, 76px);
}

.article-excerpt {
    max-width: 640px;
    margin: 24px auto 0;
    font-size: 18px;
    line-height: 28px;
    font-weight: 300;
    color: var(--muted);
}

.article-author {
    margin-top: 40px;
    font-size: 13px;
    line-height: 16px;
    letter-spacing: 0.02em;
    color: var(--label);
}

.article-featured-image {
    max-width: calc(1100px + 2 * var(--m));
    margin: 0 auto;
    padding: 0 var(--m);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    border-radius: 2px;
}

.article-layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 200px;
    gap: 48px;
    max-width: calc(1100px + 2 * var(--m));
    margin: 0 auto;
    padding: 96px var(--m) 128px;
}

.share-sticky,
.toc-sticky {
    position: sticky;
    top: 120px;
}

.share-sticky {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.share-label {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 16px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey);
}

.share-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.share-button {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease);
}

.share-button:hover,
.share-button.copied {
    color: var(--text);
}

.share-button svg {
    width: 18px;
    height: 18px;
}

.toc-sticky {
    max-height: calc(100vh - 160px);
    overflow-y: auto;
    scrollbar-width: none;
}

.toc-nav {
    margin-top: 16px;
}

.toc-nav a {
    display: block;
    padding: 6px 0 6px 12px;
    border-left: 1px solid var(--rule);
    font-size: 13px;
    line-height: 18px;
    color: var(--muted);
    transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}

.toc-nav a:hover,
.toc-nav a.active {
    color: var(--text);
}

.toc-nav a.active {
    border-left-color: var(--text);
}

/* Article body: every block the tso-blog skill emits */
.article-body {
    max-width: 680px;
    font-size: 17px;
    line-height: 30px;
    color: var(--muted);
    overflow-wrap: break-word;
}

.article-body > * + * {
    margin-top: 24px;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text);
    font-weight: 300;
    text-wrap: balance;
    scroll-margin-top: 96px;
}

.article-body h2 {
    position: relative;
    margin-top: 96px;
    padding-top: 24px;
    font-size: clamp(28px, 3vw, 36px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.article-body h3 {
    margin-top: 56px;
    font-size: 22px;
    line-height: 26px;
    letter-spacing: 0;
}

.article-body h4 {
    margin-top: 40px;
    font-size: 17px;
    line-height: 26px;
    font-weight: 400;
    letter-spacing: 0;
}

.article-body a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--label);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t-fast) var(--ease);
}

.article-body a:hover {
    text-decoration-color: var(--text);
}

.article-body strong {
    font-weight: 500;
    color: var(--text);
}

.article-body ul,
.article-body ol {
    padding-left: 24px;
}

.article-body ul {
    list-style: disc;
}

.article-body ol {
    list-style: decimal;
}

.article-body li + li,
.article-body li > ul,
.article-body li > ol {
    margin-top: 8px;
}

.article-body li::marker {
    color: var(--grey);
}

.article-body ol > li::marker {
    font-family: var(--font-mono);
    font-size: 12px;
}

.article-body figure,
.article-body blockquote,
.article-body .wp-block-table {
    margin-block: 48px;
}

.article-body img {
    max-width: 100%;
    height: auto;
}

.article-body .wp-block-image img {
    border: 1px solid var(--rule);
}

.article-body figcaption {
    margin-top: 12px;
    font-size: 13px;
    line-height: 20px;
    color: var(--label);
}

.article-body pre {
    margin-block: 32px;
    padding: 20px 24px;
    overflow-x: auto;
    background: var(--color-black-200);
    border: 1px solid var(--border-color);
    border-radius: 2px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 22px;
    color: var(--muted);
    tab-size: 4;
}

.article-body code {
    font-family: var(--font-mono);
    font-size: 0.875em;
}

.article-body pre code {
    font-size: inherit;
}

.article-body :not(pre) > code {
    padding: 2px 6px;
    border-radius: 2px;
    background: var(--color-black-300);
    color: var(--text);
}

.article-body :is(h2, h3, h4) > code,
.article-body :is(h2, h3, h4) .w > code {
    padding: 0;
    background: none;
}

.article-body blockquote {
    padding-left: 24px;
    border-left: 1px solid var(--grey);
}

.article-body blockquote p {
    font-size: 22px;
    line-height: 30px;
    font-weight: 300;
    color: var(--text);
}

.article-body blockquote cite {
    display: block;
    margin-top: 16px;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-body .wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 24px;
}

.article-body th,
.article-body td {
    padding: 12px 24px 12px 0;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
    vertical-align: top;
}

.article-body th {
    border-bottom-color: var(--rule);
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--muted);
}

.article-body hr {
    margin-block: 64px;
    border: 0;
    border-top: 1px solid var(--rule);
}

.article-tags,
.article-newsletter {
    max-width: calc(680px + 2 * var(--m));
    margin: 0 auto;
    padding: 0 var(--m);
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.tags-label {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.article-newsletter {
    padding-block: 72px 128px;
}

/* The newsletter plugin ships its own card; inside an article it sits under a hairline instead */
.article-newsletter .tso-newsletter-cta {
    margin: 0;
    padding: 48px 0 0;
    background: none;
    border: 0;
    border-top: 1px solid var(--rule);
    border-radius: 0;
}

.article-newsletter .tso-nl-icon {
    display: none;
}

.article-newsletter .tso-nl-heading {
    font-size: 22px;
    line-height: 26px;
    font-weight: 300;
    letter-spacing: 0;
}

/* Reading progress: a 1px line under the header, scaled by main.js */
.reading-progress {
    position: fixed;
    top: 56px;
    left: 0;
    z-index: 1001;
    width: 100%;
    height: 1px;
    background: var(--text);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        justify-items: center;
        gap: 48px;
    }

    .article-body {
        width: 100%;
    }

    .article-share {
        order: 3;
    }

    .share-sticky {
        position: static;
        flex-direction: row;
    }

    .share-buttons {
        flex-direction: row;
    }

    .article-toc {
        display: none;
    }
}

@media (max-width: 1024px) {
    .cols,
    .cols--4,
    .cols--5 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 72px;
    }

    .col h3,
    .col h4,
    .num {
        margin-top: 48px;
    }

    .cols--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 16px;
    }

    .group-head {
        margin-top: 96px;
    }

    .cols--5 {
        grid-template-columns: minmax(0, 1fr);
    }

    .section-bar-inner {
        justify-content: flex-start;
        gap: 24px;
    }

    .article-hero {
        padding: 136px var(--m) 48px;
    }

    .article-excerpt {
        font-size: 16px;
        line-height: 26px;
    }

    .article-layout {
        padding-block: 64px 96px;
    }

    .article-body h2 {
        margin-top: 72px;
    }

    .article-body pre {
        padding: 16px;
    }

    .newsletter-input-wrapper {
        flex-wrap: wrap;
    }

    .blog-pagination {
        gap: 20px;
    }
}

/* ── Reduced motion and print: all premium motion off, everything visible ── */
@media (prefers-reduced-motion: reduce), print {
    .js .rise,
    .js .article-body > *,
    .js .w,
    .js .col::before,
    .js .col.pick::after,
    .js .article-body h2::before {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .stage-hero h1,
    .stage-hero .btn-premium,
    .article-hero > *,
    .article-featured-image,
    .glow-horizon::before {
        animation: none !important;
    }

    .btn-premium,
    .btn-premium span,
    .col::after {
        transition: none !important;
    }
}
