/* === base/variables.css === */
/**
 * CSS Custom Properties (Variables)
 * Design tokens for consistent theming across the application
 */

:root {
    /* ===== COLOR SYSTEM ===== */

    /* Primary Brand Colors */
    --green: #9bb39c;
    --green-dark: #7a9a7b;
    --green-neon: #b8ff9b;

    /* Dark Theme Colors */
    --dark: #0a0a0a;
    --dark-card: #111111;
    --dark-lighter: #1a1a1a;
    --dark-hero: #0f1f0f;
    --dark-alt: #0f0f0f;
    --dark-blue: #1a1a2e;

    /* Accent Colors */
    --accent: #00ff88;
    --orange: #ff6b35;
    --red: #dc2626;
    --red-light: #ff6b6b;

    /* Text Colors */
    --text-light: #e0e0e0;
    --text-muted: #888888;
    --text-muted-light: #b0b0b0;
    --text-muted-lighter: #d0d0d0;
    --text-dark: #333333;
    --white: #ffffff;

    /* Background Colors */
    --bg-light: #f8f9fa;

    /* Aliases for backward compatibility */
    --green-primary: var(--green);
    --text: var(--text-light);
    --text-primary: var(--text-light);
    --text-dim: var(--text-muted);
    --border-color: var(--green-20);

    /* Green Opacity Variants */
    --green-03: rgb(155 179 156 / 3%);
    --green-05: rgb(155 179 156 / 5%);
    --green-10: rgb(155 179 156 / 10%);
    --green-15: rgb(155 179 156 / 15%);
    --green-20: rgb(155 179 156 / 20%);
    --green-30: rgb(155 179 156 / 30%);
    --green-40: rgb(155 179 156 / 40%);
    --green-50: rgb(155 179 156 / 50%);
    --green-80: rgb(155 179 156 / 80%);

    /* ===== SPACING SYSTEM ===== */
    --spacing-xs: 0.5rem;   /* 8px */
    --spacing-sm: 1rem;     /* 16px */
    --spacing-md: 1.5rem;   /* 24px */
    --spacing-lg: 2rem;     /* 32px */
    --spacing-xl: 2.5rem;   /* 40px */
    --spacing-2xl: 3rem;    /* 48px */
    --spacing-3xl: 3.75rem; /* 60px */
    --spacing-4xl: 5rem;    /* 80px */

    /* Section Padding */
    --section-padding: 6.25rem 0;     /* 100px vertical */
    --section-padding-sm: 3.75rem 0;  /* 60px vertical */
    --section-padding-lg: 8.75rem 0;  /* 140px vertical */

    /* Container Horizontal Padding - FLUID RESPONSIVE */

    /* Mobile: 1.5rem (24px), Desktop: 3rem (48px) */
    --container-padding-x: clamp(1.5rem, 4vw, 3rem);

    /* ===== BORDER RADIUS SYSTEM ===== */
    --radius-small: 0;    /* buttons, small elements */
    --radius-medium: 0;  /* cards, larger components */
    --radius-large: 0;   /* larger cards, panels */
    --radius-xl: 0;      /* hero elements, major sections */
    --radius-circle: 50%;   /* avatars, badges */

    /* ===== ICON SIZE SYSTEM ===== */
    --icon-sm: 28px;
    --icon-md: 40px;
    --icon-lg: 48px;
    --icon-xl: 60px;

    /* ===== GRADIENT TOKENS ===== */
    --gradient-dark-card: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-alt) 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark) 0%, var(--dark-lighter) 50%, var(--dark-hero) 100%);

    /* ===== TYPOGRAPHY ===== */

    /* Font Families */
    --font-sans: -apple-system, blinkmacsystemfont, "Segoe UI", sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    --font-mono-short: 'SF Mono', consolas, monospace;

    /* ===== LAYOUT ===== */

    /* Container Max-Widths */
    --container-sm: 800px;
    --container-md: 900px;
    --container-lg: 1000px;
    --container-xl: 1200px;
    --container-2xl: 1400px;

    /* ===== Z-INDEX SYSTEM ===== */
    --z-base: 1;
    --z-dropdown: 10;
    --z-sticky: 100;
    --z-modal: 1000;
    --z-tooltip: 10000;
    --z-notification: 10001;
}

/* === base/reset.css === */
/**
 * CSS Reset & Base Styles
 * Normalize browser defaults and set base styles
 */

/* ===== RESET ===== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    background: var(--dark);
    color: var(--text-light);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20"><circle cx="10" cy="10" r="8" fill="%239bb39c" opacity="0.5"/></svg>') 10 10, auto;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: clip;
    max-width: 100vw;
}

/* ===== ACCESSIBILITY ===== */

/* Skip to main content link */
.skip-to-main {
    background: var(--green);
    border-radius: var(--radius-small);
    color: var(--dark);
    font-weight: 600;
    left: -9999px;
    padding: 1rem 2rem;
    position: absolute;
    top: 1rem;
    z-index: 9999;
}

.skip-to-main:focus {
    left: 1rem;
    outline: 2px solid var(--green-neon);
    outline-offset: 2px;
}

/* Reduced motion preference - removed for clean CSS */

/* ===== LINKS ===== */

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--green-neon);
}

/* ===== UTILITY CLASSES ===== */

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

.text-mono {
    font-family: var(--font-mono);
}

.text-sans {
    font-family: var(--font-sans);
}

.text-green {
    color: var(--green);
}

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

/* Tech elements that need monospace font */
.terminal-prompt,
.service-badge,
.stat-value,
.tech-name,
.skill-tag,
.process-number,
code,
pre {
    font-family: var(--font-mono);
}

/* ===== LAYOUT UTILITIES ===== */

/* NOTE: .container is defined in layout/grid.css */

/* NOTE: .section styles are defined in layout/grid.css */

/* === base/typography.css === */
/**
 * Typography System - Fluid & Responsive
 * Modern fluid typography using clamp() for smooth scaling across devices
 * Headings, paragraphs, and text styles
 */

/* ===== HEADINGS ===== */

h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
}

/* h1: Scales from 2rem (mobile) to 4.5rem (desktop) */
h1 {
    font-size: clamp(2rem, 5vw + 1rem, 4.5rem);
}

/* h2: Scales from 1.75rem (mobile) to 3rem (desktop) */
h2 {
    font-size: clamp(1.75rem, 4vw + 0.5rem, 3rem);
}

/* h3: Scales from 1.5rem (mobile) to 2rem (desktop) */
h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
}

/* h4: Scales from 1.25rem (mobile) to 1.75rem (desktop) */
h4 {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
}

/* h5: Scales from 1.1rem (mobile) to 1.5rem (desktop) */
h5 {
    font-size: clamp(1.1rem, 2vw + 0.3rem, 1.5rem);
}

/* h6: Scales from 1rem (mobile) to 1.25rem (desktop) */
h6 {
    font-size: clamp(1rem, 1.5vw + 0.3rem, 1.25rem);
}

/* ===== PARAGRAPHS ===== */

p {
    color: var(--text-light);
    font-size: clamp(1rem, 0.5vw + 0.85rem, 1.125rem); /* Fluid body text */
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 65ch; /* Optimal reading length */
}

/* ===== SECTION TITLES & SUBTITLES ===== */

.section-title {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem); /* Fluid section titles */
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
}

.section-title::before {
    color: var(--green-neon);
    content: '// ';
    /* stylelint-disable-next-line declaration-block-no-duplicate-properties -- fallback above for browsers without alt text */
    content: '// ' / '';
    font-family: var(--font-mono);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 1vw + 0.5rem, 1.2rem); /* Fluid subtitles */
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    text-align: left;
}

/* ===== TEXT HIGHLIGHTS ===== */

.highlight {
    color: var(--green);
    position: relative;
}

/* ===== RESPONSIVE - MOBILE FONT ADJUSTMENTS ===== */

@media (width <= 640px) {
    /* Buttons text size */
    .btn {
        font-size: 0.95rem;
        padding: 0.9rem 1.8rem;
    }

    /* Smaller spacing for mobile readability */
    .section-title {
        margin-bottom: 1.5rem;
    }

    .section-subtitle {
        margin-bottom: 2.5rem;
    }

    /* Tighten paragraph spacing on mobile */
    p {
        margin-bottom: 1rem;
    }
}

/* === layout/grid.css === */
/**
 * Grid & Layout System
 * Container, sections, and basic layout utilities
 */

/* ===== CONTAINER ===== */

.container {
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 0 var(--container-padding-x);
}

/* Container Modifiers */
.container--narrow {
    max-width: var(--container-md);
}

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

/* ===== SECTION SPACING ===== */

.section {
    padding: 5rem var(--container-padding-x);  /* 80px vertical, 48px horizontal */
}

.section--large {
    padding: 6.25rem var(--container-padding-x);  /* 100px vertical */
}

.section--small {
    padding: 4rem var(--container-padding-x);  /* 64px vertical */
}

.section-dark {
    background: var(--dark-card);
}

.section-darker {
    background: var(--dark);
}

/* ===== GRID BACKGROUNDS ===== */

.grid-bg {
    background-image:
        linear-gradient(var(--green-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-05) 1px, transparent 1px);
    background-size: 50px 50px;
    height: 100%;
    left: 0;
    opacity: 0.3;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .grid-bg { animation: none; }
}

/* === layout/header.css === */
/**
 * Header & Navigation
 * Top navigation bar, logo, menu links, mobile menu
 * Mobile breakpoint: 1024px (desktop nav shows at 1024px+)
 */

/* ===== MAIN NAVIGATION ===== */

.site-nav {
    backdrop-filter: blur(20px);
    background: rgb(10 10 10 / 80%);
    border-bottom: 1px solid var(--green-20);
    padding: 1.5rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: var(--z-modal);
}

/* Homepage: transparent over the hero photo while the page is within 24 px of the top. A script in the
   <head> (layout-start.php) sets html.nav-top before the first paint and keeps it updated; without JS
   the class is never set, so the header stays solid (docs/specs/home-header-clients.md). */
.nav-top .page-home .site-nav {
    backdrop-filter: none;
    background: transparent;
    border-bottom-color: transparent;
}

@media (prefers-reduced-motion: no-preference) {
    .site-nav {
        transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    }
}

.nav-container {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 0 var(--container-padding-x);
}

/* ===== LOGO ===== */

.logo {
    align-items: center;
    color: var(--green);
    display: flex;
    font-size: 1.2rem;
    font-weight: 700;
    gap: var(--spacing-xs);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--green-neon);
}

.logo:hover .logo-img {
    filter: brightness(1.3);
}

.logo-img {
    height: 40px;
    transition: filter 0.3s ease;
    width: auto;
}

.logo-text {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* ===== DESKTOP NAVIGATION LINKS ===== */

.nav-links {
    align-items: center;
    display: flex;
    gap: var(--spacing-2xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-links a::before {
    color: var(--green);
    content: '//';
    margin-right: 0.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-links a:hover::before {
    opacity: 1;
}

.nav-links a:hover {
    color: var(--green-neon);
}

/* Active state for scroll spy */
.nav-links a.active {
    color: var(--green);
}

.nav-links a.active::before {
    opacity: 1;
}

/* ===== LANGUAGE SWITCHER (DESKTOP) ===== */

.lang-switcher {
    align-items: center;
    display: flex;
    gap: var(--spacing-xs);
    margin-left: 2rem;
}

.lang-link {
    border-radius: var(--radius-small);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.lang-link:hover {
    color: var(--green-neon);
}

.lang-link.active {
    background: var(--green-15);
    color: var(--green);
}

/* ===== MOBILE MENU TOGGLE BUTTON ===== */

.mobile-menu-toggle {
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem;
    z-index: calc(var(--z-modal) + 2);
}

.mobile-menu-toggle span {
    background: var(--green);
    border-radius: 0;
    height: 2px;
    transition: all 0.3s ease;
    width: 25px;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU OVERLAY ===== */

.mobile-menu-overlay {
    /* Height of the band at the top that the close button sits in and the menu content is clipped under: the single
       source for the clip line, the content's top padding, the bottom spacer, the links' scroll margin and the close
       button's box */
    --mobile-menu-band: 5.5rem;

    backdrop-filter: blur(20px);
    background: rgb(10 10 10 / 98%);

    /* Pinned to all four edges, so it follows the visible viewport as the browser bars show and hide */
    inset: 0;
    opacity: 0;
    position: fixed;
    transition: all 0.3s ease;
    visibility: hidden;

    /*
     * Above the cookie banner (--z-tooltip) and the scroll progress bar, so nothing of the page covers the open menu.
     * This equals --z-notification of the cookie settings modal on purpose (no integer gap between the two): the modal
     * comes later in the DOM (includes/cookie-banner.php after header.php), wins the tie and stays on top of the menu.
     */
    z-index: calc(var(--z-tooltip) + 1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
    font-size: 3rem;
    line-height: 1;

    /* The box ends at the clip line of the menu content (the band), so it does not cover a link scrolled just below:
       top 1rem + top padding 1rem + one 3rem line + the bottom padding make up the band */
    padding: 1rem 1rem calc(var(--mobile-menu-band) - 5rem);
    position: absolute;
    right: 1rem;
    top: 1rem;

    /* The rotation on hover pivots on the glyph: the box is 0.5rem taller at the top, so its centre sits 0.25rem
       above the glyph's centre */
    transform-origin: 50% calc(50% + 0.25rem);
    transition: all 0.3s ease;
    z-index: calc(var(--z-tooltip) + 2);
}

.mobile-menu-close:hover {
    color: var(--green-neon);
    transform: rotate(90deg);
}

.mobile-menu-close span {
    display: block;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    align-items: center;

    /* Nothing scrolls under the close button: the band above the content is clipped. The clip stays 0.5rem above
       the top padding, so the focus outline of the first item (2px + 4px offset) shows in full at rest. The scroll
       area itself keeps the full screen height, so one wheel step (a page in Firefox) still reaches the end on a
       short screen. */
    clip-path: inset(var(--mobile-menu-band) 0 0);
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;

    /* The top keeps clear of the close button; the bottom is lg plus the shrinkable spacer below, so on a tall screen
       the space above and below the menu is the same (band + 0.5rem) and on a short one only lg stays below the menu. */
    padding-bottom: var(--spacing-lg);
    padding-top: calc(var(--mobile-menu-band) + 0.5rem);
}

/* Bottom spacer: gives way first when the menu does not fit */
.mobile-menu-content::after {
    content: '';
    flex: 0 1 calc(var(--mobile-menu-band) + 0.5rem - var(--spacing-lg));
    min-height: 0;
}

/* Safe centering: centered while it fits, starts at the top when taller than the screen */
.mobile-menu-content > nav {
    flex-shrink: 0;
    margin-block: auto;
}

/* A focused link is scrolled into view below the clipped band, not under the close button. This is set on the links,
   not as scroll-padding on the scroll area, which would shorten Firefox's wheel and page scroll steps. The margin is
   the band plus the content's 0.5rem top gap plus 0.5rem that keeps the focus outline out of the clipped band too. */
.mobile-menu-content a {
    scroll-margin-top: calc(var(--mobile-menu-band) + 1rem);
}

/* ===== MOBILE NAVIGATION LINKS ===== */

.mobile-nav-links {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-links a {
    color: var(--text-light);
    display: inline-flex;
    align-items: center;
    font-size: 2rem;
    font-weight: 600;
    min-height: 44px;
    padding: 0.5rem 1rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-nav-links a::after {
    background: var(--green);
    bottom: -5px;
    content: '';
    height: 2px;
    left: 0;
    position: absolute;
    transition: width 0.3s ease;
    width: 0;
}

.mobile-nav-links a:hover {
    color: var(--green);
}

.mobile-nav-links a:hover::after {
    width: 100%;
}

/* Active state for scroll spy */
.mobile-nav-links a.active {
    color: var(--green);
}

.mobile-nav-links a.active::after {
    width: 100%;
}

/* ===== LANGUAGE SWITCHER (MOBILE) ===== */

.mobile-lang-switcher {
    display: flex;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.mobile-lang-link {
    border-radius: var(--radius-small);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.mobile-lang-link:hover {
    color: var(--green-neon);
}

.mobile-lang-link.active {
    background: var(--green-15);
    color: var(--green);
}

/* ===== RESPONSIVE BREAKPOINTS ===== */

/**
 * Breakpoint Strategy:
 * BASE (0-1023px): Mobile & Tablet - hamburger menu
 * LG (1024px+): Desktop - full navigation
 */

/* MOBILE & TABLET: Show hamburger menu, hide desktop nav */
@media (width <= 1023px) {
    /* Hide desktop navigation */
    .nav-links {
        display: none;
    }

    .lang-switcher {
        display: none;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Logo adjustments for mobile */
    .logo-img {
        height: 35px;
    }

    /* Nav container fluid padding */
    .nav-container {
        padding: 0 clamp(1rem, 4vw, 2rem);
    }

    /* Mobile nav - fluid typography */
    .mobile-nav-links a {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .mobile-lang-link {
        font-size: clamp(1rem, 3vw, 1.2rem);
        padding: clamp(0.6rem, 2vw, 0.8rem) clamp(1rem, 3vw, 1.5rem);
    }
}

/* DESKTOP: Show full navigation, hide hamburger */
@media (width >= 1024px) {
    /* Hide mobile menu elements */
    .mobile-menu-toggle {
        display: none;
    }

    .mobile-menu-overlay {
        display: none;
    }

    /* Desktop nav visible */
    .nav-links {
        display: flex;
    }

    .lang-switcher {
        display: flex;
    }
}

/* === layout/footer.css === */
/**
 * Footer Layout
 * Site footer, footer grid, links, contact info
 */

/* ===== MAIN FOOTER ===== */

.site-footer {
    background: var(--dark-card);
    border-top: 1px solid var(--green-20);
    color: var(--text-light);
    padding: 0 0 var(--spacing-sm);
}

.site-footer > .footer-container {
    padding-top: var(--spacing-xl);
}

.footer-container {
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 0 var(--container-padding-x);
}

/* ===== LINK COLUMNS: six equal columns in two rows (docs/specs/footer-layout.md) ===== */

.footer-columns {
    display: grid;
    gap: var(--spacing-2xl);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.footer-col__title {
    border-bottom: 1px solid var(--green-20);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-md);
    padding-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 2px;
}

.footer-col a {
    color: var(--text-light);
    display: inline-block;
    font-size: 0.95rem;
    opacity: 0.85;
    padding: 3px 0;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-col a:hover {
    color: var(--green-neon);
    opacity: 1;
}

@media (width <= 1023px) {
    .footer-columns {
        gap: var(--spacing-xl);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/* ===== FOOTER BOTTOM: one quiet line under a rule (David 25 Nov 2026) ===== */

.footer-bottom {
    align-items: baseline;
    border-top: 1px solid var(--green-20);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-lg);
    justify-content: space-between;
    margin-top: var(--spacing-2xl);
    padding-top: var(--spacing-md);
}

.footer-bottom p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-md);
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-links a {
    color: var(--text-muted-light);
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.footer-bottom-links__privacy a {
    color: var(--text-muted);
}

.footer-bottom-links a:hover {
    color: var(--green-neon);
}

/* ===== RESPONSIVE ===== */

@media (width <= 640px) {
    /* Footer spacing + bottom clearance for back-to-top button */
    .site-footer {
        padding: 0 0 80px;
    }

    .site-footer > .footer-container {
        padding-top: var(--spacing-xl);
    }

    .footer-columns {
        gap: var(--spacing-xl);
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* === components/buttons.css === */
/**
 * Button Components
 * Primary, secondary, and button modifiers
 */

/* ===== BASE BUTTON ===== */

.btn {
    border: none;
    border-radius: var(--radius-small);
    cursor: pointer;
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1.2rem 3rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

/* ===== BUTTON VARIANTS ===== */

.btn-primary {
    background: var(--green);
    border: 2px solid var(--green);
    color: var(--dark);
}

.btn-primary:hover {
    background: transparent;
    box-shadow: none;
    color: var(--green);
    transform: translateY(-3px);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}

.btn-secondary:hover {
    background: var(--green);
    box-shadow: none;
    color: var(--dark);
    transform: translateY(-3px);
}

/* ===== BUTTON MODIFIERS ===== */

/* Shine effect */
.btn-shine {
    overflow: hidden;
    position: relative;
}

.btn-shine::before {
    background: linear-gradient(90deg, transparent, rgb(255 255 255 / 30%), transparent);
    content: '';
    height: 100%;
    left: -100%;
    position: absolute;
    top: 0;
    transition: left 0.3s ease;
    width: 100%;
}

.btn-shine:hover::before {
    left: 100%;
}

/* Size modifiers */
.btn-large {
    font-size: 1.1rem;
    padding: 1.25rem 3rem;
}

.btn-small {
    font-size: 0.9rem;
    padding: 0.8rem 1.5rem;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (width <= 640px) {
    .btn {
        font-size: 0.875rem;
        letter-spacing: 0.5px;
        min-height: 48px;
        padding: 1rem 1.5rem;
    }

    .btn-large {
        font-size: 1rem;
        min-height: 48px;
        padding: 1.1rem 2rem;
    }

    .btn-small {
        min-height: 48px;
    }
}


/* === components/cards.css === */
/**
 * Card Components
 * Portfolio cards, service cards, and other card-based UI elements
 * Base .card system with modifiers for consistency across all pages
 */

/* ===== BASE CARD SYSTEM ===== */

/* Shared by: solution-card, fact-card, result-card, expect-card, challenge-item, etc. */

.card {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    padding: 2.5rem;
    transition: border-color 0.2s ease;
}

/* Sharp edges, no lift or glow (docs/specs/subpages-redesign.md). */
.card:hover {
    border-color: var(--green-40);
}

/* Card Modifiers - Background */
.card--glass {
    backdrop-filter: blur(10px);
    background: rgb(26 26 26 / 60%);
}

.card--glass:hover {
    background: rgb(26 26 26 / 80%);
}

.card--dark {
    background: var(--dark);
}

.card--gradient {
    background: linear-gradient(135deg, var(--dark-lighter) 0%, var(--dark-alt) 100%);
}

.card--highlight {
    background: var(--green-10);
    border-color: var(--green);
}

/* Card Modifiers - Layout */
.card--center {
    text-align: center;
}

.card--padding-large {
    box-sizing: border-box;
    height: 100%;
    padding: 3rem;
}

.card--padding-xl {
    padding: 3.5rem;
}

.card--padding-small {
    padding: 2rem;
}

.card--padding-compact {
    padding: 1.5rem;
}

/* Card Modifiers - Borders */
.card--border-left {
    border-left: 4px solid var(--green);
}

.card--border-left-orange {
    border-left: 4px solid var(--orange);
}

.card--border-left-red {
    border-left: 4px solid var(--red-light);
}

.card--radius-small {
    border-radius: var(--radius-small);
}

/* Card Modifiers - Hover Effects */
.card--hover-subtle {
    box-shadow: none;
}

.card--hover-intense:hover {
    box-shadow: none;
}

.card--hover-shift:hover {
    transform: translateX(5px);
}

/* Card Modifiers - Animations */
.card--fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
}

/* ===== PORTFOLIO CARD BASE ===== */

.portfolio-card {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-medium);
    display: block;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-card::before {
    background: linear-gradient(90deg, var(--green) 0%, var(--green-50) 100%);
    content: '';
    height: 4px;
    left: 0;
    opacity: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

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

/* ===== CARD UTILITIES ===== */

.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover-lift:hover {
    box-shadow: none;
    transform: translateY(-5px);
}

/* ===== PORTFOLIO CARD DETAILS ===== */

.portfolio-image {
    align-items: center;
    background: var(--gradient-dark-card);
    display: flex;
    height: 280px;
    justify-content: center;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.portfolio-image img {
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    width: 100%;
}

.portfolio-image picture {
    display: block;
    height: 100%;
}

.portfolio-card:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-overlay {
    align-items: center;
    background: rgb(10 10 10 / 80%);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.view-case {
    color: var(--green);
    font-size: 1.1rem;
    font-weight: 600;
}

.portfolio-content {
    padding: var(--spacing-xl);
}

.portfolio-client {
    margin-bottom: 12px;
}

.client-logo-small {
    background: var(--green-10);
    border-radius: var(--radius-small);
    color: var(--green);
    display: inline-block;
    font-family: var(--font-mono-short);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 4px 10px;
    text-transform: uppercase;
}

.portfolio-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 12px;
}

.portfolio-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.85;
}

.portfolio-meta {
    border-top: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(4, 1fr);
    padding-top: 24px;
}

.portfolio-meta-item {
    text-align: center;
}

.portfolio-meta-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.portfolio-meta-value {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 0.95rem;
    font-weight: 600;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

@media (width <= 640px) {
    .portfolio-image {
        height: 200px;
    }

    .portfolio-content {
        padding: 1.5rem;
    }

    .portfolio-card h3 {
        font-size: 1.25rem;
        margin-bottom: 10px;
    }

    .portfolio-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1rem;
    }

    .portfolio-meta {
        gap: 1rem;
        grid-template-columns: repeat(2, 1fr);
        padding-top: 1rem;
    }

    .portfolio-meta-label {
        font-size: 0.65rem;
    }

    .portfolio-meta-value {
        font-size: 0.85rem;
    }
}

/* === components/hero.css === */
/**
 * Hero Sections - Base Styles
 * All hero sections use class="hero" + a page-specific class
 * E.g. class="hero about-hero", class="hero contact-hero"
 *
 * Page-specific overrides only when needed (in the page CSS)
 */

/* ===== BASE HERO ===== */

.hero {
    background: var(--gradient-hero);
    overflow: hidden;
    padding: clamp(6rem, 15vh, 10rem) var(--container-padding-x) clamp(4rem, 10vh, 6rem);
    position: relative;
}

/* Grid background */
.hero .grid-bg {
    background-image: radial-gradient(circle, var(--green-15) 1px, transparent 1px);
    background-size: 30px 30px;
    height: 100%;
    left: 0;
    opacity: 0.3;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

/* Hero content */
.hero-content {
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 0 var(--container-padding-x);
    position: relative;
    z-index: var(--z-base);
}

/* Hero label badge */
.hero-label {
    background: rgb(155 179 156 / 10%);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    color: var(--green);
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
    margin-bottom: 2rem;
    padding: 8px 16px;
    text-transform: uppercase;
}

/* Hero typography */
.hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    color: var(--text-light);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 3rem;
    max-width: var(--container-sm);
    opacity: 0.8;
}

/* ===== HOMEPAGE HERO (fullscreen variant) ===== */

.homepage-hero {
    align-items: center;
    background: var(--gradient-hero);
    display: flex;
    min-height: 100svh;
    overflow: hidden;
    padding: 130px 0 80px;
    position: relative;
}

/* Background photo (docs/specs/home-hero-photo.md): tinted in the file, darkened on the text side here.
   Cases by width and pixel density; index.php preloads the same file with the same media queries
   (tests/browser/home-hero.spec.js checks that the preloaded file is the one the CSS shows).
   Up to 900 px the hero is portrait, so those files are a 3:4 crop. */
.homepage-hero__photo {
    background: url("/assets/img/hero/hero-data-2400.webp") center / cover no-repeat;
    inset: 0;
    position: absolute;
}

/* The 85 % stop sits at the right edge of the text column (up to 760 px from the container's left edge),
   wherever the centred container puts it, so the text never sits on a lighter part of the photo. */
.homepage-hero__photo::after {
    background: linear-gradient(
        90deg,
        rgb(7 12 8 / 92%) 0%,
        rgb(7 12 8 / 85%) max(60%, calc(max(0px, 50% - var(--container-xl) / 2) + var(--container-padding-x) + 760px)),
        rgb(7 12 8 / 40%) max(85%, calc(max(0px, 50% - var(--container-xl) / 2) + var(--container-padding-x) + 1000px)),
        rgb(7 12 8 / 25%) 100%
    );
    content: '';
    inset: 0;
    position: absolute;
}

@media (900px < width <= 1600px) and (resolution < 2dppx) {
    .homepage-hero__photo {
        background-image: url("/assets/img/hero/hero-data-1600.webp");
    }
}

@media (width <= 900px) and (resolution >= 2dppx) {
    .homepage-hero__photo {
        background-image: url("/assets/img/hero/hero-data-portrait-1000.webp");
    }
}

@media (width <= 900px) and (resolution < 2dppx) {
    .homepage-hero__photo {
        background-image: url("/assets/img/hero/hero-data-portrait-600.webp");
    }
}

@media (width <= 900px) {
    /* Text runs across the full width here, so the photo is darker everywhere. */
    .homepage-hero__photo::after {
        background: linear-gradient(180deg, rgb(7 12 8 / 86%) 0%, rgb(7 12 8 / 90%) 60%, rgb(7 12 8 / 95%) 100%);
    }
}

.hero-layout {
    display: block;
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 0 var(--container-padding-x);
    position: relative;
    width: 100%;
    z-index: calc(var(--z-base) + 1);
}

.homepage-hero .hero-content {
    margin: 0;
    max-width: 760px;
    padding: 0;
    position: relative;
    z-index: calc(var(--z-base) + 1);
}

.homepage-hero h1 {
    font-family: var(--font-sans);
    font-size: clamp(3.25rem, 6.5vw, 6.25rem);
    font-weight: 900;
    line-height: 1.08;
    margin-bottom: 1.5rem;
    text-wrap: auto;
}

.homepage-hero .hero-subtitle {
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    line-height: 1.55;
    margin-bottom: 2rem;
    max-width: 680px;
}

.homepage-hero h1 .highlight {
    color: var(--green);
    display: inline-block;
    position: relative;
}

.homepage-hero h1 .highlight::after {
    animation: blink 1s infinite;
    color: var(--green-neon);
    content: '_';
}

.hero-ctas {
    display: flex;
    gap: var(--spacing-md);
}

/* ===== SERVICE HERO (has a badge) ===== */

.service-badge {
    background: rgb(155 179 156 / 10%);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    color: var(--green);
    display: inline-block;
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 2rem;
    padding: 8px 16px;
}

.service-hero-cta {
    display: flex;
    gap: var(--spacing-md);
}

.terminal-prompt {
    color: var(--green-neon);
    margin-right: 0.5rem;
}

/* ===== RESPONSIVE - MOBILE OPTIMIZATION ===== */

@media (width <= 1100px) {
    .homepage-hero h1 {
        font-size: clamp(3.25rem, 6.2vw, 5rem);
    }
}

@media (width <= 900px) {
    .homepage-hero {
        min-height: auto;
        padding: 120px 0 70px;
    }

    .homepage-hero .hero-content {
        max-width: 760px;
    }

    .homepage-hero h1 {
        font-size: clamp(3.5rem, 10vw, 5.5rem);
    }

}

/* Extra small phones (390px and below) - iPhone 12, iPhone 12 Pro */
@media (width <= 400px) {
    .homepage-hero h1 {
        font-size: clamp(2.25rem, 7vw, 5.5rem);
    }

}

/* Mobile (up to 640px): buttons stacked, full width */
@media (width <= 640px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        justify-content: center;
        width: 100%;
    }

    /* Homepage hero - smaller height on mobile */
    .homepage-hero {
        min-height: auto;
        padding: 8rem 0 4rem;
    }

}

/* === components/forms.css === */
/**
 * Form Components
 * Contact forms, inputs, textareas, checkboxes, submit buttons
 */

/* ===== FORM CONTAINER ===== */

.contact-form-container {
    background: var(--dark-lighter);
    border: 2px solid var(--green-30);
    border-radius: var(--radius-small);
    margin: 4rem auto 0;
    max-width: var(--container-md);
    padding: 3rem;
    position: relative;
    text-align: left;
}

.contact-form-container::before {
    background: var(--dark-card);
    color: var(--green);
    content: '> contact_form.init()';
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    left: 20px;
    padding: 0 10px;
    position: absolute;
    top: -15px;
}

.contact-form-wrapper h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.form-subtitle {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.contact-form {
    /* max-width and margin handled in pages/contact.css */
}

/* ===== FORM GROUP ===== */

.form-group {
    margin-bottom: 2rem;
}

/* Honeypot field - hidden off-screen for accessibility tools but invisible to bots */
.form-group--honeypot {
    left: -9999px;
    opacity: 0;
    position: absolute;
}

.form-group label {
    color: var(--green);
    display: block;
    font-family: var(--font-mono-short);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.form-group label::before {
    color: var(--green-neon);
    content: '$ ';
}

/* ===== FORM CONTROLS ===== */

.form-control,
.form-group input,
.form-group textarea {
    background: var(--dark);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    color: var(--text-light);
    font-family: var(--font-mono-short);
    font-size: 1rem;
    padding: 1rem 1.25rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control:focus,
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-10);
}

/* Enhanced focus for keyboard navigation */
.form-control:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    box-shadow: 0 0 0 3px var(--green-20);
}

.form-control::placeholder {
    color: rgb(224 224 224 / 30%);
    font-family: var(--font-mono-short);
}

textarea.form-control,
.form-group textarea {
    font-family: var(--font-mono-short);
    line-height: 1.6;
    min-height: 150px;
    resize: vertical;
}

/* ===== FORM ROW ===== */

.form-row {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: var(--spacing-lg);
}

/* ===== reCAPTCHA ===== */

/* On mobile the v3 badge covered the bottom-left corner of the content (UX audit 2026-08-22).
   Hiding it is allowed provided the form carries the .recaptcha-notice text. */
.grecaptcha-badge {
    visibility: hidden;
}

.recaptcha-notice {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.recaptcha-notice a {
    color: var(--text-muted);
    text-decoration: underline;
}

.recaptcha-notice a:hover,
.recaptcha-notice a:focus-visible {
    color: var(--green);
}

/* ===== CHECKBOX ===== */

.form-checkbox {
    align-items: flex-start;
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.checkbox-label {
    align-items: flex-start;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    font-size: 0.9rem;
    gap: 0.75rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--green);
    cursor: pointer;
    height: 20px;
    margin-top: 2px;
    width: 20px;
}

/* ===== SUBMIT BUTTON ===== */

.form-submit {
    background: var(--green);
    border: 2px solid var(--green);
    border-radius: var(--radius-small);
    color: var(--dark);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 1.25rem;
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: 100%;
}

.form-submit:hover:not(:disabled) {
    background: transparent;
    box-shadow: 0 0 30px var(--green-30);
    color: var(--green);
}

.form-submit:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ===== FORM MESSAGES ===== */

.form-message {
    border-radius: var(--radius-small);
    display: none;
    font-family: var(--font-mono-short);
    font-size: 0.95rem;
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
}

.form-message.success {
    background: var(--green-20);
    border: 1px solid var(--green);
    color: var(--green-neon);
    display: block;
}

.form-message.error {
    background: rgb(255 107 53 / 20%);
    border: 1px solid var(--orange);
    color: var(--orange);
    display: block;
}

.form-message::before {
    color: var(--green-neon);
    content: '> ';
}


/* === components/faq.css === */
/**
 * FAQ Component (docs/specs/subpages-redesign.md)
 * Questions as rows divided by thin lines: bold question, answer below. No numbers and no Q:/A: prefixes.
 * Shared across service pages, guides and the contact page.
 */

/* ===== FAQ GRID ===== */

.faq-grid {
    border-bottom: 1px solid var(--green-20);
    display: grid;
}

.section-title + .faq-grid {
    margin-top: 3rem;
}

/* ===== FAQ ITEM ===== */

.faq-item {
    border-top: 1px solid var(--green-20);
    display: grid;
    gap: 0.75rem;
    padding: var(--spacing-lg) 0;
}

.faq-question-content {
    flex: 1;
}

.faq-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    max-width: 60ch;
}

/* ===== FAQ TAGS (optional) ===== */

.faq-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.faq-tag {
    border: 1px solid var(--green-20);
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 4px 10px;
    text-transform: uppercase;
}

/* ===== FAQ ANSWER ===== */

.faq-answer p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.75;
    margin: 0 0 1rem;
    max-width: 75ch;
    opacity: 0.9;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */

@media (width <= 640px) {
    .faq-item h3 {
        font-size: 1.1rem;
    }

    .faq-answer p {
        font-size: 1rem;
    }
}

/* === components/cta.css === */
/**
 * CTA (Call-to-Action) Component
 * Shared green gradient CTA section across all pages
 * Used on: home, services, about, portfolio
 */

/* ===== CTA SECTION ===== */

.cta-section {
    background: var(--dark-alt);
    border-top: 1px solid var(--green-20);
    color: var(--white);
    overflow: hidden;

    padding: var(--spacing-4xl) var(--container-padding-x);
    position: relative;
    text-align: left;
}

.cta-section .container {
    margin: 0 auto;
    max-width: var(--container-xl);
    position: relative;
    z-index: 1;
}

/* Grid pattern background */
.cta-section::before {
    background:
        linear-gradient(var(--green-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-05) 1px, transparent 1px);
    background-size: 100px 100px;
    content: '';
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

/* Heading */
.cta-section h2 {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw + 1rem, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
}

/* Highlighted part of heading */
.cta-section h2 .highlight {
    color: var(--green-neon);
}

/* Subtitle */
.cta-section p {
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin: 0 0 3rem;
    max-width: var(--container-md);
    opacity: 0.8;
    text-align: left;
}

/* ===== RESPONSIVE ===== */

@media (width <= 768px) {
    .cta-section p {
        font-size: 1.1rem;
    }
}

/* === components/lead-form.css === */
/**
 * Lead-form component: inline enquiry form on content pages
 * (services, case studies, homepage). Two columns: intro with the next steps, and the form
 * (field styles: .contact-form in pages/contact.css). docs/specs/home-lower-sections.md.
 */

/* The hero CTA jumps to the section anchor; otherwise the fixed .site-nav (~93 px) covers the heading. */
.lead-form-section {
    scroll-margin-top: 100px;
}

.lead-form-layout {
    align-items: start;
    display: grid;
    gap: var(--spacing-4xl);
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    margin: 0 auto;
    max-width: var(--container-xl);
}

.lead-form-section .lead-form-intro .section-subtitle {
    margin-bottom: var(--spacing-lg);
}

.lead-form-steps {
    border-top: 1px solid var(--green-20);
    list-style: none;
    margin: 0 0 var(--spacing-lg);
    padding: 0;
}

.lead-form-steps li {
    border-bottom: 1px solid var(--green-20);
    color: var(--text-light);
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    padding: 1.1rem 0;
}

.lead-form-steps__num {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.lead-form-email {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

.lead-form-email a {
    color: var(--green);
    font-family: var(--font-mono);
    text-decoration: none;
}

.lead-form-email a:hover,
.lead-form-email a:focus-visible {
    text-decoration: underline;
}

@media (width <= 900px) {
    .lead-form-layout {
        gap: var(--spacing-2xl);
        grid-template-columns: 1fr;
    }
}

/* === components/guide-trust-strip.css === */
/**
 * Guide Trust Strip
 * Slim Microsoft CSP credibility band, rendered just above the final CTA on D365 guide pages.
 * Text-only by design (no Microsoft logo or partner badge — brand compliance).
 */

.guide-trust-strip {
    background: var(--dark-card);
    border-top: 1px solid var(--green-20);
    border-bottom: 1px solid var(--green-20);
    padding: var(--spacing-2xl) var(--container-padding-x);
}

.guide-trust-strip .container {
    border-left: 2px solid var(--green-neon);
    margin: 0 auto;
    max-width: var(--container-xl);
    padding-left: var(--spacing-lg);
}

.guide-trust-strip__eyebrow {
    color: var(--green-neon);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    margin: 0 0 0.6rem;
}

.guide-trust-strip__text {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    max-width: var(--container-md);
    opacity: 0.9;
}

@media (width <= 768px) {
    .guide-trust-strip {
        padding-block: var(--spacing-xl);
    }

    .guide-trust-strip__text {
        font-size: 1.05rem;
    }
}

/* === components/cookie-banner.css === */
/**
 * Cookie Banner & Modal
 * Cookie consent banner and settings modal
 */

        .cookie-settings-btn {
            background: var(--green);
            border: 2px solid var(--green);
            border-radius: var(--radius-small);
            color: var(--dark);
            cursor: pointer;
            display: inline-block;
            font-family: var(--font-sans);
            font-size: 1rem;
            font-weight: 600;
            letter-spacing: 0.5px;
            margin: 20px 0;
            padding: 12px 24px;
            text-decoration: none;
            text-transform: uppercase;
            transition: all 0.3s ease;
        }

        .cookie-settings-btn:hover {
            background: transparent;
            box-shadow: 0 0 20px var(--green-40);
            color: var(--green);
        }

.cookie-banner {
    animation: slideUp 0.4s ease-out;
    background: var(--dark-card);
    border-top: 2px solid var(--green);
    bottom: 0;
    box-shadow: 0 -4px 20px var(--green-30);
    left: 0;
    position: fixed;
    right: 0;
    z-index: var(--z-tooltip);
}

.cookie-banner-content {
    align-items: center;
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr auto;
    margin: 0 auto;
    max-width: var(--container-xl);
    padding: 20px 40px;
}

@media (width <= 768px) {
    .cookie-banner-content {
        gap: 12px;
        grid-template-columns: 1fr;
        padding: 14px 16px;
    }
}

.cookie-banner-text {
    align-items: flex-start;
    display: flex;
    flex: 1;
    gap: var(--spacing-md);
}

.cookie-icon {
    flex-shrink: 0;
    font-size: 2rem;
}

.cookie-message h3 {
    color: var(--green-neon);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.cookie-message h3::before {
    color: var(--green);
    content: '> ';
}

.cookie-message p {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
    opacity: 0.8;
}

.cookie-message a {
    border-bottom: 1px solid var(--green);
    color: var(--green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-message a:hover {
    color: var(--green-neon);
}

.cookie-banner-actions {
    display: flex;
    flex-shrink: 0;
    gap: var(--spacing-sm);
}

@media (width <= 768px) {
    .cookie-banner-actions {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .cookie-banner-actions .cookie-btn-text {
        grid-column: 1 / -1;
    }
}

.cookie-btn {
    border-radius: var(--radius-small);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 10px 20px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-primary {
    background: var(--green);
    border: 2px solid var(--green);
    color: var(--dark);
}

.cookie-btn-primary:hover {
    background: transparent;
    box-shadow: 0 0 20px var(--green-40);
    color: var(--green);
}

.cookie-btn-secondary {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}

.cookie-btn-secondary:hover {
    background: var(--green-10);
}

.cookie-btn-text {
    background: transparent;
    border: 2px solid transparent;
    color: var(--text-light);
    opacity: 0.6;
}

.cookie-btn-text:hover {
    color: var(--text-light);
    opacity: 1;
}

@media (width <= 480px) {
    .cookie-banner-text {
        gap: 0;
    }

    .cookie-icon {
        display: none;
    }

    .cookie-message h3 {
        font-size: 1rem;
        margin-bottom: 3px;
    }

    .cookie-message p {
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .cookie-btn {
        font-size: 0.78rem;
        padding: 9px 10px;
    }

    .cookie-modal-content {
        max-height: 94vh;
        width: calc(100% - 24px);
    }

    .cookie-modal-header,
    .cookie-modal-body,
    .cookie-modal-footer {
        padding: 16px;
    }

    .cookie-modal-footer {
        align-items: stretch;
        flex-direction: column;
    }
}

.cookie-modal {
    align-items: center;
    animation: fadeIn 0.3s ease-out;
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: var(--z-notification);
}

.cookie-modal-overlay {
    backdrop-filter: blur(5px);
    background: rgb(10 10 10 / 90%);
    inset: 0;
    position: absolute;
}

.cookie-modal-content {
    animation: slideDown 0.3s ease-out;
    background: var(--dark-lighter);
    border: 2px solid var(--green);
    border-radius: var(--radius-small);
    box-shadow: 0 10px 40px var(--green-30);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    max-width: 600px;
    position: relative;
    width: 90%;
}

.cookie-modal-header {
    align-items: center;
    border-bottom: 1px solid var(--green-20);
    display: flex;
    justify-content: space-between;
    padding: 25px;
}

.cookie-modal-header h2 {
    color: var(--green-neon);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin: 0;
}

.cookie-modal-header h2::before {
    color: var(--green);
    content: '// ';
}

.cookie-modal-close {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 2rem;
    height: 30px;
    line-height: 1;
    opacity: 0.5;
    padding: 0;
    transition: all 0.3s ease;
    width: 30px;
}

.cookie-modal-close:hover {
    color: var(--green);
    opacity: 1;
}

.cookie-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 25px;
}

.cookie-modal-intro {
    color: var(--text-light);
    font-family: var(--font-sans);
    margin-bottom: 20px;
    opacity: 0.8;
}

.cookie-category {
    background: var(--green-03);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    margin-bottom: 20px;
    padding: 20px;
}

.cookie-category-header {
    align-items: flex-start;
    display: flex;
    gap: var(--spacing-md);
}

.cookie-toggle {
    display: inline-block;
    flex-shrink: 0;
    height: 26px;
    position: relative;
    width: 50px;
}

.cookie-toggle input {
    height: 0;
    opacity: 0;
    width: 0;
}

.cookie-toggle-slider {
    background-color: var(--green-20);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-medium);
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: all 0.3s ease;
}

.cookie-toggle-slider::before {
    background-color: var(--text-light);
    border-radius: var(--radius-circle);
    bottom: 3px;
    content: "";
    height: 20px;
    left: 3px;
    position: absolute;
    transition: all 0.3s ease;
    width: 20px;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--green);
    border-color: var(--green);
}

.cookie-toggle input:checked + .cookie-toggle-slider::before {
    transform: translateX(24px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.cookie-category-info {
    flex: 1;
}

.cookie-category-info h3 {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin: 0 0 5px;
}

.cookie-category-description {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    margin: 0 0 10px;
    opacity: 0.7;
}

.cookie-details-toggle {
    background: none;
    border: none;
    color: var(--green);
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 0;
    transition: color 0.3s ease;
}

.cookie-details-toggle:hover {
    color: var(--green-neon);
}

.cookie-details {
    border-top: 1px solid var(--green-20);
    margin-top: 10px;
    padding-top: 10px;
}

.cookie-details ul {
    margin: 0;
    padding-left: 20px;
}

.cookie-details li {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    margin-bottom: 5px;
    opacity: 0.7;
}

.cookie-details code {
    background: var(--green-10);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    padding: 2px 6px;
}

.cookie-modal-footer {
    border-top: 1px solid var(--green-20);
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
    padding: 20px 25px;
}

@media (width <= 768px) {
    .cookie-modal-footer {
        flex-direction: column;
    }
}

/* === components/comparison-table.css === */
/**
 * Comparison Table
 * Responsive table with scroll indicator on mobile when content overflows.
 * Used in guide pages (erp-ve-vyrobe, logistika-a-erp, etc.)
 */

.comparison-table-wrapper {
    margin-top: 1rem;
    overflow-x: auto;
    position: relative;
    /* Mask creates visible fade on edges when scrollable */
    mask-image: linear-gradient(
        to right,
        transparent 0,
        black 20px,
        black calc(100% - 30px),
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        black 20px,
        black calc(100% - 30px),
        transparent 100%
    );
    /* Scroll snap helps users realize they can scroll */
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.comparison-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
}

.comparison-table thead tr {
    border-bottom: 2px solid var(--green-30);
}

.comparison-table th {
    text-align: left;
    padding: 1rem;
    color: var(--green);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.comparison-table tbody tr {
    border-bottom: 1px solid var(--green-20);
}

.comparison-table tbody tr:last-child {
    border-bottom: none;
}

.comparison-table td {
    padding: 0.85rem 1rem;
    color: var(--text-light);
    line-height: 1.5;
    vertical-align: top;
    font-size: 0.95rem;
}

.comparison-table td:first-child {
    font-weight: 500;
    color: var(--green);
    white-space: nowrap;
}

/* Scroll hint — visible only on mobile when table is scrollable */
.comparison-table-hint {
    display: none;
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    text-align: center;
    opacity: 0.7;
}

.comparison-table-hint::before {
    content: '← ';
    color: var(--green);
}

.comparison-table-hint::after {
    content: ' →';
    color: var(--green);
}

/* Mobile: show scroll hint + tighten padding */
@media (width <= 640px) {
    .comparison-table-hint {
        display: block;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }

    .comparison-table th:first-child,
    .comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--dark-card);
        z-index: 1;
        box-shadow: 2px 0 8px rgb(0 0 0 / 40%);
    }
}

/* === components/author-byline.css === */
/* Author byline — E-E-A-T signal under the H1 in guides (visible counterpart to Person schema) */

.author-byline {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 1rem 0 1.5rem;
    padding: 0.65rem 0.9rem;
    background: rgba(155, 179, 156, 0.04);
    border: 1px solid rgba(155, 179, 156, 0.15);
    border-radius: 0;
    max-width: 32rem;
}

.author-byline__photo-link {
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.author-byline__photo {
    width: 48px;
    height: 48px;
    border-radius: 0;
    object-fit: cover;
    display: block;
    border: 1.5px solid rgba(155, 179, 156, 0.4);
}

.author-byline__meta {
    flex: 1;
    min-width: 0;
}

.author-byline__primary,
.author-byline__secondary {
    margin: 0;
    line-height: 1.35;
}

.author-byline__primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.05rem;
    font-size: 0.95rem;
    color: var(--text, #e0e0e0);
}

.author-byline__primary > .author-byline__separator {
    display: none;
}

.author-byline__name {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
}

.author-byline__name:hover,
.author-byline__name:focus {
    color: var(--green, #9bb39c);
}

.author-byline__role {
    display: block;
    color: var(--text-muted-light, #b0b0b0);
    font-weight: 400;
    text-wrap: pretty;
}

.author-byline__secondary {
    font-size: 0.82rem;
    color: var(--text-muted, #888);
    margin-top: 0.2rem;
    font-family: var(--font-mono, monospace);
}

.author-byline__separator {
    margin: 0 0.4rem;
    color: var(--text-muted, #888);
}

.author-byline__updated time {
    color: var(--text-muted-light, #b0b0b0);
}

.author-byline__linkedin {
    color: var(--green, #9bb39c);
    text-decoration: none;
}

.author-byline__linkedin:hover,
.author-byline__linkedin:focus {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .author-byline {
        padding: 0.6rem 0.75rem;
        gap: 0.7rem;
    }
    .author-byline__photo {
        width: 44px;
        height: 44px;
    }
    .author-byline__primary {
        font-size: 0.9rem;
    }
    .author-byline__secondary {
        font-size: 0.78rem;
    }
}

/* === components/agent-run.css === */
/**
 * Agent Run block
 * Signature component for AI-agent guides: a terminal-style trace of an agent
 * doing one task step by step. Built on the existing terminal aesthetic
 * (.error-terminal / .terminal-prompt). Reusable across marketing / sales /
 * agents guides.
 */

.agent-run {
    background: rgb(0 0 0 / 50%);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    font-family: var(--font-mono);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: var(--spacing-lg) 0;
    max-width: 760px;
    overflow: hidden;
}

/* Title bar */
.agent-run__bar {
    align-items: center;
    background: var(--green-05);
    border-bottom: 1px solid var(--green-20);
    display: flex;
    gap: 7px;
    padding: 10px 16px;
}

.agent-run__dot {
    background: var(--green-30);
    border-radius: 0;
    height: 9px;
    width: 9px;
}

.agent-run__title {
    color: var(--text-muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    margin-left: 8px;
}

/* Body */
.agent-run__body {
    padding: 18px 22px;
}

.agent-run__cmd {
    color: var(--text-light);
    margin: 0 0 14px;
}

.agent-run__cmd .terminal-prompt {
    color: var(--green-neon);
    margin-right: 8px;
}

.agent-run__cmd::after {
    animation: agent-blink 1.1s steps(1) infinite;
    color: var(--green-neon);
    content: '_';
    margin-left: 4px;
}

@keyframes agent-blink {
    50% { opacity: 0; }
}

/* Steps */
.agent-run__steps {
    list-style: none;
    margin: 0;
    padding: 0;
}

.agent-run__step {
    align-items: baseline;
    color: var(--text-muted-light);
    display: flex;
    gap: 10px;
    padding: 5px 0;
}

.agent-run__branch {
    color: var(--green);
    flex-shrink: 0;
}

.agent-run__label {
    color: var(--text-light);
    flex-shrink: 0;
}

/* dotted leader fills the gap between label and result */
.agent-run__lead {
    align-self: center;
    border-bottom: 1px dotted var(--green-30);
    flex: 1 1 24px;
    min-width: 16px;
}

.agent-run__result {
    color: var(--text-muted-light);
    flex-shrink: 0;
    text-align: right;
}

.agent-run__result--ok {
    color: var(--green-neon);
}

/* Final recommendation line */
.agent-run__out {
    border-top: 1px solid var(--green-20);
    color: var(--text-light);
    margin: 16px 0 0;
    padding-top: 14px;
}

.agent-run__out-label {
    color: var(--green);
    font-weight: 700;
    margin-right: 8px;
}

/* Mobile: drop the dotted leader, stack result under label */
@media (max-width: 600px) {
    .agent-run {
        font-size: 0.82rem;
    }

    .agent-run__body {
        overflow-x: auto;
        padding: 16px 16px;
    }

    .agent-run__step {
        flex-wrap: wrap;
        gap: 6px;
    }

    .agent-run__lead {
        display: none;
    }

    .agent-run__result {
        flex-basis: 100%;
        padding-left: 26px;
        text-align: left;
    }
}

/* === pages/home.css === */
/**
 * Homepage Specific Styles
 * Stats, problems, services, case studies, clients, CTA sections
 * NOTE: .section-title and .section-subtitle use the shared styles from base/typography.css
 */

/* ===== STATS SECTION ===== */

.stats {
    /* Uses .grid-4 and .gap-lg utility classes */
    margin-top: 2rem;
}

.stat-item {
    background: var(--green-05);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: var(--green-10);
    border-color: var(--green);
    transform: translateY(-5px);
}

.stat-number {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 3rem;
    font-weight: 900;
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-top: 0.5rem;
    opacity: 0.7;
    text-transform: uppercase;
}

/* ===== PROBLEMS/CHALLENGES GRID ===== */

.problems-grid {
    /* Uses .grid-2 and .gap-lg utility classes */
    margin-top: 2rem;
}

/* ===== SERVICE LIST (docs/specs/home-hero-photo.md) ===== */

.service-list {
    border-top: 1px solid var(--green-20);
    list-style: none;
    margin: 0 0 var(--spacing-2xl);
    padding: 0;
}

.service-row {
    align-items: center;
    border-bottom: 1px solid var(--green-20);
    color: var(--text-light);
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 1.15fr) 2rem;
    padding: var(--spacing-lg) var(--spacing-md);
    text-decoration: none;
}

.service-row__num {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.95rem;
}

.service-row__title {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: clamp(1.35rem, 1.2vw + 0.9rem, 1.9rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
}

.service-row__text {
    color: var(--text-muted-light);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.service-row__arrow {
    color: var(--green);
    font-size: 1.6rem;
    text-align: right;
}

.service-row:focus-visible {
    background: var(--green-05);
}

.service-row:focus-visible .service-row__title {
    color: var(--white);
}

.service-row:focus-visible .service-row__num,
.service-row:focus-visible .service-row__arrow {
    color: var(--green-neon);
}

/* Hover only where a pointer can hover: touch browsers would keep it on the last tapped row. */
@media (hover: hover) {
    .service-row:hover {
        background: var(--green-05);
    }

    .service-row:hover .service-row__title {
        color: var(--white);
    }

    .service-row:hover .service-row__num,
    .service-row:hover .service-row__arrow {
        color: var(--green-neon);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .service-row {
        transition: background-color 0.2s ease;
    }

    .service-row__arrow {
        transition: transform 0.2s ease;
    }

    .service-row:focus-visible .service-row__arrow {
        transform: translateX(4px);
    }

    @media (hover: hover) {
        .service-row:hover .service-row__arrow {
            transform: translateX(4px);
        }
    }
}

@media (width <= 900px) {
    .service-row {
        gap: var(--spacing-xs) var(--spacing-md);
        grid-template-columns: 3rem minmax(0, 1fr) 1.5rem;
    }

    .service-row__text {
        grid-column: 2 / 3;
        grid-row: 2;
    }

    .service-row__arrow {
        grid-column: 3;
        grid-row: 1;
    }
}

@media (width <= 640px) {
    .service-row {
        column-gap: 0.75rem;
        grid-template-columns: 2rem minmax(0, 1fr) 1.25rem;
        padding: var(--spacing-md) 0;
    }

    .service-row__text {
        font-size: 0.98rem;
    }
}

/* ===== CLIENT LOGOS (below the hero, docs/specs/home-client-logos.md) ===== */

.client-logos {
    background: var(--dark-alt);
    border-top: 1px solid var(--green-20);
    /* Same side padding as .section, so the grid lines up with the other sections on phones. */
    padding: var(--spacing-3xl) var(--container-padding-x);
    scroll-margin-top: 100px;
}

.client-logos__grid {
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Lines drawn by each cell, so a missing logo leaves no filled block. */
.client-logos__item {
    align-items: center;
    background: var(--dark-alt);
    display: flex;
    height: 96px;
    justify-content: center;
    outline: 1px solid var(--green-15);
    padding: 0 var(--spacing-md);
}

.client-logos__link {
    align-items: center;
    display: flex;
    height: 100%;
    justify-content: center;
    width: 100%;
}

.client-logos__logo {
    filter: brightness(0) invert(1);
    height: auto;
    max-height: 38px;
    max-width: min(140px, 100%);
    opacity: 0.7;
    width: auto;
}

@media (prefers-reduced-motion: no-preference) {
    .client-logos__logo {
        transition: opacity 0.2s ease;
    }
}

/* Square marks look small at the shared height. */
.client-logos__logo--tall {
    max-height: 64px;
    max-width: min(130px, 100%);
}

/* Compact emblem (oval mark). */
.client-logos__logo--mark {
    max-height: 50px;
    max-width: min(110px, 100%);
}

/* Very wide wordmark (about 10:1). */
.client-logos__logo--wide {
    max-width: min(180px, 100%);
}

.client-logos__link:focus-visible {
    outline-offset: -3px;
}

.client-logos__link:focus-visible .client-logos__logo {
    opacity: 1;
}

.client-logos__link:hover .client-logos__logo {
    opacity: 1;
}

/* Every logo lights up on hover, also the ones without a case study (no link). */
@media (hover: hover) {
    .client-logos__item:hover .client-logos__logo {
        opacity: 1;
    }
}

/* High-contrast modes would repaint the dark cells: keep them dark so the white logos stay visible. */
@media (forced-colors: active) {
    .client-logos__item {
        forced-color-adjust: none;
    }

    .client-logos__link:focus-visible {
        forced-color-adjust: auto;
        outline: 2px solid Highlight;
    }

    .client-logos__logo {
        opacity: 1;
    }
}

@media (width <= 900px) {
    .client-logos__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (width <= 640px) {
    .client-logos {
        padding: var(--spacing-2xl) var(--container-padding-x);
    }

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

    .client-logos__item {
        height: 80px;
        padding: 0 var(--spacing-sm);
    }

    .client-logos__logo {
        max-height: 32px;
    }

    .client-logos__logo--tall {
        max-height: 52px;
    }

    .client-logos__logo--mark {
        max-height: 42px;
    }
}

/* ===== CTA SECTION ===== */

/* Moved to line ~288 to avoid duplication */

/* ===== SECTION TITLES ===== */

/* section-title & section-subtitle are defined in base/typography.css */

/* ===== PROBLEM CARDS ===== */

.problem-card {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-left: 4px solid var(--green);
    border-radius: var(--radius-small);
    overflow: hidden;
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.problem-card::before {
    background: linear-gradient(135deg, var(--green-05) 0%, transparent 100%);
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

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

.problem-card:hover {
    border-left-width: 8px;
    box-shadow: none;
    transform: translateX(5px);
}

.problem-number {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.3;
    position: absolute;
    right: 1rem;
    top: 1rem;
}

.problem-card h3 {
    color: var(--green-neon);
    font-family: var(--font-sans);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.problem-card p {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.8;
}

/* ===== CTA SECTION ===== */

/* CTA component now in components/cta.css (shared across all pages) */

/* Related Services Section */
.related-services-grid {
    /* Uses .grid-auto-300 utility class + custom gap */
    gap: 2rem;
    margin-top: 2rem;
}

.related-service-card {
    background: var(--dark-lighter);
    border: 1px solid var(--green-10);
    border-radius: var(--radius-medium);
    color: var(--text);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 2.5rem;
    position: relative;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-service-card::before {
    background: linear-gradient(135deg, var(--green-10) 0%, transparent 100%);
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.related-service-card:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

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

.related-service-icon {
    color: var(--green);
    font-size: 2rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.related-service-card h3 {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.related-service-card p {
    color: var(--text-dim);
    flex-grow: 1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.related-service-link {
    align-items: center;
    color: var(--green);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    gap: 0.5rem;
    position: relative;
    transition: gap 0.3s ease;
    z-index: 1;
}

.related-service-card:hover .related-service-link {
    gap: 0.75rem;
}

/* ===== APPROACH SECTION ("Jak pracujeme") ===== */

.approach-section {
    /* Uses .section.section--large class for padding (100px vertical, 48px horizontal) */
}

.approach-intro {
    margin: 40px auto 60px;
    text-align: center;
}

.approach-intro p {
    color: var(--text-muted);
    font-size: 1.2rem;
    line-height: 1.8;
}

.approach-steps {
    /* Uses .grid-2 and .gap-xl utility classes */
    margin: 2rem 0;
}

.approach-step {
    background: var(--dark-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-medium);
    padding: 40px 30px;
    position: relative;
    transition: all 0.3s ease;
}

.approach-step:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

.approach-number {
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    border-radius: 0;
    color: var(--dark);
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    height: 60px;
    line-height: 60px;
    margin-bottom: 20px;
    text-align: center;
    width: 60px;
}

.approach-step h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.approach-step p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.approach-highlight {
    background: linear-gradient(135deg, var(--green-15), var(--green-10));
    border: 2px solid var(--green);
    border-radius: var(--radius-medium);
    margin: 60px auto 0;
    padding: 40px;
    text-align: center;
}

.approach-highlight p {
    color: var(--green);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

@media (width <= 640px) {
    /* Stats Section */
    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.85rem;
        letter-spacing: 1px;
    }

    /* Problem Cards */
    .problem-card {
        border-left-width: 3px;
        padding: 1.5rem;
    }

    .problem-card:hover {
        border-left-width: 4px;
    }

    .problem-number {
        font-size: 3rem;
        opacity: 0.2;
        right: 0.5rem;
        top: 0.5rem;
    }

    .problem-card h3 {
        font-size: 1.4rem;
        margin-bottom: 0.75rem;
    }

    .problem-card p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Approach Section */
    .approach-step {
        padding: 1.5rem;
    }

    .approach-number {
        font-size: 1.3rem;
        height: 50px;
        line-height: 50px;
        margin-bottom: 1rem;
        width: 50px;
    }

    .approach-step h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .approach-step p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .approach-highlight {
        padding: 1.5rem;
    }

    .approach-highlight p {
        font-size: 1.1rem;
        line-height: 1.5;
    }
}

/* ===== CASE STUDIES GRID (homepage, docs/specs/home-lower-sections.md) ===== */

.case-grid {
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-grid > li {
    background: var(--dark-alt);
    outline: 1px solid var(--green-20);
}

.case-card {
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
}

/* Case photos in their real colours (the hero alone is tinted: it is a background under text). */
.case-card__image {
    aspect-ratio: 16 / 9;
    display: block;
    overflow: hidden;
}

.case-card__image img {
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.case-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: var(--spacing-md) var(--spacing-md) var(--spacing-lg);
}

.case-card__label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-card__title {
    color: inherit;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
}

.case-card__link {
    color: var(--green);
    font-size: 0.95rem;
}

.case-card:focus-visible {
    outline-offset: -3px;
}

@media (hover: hover) {
    .case-card:hover .case-card__title {
        color: var(--white);
    }

    .case-card:hover .case-card__link {
        color: var(--green-neon);
    }
}

@media (width <= 1023px) {
    .case-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 640px) {
    .case-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== GUIDE BOARD (homepage, docs/specs/home-lower-sections.md) ===== */

.guide-board {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    margin-bottom: var(--spacing-2xl);
}

.guide-board__feature {
    background: var(--green-05);
    border-right: 1px solid var(--green-20);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    justify-content: flex-end;
    min-height: 22rem;
    padding: var(--spacing-xl);
    text-decoration: none;
}

.guide-board__feature-body {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.guide-board__feature-title {
    color: inherit;
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
    font-weight: 800;
    line-height: 1.1;
    margin: 0;
}

.guide-board__feature-text {
    color: var(--text-muted-light);
    line-height: 1.6;
}

.guide-board__feature-link {
    color: var(--green);
}

.guide-board__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.guide-board__list > li + li {
    border-top: 1px solid var(--green-20);
}

.guide-board__row {
    align-items: center;
    color: var(--text-light);
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: minmax(0, 1fr) 1.5rem;
    padding: var(--spacing-md) var(--spacing-lg);
    text-decoration: none;
}

.guide-board__title {
    color: inherit;
    font-family: var(--font-sans);
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.guide-board__arrow {
    color: var(--green);
    text-align: right;
}

.guide-board:not(:has(.guide-board__list)) {
    grid-template-columns: 1fr;
}

.guide-board:not(:has(.guide-board__list)) .guide-board__feature {
    border-right: 0;
}

.guide-board__feature:focus-visible,
.guide-board__row:focus-visible {
    outline-offset: -3px;
}

@media (hover: hover) {
    .guide-board__feature:hover .guide-board__feature-title,
    .guide-board__row:hover .guide-board__title {
        color: var(--white);
    }

    .guide-board__row:hover {
        background: var(--green-05);
    }
}

@media (width <= 900px) {
    .guide-board {
        grid-template-columns: 1fr;
    }

    .guide-board__feature {
        border-bottom: 1px solid var(--green-20);
        border-right: 0;
        min-height: 0;
    }
}

@media (width <= 640px) {
    .guide-board__feature,
    .guide-board__row {
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
}

/* === pages/guides.css === */
/**
 * Guides listing page — category filter bar + category sections.
 */

.guides-filter {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    margin-bottom: var(--spacing-2xl);
}

.guides-filter-btn {
    background: transparent;
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    color: var(--text-muted-light);
    cursor: pointer;
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.guides-filter-btn:hover {
    border-color: var(--green);
    color: var(--text-light);
}

.guides-filter-btn.is-active {
    background: var(--green);
    border-color: var(--green);
    color: var(--dark);
    font-weight: 700;
}

.guides-category {
    margin-bottom: var(--spacing-3xl);
}

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

.guides-category-title {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-lg);
}

.guides-category-title::before {
    color: var(--green);
    content: '// ';
    font-family: var(--font-mono-short);
}

@media (max-width: 600px) {
    .guides-filter {
        flex-wrap: nowrap;
        margin-inline: calc(var(--container-padding-x) * -1);
        overflow-x: auto;
        padding-inline: var(--container-padding-x);
        padding-bottom: var(--spacing-xs);
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .guides-filter-btn {
        flex: 0 0 auto;
        font-size: 0.8rem;
        padding: 0.45rem 0.8rem;
        white-space: nowrap;
    }
}

/* === pages/about.css === */
/**
 * About Page Styles
 * About-specific overrides and components
 * Hero styles jsou v components/hero.css
 */

/* ===== ABOUT HERO OVERRIDES (if needed) ===== */

/* .about-hero can override the base .hero here, if needed */

/* ===== STORY SECTION ===== */

.story-section {
    /* Uses .section class for padding (5rem/80px vertical, 48px horizontal) */
    background: var(--dark-card);
}

/* Story section uses base .container.container--narrow */

/* story section uses .section-title from base/typography.css */

.story-intro {
    color: var(--text-muted-light);
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 50px;
    text-align: center;
}

.story-content p {
    color: var(--text-muted-lighter);
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 25px;
}

/* ===== VALUES SECTION ===== */

/* Uses base .section.section-darker for background */

/* Values section uses base .container */

/* values section uses .section-title and .section-subtitle from base/typography.css */

.values-grid {
    /* Uses .grid-auto-320 and .gap-xl utility classes */
}

.value-card {
    background: var(--gradient-dark-card);
    border: 1px solid var(--text-dark);
    border-radius: var(--radius-medium);
    padding: 40px 30px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.value-card:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

/* SVG Icons as background images in green color */

.icon-lightbulb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 0 1 7 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/%3E%3C/svg%3E");
}

.icon-globe {
    background-color: var(--green);
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.value-card h3 {
    color: var(--white);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.value-card p {
    color: var(--text-muted-light);
    line-height: 1.7;
}

/* ===== TEAM SECTION ===== */

/* Uses base .section.section-dark for background */

/* Team section uses base .container */

/* team section uses .section-title and .section-subtitle from base/typography.css */

.team-stats {
    /* Uses .grid-auto-200 and .gap-xl utility classes */
    margin-top: 60px;
}

.stat-card {
    background: var(--gradient-dark-card);
    border: 1px solid var(--text-dark);
    border-radius: var(--radius-medium);
    padding: var(--spacing-2xl);
    text-align: center;
}

.stat-value {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 10px;
}

.stat-label {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ===== EXPERTISE SECTION ===== */

.expertise-section {
    /* Uses .section class for padding */
    background: var(--dark);
}

/* Expertise section uses base .container */

/* expertise section uses .section-title and .section-subtitle from base/typography.css */

.expertise-grid {
    /* Uses .grid-auto-300 and .gap-xl utility classes */
}

.expertise-card {
    background: var(--gradient-dark-card);
    border: 1px solid var(--text-dark);
    border-radius: var(--radius-medium);
    padding: 30px;
}

.expertise-card h3 {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.skill-tag {
    background: var(--green-10);
    border: 1px solid var(--green);
    border-radius: var(--radius-small);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    padding: 8px 16px;
    transition: all 0.3s ease;
}

.skill-tag:hover {
    background: var(--green-20);
    border-color: var(--green);
}

/* ===== CONTACT PERSON SECTION ===== */

/* Uses base .section.section-darker for background */

/* contact-person section uses .section-title from base/typography.css */

.contact-person-split {
    border: 1px solid var(--text-dark);
    border-radius: var(--radius-medium);
    display: grid;
    grid-template-columns: 2fr 3fr;
    min-height: 500px;
    overflow: hidden;
}

.contact-person-photo-bg {
    background-image: var(--bg-image);
    background-position: center;
    background-size: cover;
    overflow: hidden;
    position: relative;
}

.photo-overlay {
    background: rgb(0 0 0 / 20%);
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.contact-person-content {
    background: var(--gradient-dark-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 40px;
}

.contact-person-content h3 {
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 2rem;
    margin-bottom: 8px;
}

/* ===== TIMELINE SECTION ===== */

/* Uses base .section.section-dark for background and padding */

.timeline-section {
    overflow: hidden;
    position: relative;
}

.timeline-section .container {
    /* Uses base .container class - no need to override */
}

.timeline {
    margin: 4rem auto 0;

    /* Uses .grid-4 and .gap-lg utility classes */
    max-width: var(--container-2xl);
}

.timeline-item {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-left: 4px solid var(--green);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-item::before {
    background: none;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item:hover {
    border-left-width: 8px;
    box-shadow: none;
    transform: translateY(-8px);
}

.timeline-year {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.timeline-content h3 {
    color: var(--green-neon);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.timeline-content p {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    line-height: 1.7;
    opacity: 0.8;
}

/* Vertical Timeline */
.timeline-vertical {
    margin: 4rem 0 0;
    max-width: var(--container-md);
    padding-left: 0;
    position: relative;
}

.timeline-vertical::before {
    background: linear-gradient(180deg, var(--green) 0%, var(--green-30) 100%);
    bottom: 0;
    content: '';
    left: 80px;
    position: absolute;
    top: 0;
    width: 2px;
}

.timeline-item-vertical {
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: 3rem;
    position: relative;
}

.timeline-item-vertical:last-child {
    margin-bottom: 0;
}

.timeline-year-marker {
    align-items: flex-start;
    display: flex;
    flex-shrink: 0;
    gap: var(--spacing-sm);
    position: relative;
    width: 160px;
}

.timeline-dot {
    background: var(--green);
    border: 3px solid var(--dark-card);
    border-radius: 0;
    box-shadow: none;
    height: 16px;
    left: 72px;
    position: absolute;
    top: 8px;
    transition: all 0.3s ease;
    width: 16px;
    z-index: var(--z-base);
}

.timeline-item-vertical:hover .timeline-dot {
    box-shadow: none;
    transform: scale(1.3);
}

.timeline-year-marker .timeline-year {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    margin: 0;
    opacity: 0.9;
}

.timeline-content-vertical {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-left: 4px solid var(--green);
    flex: 1;
    padding: 2rem 2.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.timeline-content-vertical::before {
    background: none;
    content: '';
    height: 100%;
    left: 0;
    opacity: 0;
    position: absolute;
    top: 0;
    transition: opacity 0.3s ease;
    width: 100%;
}

.timeline-item-vertical:hover .timeline-content-vertical {
    border-left-width: 6px;
    box-shadow: none;
    transform: translateX(8px);
}

.timeline-item-vertical:hover .timeline-content-vertical::before {
    opacity: 1;
}

.timeline-content-vertical h3 {
    color: var(--green-neon);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: var(--z-base);
}

.timeline-content-vertical p {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0.85;
    position: relative;
    z-index: var(--z-base);
}

/* ===== CONTACT PERSON SECTION (About page only) ===== */

.contact-person-role {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 18px;
}

.contact-person-profile-intro {
    color: var(--text-muted-lighter);
    font-size: 1rem;
    line-height: 1.7;
    margin: 0 0 22px;
    max-width: 620px;
}

.contact-person-profile-button {
    align-self: flex-start;
    margin-bottom: 24px;
}

.contact-person-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

/* Without JS the JS-filled e-mail link is empty and dead (href="#"), so hide it;
   the working mailto from <noscript> shows instead. Scoped so /kontakt is not affected. */
.no-js .contact-person-links .protected-email-link {
    display: none;
}

.contact-link {
    align-items: center;
    background: transparent;
    border: 1px solid var(--text-dark);
    border-radius: 0;
    color: var(--text-muted-lighter);
    display: inline-flex;
    font-size: 0.95rem;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-link:hover {
    background: rgb(255 255 255 / 3%);
    border-color: var(--text-muted);
    color: var(--text);
}

.contact-link svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.contact-link:hover svg {
    opacity: 1;
}

/* ===== OWN PRODUCTS SECTION ===== */

.about-product-card {
    align-items: center;
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-medium);
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr auto;
    padding: 3rem;
    transition: all 0.3s ease;
}

.about-product-visual {
    display: flex;
    justify-content: center;
    overflow: hidden;
}

.about-product-card:hover {
    border-color: var(--green);
    box-shadow: none;
}

.about-product-card .product-header {
    align-items: center;
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.about-product-card .product-badge {
    background: var(--green-15);
    border: 1px solid var(--green);
    border-radius: var(--radius-small);
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
}

.about-product-card h3 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.about-product-card .product-description {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    opacity: 0.85;
}

.about-product-docs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.doc-tag {
    background: var(--green-05);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    color: var(--text-light);
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

/* Tablet breakpoint for contact person section */
@media (width <= 1040px) {
    /* Contact Person Split - Switch to vertical layout earlier */
    .contact-person-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-person-photo-bg {
        background-position: center 30%;
        min-height: 450px;
    }

    .contact-person-content {
        padding: 40px 35px;
    }

}

@media (width <= 768px) {
    .about-product-card {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }

    .about-product-card h3 {
        font-size: 1.5rem;
    }

    .about-product-visual {
        display: none;
    }
}

@media (width <= 640px) {
    /* Story Section */
    .story-intro {
        font-size: 1rem;
        margin-bottom: var(--spacing-lg);
    }

    .story-content p {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 20px;
    }

    /* Value Cards */
    .value-card {
        padding: 1.5rem;
    }

    .value-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .value-card p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Team Stats */
    .team-stats {
        margin-top: var(--spacing-xl);
    }

    .stat-card {
        padding: 1.5rem;
    }

    .stat-value {
        font-size: 2.5rem;
    }

    .stat-label {
        font-size: 0.9rem;
    }

    /* Expertise Cards */
    .expertise-card {
        padding: 1.5rem;
    }

    .expertise-card h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .skill-tag {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    /* Contact Person Split - CRITICAL */
    .contact-person-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .contact-person-photo-bg {
        min-height: 250px;
    }

    .contact-person-content {
        padding: 2rem 1.5rem;
    }

    .contact-person-content h3 {
        font-size: 1.5rem;
    }

    .contact-person-role {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .contact-person-links {
        gap: 10px;
        margin-bottom: 25px;
    }

    .contact-link {
        font-size: 0.9rem;
        padding: 10px 14px;
    }

    /* Timeline - Horizontal Grid */
    .timeline {
        margin-top: 2rem;
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .timeline-item:hover {
        border-left-width: 4px;
        transform: translateY(-4px);
    }

    .timeline-year {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content p {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    /* Timeline - Vertical Layout - Simplified for mobile */
    .timeline-vertical::before {
        display: none; /* Hide vertical line on mobile */
    }

    .timeline-item-vertical {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-bottom: 2.5rem;
    }

    .timeline-year-marker {
        width: auto;
    }

    .timeline-dot {
        display: none; /* Hide dot on mobile */
    }

    .timeline-year-marker .timeline-year {
        background: var(--green-10);
        border-left: 3px solid var(--green);
        color: var(--green);
        display: inline-block;
        font-size: 1.2rem;
        padding: 6px 16px;
    }

    .timeline-content-vertical {
        border-left: none;
        padding: 1.5rem;
    }

    .timeline-item-vertical:hover .timeline-content-vertical {
        border-left-width: 0;
        transform: translateY(-2px);
    }

    .timeline-content-vertical h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .timeline-content-vertical p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Large Button */
    .btn-large {
        font-size: 1rem;
        padding: 14px 30px;
    }
}

/* ===== ABOUT PAGE, VERSION 2 (docs/specs/about-page.md) ===== */
/* Joined grids with 1px lines and no radius, as on the redesigned pages. */

.about-logos {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.about-logos li {
    align-items: center;
    background: var(--dark-card);
    display: flex;
    height: 84px;
    justify-content: center;
    padding: 0 var(--spacing-sm);
}

.about-logos img {
    filter: brightness(0) invert(1);
    height: auto;
    max-height: 32px;
    max-width: 100%;
    opacity: 0.72;
    width: auto;
}

.about-proof {
    border: 1px solid var(--green-20);
    border-top: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-proof li + li {
    border-left: 1px solid var(--green-20);
}

.about-proof a {
    color: inherit;
    display: block;
    height: 100%;
    padding: var(--spacing-md);
    text-decoration: none;
}

.about-proof a:hover strong,
.about-proof a:focus-visible strong {
    color: var(--green);
}

.about-proof__label,
.about-team__label,
.about-leader__role {
    color: var(--green);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-xs);
    text-transform: uppercase;
}

.about-proof strong {
    color: var(--text-light);
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.about-proof__text {
    color: var(--text-muted-light);
    font-size: 0.92rem;
}

.about-areas__list {
    border-top: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.about-areas__list li + li {
    border-left: 1px solid var(--green-20);
}

.about-areas__list a {
    color: inherit;
    display: block;
    padding: var(--spacing-md) var(--spacing-md) 0;
    text-decoration: none;
}

.about-areas__list li:first-child a {
    padding-left: 0;
}

.about-areas__list strong {
    color: var(--text-light);
    display: flex;
    font-size: 1.2rem;
    font-weight: 600;
    justify-content: space-between;
}

.about-areas__list strong::after {
    color: var(--green);
    content: "→";
}

.about-areas__list a:hover strong {
    color: var(--green);
}

.about-areas__list span {
    color: var(--text-muted-light);
    display: block;
    font-size: 0.93rem;
    margin-top: var(--spacing-xs);
}

.about-principles__grid {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--spacing-lg);
}

.about-principles__grid > div {
    background: var(--dark);
    padding: var(--spacing-md);
}

.about-principles__grid h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 var(--spacing-xs);
}

.about-principles__grid p {
    color: var(--text-muted-lighter);
    font-size: 0.95rem;
    margin: 0;
}

.about-team__groups {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--spacing-lg);
}

.about-team__groups > div {
    padding: var(--spacing-md);
}

.about-team__groups > div + div {
    border-left: 1px solid var(--green-20);
}

.about-team__groups ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.about-team__groups li {
    border-top: 1px solid var(--green-20);
    padding: 0.7rem 0;
}

.about-team__groups strong {
    color: var(--text-light);
    display: block;
    font-weight: 600;
}

.about-team__groups span {
    color: var(--text-muted-light);
    font-size: 0.9rem;
}

.about-team__more {
    margin: var(--spacing-md) 0 0;
}

.about-team__more a,
.about-leader__links a {
    color: var(--green);
}

.about-leader {
    border: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 150px minmax(0, 1fr);
    margin-top: var(--spacing-lg);
    max-width: 780px;
    padding: var(--spacing-md);
}

.about-leader__photo {
    aspect-ratio: 4 / 5;
    filter: grayscale(1) contrast(1.05);
    height: auto;
    object-fit: cover;
    width: 150px;
}

.about-leader h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: 0 0 var(--spacing-xs);
}

.about-leader p {
    color: var(--text-muted-lighter);
    margin: 0 0 var(--spacing-sm);
}

.about-leader p.about-leader__bio {
    color: var(--text-light);
    line-height: 1.65;
    margin-bottom: var(--spacing-md);
    max-width: 60ch;
}

.about-leader__links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-lg);
}

.about-history__list {
    border-top: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.about-history__list li {
    padding: var(--spacing-md) var(--spacing-sm) 0;
}

.about-history__list li:first-child {
    padding-left: 0;
}

.about-history__list li + li {
    border-left: 1px solid var(--green-20);
}

.about-history__list time {
    color: var(--green);
    display: block;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

.about-history__list h3 {
    color: var(--text-light);
    font-size: 1rem;
    margin: 0 0 var(--spacing-xs);
}

.about-history__list p {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    margin: 0;
}

.about-history__list a {
    color: var(--green);
}

@media (width <= 1024px) {
    .about-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .about-history__list {
        grid-template-columns: 1fr;
    }

    .about-history__list li,
    .about-history__list li:first-child {
        border-bottom: 1px solid var(--green-20);
        padding: var(--spacing-sm) 0;
    }

    .about-history__list li + li {
        border-left: 0;
    }
}

@media (width <= 860px) {
    .about-proof,
    .about-areas__list,
    .about-principles__grid,
    .about-team__groups {
        grid-template-columns: 1fr;
    }

    .about-proof li + li,
    .about-team__groups > div + div {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }

    .about-areas__list li + li {
        border-left: 0;
    }

    .about-areas__list a,
    .about-areas__list li:first-child a {
        border-bottom: 1px solid var(--green-20);
        padding: var(--spacing-sm) 0;
    }

    /* Photo above the text so the bio gets the full width */
    .about-leader {
        grid-template-columns: 1fr;
    }

    .about-leader__photo {
        width: 120px;
    }
}

/* === pages/services.css === */
/**
 * Service Detail Pages Styles
 * Problem cards, solution grid, process timeline, tech stack, FAQ
 * NOTE: Service hero is in components/hero.css
 * NOTE: .section-title and .section-subtitle use the shared styles from base/typography.css
 */

/* ===== PROBLEM LIST ===== */

.problem-list {
    /* Full width - no max-width constraint */
}

.problem-item {
    animation: fadeInUp 0.8s ease-out forwards;
    background: var(--dark-lighter);
    border-left: 2px solid var(--green);
    display: flex;
    gap: var(--spacing-lg);
    margin-bottom: 2rem;
    opacity: 0;
    padding: 2.5rem;
}

.problem-item h3 {
    font-size: 1.5rem;
}

/* ===== FAQ SECTION ===== */

/* FAQ component is now in components/faq.css (shared across pages) */

/* SERVICE DETAIL PAGES */

/* ============================================================ */

/* Solution Grid */
.solution-grid {
    /* Uses .grid-2 and .gap-xl utility classes */
}

.solution-grid h3 {
    color: var(--green-neon);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-grid p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.solution-features {
    list-style: none;
    padding: 0;
}

.solution-features li {
    color: var(--text-light);
    font-size: 0.95rem;
    opacity: 0.7;
    padding: 0.5rem 0;
}

.solution-features li::before {
    color: var(--green);
    content: '✓ ';
    margin-right: 0.5rem;
}

/* Process Timeline */
.process-timeline {
    max-width: var(--container-md);
}

.process-step {
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: 3rem;
    position: relative;
}

.process-step:not(:last-child)::after {
    background: linear-gradient(180deg, var(--green) 0%, transparent 100%);
    bottom: -50px;
    content: '';
    left: 35px;
    position: absolute;
    top: 80px;
    width: 2px;
}

.process-number {
    align-items: center;
    background: var(--dark);
    border: 1px solid var(--green-40);
    color: var(--green);
    display: flex;
    flex-shrink: 0;
    font-family: var(--font-mono-short);
    font-size: 1.1rem;
    font-weight: 500;
    height: 70px;
    justify-content: center;
    width: 70px;
}

.process-content h3 {
    color: var(--text-light);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.process-content p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.process-duration {
    align-items: center;
    background: var(--green-10);
    border: 1px solid var(--green);
    border-radius: var(--radius-small);
    color: var(--green);
    display: inline-flex;
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    gap: var(--spacing-xs);
    padding: 0.5rem 1rem;
}

.duration-icon {
    font-size: 1rem;
}

.case-meta {
    color: var(--text-light);
    display: flex;
    font-size: 0.95rem;
    gap: var(--spacing-lg);
    opacity: 0.6;
}

.case-meta span {
    align-items: center;
    display: flex;
    gap: var(--spacing-xs);
}

/* Case Study Hover Overlay (same as portfolio-overlay) */
.case-study-hover-overlay {
    align-items: center;
    background: rgb(10 10 10 / 80%);
    display: flex;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity 0.3s ease;
    z-index: 3;
}

/* ===== CONTENT BLOCKS (deep content for SEO) ===== */

.content-blocks {
    max-width: var(--container-md);
}

.content-block {
    border-left: 3px solid var(--green-30);
    margin-bottom: 4rem;
    padding-left: 2rem;
}

.content-block:last-child {
    margin-bottom: 0;
}

.content-block__heading {
    color: var(--green-neon);
    font-size: clamp(1.5rem, 2vw + 0.5rem, 2.25rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
}

.content-block__text {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.85;
}

.content-block__text p {
    margin-bottom: 1.25rem;
}

.content-block__text p:last-child {
    margin-bottom: 0;
}

.content-block__text strong {
    color: var(--text-light);
    font-weight: 600;
    opacity: 1;
}

.content-block__text a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-block__text a:hover {
    color: var(--green-neon);
}

/* Content block raw HTML elements (guide pages) */
.content-block p {
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.content-block p:last-child {
    margin-bottom: 0;
}

.content-block ul,
.content-block ol {
    margin: 0 0 1.5rem;
    padding-left: 1.25rem;
}

.content-block li {
    line-height: 1.7;
    margin-bottom: 0.4rem;
}

.content-block h3 {
    color: var(--text-light);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
}

.content-block h3:first-child {
    margin-top: 0;
}

/* ===== MOBILE RESPONSIVE OPTIMIZATIONS ===== */

@media (width <= 640px) {
    /* Content Blocks */
    .content-block {
        margin-bottom: 3rem;
    }

    .content-block__heading {
        font-size: 1.4rem;
    }

    .content-block__text {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Hero CTA Buttons */
    .service-hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .service-hero-cta .btn {
        justify-content: center;
        width: 100%;
    }

    /* Problem Items */
    .problem-item {
        flex-direction: column;
        gap: var(--spacing-md);
        padding: 1.5rem;
    }

    .problem-item h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .problem-item p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Solution Grid */
    .solution-grid .card--padding-large {
        padding: 1.5rem;
    }

    .solution-grid h3 {
        font-size: 1.15rem;
        margin-bottom: 0.5rem;
    }

    .solution-grid p {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 0.75rem;
    }

    .solution-features li {
        font-size: 0.95rem;
        padding: 0.4rem 0;
    }

    /* Process Timeline */
    .process-step {
        gap: var(--spacing-md);
        margin-bottom: 2rem;
    }

    .process-step:not(:last-child)::after {
        bottom: -40px;
        left: 27px;
        top: 65px;
    }

    .process-number {
        font-size: 1.25rem;
        height: 55px;
        width: 55px;
    }

    .process-content h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .process-content p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    .process-duration {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }

    .case-image-column {
        min-height: 200px;
    }

    .case-content-column {
        padding: 1.5rem;
    }

    .case-logo-large {
        font-size: 1.5rem;
    }

    .case-industry-badge {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        padding: 6px 12px;
    }

    .case-meta {
        flex-direction: column;
        font-size: 0.9rem;
        gap: var(--spacing-xs);
    }

}

/* Guide insight callout box */
.guide-insight {
    border-left: 3px solid var(--color-primary, #9bb39c);
    padding: 1rem 1.5rem;
    background: var(--bg-secondary, #1a1a1a);
    font-style: italic;
    margin: 1.5rem 0;
    border-radius: 0 4px 4px 0;
}

/* Visible "last updated" date (AEO trust signal) */
.guide-updated {
    font-size: 0.875rem;
    color: var(--color-text-muted, #999);
    margin: 0.75rem 0 1.5rem;
    font-family: var(--font-mono, monospace);
}

.guide-updated-label {
    color: var(--color-primary, #9bb39c);
    margin-right: 0.25rem;
}

.guide-updated time {
    color: var(--color-text, #e0e0e0);
}

/* TL;DR definition list inside a callout container (AEO featured snippet optimization) */
.guide-tldr-dl {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 1.25rem 2.5rem;
    margin: 2rem 0 0;
    max-width: 980px;
    padding: 2rem 2.5rem;
    background: rgba(155, 179, 156, 0.04);
    border: 1px solid rgba(155, 179, 156, 0.18);
    border-left: 4px solid var(--color-primary, #9bb39c);
    border-radius: 0 4px 4px 0;
}

.guide-tldr-dl dt {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary, #9bb39c);
    font-family: var(--font-mono, monospace);
    padding-top: 0.2rem;
    align-self: start;
}

.guide-tldr-dl dd {
    margin: 0;
    color: var(--color-text, #e0e0e0);
    line-height: 1.65;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(155, 179, 156, 0.1);
}

.guide-tldr-dl dt {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(155, 179, 156, 0.1);
}

.guide-tldr-dl dt:last-of-type,
.guide-tldr-dl dd:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.guide-article .guide-section--compact {
    padding-block: 3.5rem;
}

.guide-article .guide-section--compact .section-subtitle:last-child,
.guide-article .guide-section--compact .section-subtitle:last-child > p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .guide-tldr-dl {
        grid-template-columns: 1fr;
        gap: 0.5rem 0;
        padding: 1.5rem 1.75rem;
    }
    .guide-tldr-dl dt {
        padding-top: 1.25rem;
        padding-bottom: 0.5rem;
        border-bottom: none;
    }
    .guide-tldr-dl dt:first-of-type {
        padding-top: 0;
    }
    .guide-tldr-dl dd {
        padding-bottom: 1.25rem;
    }
}

/* ===== SERVICE TEMPLATE (docs/specs/service-template.md) ===== */

.service-steps {
    border-top: 1px solid var(--green-20);
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.service-steps__item {
    border-bottom: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 4rem minmax(0, 1.3fr) minmax(0, 1fr);
    padding: var(--spacing-md) 0;
}

.service-steps__num {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1.9;
}

.service-steps__body h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin: 0 0 0.3rem;
}

.service-steps__body p {
    color: var(--text-muted-lighter);
    margin: 0;
}

.service-steps__checks {
    color: var(--text-muted-light);
    font-size: 0.92rem;
    list-style: none;
    margin: 0;
    padding: 0.2rem 0 0;
}

.service-steps__checks li {
    padding: 0.15rem 0;
}

.service-steps__checks li::before {
    color: var(--green);
    content: "– ";
}

.service-topics {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--spacing-lg);
}

.service-topics--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-topics > div {
    border-bottom: 1px solid var(--green-20);
    border-right: 1px solid var(--green-20);
    margin: 0 -1px -1px 0;
    padding: var(--spacing-md);
}

.service-topics h3 {
    color: var(--text-light);
    font-size: 1.1rem;
    margin: 0 0 var(--spacing-xs);
}

.service-topics p {
    color: var(--text-muted-lighter);
    font-size: 0.95rem;
    margin: 0;
}

.service-topics a {
    color: var(--green);
    display: inline-block;
    font-size: 0.92rem;
    margin-top: var(--spacing-xs);
}

.service-case {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    margin-top: var(--spacing-lg);
}

.service-case__image img {
    display: block;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    width: 100%;
}

.service-case__body {
    padding: var(--spacing-lg);
}

.service-case__label,
.service-case__glance dt {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.service-case__glance dt {
    color: var(--text-muted);
}

.service-case__body h3 {
    color: var(--text-light);
    font-size: 1.4rem;
    margin: var(--spacing-xs) 0 var(--spacing-sm);
}

.service-case__intro {
    color: var(--text-light);
    margin: var(--spacing-xs) 0 var(--spacing-sm);
}

.service-case__glance {
    margin: 0 0 var(--spacing-md);
}

.service-case__glance > div {
    border-top: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: 8.5rem minmax(0, 1fr);
    padding: 0.7rem 0;
}

.service-case__glance > div:has(> dd:only-child) {
    grid-template-columns: 1fr;
}

.service-case__glance dd {
    color: var(--text-light);
    font-size: 0.94rem;
    margin: 0;
}

.service-case__link {
    color: var(--green);
}

@media (width <= 860px) {
    .service-steps__item {
        grid-template-columns: 2.5rem minmax(0, 1fr);
    }

    .service-steps__checks {
        grid-column: 2;
    }

    .service-topics,
    .service-topics--3,
    .service-case {
        grid-template-columns: 1fr;
    }

    .service-case__glance > div {
        gap: 0.2rem;
        grid-template-columns: 1fr;
    }
}

/* === pages/team-service.css === */
/**
 * Project Team Service Page
 * Unique layout: engagement spectrum, role clusters, partnership timeline,
 * responsibility split.
 */

/* ===== SEGMENTS ===== */

.team-segments {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr;
    margin-top: var(--spacing-2xl);
}

@media (min-width: 900px) {
    .team-segments {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-segment {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-2xl);
    transition: all 0.3s ease;
}

.team-segment:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-4px);
}

.team-segment h3 {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: clamp(1.3rem, 1.5vw + 0.8rem, 1.6rem);
    margin: 0;
}

.team-segment p {
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}

.team-segment-highlight {
    border-left: 3px solid var(--green);
    color: var(--green-neon);
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    margin-top: auto;
    padding: 0.75rem 1rem;
}

/* ===== ENGAGEMENT SPECTRUM ===== */

.engagement-spectrum {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr;
    margin-top: var(--spacing-2xl);
    position: relative;
}

@media (min-width: 768px) {
    .engagement-spectrum {
        grid-template-columns: repeat(2, 1fr);
    }
}

.spectrum-model {
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding: var(--spacing-xl);
    position: relative;
    transition: all 0.3s ease;
    z-index: 1;
}

.spectrum-model:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-6px);
}

.spectrum-model-icon {
    align-items: center;
    background: var(--dark-lighter);
    border: 2px solid var(--green);
    border-radius: 0;
    color: var(--green);
    display: inline-flex;
    height: 64px;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    width: 64px;
}

.spectrum-model:hover .spectrum-model-icon {
    background: var(--green);
    color: var(--dark);
}

.spectrum-model-name {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.spectrum-model-meta {
    color: var(--green-neon);
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    margin: 0;
}

.spectrum-model-fit {
    color: var(--text-light);
    font-family: var(--font-sans);
    margin: 0;
}

.spectrum-model-example {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0;
    opacity: 0.75;
}

.spectrum-note {
    border-left: 3px solid var(--green);
    color: var(--text-light);
    font-family: var(--font-sans);
    margin-top: var(--spacing-2xl);
    opacity: 0.85;
    padding: 0.5rem 0 0.5rem 1.25rem;
}

/* ===== TEAM CLUSTERS ===== */

.team-clusters {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.team-cluster {
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    padding: var(--spacing-xl);
}

.team-cluster-name {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    margin: 0 0 var(--spacing-md) 0;
    text-transform: uppercase;
}

.team-cluster-roles {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .team-cluster-roles {
        grid-template-columns: 1fr 1fr;
    }
}

.team-role h4 {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.15rem;
    margin: 0 0 var(--spacing-xs) 0;
}

.team-role p {
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.6;
    margin: 0;
    opacity: 0.8;
}

/* ===== PARTNERSHIP TIMELINE ===== */

.partnership-timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xl);
    list-style: none;
    margin: var(--spacing-2xl) 0 0 0;
    padding: 0;
    position: relative;
}

.partnership-timeline::before {
    background: linear-gradient(180deg, var(--green-20), var(--green), var(--green-20));
    content: '';
    left: 11px;
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
}

.partnership-timeline-item {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 24px 1fr;
    position: relative;
}

.partnership-timeline-marker {
    background: var(--dark);
    border: 3px solid var(--green);
    border-radius: 0;
    height: 24px;
    margin-top: 4px;
    position: relative;
    transition: all 0.3s ease;
    width: 24px;
    z-index: 1;
}

.partnership-timeline-item:hover .partnership-timeline-marker {
    background: var(--green);
    box-shadow: none;
}

.partnership-timeline-content {
    padding-bottom: var(--spacing-md);
}

.partnership-timeline-meta {
    align-items: baseline;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xs);
}

.partnership-timeline-client {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 700;
}

.partnership-timeline-duration {
    color: var(--green-neon);
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
}

.partnership-timeline-model {
    background: var(--green-05);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    color: var(--text-light);
    font-family: var(--font-mono-short);
    font-size: 0.8rem;
    padding: 0.25rem 0.6rem;
}

.partnership-timeline-content p {
    color: var(--text-light);
    font-family: var(--font-sans);
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}

/* ===== RESPONSIBILITY SPLIT ===== */

.responsibility-split {
    display: grid;
    gap: var(--spacing-xl);
    grid-template-columns: 1fr;
    margin-top: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .responsibility-split {
        grid-template-columns: 1fr 1fr;
    }
}

.responsibility-column {
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    padding: var(--spacing-2xl);
}

.responsibility-column--primary {
    background: var(--dark-card);
    border-color: var(--green);
}

.responsibility-column h3 {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    margin: 0 0 var(--spacing-md) 0;
}

.responsibility-column ul {
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    font-family: var(--font-sans);
    gap: var(--spacing-sm);
    list-style: none;
    margin: 0;
    padding: 0;
}

.responsibility-column li {
    line-height: 1.6;
    padding-left: 1.5rem;
    position: relative;
}

.responsibility-column li::before {
    color: var(--green);
    content: '✓';
    font-weight: 700;
    left: 0;
    position: absolute;
}

/* ===== HERO ADJUSTMENTS ===== */

.team-hero h1 .highlight {
    color: var(--green);
    display: inline-block;
}

/* === pages/portfolio.css === */
/**
 * Portfolio Detail Page Styles
 * COMPLETELY REWRITTEN from old CSS lines 4362-4816
 * Extracted: 2025-11-14 - Ultra Audit Fix
 */

.portfolio-detail {
    background: var(--dark);
    color: var(--text-light);
}

/* Breadcrumb - REMOVED (using schema-only breadcrumbs for SEO without visual clutter) */

/* Portfolio Hero */

/* ===== PORTFOLIO DETAIL PAGE ===== */

.portfolio-hero {
    background: var(--gradient-hero);
    overflow: hidden;
    padding: clamp(6rem, 15vh, 10rem) var(--container-padding-x) clamp(4rem, 10vh, 6rem);
    position: relative;
}

/* Hero Image with Overlay */
.portfolio-hero-image {
    inset: 0;
    position: absolute;
    z-index: 1;
}

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

.portfolio-hero-overlay {
    background: linear-gradient(135deg, rgb(10 10 10 / 85%) 0%, rgb(26 26 26 / 75%) 100%);
    inset: 0;
    position: absolute;
    z-index: 2;
}

.portfolio-hero .container {
    position: relative;
    z-index: 3;
}

.portfolio-hero-content {
    /* .container already has padding and max-width, no need to duplicate */
}

/* Client Logo Badge */
.client-logo,
.portfolio-client-badge {
    background: rgb(155 179 156 / 10%);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    color: var(--green);
    display: inline-block;
    font-family: var(--font-mono-short);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1;
    margin: 0;
    margin-bottom: 2rem;
    padding: 8px 16px;
    text-transform: uppercase;
}

.portfolio-hero h1 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.portfolio-subtitle {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 1.4rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 900px;
    opacity: 0.85;
}

/* Narrative case study summary */
.portfolio-summary {
    border-bottom: 1px solid var(--green-30);
    border-top: 1px solid var(--green-30);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
    max-width: 1050px;
}

.portfolio-summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    min-width: 0;
    padding: 1.5rem 2rem;
}

.portfolio-summary-item + .portfolio-summary-item {
    border-left: 1px solid var(--green-20);
}

.portfolio-summary dt {
    color: var(--text-muted);
    font-family: var(--font-mono-short);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    order: 2;
    text-transform: uppercase;
}

.portfolio-summary dd {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    order: 1;
}

/* Quick Facts Grid */
.portfolio-facts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: 60px;
}

/* Fact cards use base .card with modifiers */
.portfolio-facts .card {
    flex: 0 1 calc(25% - var(--spacing-md));
    max-width: 280px;
    min-width: 200px;
    padding: 16px 20px;
}

/* Compact modifier for cards with long text (automatically applied) */
.portfolio-facts .card--compact {
    flex-basis: 320px;
    max-width: 320px;
}

.fact-content {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
}

.fact-value-wrapper {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.fact-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    height: var(--icon-sm);
    width: var(--icon-sm);
}

/* Portfolio Fact Icons - SVG */
.fact-icon.icon-clock {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm.5-13H11v6l5.25 3.15.75-1.23-4.5-2.67z'/%3E%3C/svg%3E");
}

.fact-icon.icon-check {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-2 16l-4-4 1.41-1.41L10 14.17l6.59-6.59L18 9l-8 8z'/%3E%3C/svg%3E");
}

.fact-icon.icon-globe {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z'/%3E%3C/svg%3E");
}

.fact-icon.icon-building {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M12 7V3H2v18h20V7H12zM6 19H4v-2h2v2zm0-4H4v-2h2v2zm0-4H4V9h2v2zm0-4H4V5h2v2zm4 12H8v-2h2v2zm0-4H8v-2h2v2zm0-4H8V9h2v2zm0-4H8V5h2v2zm10 12h-8v-2h2v-2h-2v-2h2v-2h-2V9h8v10zm-2-8h-2v2h2v-2zm0 4h-2v2h2v-2z'/%3E%3C/svg%3E");
}

.fact-icon.icon-apps {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M4 8h4V4H4v4zm6 12h4v-4h-4v4zm-6 0h4v-4H4v4zm0-6h4v-4H4v4zm6 0h4v-4h-4v4zm6-10v4h4V4h-4zm-6 4h4V4h-4v4zm6 6h4v-4h-4v4zm0 6h4v-4h-4v4z'/%3E%3C/svg%3E");
}

.fact-value {
    color: var(--green);
    font-family: var(--font-sans);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    white-space: nowrap;
}

.fact-label {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin: 0;
    text-transform: uppercase;
}

/* Portfolio Sections */
.portfolio-section {
    background: var(--dark);
    padding: var(--section-padding);
}

.portfolio-section-challenge {
    background: var(--dark);
}

.portfolio-section-solution {
    background: var(--dark-lighter);
}

.portfolio-section-results {
    background: var(--dark);
}

/* Narrative case study */
.portfolio-story-section {
    background: var(--dark);
    padding: clamp(4.5rem, 9vw, 7.5rem) var(--container-padding-x);
}

.portfolio-story-section--alternate {
    background: var(--dark-lighter);
}

.portfolio-story-grid {
    display: grid;
    gap: clamp(2.5rem, 7vw, 7rem);
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
}

.portfolio-story-header {
    align-self: start;
    position: sticky;
    top: 7rem;
}

.portfolio-story-label {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
}

.portfolio-story-header h2 {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.portfolio-story-copy {
    max-width: 760px;
}

.portfolio-story-copy > p {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: clamp(1.08rem, 1.7vw, 1.25rem);
    line-height: 1.85;
    margin: 0;
    opacity: 0.88;
}

.portfolio-story-copy > p + p {
    margin-top: 1.75rem;
}

.portfolio-story-copy > p:first-child {
    color: var(--white);
    font-size: clamp(1.15rem, 1.9vw, 1.35rem);
    opacity: 0.95;
}

.portfolio-story-tech {
    border-top: 1px solid var(--green-20);
    margin-top: 3rem;
    padding-top: 2rem;
}

.portfolio-story-tech h3 {
    color: var(--text-muted);
    font-family: var(--font-mono-short);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    margin: 0 0 1.2rem;
    text-transform: uppercase;
}

/* section-title and section-subtitle use the shared styles from base/typography.css */

/* Section Header (section numbering) */
.section-header {
    align-items: flex-start;
    display: flex;
    gap: var(--spacing-xl);
    margin-bottom: 4rem;
}

.section-number {
    align-items: center;
    background: var(--green-10);
    border: 2px solid var(--green);
    border-radius: 0;
    color: var(--green);
    display: flex;
    flex-shrink: 0;
    font-family: var(--font-mono-short);
    font-size: 1.5rem;
    font-weight: 900;
    height: 70px;
    justify-content: center;
    width: 70px;
}

/* Override base section-title styles for portfolio layout */
.section-header .section-title {
    margin-bottom: 0.5rem;
    text-align: left;
}

.section-header .section-title::before {
    content: ''; /* Remove // prefix for this layout */
}

.section-intro {
    color: var(--text-light);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 0;
    margin-top: 1rem;
    opacity: 0.85;
}

/* Challenge Grid */
.challenge-grid {
    /* Uses .grid-2 and .gap-xl utility classes */
}

/* Challenge items use base .card with modifiers */
.challenge-grid .card:hover {
    box-shadow: none;
    transform: translateX(5px);
}

.challenge-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    height: var(--icon-md);
    margin-bottom: 1rem;
    width: var(--icon-md);
}

.challenge-icon.icon-warning {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ff6b6b' viewBox='0 0 24 24'%3E%3Cpath d='M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z'/%3E%3C/svg%3E");
}

.challenge-grid h3 {
    color: var(--text-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.challenge-grid p {
    color: var(--text-light);
    line-height: 1.7;
    opacity: 0.8;
}

/* Solution Grid */
.solution-grid-portfolio {
    /* Uses .grid-2 and .gap-xl utility classes */
}

.solution-item-portfolio {
    background: var(--dark-lighter);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    padding: 3rem;
    position: relative;
    transition: all 0.3s ease;
}

.solution-item-portfolio:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

.solution-item-portfolio::before {
    color: var(--green);
    content: var(--item-number, '');
    font-family: var(--font-mono-short);
    font-size: 4rem;
    font-weight: 900;
    opacity: 0.15;
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
}

.solution-item-portfolio h3 {
    color: var(--green-neon);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.solution-item-portfolio p {
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 0;
    opacity: 0.85;
}

/* Portfolio Tech Tags */
.portfolio-tech {
    display: block; /* Override flex from home.css */
    margin-top: 5rem;
}

.tech-section-title {
    color: var(--green);
    display: block;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: left;
    width: 100%;
}

.tech-tags {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.tech-tag {
    background: var(--green-10);
    border: 1px solid var(--green);
    border-radius: var(--radius-medium);
    color: var(--green);
    flex: 0 0 auto;
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--green);
    box-shadow: none;
    color: var(--dark);
    transform: translateY(-3px);
}

.tech-stack {
    margin-top: 3rem;
}

.tech-stack h3 {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Results Grid */
.results-grid {
    margin: 0 auto;

    /* Uses .grid-auto-250 and .gap-xl utility classes */
    max-width: var(--container-xl);
}

/* Result cards use base .card with modifiers */

/* Compact result cards - half height */
.results-grid .card--padding-large {
    padding: 1.5rem;
}

.result-icon {
    color: var(--green);
    display: block;
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.result-text {
    color: var(--text-light);
    line-height: 1.5;
    opacity: 0.8;
}

/* Portfolio Impact */
.portfolio-impact {
    align-items: flex-start;
    background: linear-gradient(135deg, var(--dark-card) 0%, var(--dark-lighter) 100%);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-medium);
    display: flex;
    gap: var(--spacing-xl);
    margin-top: 4rem;
    padding: 3rem;
}

.impact-icon {
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
    flex-shrink: 0;
    height: 60px;
    width: 60px;
}

.impact-icon.icon-lightbulb {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%239bb39c' viewBox='0 0 24 24'%3E%3Cpath d='M9 21c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-1H9v1zm3-19C8.14 2 5 5.14 5 9c0 2.38 1.19 4.47 3 5.74V17c0 .55.45 1 1 1h6c.55 0 1-.45 1-1v-2.26c1.81-1.27 3-3.36 3-5.74 0-3.86-3.14-7-7-7zm2.85 11.1l-.85.6V16h-4v-2.3l-.85-.6A4.997 4.997 0 017 9c0-2.76 2.24-5 5-5s5 2.24 5 5c0 1.63-.8 3.16-2.15 4.1z'/%3E%3C/svg%3E");
}

.portfolio-impact h3 {
    color: var(--green-neon);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-impact p {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.85;
}

/* Testimonial */
.portfolio-testimonial {
    background: var(--dark-lighter);
    padding: var(--section-padding);
    text-align: center;
}

.testimonial-content {
    margin: 0 auto;
    max-width: var(--container-md);
}

.testimonial-quote {
    color: var(--green);
    display: block;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.testimonial-text {
    color: var(--text-light);
    font-size: 1.3rem;
    font-style: italic;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.testimonial-author {
    color: var(--text-light);
    opacity: 0.7;
}

/* Portfolio CTA */
.portfolio-cta {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: var(--section-padding-lg);
    text-align: center;
}

/* ===== RELATED SERVICES & PROJECTS (portfolio detail) ===== */

.portfolio-section-related {
    background: var(--dark);
}

.related-projects-grid {
    margin-top: 2rem;
}

/* ===== MOBILE RESPONSIVE ===== */

@media (width <= 640px) {
    /* Hero Section - Mobile */
    .portfolio-hero {
        padding: clamp(6rem, 15vh, 8rem) var(--container-padding-x) 3rem;
    }

    .portfolio-hero h1 {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
        margin-bottom: 1rem;
    }

    .portfolio-subtitle {
        font-size: 1.1rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }

    .portfolio-summary {
        grid-template-columns: 1fr;
        margin-top: 2.5rem;
    }

    .portfolio-summary-item {
        gap: 0.5rem;
        padding: 1.2rem 0;
    }

    .portfolio-summary-item + .portfolio-summary-item {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }

    .portfolio-summary dd {
        font-size: 1.2rem;
    }

    .portfolio-story-section {
        padding: 3.5rem var(--container-padding-x);
    }

    .portfolio-story-grid {
        gap: 1.75rem;
        grid-template-columns: 1fr;
    }

    .portfolio-story-header {
        position: static;
    }

    .portfolio-story-label {
        font-size: 0.72rem;
        margin-bottom: 0.8rem;
    }

    .portfolio-story-header h2 {
        font-size: 2rem;
    }

    .portfolio-story-copy > p,
    .portfolio-story-copy > p:first-child {
        font-size: 1.05rem;
        line-height: 1.75;
    }

    .portfolio-story-copy > p + p {
        margin-top: 1.35rem;
    }

    .portfolio-story-tech {
        margin-top: 2.25rem;
        padding-top: 1.5rem;
    }

    .client-logo,
    .portfolio-client-badge {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
        padding: 6px 12px;
    }

    /* Quick Facts - Stack Vertically */
    .portfolio-facts {
        flex-direction: column;
        gap: var(--spacing-sm);
        margin-top: var(--spacing-xl);
    }

    .portfolio-facts .card {
        flex: 1 1 100%;
        min-width: auto;
        padding: 14px 18px;
    }

    .fact-value {
        font-size: 2rem;
    }

    .fact-label {
        font-size: 0.7rem;
    }

    .fact-icon {
        height: 24px;
        width: 24px;
    }

    /* Portfolio Sections - Reduce Padding */
    .portfolio-section {
        padding: 3rem var(--container-padding-x);
    }

    /* Section Header - Stack Vertically */
    .section-header {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-bottom: 2.5rem;
    }

    .section-number {
        font-size: 1.2rem;
        height: 55px;
        width: 55px;
    }

    .section-header .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
    }

    .section-intro {
        font-size: 1rem;
        line-height: 1.7;
        margin-top: 0.5rem;
    }

    /* Challenge Grid - Single Column */
    .challenge-grid {
        grid-template-columns: 1fr !important;
    }

    .challenge-icon {
        height: 32px;
        margin-bottom: 0.75rem;
        width: 32px;
    }

    .challenge-grid h3 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }

    .challenge-grid p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    /* Solution Grid - Single Column */
    .solution-grid-portfolio {
        grid-template-columns: 1fr !important;
    }

    .solution-item-portfolio {
        padding: 2rem 1.5rem;
    }

    .solution-item-portfolio::before {
        font-size: 3rem;
        right: 1rem;
        top: 1rem;
    }

    .solution-item-portfolio h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .solution-item-portfolio p {
        font-size: 0.95rem;
        line-height: 1.7;
    }

    /* Tech Tags - Mobile Friendly */
    .portfolio-tech {
        margin-top: 3rem;
    }

    .tech-section-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }

    .tech-tags {
        gap: var(--spacing-sm);
    }

    .tech-tag {
        font-size: 0.8rem;
        padding: 8px 16px;
    }

    .tech-stack {
        margin-top: 2rem;
    }

    .tech-stack h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    /* Results Grid - Auto Responsive */
    .results-grid {
        gap: var(--spacing-md) !important;
        grid-template-columns: 1fr !important;
    }

    .results-grid .card--padding-large {
        padding: 1.25rem;
    }

    .result-icon {
        font-size: 1.3rem;
        margin-bottom: 0.4rem;
    }

    .result-text {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    /* Portfolio Impact - Stack Vertically */
    .portfolio-impact {
        flex-direction: column;
        gap: var(--spacing-md);
        margin-top: 3rem;
        padding: 2rem 1.5rem;
    }

    .impact-icon {
        height: 48px;
        width: 48px;
    }

    .portfolio-impact h3 {
        font-size: 1.3rem;
        margin-bottom: 0.75rem;
    }

    .portfolio-impact p {
        font-size: 1rem;
        line-height: 1.7;
    }

    /* Testimonial - Mobile */
    .portfolio-testimonial {
        padding: 3rem var(--container-padding-x);
    }

    .testimonial-quote {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .testimonial-text {
        font-size: 1.1rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }

    .testimonial-author {
        font-size: 0.9rem;
    }

    /* Portfolio CTA - Mobile */
    .portfolio-cta {
        padding: 3rem var(--container-padding-x);
    }

    .portfolio-cta h2 {
        font-size: 1.8rem;
        margin-bottom: 1.5rem;
    }

    .portfolio-cta p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* === pages/contact.css === */
/**
 * Contact Page Styles
 * Contact-specific overrides and components
 * Hero styles jsou v components/hero.css
 */

/* ===== CONTACT HERO OVERRIDES (if needed) ===== */

/* .contact-hero can override the base .hero here, if needed */

/* ===== CONTACT FORM SECTION ===== */

/* h2 and subtitle use base .section-title and .section-subtitle */

.contact-form {
    background: var(--dark);
    border: 1px solid var(--green-20);
    padding: var(--spacing-2xl);
}

/* Scoped overrides for contact page form (prevent collision with forms.css component) */
.contact-form .form-row {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 1fr 1fr;
    margin-bottom: 25px;
}

.contact-form .form-group {
    margin-bottom: 25px;
}

.contact-form .form-group label {
    color: var(--white);
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 10px;
}

/* Field labels only: the consent sentence is a label too. */
.contact-form .form-group label:not(.checkbox-label) {
    color: var(--green);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.contact-form .form-group label::before {
    content: none;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    background: var(--dark);
    border: 1px solid var(--green-30);
    border-radius: 0;
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    padding: 14px 16px;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px var(--green-10);
}

/* Enhanced focus for keyboard navigation */
.contact-form .form-group input:focus-visible,
.contact-form .form-group textarea:focus-visible {
    box-shadow: 0 0 0 3px var(--green-20);
}

.contact-form .form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form .form-checkbox {
    margin: 24px 0;
}

.contact-form .checkbox-label {
    align-items: flex-start;
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    font-size: 0.95rem;
}

.contact-form .checkbox-label input[type="checkbox"] {
    cursor: pointer;
    margin-right: 10px;
    margin-top: 2px;
    width: auto;
}

.contact-form .checkbox-label a {
    color: var(--green);
    text-decoration: none;
}

.contact-form .checkbox-label a:hover {
    text-decoration: underline;
}

.contact-form .form-message {
    border-radius: var(--radius-small);
    font-size: 0.95rem;
    margin-top: 20px;
    padding: 15px 20px;
}

.contact-form .form-message.success {
    background: var(--green-10);
    border: 1px solid var(--green);
    color: var(--green);
}

.contact-form .form-message.error {
    background: rgb(220 38 38 / 10%);
    border: 1px solid var(--red);
    color: var(--red);
}

/* ===== CONTACT DETAILS (docs/specs/contact-page.md) ===== */

.contact-details {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--spacing-lg);
}

.contact-details__list {
    margin: 0;
}

.contact-details__list + .contact-details__list {
    border-left: 1px solid var(--green-20);
}

.contact-details__row {
    border-bottom: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-sm);
    grid-template-columns: 9rem minmax(0, 1fr);
    padding: var(--spacing-sm) var(--spacing-md);
}

.contact-details__row:last-child {
    border-bottom: 0;
}

.contact-details dt {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    line-height: 1.9;
    text-transform: uppercase;
}

.contact-details dd {
    color: var(--text-light);
    margin: 0;
}

.contact-details dd a {
    color: var(--text-light);
}

.contact-details a[href^="tel:"] {
    white-space: nowrap;
}

.contact-details dd a:hover {
    color: var(--green);
}

.contact-details small {
    color: var(--text-muted-light);
    display: block;
    font-size: 0.88rem;
    margin-top: 0.2rem;
}

.contact-details small a {
    color: var(--green);
}

@media (width <= 860px) {
    .contact-details {
        grid-template-columns: 1fr;
    }

    .contact-details__list + .contact-details__list {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }

    .contact-details__row {
        gap: 0.2rem;
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE RESPONSIVE ===== */

@media (width <= 640px) {
    /* Contact Form */
    .contact-form {
        padding: 2rem var(--container-padding-x);
    }

    .contact-form .form-row {
        gap: 0;
        grid-template-columns: 1fr !important;  /* Stack inputs vertically */
        margin-bottom: 0;
    }

    .contact-form .form-group {
        margin-bottom: 20px;
    }

    .contact-form .form-group label:not(.checkbox-label) {
        margin-bottom: 8px;
    }

    .contact-form .form-group .checkbox-label {
        font-size: 0.9rem;
    }

    .contact-form .form-group input,
    .contact-form .form-group textarea {
        font-size: 0.95rem;
        padding: 12px 16px;
    }

    .contact-form .form-group textarea {
        min-height: 120px;
    }

    .contact-form .form-checkbox {
        margin: 25px 0;
    }

    .contact-form .checkbox-label {
        font-size: 0.9rem;
    }

    .contact-form .btn {
        justify-content: center;
        width: 100%;
    }
}

/* The lead form asks a whole question as the message label: a sentence, so normal text. */
.lead-form-section .contact-form .form-group label[for='message'] {
    color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    letter-spacing: normal;
    text-transform: none;
}

/* After the rule above, so the phone size wins. */
@media (width <= 640px) {
    .lead-form-section .contact-form .form-group label[for='message'] {
        font-size: 0.9rem;
    }
}

/* === pages/privacy.css === */
/**
 * Privacy policy page (docs/specs/privacy-page.md): hero like the other subpages, contents with jumps,
 * one reading column, facts as rows, plain grids without icons.
 */

.privacy-policy {
    background: var(--dark);
    padding: var(--spacing-3xl) var(--container-padding-x) var(--spacing-3xl);
}

.privacy-content {
    margin: 0 auto;
    max-width: 780px;
}

.privacy-main {
    color: var(--text-light);
}

/* ===== CONTENTS ===== */

.privacy-toc {
    border: 1px solid var(--green-20);
    margin-bottom: var(--spacing-3xl);
    padding: var(--spacing-lg) var(--spacing-xl);
}

.privacy-toc__title {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-sm);
    text-transform: uppercase;
}

.privacy-toc ol {
    column-gap: var(--spacing-2xl);
    columns: 2;
    counter-reset: toc;
    list-style: none;
    margin: 0;
    padding: 0;
}

.privacy-toc li {
    break-inside: avoid;
    counter-increment: toc;
    padding: 3px 0;
}

.privacy-toc li::before {
    color: var(--green);
    content: counter(toc, decimal-leading-zero);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-right: var(--spacing-sm);
}

.privacy-toc a {
    color: var(--text-light);
    text-decoration: none;
}

.privacy-toc a:hover {
    color: var(--green-neon);
}

/* ===== SECTIONS ===== */

.privacy-section {
    margin-bottom: var(--spacing-3xl);
    scroll-margin-top: 100px;
}

.privacy-section h2 {
    color: var(--green);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    line-height: 1.25;
    margin: 0 0 var(--spacing-md);
}

.privacy-num {
    color: var(--green-neon);
    font-family: var(--font-mono);
    font-size: 0.8em;
    margin-right: var(--spacing-sm);
}

.privacy-num::after {
    content: ' //';
    opacity: 0.6;
}

.privacy-section h3 {
    color: var(--text-light);
    font-size: 1.05rem;
    margin: var(--spacing-lg) 0 var(--spacing-xs);
}

.privacy-section h4 {
    color: var(--text-light);
    font-size: 1rem;
    margin: var(--spacing-md) 0 var(--spacing-xs);
}

.privacy-section p,
.privacy-section li {
    line-height: 1.7;
}

.privacy-section ul {
    margin: 0 0 var(--spacing-md);
    padding-left: 1.2rem;
}

.privacy-section a {
    color: var(--green);
}

/* ===== FACTS (controller, contact) ===== */

.privacy-facts {
    border-top: 1px solid var(--green-20);
    margin: var(--spacing-md) 0;
}

.privacy-facts > div {
    border-bottom: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: 200px minmax(0, 1fr);
    padding: var(--spacing-sm) 0;
}

.privacy-facts dt {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    line-height: 1.9;
    text-transform: uppercase;
}

.privacy-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* ===== GRIDS (purposes, sharing, rights) ===== */

.purpose-grid,
.rights-grid {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: var(--spacing-md) 0;
}

.purpose-item,
.right-item {
    background: var(--dark);
    padding: var(--spacing-md) var(--spacing-lg);
}

.right-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.purpose-item h3,
.right-item h3 {
    margin-top: 0;
}

.purpose-item p,
.right-item p {
    font-size: 0.95rem;
    margin: 0 0 var(--spacing-xs);
}

.legal-basis {
    color: var(--text-muted);
    font-size: 0.85rem !important;
}

/* ===== TABLES ===== */

.cookies-table,
.retention-table {
    border-collapse: collapse;
    font-size: 0.92rem;
    margin: var(--spacing-sm) 0 var(--spacing-md);
    width: 100%;
}

.cookies-table th,
.retention-table th {
    border-bottom: 1px solid var(--green-20);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs) 0;
    text-align: left;
    text-transform: uppercase;
}

.cookies-table td,
.retention-table td {
    border-bottom: 1px solid var(--green-20);
    padding: var(--spacing-sm) var(--spacing-sm) var(--spacing-sm) 0;
    vertical-align: top;
}

.cookies-table code {
    color: var(--green);
    font-size: 0.85rem;
    overflow-wrap: anywhere;
}

.cookies-category {
    margin-bottom: var(--spacing-lg);
}

.security-list {
    margin: var(--spacing-sm) 0 0;
}

/* ===== RESPONSIVE ===== */

@media (width <= 640px) {
    .privacy-policy {
        padding-top: var(--spacing-xl);
    }

    .privacy-toc {
        padding: var(--spacing-md);
    }

    .privacy-toc ol {
        columns: 1;
    }

    .privacy-facts > div {
        gap: 2px;
        grid-template-columns: 1fr;
    }

    .purpose-grid,
    .rights-grid {
        grid-template-columns: 1fr;
    }

    /* Tables become stacked rows on phones; each cell shows its column name */
    .cookies-table thead,
    .retention-table thead {
        clip: rect(0 0 0 0);
        height: 1px;
        overflow: hidden;
        position: absolute;
        width: 1px;
    }

    .cookies-table tr,
    .retention-table tr {
        border-bottom: 1px solid var(--green-20);
        display: block;
        padding: var(--spacing-sm) 0;
    }

    .cookies-table td,
    .retention-table td {
        border: 0;
        display: block;
        padding: 2px 0;
    }

    .cookies-table td::before,
    .retention-table td::before {
        color: var(--green);
        content: attr(data-label);
        display: block;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
    }
}

/* === pages/404.css === */
.error-404 {
    align-items: center;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-blue) 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.error-404::before {
    background:
        radial-gradient(circle at 20% 30%, var(--green-10) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, var(--green-05) 0%, transparent 50%);
    content: '';
    inset: 0;
    pointer-events: none;
    position: absolute;
}

/* Animated grid background */
.error-grid {
    animation: gridMove 20s linear infinite;
    background-image:
        linear-gradient(var(--green-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-05) 1px, transparent 1px);
    background-size: 50px 50px;
    inset: 0;
    opacity: 0.3;
    position: absolute;
}

.error-container {
    max-width: var(--container-sm);
    padding: 120px 20px 40px;  /* Increase top padding for fixed header */
    position: relative;
    text-align: center;
    z-index: var(--z-base);
}

.error-code {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 180px;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 20px;
    position: relative;
    text-shadow: 0 0 40px var(--green-50);
}

.error-title {
    color: var(--text-light);
    font-family: var(--font-sans);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.error-message {
    color: var(--text-muted-light);
    font-size: 1.2rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

.error-terminal {
    background: rgb(0 0 0 / 50%);
    border: 1px solid var(--green-30);
    border-radius: var(--radius-small);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin: 40px 0;
    padding: 20px 30px;
    text-align: left;
}

.terminal-line {
    color: var(--text-muted-light);
    margin: 10px 0;
}

.terminal-prompt {
    color: var(--green);
    margin-right: 10px;
}

.terminal-error {
    color: var(--red-light);
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.error-link {
    align-items: center;
    background: var(--green);
    border-radius: var(--radius-small);
    color: var(--dark);
    display: inline-flex;
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    gap: var(--spacing-sm);
    padding: 15px 35px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.error-link:hover {
    background: var(--green-neon);
    box-shadow: 0 10px 30px var(--green-40);
    transform: translateY(-2px);
}

.error-link-secondary {
    background: transparent;
    border: 2px solid var(--green);
    color: var(--green);
}

.error-link-secondary:hover {
    background: var(--green-10);
    border-color: var(--green-neon);
}

.error-suggestions {
    border-top: 1px solid var(--green-20);
    margin-top: 60px;
    padding-top: 40px;
}

.error-suggestions h3 {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.error-suggestions h3::before {
    color: var(--green-neon);
    content: '> ';
}

.suggestions-list {
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    margin-top: 20px;
}

.suggestion-item {
    background: var(--green-05);
    border: 1px solid var(--green-20);
    border-radius: var(--radius-small);
    padding: 15px;
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: var(--green-10);
    border-color: var(--green);
}

.suggestion-item a {
    color: var(--text-light);
    display: block;
    text-decoration: none;
}

.suggestion-item a:hover {
    color: var(--green);
}

/* ===== MOBILE RESPONSIVE ===== */

@media (width <= 640px) {
    /* Mobile padding same as desktop */

    /* Giant 404 code - reduce significantly on mobile */
    .error-code {
        font-size: 100px;  /* Reduce from 180px */
    }

    .error-title {
        font-size: 1.8rem;  /* Reduce from 2.5rem */
        margin-bottom: 15px;
    }

    .error-message {
        font-size: 1rem;  /* Reduce from 1.2rem */
        line-height: 1.7;
        margin-bottom: 30px;
    }

    /* Terminal - reduce padding and handle overflow */
    .error-terminal {
        font-size: 0.8rem;  /* Reduce from 0.9rem */
        margin: 30px 0;
        overflow-x: auto;  /* Handle long URLs */
        padding: 15px 20px;
    }

    .terminal-line {
        margin: 8px 0;
        word-break: break-all;  /* Break long URLs */
    }

    .terminal-prompt {
        margin-right: 8px;
    }

    /* Action buttons - stack vertically */
    .error-actions {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .error-link {
        font-size: 0.95rem;
        justify-content: center;
        padding: 12px 28px;
        width: 100%;
    }

    /* Suggestions section */
    .error-suggestions {
        margin-top: 50px;
        padding-top: 30px;
    }

    .error-suggestions h3 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }

    .suggestions-list {
        gap: var(--spacing-sm);
        grid-template-columns: 1fr !important;  /* Force 1 column on mobile */
    }

    .suggestion-item {
        padding: 12px;
    }

    .suggestion-item a {
        font-size: 0.95rem;
    }

}


/* === pages/how-we-help.css === */
/**
 * Solutions page: entry point by area (docs/specs/solutions-page.md).
 * Joined grids with 1px lines and no radius, as on the redesigned homepage and subpages.
 */

/* ===== AREAS: situations | services | case study ===== */

.solution-area {
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 0.9fr);
    margin-top: var(--spacing-lg);
}

.solution-area > div {
    padding: var(--spacing-md);
}

.solution-area > div + div {
    border-left: 1px solid var(--green-20);
}

.solution-area__title {
    color: var(--white);
    font-size: 1.5rem;
    margin: 0;
}

.solution-area__label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-sm);
    text-transform: uppercase;
}

.solution-area__when,
.solution-area__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.solution-area__when {
    margin-top: var(--spacing-sm);
}

.solution-area__when li {
    border-top: 1px solid var(--green-20);
    color: var(--text-muted-lighter);
    font-size: 0.95rem;
    line-height: 1.5;
    padding: 0.75rem 0;
}

.solution-area__when strong {
    color: var(--text-light);
    display: block;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.solution-area__list li + li {
    border-top: 1px solid var(--green-20);
}

.solution-area__service {
    color: inherit;
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
}

.solution-area__list li:first-child .solution-area__service {
    padding-top: 0;
}

.solution-area__service-name {
    color: var(--text-light);
    display: flex;
    font-weight: 600;
    justify-content: space-between;
}

.solution-area__service-name::after {
    color: var(--green);
    content: "→";
    transition: transform 0.2s ease;
}

.solution-area__service:hover .solution-area__service-name,
.solution-area__service:focus-visible .solution-area__service-name {
    color: var(--green);
}

.solution-area__service:hover .solution-area__service-name::after {
    transform: translateX(4px);
}

.solution-area__service-text {
    color: var(--text-muted-light);
    display: block;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 0.25rem;
}

.solution-area__reference {
    background: var(--dark-card);
}

.solution-area__client {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 var(--spacing-xs);
}

.solution-area__summary {
    color: var(--text-muted-lighter);
    font-size: 0.92rem;
    line-height: 1.5;
    margin: 0 0 var(--spacing-sm);
}

.solution-area__case-link {
    color: var(--green);
    font-size: 0.92rem;
}

/* ===== ENGAGEMENT MODELS ===== */

.engagement-models {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.engagement-models__item {
    background: var(--dark);
    padding: var(--spacing-md);
}

.engagement-models__item strong {
    color: var(--text-light);
    display: block;
    font-size: 1.05rem;
    margin-bottom: var(--spacing-xs);
}

.engagement-models__item span {
    color: var(--text-muted-light);
    font-size: 0.92rem;
}

.engagement-models__note {
    color: var(--text-muted-light);
    margin: var(--spacing-md) 0 0;
}

.engagement-models__note a {
    color: var(--green);
    white-space: nowrap;
}

/* ===== PROJECT PHASES ===== */

.solution-phases__list {
    border-top: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: var(--spacing-lg) 0 0;
    padding: 0;
}

.solution-phases__item {
    padding: var(--spacing-md) var(--spacing-md) 0 0;
}

.solution-phases__item + .solution-phases__item {
    border-left: 1px solid var(--green-20);
    padding-left: var(--spacing-md);
}

.solution-phases__num {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.solution-phases__item h3 {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: var(--spacing-xs) 0 0.25rem;
}

.solution-phases__duration {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 var(--spacing-xs);
    text-transform: uppercase;
}

.solution-phases__item p:last-child {
    color: var(--text-muted-lighter);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* ===== RESPONSIVE ===== */

@media (width <= 1024px) {
    .engagement-models {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 860px) {
    .solution-area,
    .solution-phases__list {
        grid-template-columns: 1fr;
    }

    .solution-area > div + div {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }

    .solution-phases__item,
    .solution-phases__item + .solution-phases__item {
        padding: var(--spacing-md) 0;
    }

    .solution-phases__item + .solution-phases__item {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }
}

@media (width <= 560px) {
    .engagement-models {
        grid-template-columns: 1fr;
    }
}

/* === pages/digital-twin.css === */
/**
 * Digital Twin landing page
 * Keeps the current TechOne visual language and adds only page-specific layouts.
 */

.digital-twin-hero .hero-subtitle {
    max-width: 850px;
}

.digital-twin-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-xl);
}

/* Highlighted entry shared by homepage and /solutions. */
.digital-twin-entry {
    align-items: center;
    background:
        linear-gradient(120deg, var(--green-10), transparent 52%),
        var(--dark-card);
    border: 1px solid var(--green-40);
    border-radius: var(--radius-small);
    color: var(--text-light);
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: minmax(0, 1fr) auto;
    margin: var(--spacing-xl) 0;
    overflow: hidden;
    padding: var(--spacing-xl);
    position: relative;
    text-decoration: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.digital-twin-entry::before {
    background: linear-gradient(180deg, var(--green), transparent);
    content: '';
    inset: 0 auto 0 0;
    position: absolute;
    width: 3px;
}

.digital-twin-entry:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-3px);
}

.digital-twin-entry__content h3 {
    color: var(--text-bright);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    margin: 0 0 var(--spacing-xs);
}

.digital-twin-entry__content p {
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
    max-width: 850px;
    opacity: 0.85;
}

.digital-twin-entry__arrow {
    color: var(--green);
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.digital-twin-entry:hover .digital-twin-entry__arrow {
    transform: translateX(5px);
}

.digital-twin-entry__link {
    color: var(--green);
    display: inline-block;
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    font-weight: 700;
    margin-top: var(--spacing-sm);
}

.digital-twin-definition__layout {
    align-items: start;
    display: grid;
    gap: var(--spacing-2xl);
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    margin-top: var(--spacing-2xl);
}

.digital-twin-definition__copy > p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 var(--spacing-md);
    opacity: 0.88;
}

.digital-twin-note {
    background: var(--green-10);
    border-left: 3px solid var(--green);
    margin-top: var(--spacing-xl);
    padding: var(--spacing-lg);
}

.digital-twin-note h3 {
    color: var(--text-bright);
    font-size: 1.1rem;
    margin: 0 0 var(--spacing-xs);
}

.digital-twin-note p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    opacity: 0.85;
}

.digital-twin-principles {
    display: grid;
    gap: var(--spacing-md);
}

.digital-twin-principle {
    align-items: flex-start;
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-md);
    grid-template-columns: auto 1fr;
    padding: var(--spacing-lg);
}

.digital-twin-principle__number {
    color: var(--green);
    font-family: var(--font-mono-short);
    font-weight: 700;
}

.digital-twin-principle h3,
.digital-twin-card h3 {
    color: var(--text-bright);
    margin: 0 0 var(--spacing-xs);
}

.digital-twin-principle p,
.digital-twin-card p {
    color: var(--text-light);
    line-height: 1.65;
    margin: 0;
    opacity: 0.82;
}

.digital-twin-layers {
    display: grid;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-2xl);
    max-width: 1080px;
    position: relative;
}

.digital-twin-layers::before {
    background: linear-gradient(180deg, var(--green), var(--green-20));
    bottom: 40px;
    content: '';
    left: 34px;
    position: absolute;
    top: 40px;
    width: 2px;
}

.digital-twin-layer {
    align-items: center;
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 68px minmax(0, 1fr) minmax(250px, 0.7fr);
    padding: var(--spacing-lg);
    position: relative;
}

.digital-twin-layer__number {
    align-items: center;
    background: var(--dark);
    border: 2px solid var(--green);
    border-radius: 0;
    color: var(--green);
    display: flex;
    font-family: var(--font-mono-short);
    font-size: 0.9rem;
    font-weight: 700;
    height: 68px;
    justify-content: center;
    position: relative;
    width: 68px;
    z-index: 1;
}

.digital-twin-layer__content h3 {
    color: var(--text-bright);
    font-size: 1.25rem;
    margin: 0 0 var(--spacing-xs);
}

.digital-twin-layer__content p {
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    opacity: 0.82;
}

.digital-twin-layer__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    list-style: none;
    margin: 0;
    padding: 0;
}

.digital-twin-layer__tags li {
    background: var(--green-10);
    border: 1px solid var(--green-20);
    color: var(--green);
    font-family: var(--font-mono-short);
    font-size: 0.78rem;
    padding: 6px 9px;
}

.digital-twin-card-grid {
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: var(--spacing-xl);
}

.digital-twin-card {
    background: var(--dark-card);
    border: 1px solid var(--green-20);
    padding: var(--spacing-lg);
}

.digital-twin-process .process-timeline {
    margin-top: var(--spacing-2xl);
}

.digital-twin-entry:focus-visible {
    outline: 3px solid var(--green);
    outline-offset: 4px;
}

@media (width <= 1023px) {
    .digital-twin-definition__layout {
        grid-template-columns: 1fr;
    }

    .digital-twin-layer {
        align-items: start;
        grid-template-columns: 68px 1fr;
    }

    .digital-twin-layer__tags {
        grid-column: 2;
        justify-content: flex-start;
    }

}

@media (width <= 640px) {
    .digital-twin-hero__actions {
        align-items: stretch;
        flex-direction: column;
    }

    .digital-twin-hero__actions .btn {
        text-align: center;
        width: 100%;
    }

    .digital-twin-entry {
        align-items: start;
        gap: var(--spacing-sm);
        grid-template-columns: 1fr auto;
        padding: var(--spacing-lg);
    }

    .digital-twin-entry__arrow {
        align-self: center;
        grid-column: 2;
        grid-row: 1;
    }

    .digital-twin-definition__layout,
    .digital-twin-layers {
        margin-top: var(--spacing-xl);
    }

    .digital-twin-layer {
        gap: var(--spacing-md);
        grid-template-columns: 48px minmax(0, 1fr);
        padding: var(--spacing-md);
    }

    .digital-twin-layers::before {
        left: 39px;
    }

    .digital-twin-layer__number {
        height: 48px;
        width: 48px;
    }

    .digital-twin-card-grid {
        grid-template-columns: 1fr;
    }
}

/* === pages/david-ai.css === */
/**
 * Personal AI transformation landing page
 */

.personal-ai-page .nav-container {
    justify-content: flex-start;
}

.personal-ai-hero {
    min-height: min(820px, 100svh);
    /* Bottom padding > height of the fixed cookie bar (~114px), so the CTA never
       falls behind the bar on shorter/laptop viewports. */
    padding-bottom: clamp(8rem, 12vh, 9rem);
    padding-top: clamp(6rem, 11vh, 10rem);
}

.personal-ai-glow {
    background: radial-gradient(circle, rgb(184 255 155 / 13%) 0%, transparent 68%);
    height: 650px;
    pointer-events: none;
    position: absolute;
    right: -180px;
    top: 50px;
    width: 650px;
}

.personal-ai-hero-layout {
    align-items: center;
    display: grid;
    gap: clamp(3rem, 7vw, 7rem);
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.personal-ai-hero h1 {
    font-size: clamp(2.8rem, 4vw, 4.2rem);
    letter-spacing: -0.045em;
    max-width: 930px;
}

.personal-ai-hero h1 span {
    color: var(--green-neon);
}

.personal-ai-lead {
    color: var(--text-muted-lighter);
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.65;
    margin: 0 0 var(--spacing-xl);
    max-width: 790px;
}

.personal-ai-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.personal-ai-text-link {
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
}

.personal-ai-text-link span {
    color: var(--green-neon);
    display: inline-block;
    margin-left: 0.45rem;
    transition: transform 0.2s ease;
}

.personal-ai-text-link:hover span {
    transform: translateY(4px);
}

.personal-ai-profile {
    background: var(--dark-card);
    margin: 0;
    overflow: hidden;
    position: relative;
}

.personal-ai-profile img {
    aspect-ratio: 4 / 5;
    display: block;
    filter: saturate(0.75) contrast(1.05);
    height: auto;
    object-fit: cover;
    object-position: center top;
    width: 100%;
}

.personal-ai-profile-caption {
    background: linear-gradient(to top, rgb(10 10 10 / 95%) 35%, rgb(10 10 10 / 0%));
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    left: 0;
    padding: 4rem var(--spacing-lg) var(--spacing-lg);
    position: absolute;
    right: 0;
}

.personal-ai-profile-caption strong {
    color: var(--white);
    font-size: 1.2rem;
}

.personal-ai-profile-caption span {
    color: var(--text-muted-light);
    font-size: 0.9rem;
    line-height: 1.45;
}

.personal-ai-profile-facts {
    border-top: 1px solid var(--green-15);
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    list-style: none;
    margin: var(--spacing-sm) 0 0;
    padding: var(--spacing-sm) 0 0;
}

.personal-ai-profile-facts li {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ===== SECTIONS in the site look (docs/specs/david-page.md) ===== */
.dm-grid {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
}

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

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

.dm-grid > article {
    background: var(--dark-card);
    padding: var(--spacing-lg);
}

.section-darker .dm-grid > article {
    background: var(--dark);
}

.dm-label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dm-grid h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    line-height: 1.3;
    margin: var(--spacing-sm) 0 var(--spacing-xs);
}

.dm-grid p {
    color: var(--text-muted-lighter);
    font-size: 0.95rem;
    margin: 0 0 var(--spacing-sm);
}

.dm-grid p.dm-proof {
    border-left: 2px solid var(--green-neon);
    color: var(--text-light);
    padding-left: var(--spacing-sm);
}

.dm-grid p.dm-tags {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    margin: 0;
    text-transform: uppercase;
}

.dm-founder__grid {
    align-items: start;
    display: grid;
    gap: var(--spacing-3xl);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dm-founder__grid > div > p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.7;
    margin: 0 0 var(--spacing-md);
}

.dm-founder blockquote {
    border-left: 2px solid var(--green-neon);
    margin: 0;
    padding: var(--spacing-xs) 0 var(--spacing-xs) var(--spacing-lg);
}

.dm-founder blockquote p {
    color: var(--text-light);
    font-size: 1.3rem;
    line-height: 1.5;
    margin: 0;
}

.dm-founder cite {
    color: var(--text-muted);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-style: normal;
    letter-spacing: 0.08em;
    margin-top: var(--spacing-sm);
    text-transform: uppercase;
}

.dm-link {
    color: var(--green);
}

.dm-steps {
    border-top: 1px solid var(--green-20);
    list-style: none;
    margin: 0;
    padding: 0;
}

.dm-steps > li {
    border-bottom: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 64px minmax(0, 1.2fr) minmax(0, 1fr);
    padding: var(--spacing-lg) 0;
}

.dm-steps__num {
    color: var(--green);
    font-family: var(--font-mono);
}

.dm-steps h3 {
    color: var(--text-light);
    font-size: 1.15rem;
    margin: 0 0 var(--spacing-xs);
}

.dm-steps p {
    color: var(--text-muted-lighter);
    margin: 0;
}

.dm-steps ul {
    color: var(--text-muted-lighter);
    font-size: 0.92rem;
    margin: 0;
    padding-left: 1.1rem;
}

.dm-booking {
    padding: 0 var(--container-padding-x) var(--spacing-3xl);
}

.dm-booking__row {
    align-items: center;
    border-top: 1px solid var(--green-20);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md) var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.dm-booking__row p {
    color: var(--text-muted-lighter);
    margin: 0;
}

.dm-booking__row strong {
    color: var(--text-light);
}

.dm-booking__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs) var(--spacing-lg);
}

.dm-booking__contacts a {
    color: var(--green);
}

/* Short viewports: compact hero so the main CTA stays above the cookie bar */
@media (max-height: 900px) {
    .personal-ai-hero {
        min-height: auto;
        padding-top: clamp(4rem, 7vh, 6rem);
        padding-bottom: clamp(7rem, 12vh, 9rem);
    }

    .personal-ai-hero-layout {
        align-items: start;
    }

    .personal-ai-hero h1 {
        font-size: clamp(2.6rem, 4.2vw, 4.2rem);
    }

    .personal-ai-lead {
        font-size: clamp(1.05rem, 1.4vw, 1.25rem);
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 900px) {
    .personal-ai-hero {
        min-height: auto;
    }

    .personal-ai-hero-layout,
    .dm-grid--3,
    .dm-grid--2,
    .dm-founder__grid {
        grid-template-columns: 1fr;
    }

    .personal-ai-profile {
        max-width: 420px;
    }

    .dm-founder__grid {
        gap: var(--spacing-xl);
    }

    .dm-steps > li {
        gap: var(--spacing-xs);
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .personal-ai-page .site-nav {
        padding: 0.75rem var(--container-padding-x);
    }

    .personal-ai-hero {
        padding-bottom: var(--spacing-3xl);
        padding-top: 7.5rem;
    }

    .personal-ai-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.4rem);
    }

    .personal-ai-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .personal-ai-actions .btn,
    .dm-booking__row .btn {
        text-align: center;
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .personal-ai-text-link span {
        transition: none;
    }
}

/* === pages/products.css === */
/* =============================================================================
   PRODUCTS PAGE ("/produkty", "/en/products")
   Asymmetric product hero + 2x2 spec grid + monospace section badges
   ============================================================================= */

/* ===== PRODUCT SECTION ===== */
.product-section {
    overflow: hidden;
    position: relative;
}

/* ===== THREE STEPS (docs/specs/products-page.md) ===== */
.product-flow {
    border-top: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-flow__step {
    padding: var(--spacing-lg) var(--spacing-lg) 0 0;
}

.product-flow__step + .product-flow__step {
    border-left: 1px solid var(--green-20);
    padding-left: var(--spacing-lg);
}

.product-flow__num {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.product-flow__title {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: var(--spacing-sm) 0 var(--spacing-xs);
}

.product-flow__step p {
    color: var(--text-muted);
    margin: 0;
}

/* ===== 2x2 SPEC GRID ===== */
.product-specs {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-spec {
    background: rgba(155, 179, 156, 0.04);
    border: 1px solid var(--green-20, rgba(155, 179, 156, 0.18));
    border-radius: 0;
    padding: 1.75rem;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.product-spec:hover {
    background: rgba(155, 179, 156, 0.06);
    border-color: var(--green-40, rgba(155, 179, 156, 0.4));
}

.product-spec__badge {
    color: var(--green);
    font-family: var(--font-mono, 'JetBrains Mono', 'SF Mono', Menlo, monospace);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
    opacity: 0.75;
}

.product-spec__heading {
    color: var(--white);
    font-size: 1.1875rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 1rem;
}

.product-spec__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.product-spec__list li {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.55;
    margin-bottom: 0.75rem;
    padding-left: 1.25rem;
    position: relative;
}

.product-spec__list li:last-child {
    margin-bottom: 0;
}

.product-spec__list li::before {
    color: var(--green);
    content: '▸';
    font-size: 0.8rem;
    left: 0;
    position: absolute;
    top: 0.1rem;
}

.product-spec__text {
    color: var(--text-light);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.product-spec__text p {
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0 0 0.75rem;
}

.product-spec__text p:last-child {
    margin-bottom: 0;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 900px) {
    .product-flow {
        grid-template-columns: 1fr;
    }

    .product-flow__step + .product-flow__step {
        border-left: 0;
        border-top: 1px solid var(--green-20);
        margin-top: var(--spacing-lg);
        padding-left: 0;
    }
}

@media (max-width: 640px) {
    .product-specs {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .product-spec {
        padding: 1.25rem;
    }
}

/* === pages/subpages.css === */
/**
 * Subpages in the homepage style (docs/specs/subpages-redesign.md).
 * Loaded after the page files: hero ground or photo, plain eyebrow labels, card grids joined by thin lines.
 */

/* ===== HERO GROUND: green gradient with a fine line grid (no circles) ===== */

.hero:not(.homepage-hero, .personal-ai-hero) {
    background: linear-gradient(120deg, #0d1a10 0%, var(--dark) 55%, #132516 100%);
    border-bottom: 1px solid var(--green-20);
}

.hero:not(.homepage-hero, .personal-ai-hero) .grid-bg {
    background-image:
        linear-gradient(var(--green-05) 1px, transparent 1px),
        linear-gradient(90deg, var(--green-05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, transparent 0%, #000 65%);
    opacity: 1;
}

/* ===== HERO PHOTO (includes/partials/hero-decoration.php, data/hero-photos.php) ===== */

.hero-photo {
    height: 100%;
    inset: 0;
    object-fit: cover;
    position: absolute;
    width: 100%;
    z-index: 0;
}

/* Darker on the text side, the photo shows through on the right. */
.hero:has(> .hero-photo)::after {
    background: linear-gradient(90deg, rgb(7 12 8 / 94%) 0%, rgb(10 22 12 / 80%) 45%, rgb(31 58 34 / 45%) 100%);
    content: '';
    inset: 0;
    position: absolute;
    z-index: 0;
}

.hero:has(> .hero-photo) .grid-bg {
    display: none;
}

.hero:has(> .hero-photo) .hero-content {
    z-index: 1;
}

@media (width <= 768px) {
    .hero:has(> .hero-photo)::after {
        background: linear-gradient(180deg, rgb(7 12 8 / 80%) 0%, rgb(7 12 8 / 92%) 100%);
    }
}

/* ===== EYEBROW LABELS above the hero title: plain mono text, no box ===== */

.hero:not(.homepage-hero, .personal-ai-hero) :is(.hero-label, .service-badge) {
    background: none;
    border: 0;
    border-radius: 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 0;
    text-transform: uppercase;
}

/* ===== CARD GRIDS joined by thin lines (cards stay readable alone, e.g. a single column on phones) ===== */

:is(.values-grid, .solution-grid, .related-services-grid, .digital-twin-card-grid, .team-segments, .engagement-spectrum, .team-clusters):has(> :is(.card, .value-card, .related-service-card, .digital-twin-card, .team-segment, .spectrum-model, .team-cluster)) {
    border: 1px solid var(--green-20);
    gap: 1px;
}

:is(.values-grid, .solution-grid, .related-services-grid, .digital-twin-card-grid, .team-segments, .engagement-spectrum, .team-clusters) > :is(.card, .value-card, .related-service-card, .digital-twin-card, .team-segment, .spectrum-model, .team-cluster) {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    outline: 1px solid var(--green-20);
    transform: none;
}

/* No lift or shadow on hover; the line outline stays, keyboard focus keeps its own ring. */
:is(.values-grid, .solution-grid, .related-services-grid, .digital-twin-card-grid, .team-segments, .engagement-spectrum, .team-clusters) > :is(.card, .value-card, .related-service-card, .digital-twin-card, .team-segment, .spectrum-model, .team-cluster):hover {
    box-shadow: none;
    transform: none;
}

/* Keyboard focus keeps a visible ring over the thin grid line. */
:is(.values-grid, .solution-grid, .related-services-grid, .digital-twin-card-grid, .team-segments, .engagement-spectrum, .team-clusters) > :is(.card, .value-card, .related-service-card, .digital-twin-card, .team-segment, .spectrum-model, .team-cluster):focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Hover cue for linked cards: a lighter ground. */
:is(.related-services-grid, .solution-grid) > .related-service-card:hover {
    background: var(--green-05);
}

/* ===== HISTORY (About): years and rows divided by thin lines, no dots or boxes ===== */

.timeline-vertical::before,
.timeline-dot {
    display: none;
}

.timeline-content-vertical {
    background: none;
    border: 0;
    border-radius: 0;
    border-top: 1px solid var(--green-20);
    box-shadow: none;
    padding-left: 0;
    padding-right: 0;
}

.timeline-item-vertical:hover .timeline-content-vertical {
    transform: none;
}

/* ===== FORMS: the consent sentence is running text, not a mono label ===== */

.contact-form .checkbox-label {
    font-family: var(--font-sans);
    font-weight: 400;
}

/* ===== LEGAL PAGES: the same green ground as the other small pages ===== */

.privacy-header {
    background:
        linear-gradient(var(--green-05) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(90deg, var(--green-05) 1px, transparent 1px) 0 0 / 64px 64px,
        linear-gradient(120deg, #0d1a10 0%, var(--dark) 55%, #132516 100%);
    border: 1px solid var(--green-20);
    padding: var(--spacing-2xl) var(--spacing-xl);
}

@media (width <= 640px) {
    .privacy-header {
        padding: var(--spacing-lg) var(--spacing-md);
    }
}

/* Guide process steps: the same square marker as the service process (the connector line expects 70 px). */
.process-step .step-number {
    align-items: center;
    background: var(--dark);
    border: 1px solid var(--green-40);
    color: var(--green);
    display: flex;
    flex-shrink: 0;
    font-family: var(--font-mono-short);
    font-size: 1.1rem;
    font-weight: 500;
    height: 70px;
    justify-content: center;
    width: 70px;
}

/* Phones: the connector line in services.css moves to fit a 55 px marker. */
@media (width <= 640px) {
    .process-step .step-number {
        font-size: 1rem;
        height: 55px;
        width: 55px;
    }
}

/* ===== CASE STUDY: client label as plain mono text, like the other eyebrow labels ===== */

.portfolio-hero .portfolio-client-badge {
    background: none;
    border: 0;
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    padding: 0;
    text-transform: uppercase;
}

/* ===== CASE STUDY (docs/specs/case-study-redesign.md) ===== */

/* Hero photo in its real colours, like the case cards on the homepage (David 24 Nov 2026);
   only darkened on the text side for readability. */
.portfolio-hero--narrative .portfolio-hero-overlay {
    background: linear-gradient(90deg, rgb(10 10 10 / 92%) 0%, rgb(10 10 10 / 72%) 50%, rgb(10 10 10 / 30%) 100%);
    z-index: 1;
}

/* In brief: start, what we did, result */
.case-glance {
    background: var(--dark);
    border: 1px solid var(--green-20);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: var(--spacing-xl);
    max-width: var(--container-xl);
}

.case-glance__item {
    padding: var(--spacing-lg);
}

.case-glance__item + .case-glance__item {
    border-left: 1px solid var(--green-20);
}

.case-glance__label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
}

.case-glance__text {
    color: var(--text-light);
    margin: 0;
}

/* The story on one numbered rail */
.case-rail {
    border-top: 1px solid var(--green-20);
    list-style: none;
    margin: 0;
    padding: 0;
}

.case-rail__step {
    border-bottom: 1px solid var(--green-20);
    display: grid;
    gap: var(--spacing-lg);
    grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr);
    padding: var(--spacing-xl) 0;
    position: relative;
}

.case-rail__step::before {
    background: var(--green);
    bottom: 0;
    content: '';
    left: 23px;
    opacity: 0.45;
    position: absolute;
    top: 0;
    width: 1px;
}

.case-rail__step:first-child::before {
    top: var(--spacing-xl);
}

.case-rail__step:last-child::before {
    bottom: auto;
    height: var(--spacing-xl);
}

.case-rail__num {
    background: var(--dark);
    border: 1px solid var(--green);
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    height: 46px;
    line-height: 46px;
    position: relative;
    text-align: center;
    width: 46px;
    z-index: 1;
}

.case-rail__label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    margin: 0 0 0.6rem;
    text-transform: uppercase;
}

.case-rail__head h3 {
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0;
}

.case-rail__body p {
    color: var(--text-light);
    margin: 0 0 1rem;
}

.case-rail__body p:last-child {
    margin-bottom: 0;
}

/* Read on: guide for the topic, the main solution and the next case study */
.case-next__grid {
    background: var(--green-20);
    border: 1px solid var(--green-20);
    display: grid;
    gap: 1px;
    grid-auto-columns: minmax(0, 1fr);
    grid-auto-flow: column;
}

.case-next__link {
    background: var(--dark);
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: var(--spacing-lg);
    text-decoration: none;
}

.case-next__label {
    color: var(--green);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-next__title {
    font-size: 1.2rem;
    font-weight: 700;
}

@media (hover: hover) {
    .case-next__link:hover {
        background: var(--green-05);
    }
}

@media (width <= 860px) {
    .case-glance {
        grid-template-columns: 1fr;
    }

    .case-glance__item + .case-glance__item {
        border-left: 0;
        border-top: 1px solid var(--green-20);
    }

    .case-rail__step {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .case-rail__body {
        grid-column: 2;
    }

    .case-next__grid {
        grid-auto-flow: row;
    }

    .portfolio-hero--narrative .portfolio-hero-overlay {
        background: linear-gradient(180deg, rgb(10 10 10 / 80%) 0%, rgb(10 10 10 / 90%) 100%);
    }
}

/* === utilities/spacing.css === */
/**
 * Spacing Utility Classes
 * Margin and padding utilities based on spacing scale
 * Uses spacing variables from base/variables.css
 */

/* ===== MARGIN UTILITIES ===== */

/* Margin All Sides */
.m-0 {
    margin: 0;
}

.m-xs {
    margin: var(--spacing-xs); /* 0.5rem / 8px */
}

.m-sm {
    margin: var(--spacing-sm); /* 1rem / 16px */
}

.m-md {
    margin: var(--spacing-md); /* 1.5rem / 24px */
}

.m-lg {
    margin: var(--spacing-lg); /* 2rem / 32px */
}

.m-xl {
    margin: var(--spacing-xl); /* 2.5rem / 40px */
}

.m-2xl {
    margin: var(--spacing-2xl); /* 3rem / 48px */
}

.m-3xl {
    margin: var(--spacing-4xl); /* 5rem / 80px */
}

.m-auto {
    margin: auto;
}

/* Margin Top */
.mt-0 {
    margin-top: 0;
}

.mt-xs {
    margin-top: var(--spacing-xs);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}

.mt-md {
    margin-top: var(--spacing-md);
}

.mt-lg {
    margin-top: var(--spacing-lg);
}

.mt-xl {
    margin-top: var(--spacing-xl);
}

.mt-2xl {
    margin-top: var(--spacing-2xl);
}

.mt-3xl {
    margin-top: var(--spacing-4xl);
}

/* Margin Bottom */
.mb-0 {
    margin-bottom: 0;
}

.mb-xs {
    margin-bottom: var(--spacing-xs);
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}

.mb-md {
    margin-bottom: var(--spacing-md);
}

.mb-lg {
    margin-bottom: var(--spacing-lg);
}

.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mb-2xl {
    margin-bottom: var(--spacing-2xl);
}

.mb-3xl {
    margin-bottom: var(--spacing-4xl);
}

/* Margin Left */
.ml-0 {
    margin-left: 0;
}

.ml-xs {
    margin-left: var(--spacing-xs);
}

.ml-sm {
    margin-left: var(--spacing-sm);
}

.ml-md {
    margin-left: var(--spacing-md);
}

.ml-lg {
    margin-left: var(--spacing-lg);
}

.ml-xl {
    margin-left: var(--spacing-xl);
}

.ml-2xl {
    margin-left: var(--spacing-2xl);
}

.ml-3xl {
    margin-left: var(--spacing-4xl);
}

.ml-auto {
    margin-left: auto;
}

/* Margin Right */
.mr-0 {
    margin-right: 0;
}

.mr-xs {
    margin-right: var(--spacing-xs);
}

.mr-sm {
    margin-right: var(--spacing-sm);
}

.mr-md {
    margin-right: var(--spacing-md);
}

.mr-lg {
    margin-right: var(--spacing-lg);
}

.mr-xl {
    margin-right: var(--spacing-xl);
}

.mr-2xl {
    margin-right: var(--spacing-2xl);
}

.mr-3xl {
    margin-right: var(--spacing-4xl);
}

.mr-auto {
    margin-right: auto;
}

/* Margin Horizontal (left + right) */
.mx-0 {
    margin-left: 0;
    margin-right: 0;
}

.mx-xs {
    margin-left: var(--spacing-xs);
    margin-right: var(--spacing-xs);
}

.mx-sm {
    margin-left: var(--spacing-sm);
    margin-right: var(--spacing-sm);
}

.mx-md {
    margin-left: var(--spacing-md);
    margin-right: var(--spacing-md);
}

.mx-lg {
    margin-left: var(--spacing-lg);
    margin-right: var(--spacing-lg);
}

.mx-xl {
    margin-left: var(--spacing-xl);
    margin-right: var(--spacing-xl);
}

.mx-2xl {
    margin-left: var(--spacing-2xl);
    margin-right: var(--spacing-2xl);
}

.mx-3xl {
    margin-left: var(--spacing-4xl);
    margin-right: var(--spacing-4xl);
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* Margin Vertical (top + bottom) */
.my-0 {
    margin-bottom: 0;
    margin-top: 0;
}

.my-xs {
    margin-bottom: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.my-sm {
    margin-bottom: var(--spacing-sm);
    margin-top: var(--spacing-sm);
}

.my-md {
    margin-bottom: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.my-lg {
    margin-bottom: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.my-xl {
    margin-bottom: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.my-2xl {
    margin-bottom: var(--spacing-2xl);
    margin-top: var(--spacing-2xl);
}

.my-3xl {
    margin-bottom: var(--spacing-4xl);
    margin-top: var(--spacing-4xl);
}

/* ===== PADDING UTILITIES ===== */

/* Padding All Sides */
.p-0 {
    padding: 0;
}

.p-xs {
    padding: var(--spacing-xs);
}

.p-sm {
    padding: var(--spacing-sm);
}

.p-md {
    padding: var(--spacing-md);
}

.p-lg {
    padding: var(--spacing-lg);
}

.p-xl {
    padding: var(--spacing-xl);
}

.p-2xl {
    padding: var(--spacing-2xl);
}

.p-3xl {
    padding: var(--spacing-4xl);
}

/* Padding Top */
.pt-0 {
    padding-top: 0;
}

.pt-xs {
    padding-top: var(--spacing-xs);
}

.pt-sm {
    padding-top: var(--spacing-sm);
}

.pt-md {
    padding-top: var(--spacing-md);
}

.pt-lg {
    padding-top: var(--spacing-lg);
}

.pt-xl {
    padding-top: var(--spacing-xl);
}

.pt-2xl {
    padding-top: var(--spacing-2xl);
}

.pt-3xl {
    padding-top: var(--spacing-4xl);
}

/* Padding Bottom */
.pb-0 {
    padding-bottom: 0;
}

.pb-xs {
    padding-bottom: var(--spacing-xs);
}

.pb-sm {
    padding-bottom: var(--spacing-sm);
}

.pb-md {
    padding-bottom: var(--spacing-md);
}

.pb-lg {
    padding-bottom: var(--spacing-lg);
}

.pb-xl {
    padding-bottom: var(--spacing-xl);
}

.pb-2xl {
    padding-bottom: var(--spacing-2xl);
}

.pb-3xl {
    padding-bottom: var(--spacing-4xl);
}

/* Padding Left */
.pl-0 {
    padding-left: 0;
}

.pl-xs {
    padding-left: var(--spacing-xs);
}

.pl-sm {
    padding-left: var(--spacing-sm);
}

.pl-md {
    padding-left: var(--spacing-md);
}

.pl-lg {
    padding-left: var(--spacing-lg);
}

.pl-xl {
    padding-left: var(--spacing-xl);
}

.pl-2xl {
    padding-left: var(--spacing-2xl);
}

.pl-3xl {
    padding-left: var(--spacing-4xl);
}

/* Padding Right */
.pr-0 {
    padding-right: 0;
}

.pr-xs {
    padding-right: var(--spacing-xs);
}

.pr-sm {
    padding-right: var(--spacing-sm);
}

.pr-md {
    padding-right: var(--spacing-md);
}

.pr-lg {
    padding-right: var(--spacing-lg);
}

.pr-xl {
    padding-right: var(--spacing-xl);
}

.pr-2xl {
    padding-right: var(--spacing-2xl);
}

.pr-3xl {
    padding-right: var(--spacing-4xl);
}

/* Padding Horizontal (left + right) */
.px-0 {
    padding-left: 0;
    padding-right: 0;
}

.px-xs {
    padding-left: var(--spacing-xs);
    padding-right: var(--spacing-xs);
}

.px-sm {
    padding-left: var(--spacing-sm);
    padding-right: var(--spacing-sm);
}

.px-md {
    padding-left: var(--spacing-md);
    padding-right: var(--spacing-md);
}

.px-lg {
    padding-left: var(--spacing-lg);
    padding-right: var(--spacing-lg);
}

.px-xl {
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
}

.px-2xl {
    padding-left: var(--spacing-2xl);
    padding-right: var(--spacing-2xl);
}

.px-3xl {
    padding-left: var(--spacing-4xl);
    padding-right: var(--spacing-4xl);
}

/* Padding Vertical (top + bottom) */
.py-0 {
    padding-bottom: 0;
    padding-top: 0;
}

.py-xs {
    padding-bottom: var(--spacing-xs);
    padding-top: var(--spacing-xs);
}

.py-sm {
    padding-bottom: var(--spacing-sm);
    padding-top: var(--spacing-sm);
}

.py-md {
    padding-bottom: var(--spacing-md);
    padding-top: var(--spacing-md);
}

.py-lg {
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.py-xl {
    padding-bottom: var(--spacing-xl);
    padding-top: var(--spacing-xl);
}

.py-2xl {
    padding-bottom: var(--spacing-2xl);
    padding-top: var(--spacing-2xl);
}

.py-3xl {
    padding-bottom: var(--spacing-4xl);
    padding-top: var(--spacing-4xl);
}

/* === utilities/text.css === */
/**
 * Text Utility Classes
 * Colors, sizes, weights, alignment, and text styles
 */

/* ===== TEXT COLORS ===== */

.text-white { color: var(--white); }

.text-green { color: var(--green); }

.text-green-neon { color: var(--green-neon); }

.text-light { color: var(--text-light); }

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

.text-muted-light { color: var(--text-muted-light); }

.text-muted-lighter { color: var(--text-muted-lighter); }

.text-dark { color: var(--text-dark); }

.text-orange { color: var(--orange); }

.text-red { color: var(--red); }

/* ===== TEXT SIZES ===== */

.text-xs { font-size: 0.75rem; }    /* 12px */
.text-sm { font-size: 0.875rem; }   /* 14px */
.text-base { font-size: 1rem; }     /* 16px */
.text-lg { font-size: 1.125rem; }   /* 18px */
.text-xl { font-size: 1.25rem; }    /* 20px */
.text-2xl { font-size: 1.5rem; }    /* 24px */
.text-3xl { font-size: 1.875rem; }  /* 30px */
.text-4xl { font-size: 2.25rem; }   /* 36px */
.text-5xl { font-size: 3rem; }      /* 48px */
.text-6xl { font-size: 4rem; }      /* 64px */

/* ===== FONT WEIGHTS ===== */

.font-light { font-weight: 300; }

.font-normal { font-weight: 400; }

.font-medium { font-weight: 500; }

.font-semibold { font-weight: 600; }

.font-bold { font-weight: 700; }

.font-black { font-weight: 900; }

/* ===== TEXT ALIGNMENT ===== */

.text-left { text-align: left; }

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

.text-right { text-align: right; }

/* ===== TEXT STYLES ===== */

.uppercase { text-transform: uppercase; }

.lowercase { text-transform: lowercase; }

.capitalize { text-transform: capitalize; }

.italic { font-style: italic; }

.not-italic { font-style: normal; }

.underline { text-decoration: underline; }

.line-through { text-decoration: line-through; }

.no-underline { text-decoration: none; }

.text-inherit { color: inherit; }

/* ===== LETTER SPACING ===== */

.tracking-tight { letter-spacing: -0.05em; }

.tracking-normal { letter-spacing: 0; }

.tracking-wide { letter-spacing: 0.025em; }

.tracking-wider { letter-spacing: 0.05em; }

.tracking-widest { letter-spacing: 0.1em; }

/* ===== LINE HEIGHT ===== */

.leading-tight { line-height: 1.25; }

.leading-normal { line-height: 1.5; }

.leading-relaxed { line-height: 1.75; }

.leading-loose { line-height: 2; }

/* ===== FONT FAMILIES ===== */

.font-sans { font-family: var(--font-sans); }

.font-mono { font-family: var(--font-mono); }

.font-mono-short { font-family: var(--font-mono-short); }

/* === utilities/effects.css === */
/**
 * Effects Utility Classes
 * Transitions, shadows, and hover effects
 */

/* ===== TRANSITIONS ===== */

.transition-all {
    transition: all 0.3s ease;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-opacity {
    transition: opacity 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-smooth {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-slow {
    transition: all 0.5s ease;
}

/* ===== BOX SHADOWS ===== */

.shadow-sm {
    box-shadow: none;
}

.shadow-md {
    box-shadow: none;
}

.shadow-lg {
    box-shadow: none;
}

.shadow-xl {
    box-shadow: none;
}

.shadow-green-glow {
    box-shadow: none;
}

.shadow-card {
    box-shadow: none;
}

/* ===== HOVER EFFECTS ===== */

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-lift-sm:hover {
    transform: translateY(-3px);
}

.hover-scale:hover {
    transform: scale(1.05);
}

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

.hover-shadow:hover {
    box-shadow: none;
}

.hover-border-green:hover {
    border-color: var(--green);
}

/* ===== COMBINED HOVER EFFECTS ===== */

.hover-card {
    transition: all 0.3s ease;
}

.hover-card:hover {
    border-color: var(--green);
    box-shadow: none;
    transform: translateY(-5px);
}

/* ===== OPACITY UTILITIES ===== */

.opacity-0 { opacity: 0; }

.opacity-10 { opacity: 0.1; }

.opacity-20 { opacity: 0.2; }

.opacity-30 { opacity: 0.3; }

.opacity-40 { opacity: 0.4; }

.opacity-50 { opacity: 0.5; }

.opacity-60 { opacity: 0.6; }

.opacity-70 { opacity: 0.7; }

.opacity-80 { opacity: 0.8; }

.opacity-90 { opacity: 0.9; }

.opacity-100 { opacity: 1; }

.hover-opacity-100:hover {
    opacity: 1;
}

/* ===== SCROLL PROGRESS BAR ===== */

.scroll-progress {
    background: linear-gradient(90deg, var(--green) 0%, var(--green-neon) 100%);
    height: 3px;
    left: 0;
    position: fixed;
    top: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.1s ease-out;
    width: 100%;
    z-index: 9999;
}

/* ===== BACK TO TOP BUTTON ===== */

.back-to-top {
    align-items: center;
    background: var(--green);
    border: 1px solid var(--green-40);
    border-radius: 0;
    bottom: 30px;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    height: 50px;
    justify-content: center;
    opacity: 0;
    position: fixed;
    right: 30px;
    transform: translateY(20px);
    transition: all 0.3s ease;
    visibility: hidden;
    width: 50px;
    z-index: var(--z-sticky); /* Below the header (--z-modal) and the mobile menu overlay (--z-tooltip + 1) */
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.back-to-top:hover {
    background: var(--green-neon);
    box-shadow: none;
    transform: translateY(-5px);
}

.back-to-top:active {
    transform: translateY(-2px);
}

.back-to-top svg {
    display: block;
}

/* Hide back-to-top when mobile menu is open */
body:has(.mobile-menu-overlay.active) .back-to-top {
    opacity: 0 !important;
    pointer-events: none;
    visibility: hidden !important;
}

@media (width <= 768px) {
    .back-to-top {
        bottom: 20px;
        height: 45px;
        right: 20px;
        width: 45px;
    }
}

/* === utilities/grid.css === */
/**
 * Grid Utility Classes
 * Reusable grid patterns for consistent layouts
 */

/* ===== FIXED COLUMN GRIDS ===== */

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

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

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

/* ===== RESPONSIVE BREAKPOINTS ===== */

/* Mobile (up to 640px): everything in 1 column */
@media (width <= 640px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Tablet (641px - 1023px): 2 columns */
@media (width >= 641px) and (width <= 1023px) {
    .grid-3,
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    /* .grid-2 stays at 2 columns */
}

/* Desktop (1024px+): original number of columns */

/* ===== RESPONSIVE AUTO-FIT GRIDS ===== */

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

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

.grid-auto-300 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.grid-auto-320 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

/* ===== GAP UTILITIES ===== */

.gap-sm {
    gap: var(--spacing-sm);
}

.gap-md {
    gap: var(--spacing-md);
}

.gap-lg {
    gap: var(--spacing-lg);
}

.gap-xl {
    gap: var(--spacing-xl);
}

.gap-2xl {
    gap: var(--spacing-2xl);
}

.gap-3xl {
    gap: var(--spacing-4xl);
}

/* === utilities/animations.css === */
/**
 * Animations & Keyframes
 * All @keyframes and animation definitions
 */

/* ===== KEYFRAME ANIMATIONS ===== */

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }

    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 20px var(--green-40); }

    50% { box-shadow: 0 0 40px var(--green-80); }
}

@keyframes blink {
    0%, 50% { opacity: 1; }

    51%, 100% { opacity: 0; }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* ===== ANIMATION UTILITY CLASSES ===== */

.animate-fade-in {
    animation: fadeIn 0.5s ease-in forwards;
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-float {
    animation: float 20s ease-in-out infinite;
}

.animate-pulse-green {
    animation: pulse-green 4s ease-in-out infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }

    100% { transform: translate(50px, 50px); }
}

/* ===== SCROLL REVEAL ===== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Without JS (crawlers, broken JS) .visible is never added, so the content would stay hidden.
   The higher specificity (.no-js .scroll-reveal) overrides the default opacity:0. */
.no-js .scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
}

/* Delayed reveal for staggered animations */
.scroll-reveal-delay-1 {
    transition-delay: 0.1s;
}

.scroll-reveal-delay-2 {
    transition-delay: 0.2s;
}

.scroll-reveal-delay-3 {
    transition-delay: 0.3s;
}

.scroll-reveal-delay-4 {
    transition-delay: 0.4s;
}

/* === utilities/accessibility.css === */
/**
 * Accessibility Utilities
 * Focus-visible improvements for keyboard navigation
 */

/* ===== VISUALLY HIDDEN (Screen Reader Only) ===== */

/* Hides content visually but keeps it accessible to screen readers */
.sr-only {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

/* Allow element to be focusable while visually hidden (e.g. skip links) */
.sr-only-focusable:focus,
.sr-only-focusable:active {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    padding: inherit;
    position: static;
    white-space: normal;
    width: auto;
}

/* ===== BASE FOCUS RESET ===== */

/* Remove default focus outline for interactive elements when using mouse */
button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
textarea:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
    outline: none;
}

/* ===== FOCUS-VISIBLE STYLES ===== */

/* Show focus outline ONLY for keyboard navigation */

/* Buttons */
.btn:focus-visible,
button:focus-visible {
    outline: 2px solid var(--green-neon);
    outline-offset: 3px;
}

.btn-primary:focus-visible {
    outline-color: var(--green-neon);
}

.btn-secondary:focus-visible {
    outline-color: var(--green);
}

/* Links */
a:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Navigation links */
.nav-links a:focus-visible {
    outline: 2px solid var(--green-neon);
    outline-offset: 4px;
}

/* Mobile menu toggle */
.mobile-menu-toggle:focus-visible {
    outline: 2px solid var(--green-neon);
    outline-offset: 4px;
}

/* Mobile nav links */
.mobile-nav-links a:focus-visible {
    outline: 2px solid var(--green-neon);
    outline-offset: 4px;
}

/* Form inputs - keep existing box-shadow, add outline for extra visibility */
.form-control:focus-visible,
.form-group input:focus-visible,
.form-group textarea:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: -2px;
}

/* Checkboxes */
input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Back to top button */
.back-to-top:focus-visible {
    outline: 2px solid var(--green-neon);
    outline-offset: 4px;
}

/* Skip to main content link - already has focus, keep it */
.skip-to-main:focus {
    outline: 2px solid var(--green-neon);
    outline-offset: 2px;
}

/* Card links (interactive cards) */
.portfolio-card:focus-visible,
.related-service-card:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 4px;
}

/* Language switcher */
.lang-link:focus-visible,
.mobile-lang-link:focus-visible {
    border-radius: 2px;
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* Logo */
.logo:focus-visible {
    border-radius: 4px;
    outline: 2px solid var(--green-neon);
    outline-offset: 4px;
}

/* ===== HIGH CONTRAST MODE ===== */

/* Ensure focus is visible in high contrast mode */
@media (prefers-contrast: high) {
    *:focus-visible {
        outline-offset: 3px;
        outline-width: 3px;
    }
}

/* ===== REDUCED MOTION ===== */

/* Respect user's motion preferences for accessibility */
@media (prefers-reduced-motion: reduce) {
    /* Disable all animations and transitions */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    /* Make scroll reveal elements immediately visible */
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* Disable floating animations */
    .animate-float,
    .animate-pulse-green {
        animation: none !important;
    }

    /* Disable hover lift effects - keep color changes only */
    .hover-lift:hover,
    .hover-lift-sm:hover,
    .hover-scale:hover,
    .hover-scale-sm:hover {
        transform: none !important;
    }

    /* Back to top button - instant visibility without animation */
    .back-to-top {
        transition: opacity 0.01ms, visibility 0.01ms !important;
    }

    .back-to-top:hover {
        transform: none !important;
    }

    /* Scroll progress bar - instant update */
    .scroll-progress {
        transition: none !important;
    }

    /* Mobile menu - instant open/close */
    .mobile-menu-overlay,
    .mobile-menu-toggle span,
    .mobile-menu-close {
        transition: none !important;
    }

    .mobile-menu-close:hover {
        transform: none !important;
    }

    /* Cards - keep interactivity but remove motion */
    .card,
    .portfolio-card,
    .value-card {
        transition: box-shadow 0.01ms, border-color 0.01ms !important;
    }

    /* Buttons - instant state changes */
    .btn {
        transition: background-color 0.01ms, color 0.01ms, border-color 0.01ms !important;
    }

}

/* === utilities/responsive.css === */
/**
 * Responsive Utilities
 * Helper classes for responsive design and mobile/desktop visibility
 */

/* ===== MOBILE/DESKTOP VISIBILITY ===== */

/* Hide element on mobile devices (< 768px) */
@media (width <= 767px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Hide element on desktop devices (>= 768px) */
@media (width >= 768px) {
    .hidden-desktop {
        display: none !important;
    }
}

/* Hide element on tablets and up (>= 992px) */
@media (width >= 992px) {
    .hidden-tablet-up {
        display: none !important;
    }
}

