/* =================================================================
   Exclr8 — editorial design system
   Inspired by Anthropic / Stripe / Linear. Warm cream background,
   serif display type, terracotta accent matching the logo "8".
   ================================================================= */

:root {
    /* Palette — off-white default with selective dark instrument
       islands (status bar, console viz, footer). Legacy --color-*
       names retained for compatibility with the older stylesheet
       below; values point at the light-surface vocabulary. */
    --color-bg-primary:   #F4F2EE;   /* off-white default */
    --color-bg-secondary: #ECE9E1;
    --color-bg-tertiary:  #E2DDD2;
    --color-bg-card:      #FFFFFF;
    --color-bg-inverse:   #0A0C0F;   /* dark — instrument islands only */

    --color-text-primary:   #0A0C0F;
    --color-text-secondary: #34373D;
    --color-text-muted:     #5C636D;
    --color-text-inverse:   #ECEEF1;

    --color-accent:         #A43818;
    --color-accent-light:   #C7542A;
    --color-accent-dark:    #7A2A12;
    --color-accent-soft:    rgba(164, 56, 24, 0.10);
    --color-accent-mid:     #A16045;

    /* Legacy aliases so the consolidated page CSS below still resolves */
    --color-purple: var(--color-accent);
    --color-blue:   #0A0C0F;
    --color-pink:   rgba(164,56,24,0.10);
    --color-teal:   #3B7C68;  /* jade status accent */

    --color-border:        rgba(10, 12, 15, 0.10);
    --color-border-hover:  rgba(10, 12, 15, 0.34);
    --color-border-strong: rgba(10, 12, 15, 0.22);

    /* Spacing scale */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 9rem;

    /* Typography — single family. Geist Sans + Geist Mono only.
       --font-serif is kept as an alias to Geist so legacy callers
       don't break, but no actual serif renders anywhere on the site. */
    --font-sans:    'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif:   'Geist', system-ui, sans-serif;
    --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --font-primary: var(--font-sans);
    --font-display: var(--font-sans);

    /* Motion — short, unbounced, Apple-ish easing */
    --transition-fast: 180ms cubic-bezier(0.2, 0, 0, 1);
    --transition-base: 320ms cubic-bezier(0.2, 0, 0, 1);
    --transition-slow: 600ms cubic-bezier(0.2, 0, 0, 1);

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    /* Layout — aligned with the redesign's .wrap (1440px max, 40px gutter) */
    --content-max: 1440px;
    --content-gutter: 40px;
    --nav-height: 64px;

    /* Elevation — restrained, no glow */
    --shadow-sm: 0 1px 2px rgba(20, 19, 17, 0.04);
    --shadow-md: 0 4px 16px rgba(20, 19, 17, 0.06);
    --shadow-lg: 0 12px 40px rgba(20, 19, 17, 0.08);
}

/* ----- Reset ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

html, body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body,
html body.fwbody {
    font-family: var(--font-primary);
    font-size: 17px;
    line-height: 1.65;
    color: var(--color-text-primary);
    background-color: var(--color-bg-primary);
    background-image: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'cv11', 'ss01', 'ss03';
}

.fwbody {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow: visible;
    position: relative;
}

/* Remove the old fullscreen radial gradient overlay */
.fwbody::before { content: none !important; display: none !important; }

.mastercontent {
    flex: 1 0 auto;
    /* Sticky nav stays in flow, so no top offset is needed.
       Previously `padding-top: var(--nav-height)` added a legacy
       72px gap that made non-home pages start lower than the home. */
    padding-top: 0;
    overflow: visible;
}

.container {
    max-width: var(--content-max);
    margin: 0 auto;
    padding-left: var(--content-gutter);
    padding-right: var(--content-gutter);
}

/* ----- Typography ------------------------------------------------- */
/* Headings use Mona Sans (same as homepage). Fraunces remains
   available for italic accents via the .serif helper class.
   font-variation-settings was tuned for Fraunces — removed to
   avoid wasting Mona Sans axes that don't exist. */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-md);
    font-optical-sizing: auto;
}

h1 {
    font-size: clamp(2.75rem, 6vw, 5rem);
    font-weight: 300;
    letter-spacing: -0.035em;
    line-height: 1.02;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 300;
    letter-spacing: -0.028em;
    line-height: 1.05;
}

h3 {
    font-size: clamp(1.375rem, 2.2vw, 1.75rem);
    font-weight: 500;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

h4 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

p {
    margin: 0 0 var(--space-md);
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: var(--space-md);
}

.lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    color: var(--color-text-secondary);
}

/* Lead paragraphs on the homepage hero keep the narrow measure */
.home-hero .lead {
    max-width: 42ch;
}

/* Everywhere else, lead paragraphs fill their container */
.pagecontent .lead {
    max-width: none;
}

/* ----- Links ------------------------------------------------------ */
a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover { color: var(--color-accent); }

.pagecontent a:not(.btn) {
    color: var(--color-text-primary);
    text-decoration: underline;
    text-decoration-color: var(--color-border-strong);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.pagecontent a:not(.btn):hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

/* ----- Navigation ------------------------------------------------- */
.menu-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(245, 244, 238, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: background var(--transition-base), border-color var(--transition-base);
    height: var(--nav-height);
}

.menu-wrapper.scrolled,
.menu-wrapper[data-scrolled="true"] {
    background: rgba(245, 244, 238, 0.95);
    border-bottom-color: var(--color-border);
}

.navbar {
    padding: 0 !important;
    min-height: var(--nav-height);
    height: var(--nav-height);
}

.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand { margin: 0; padding: 0; display: flex; align-items: center; }
.navbar-brand .logo-link { display: inline-flex; text-decoration: none; }
.logo { height: 34px; width: auto; display: block; }

/* Logo — dark letters on cream, no hover colour swap */
.logo .logo-letter { fill: #141311 !important; transition: fill var(--transition-base); }
.logo .logo-eight  { fill: #FFFFFF !important; transition: fill var(--transition-base); }
.logo .logo-bg     { transition: opacity var(--transition-base); opacity: 1; }
.logo-link:hover .logo .logo-letter { fill: var(--color-accent) !important; }
.logo-link:hover .logo .logo-bg     { opacity: 1; }
.logo-link:hover .logo .logo-eight  { fill: #FFFFFF !important; }

.navbar-nav { gap: var(--space-lg); align-items: center; }

.nav-link {
    font-family: var(--font-sans) !important;
    font-size: 0.9375rem;
    font-weight: 500;
    letter-spacing: -0.005em;
    color: var(--color-text-primary) !important;
    padding: 0.5rem 0 !important;
    position: relative;
    transition: color var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus,
.nav-link.active {
    color: var(--color-accent) !important;
    background: transparent !important;
}

.nav-link.dropdown-toggle { display: inline-flex; align-items: center; gap: 0.375rem; }
.dropdown-toggle::after {
    border-top-color: var(--color-text-muted);
    margin-left: 0;
    transition: transform var(--transition-fast), border-top-color var(--transition-fast);
}
.dropdown-toggle:hover::after { border-top-color: var(--color-accent); transform: translateY(1px); }

.dropdown-menu {
    background: var(--color-bg-secondary);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--space-xs);
    margin-top: var(--space-xs);
    min-width: 14rem;
}

.dropdown-item {
    color: var(--color-text-primary);
    padding: 0.625rem var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.dropdown-item::after { display: none !important; }

.dropdown-item:hover {
    background: var(--color-accent-soft);
    color: var(--color-accent);
    transform: none;
}

/* Mobile menu toggle */
.navbar-toggler {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    width: 40px;
    height: 40px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-toggler:hover,
.navbar-toggler:focus {
    background: var(--color-bg-tertiary);
    border-color: var(--color-border-hover);
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: none;
    background: var(--color-text-primary);
    width: 20px;
    height: 2px;
    border-radius: 2px;
    position: relative;
    display: block;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-text-primary);
    border-radius: 2px;
    transition: transform var(--transition-fast), top var(--transition-fast);
}

.navbar-toggler-icon::before { top: -6px; }
.navbar-toggler-icon::after  { top: 6px; }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon { background: transparent; }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::before { top: 0; transform: rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon::after  { top: 0; transform: rotate(-45deg); }

@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--color-bg-secondary);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-lg);
        margin-top: var(--space-sm);
        padding: var(--space-sm);
    }
    .navbar-nav { gap: 0; align-items: stretch; }
    .nav-link {
        padding: 0.875rem var(--space-sm) !important;
        border-bottom: 1px solid var(--color-border);
    }
    .nav-link:last-child { border-bottom: none; }
    .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        border: none;
        box-shadow: none;
        padding-left: var(--space-sm);
        background: transparent;
    }
}

@media (min-width: 992px) {
    .navbar-collapse { background: transparent; border: none; padding: 0; margin: 0; }
}

/* ----- Page frame ------------------------------------------------- */
.pagecontent {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    overflow: visible;
    flex-grow: 1;
    background: transparent;
    color: var(--color-text-primary);
    border: none;
    border-radius: 0;
    backdrop-filter: none;
    position: relative;
    width: 100%;
}

.pagecontent .content {
    padding: var(--space-md) 0;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
}

.pagecontent .content-narrow {
    max-width: 720px;
    margin: 0 auto;
}

.pagecontent p {
    color: var(--color-text-secondary);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--space-md);
    font-weight: 400;
}

/* Old decorative border — now a hairline */
.pageborders {
    background: var(--color-border);
    min-height: 1px;
    padding: 0;
    font-size: 0;
    opacity: 1;
}

/* ----- Titles ----------------------------------------------------- */
/* Match the redesign's hero title rhythm: tight display weight, wide
   clamp, generous top padding like .hero's 80px, bottom margin that
   separates the title from the first content block without feeling
   chunky. A mono eyebrow (via ::before) stamps the same editorial
   label pattern used on the homepage section heads. */
.x8PageTitle {
    position: relative;
    display: block !important;
    background: transparent;
    border: none;
    padding: 40px 0 0;
    margin: 0 0 56px;
    font-family: var(--font-primary);
    font-size: clamp(40px, 4.4vw, 68px);
    font-weight: 300;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--color-text-primary) !important;
    max-width: 24ch;
}
.x8PageTitle::before {
    content: "// EXCLR8";
    display: block;
    margin-bottom: 28px;
    font-family: var(--font-mono);
    font-size: 11px; letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    font-weight: 500;
    line-height: 1;
}

.x8Title {
    display: block !important;
    background: transparent;
    border: none;
    padding: var(--space-lg) 0;
    margin-bottom: var(--space-md);
    font-family: var(--font-primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--color-text-primary) !important;
}

.x8TitleSm {
    display: block !important;
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: var(--space-sm);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted) !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ----- Cards ------------------------------------------------------ */
.card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
    position: relative;
    overflow: hidden;
    color: var(--color-text-primary);
}

.card::before { content: none !important; }

.card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md);
}

.card:hover::before { opacity: 0; }

.x8card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.x8card .card-header {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    background: transparent;
    color: var(--color-text-primary);
    border-bottom: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-md);
    letter-spacing: -0.005em;
}

.card-body {
    background-color: transparent;
    color: var(--color-text-secondary);
}

/* ----- Forms ------------------------------------------------------ */
label {
    display: block;
    margin-bottom: 0.375rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    text-transform: none;
    letter-spacing: 0;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-md);
    color: var(--color-text-primary) !important;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.form-control:focus {
    outline: none;
    background: var(--color-bg-secondary);
    border-color: var(--color-accent);
    color: var(--color-text-primary) !important;
    box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.form-control::placeholder {
    color: var(--color-text-muted);
    opacity: 1;
}

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

/* ----- Buttons ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    letter-spacing: -0.005em;
    text-decoration: none !important;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
    position: relative;
    overflow: visible;
    z-index: 1;
    line-height: 1;
}

.btn::before, .btn::after { content: none !important; }
.btn i { font-size: 0.875rem; }

.btn-primary {
    background: var(--color-bg-inverse);
    color: var(--color-text-inverse) !important;
    border-color: var(--color-bg-inverse);
    box-shadow: none;
    font-weight: 500;
    animation: none;
}

.btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF !important;
    transform: none;
    box-shadow: var(--shadow-md);
}

.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
    background: transparent;
    color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border-strong);
    box-shadow: none;
}

.btn-secondary:hover {
    background: var(--color-bg-secondary);
    border-color: var(--color-text-primary);
    color: var(--color-text-primary) !important;
    transform: none;
    box-shadow: var(--shadow-sm);
}

.btn-link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--color-text-primary);
    padding: 0;
    border: none;
    background: transparent;
}

.btn-link-arrow::after {
    content: '→';
    transition: transform var(--transition-fast);
}

.btn-link-arrow:hover { color: var(--color-accent); }
.btn-link-arrow:hover::after { transform: translateX(4px); }

/* ----- Lists, tables --------------------------------------------- */
.pagecontent ul,
.pagecontent ol {
    margin-bottom: var(--space-md);
    padding-left: var(--space-md);
    color: var(--color-text-secondary);
}

.pagecontent li {
    margin-bottom: 0.375rem;
    line-height: 1.75;
}

.pagecontent ul li::marker { color: var(--color-accent); }

.pagecontent table {
    width: 100%;
    margin-bottom: var(--space-lg);
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.pagecontent th,
.pagecontent td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    text-align: left;
}

.pagecontent th {
    background: var(--color-bg-tertiary);
    color: var(--color-text-primary);
    font-weight: 600;
}

.pagecontent td { background: transparent; color: var(--color-text-secondary); }

/* ----- Footer ----------------------------------------------------- */
.footer-section {
    background: var(--color-bg-tertiary);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-3xl);
    padding: var(--space-2xl) 0 var(--space-lg);
    color: var(--color-text-secondary);
}

.footer-section .container {
    max-width: var(--content-max);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 2fr;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .footer-logo { height: 36px; margin-bottom: var(--space-sm); }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9375rem; }

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: var(--space-md);
}

.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.5rem; }

.footer-links a {
    color: var(--color-text-primary);
    font-size: 0.9375rem;
    transition: color var(--transition-fast);
}
.footer-links a:hover { color: var(--color-accent); }

.footer-contact p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
}

.footer-contact i {
    width: 18px;
    color: var(--color-text-muted);
    margin-right: 0.5rem;
}

.footer-contact a { color: var(--color-text-primary); }
.footer-contact a:hover { color: var(--color-accent); }

.footer-social {
    display: flex;
    gap: 0.625rem;
    margin-top: var(--space-md);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-border-strong);
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-primary);
    transition: color var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
    text-align: center;
    line-height: 1;
    overflow: hidden;
}

.footer-social a::before, .footer-social a::after { content: none !important; }
.footer-social a i { font-size: 1rem; color: inherit; margin: 0; padding: 0; }

.footer-social a:hover {
    background: var(--color-bg-inverse);
    border-color: var(--color-bg-inverse);
    color: var(--color-text-inverse);
    transform: none;
}
.footer-social a:hover i { color: var(--color-text-inverse); }

.footer-bottom {
    text-align: left;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
}

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

@media (max-width: 1024px) {
    .footer-content { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 640px) {
    .footer-content { grid-template-columns: 1fr; }
    .footer-section { padding: var(--space-xl) 0 var(--space-lg); }
}

/* ----- Utilities -------------------------------------------------- */
.text-center { text-align: center; }
.text-muted  { color: var(--color-text-muted); }
.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.section { padding: var(--space-2xl) 0; }
.section-lg { padding: var(--space-3xl) 0; }
.divider { height: 1px; background: var(--color-border); margin: var(--space-2xl) 0; }

/* ----- Scrollbar, selection -------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(20, 19, 17, 0.15); border-radius: 5px; border: 2px solid var(--color-bg-primary); }
::-webkit-scrollbar-thumb:hover { background: rgba(20, 19, 17, 0.3); }

::selection { background: var(--color-accent); color: #FFFFFF; }

/* ----- Animations ------------------------------------------------- */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 600ms cubic-bezier(0.2, 0, 0, 1) both; }

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50%      { opacity: 1; }
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ----- Responsive small-screen tweaks ---------------------------- */
@media (max-width: 768px) {
    :root { --nav-height: 64px; }
    .logo { height: 28px; }
    .pagecontent .content { padding: var(--space-xl) 0; }
    .x8PageTitle { padding-top: var(--space-xl); }
}

@media (max-width: 480px) {
    .container { padding-left: var(--space-sm); padding-right: var(--space-sm); }
    .pagecontent .content { padding: var(--space-lg) 0; }
}

/* Contact / legacy selectors kept so old markup still renders */
.contactForm label, .contactcontainer label { color: var(--color-text-primary); }
.socialMedia { font-size: 1.5rem; }
.socialMedia a { color: var(--color-text-secondary); }
.socialMedia a:hover { color: var(--color-accent); }

.card-group { display: flex; gap: var(--space-md); flex-wrap: wrap; }
.col-md-auto { flex: 1; min-width: 200px; }

.location iframe {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
}

/* =================================================================
   Legacy page-inline CSS (consolidated from per-page <style> blocks).
   This lives below the design system so it inherits the new tokens
   via var(--color-*), etc. Some rules use literal rgba whites or old
   gradient stops — we neutralise the worst of them below, and then
   fall through to the consolidated blocks.
   ================================================================= */

/* Kill legacy dark-assuming background fills on cards */
.bento-item,
.capability-card,
.service-card,
.feature-card,
.info-card,
.contact-form-wrapper,
.cloudcore-architect-section,
.cta-section {
    background: var(--color-bg-secondary) !important;
    border: 1px solid var(--color-border) !important;
    box-shadow: var(--shadow-sm);
}

.bento-item:hover,
.capability-card:hover,
.service-card:hover,
.feature-card:hover,
.info-card:hover {
    border-color: var(--color-border-hover) !important;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.hero-container,
.hero-background,
.floating-orb,
.bento-glow,
.cta-background,
.contact-hero::before {
    display: none !important;
}

/* Any gradient text headlines → solid, dark */
.hero-title,
.hero-headline,
.contact-title,
.bento-item h3,
.capability-card h3 {
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: currentColor !important;
    background-clip: initial !important;
    color: var(--color-text-primary) !important;
}

/* ================================================================= */
/* Consolidated from inline <style> blocks on individual pages.       */
/* ================================================================= */

/* ---- ourservices.php ---- */
            .services-intro {
                margin-bottom: var(--space-2xl);
                text-align: center;
            }

            .services-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-xl);
                margin-bottom: var(--space-3xl);
            }

            .service-card {
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
                border: 1px solid var(--color-border);
                border-radius: 24px;
                padding: var(--space-xl);
                transition: all var(--transition-base);
                position: relative;
                overflow: hidden;
            }

            .service-card:hover {
                transform: translateY(-4px);
                border-color: var(--color-accent);
                box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
            }

            .service-icon {
                width: 60px;
                height: 60px;
                background: var(--color-accent);
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: var(--space-lg);
            }

            .service-icon i {
                font-size: 1.5rem;
                color: white;
            }

            .service-card h3 {
                font-size: 1.5rem;
                margin-bottom: var(--space-md);
                color: var(--color-text-primary);
            }

            .service-card p {
                margin-bottom: var(--space-md);
                line-height: 1.7;
            }

            .service-example {
                font-size: 0.9rem;
                padding: var(--space-sm) var(--space-md);
                background: var(--color-accent-soft);
                border-left: 3px solid var(--color-accent);
                border-radius: 0 8px 8px 0;
                color: var(--color-text-secondary);
                line-height: 1.65;
            }

            /* Case study pages */
            .case-study-intro {
                margin-bottom: var(--space-2xl);
            }

            .case-study-label {
                display: inline-block;
                font-size: 0.75rem;
                font-weight: 600;
                letter-spacing: 0.12em;
                text-transform: uppercase;
                color: var(--color-accent);
                margin-bottom: var(--space-sm);
            }

            .case-study-intro .lead {
                font-size: 1.125rem;
                line-height: 1.7;
                color: var(--color-text-primary);
                margin-bottom: var(--space-md);
            }

            .case-study-intro p:not(.lead) {
                color: var(--color-text-secondary);
                line-height: 1.7;
            }

            /* Case study report layout */
            .case-report {
                max-width: none;
            }

            .case-report h2 {
                font-family: var(--font-primary);
                font-size: 1.625rem;
                font-weight: 500;
                letter-spacing: -0.015em;
                margin: var(--space-2xl) 0 var(--space-md);
                padding-top: var(--space-lg);
                border-top: 1px solid var(--color-border);
            }

            .case-report h2:first-child {
                margin-top: 0;
                padding-top: 0;
                border-top: none;
            }

            .case-report p {
                color: var(--color-text-secondary);
                font-size: 1rem;
                line-height: 1.75;
                margin: 0 0 var(--space-md);
            }

            .case-report ul {
                list-style: none;
                padding: 0;
                margin: 0 0 var(--space-md);
            }

            .case-report ul li {
                position: relative;
                padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
                line-height: 1.65;
            }

            .case-report ul li::before {
                content: '';
                position: absolute;
                left: 0.25rem;
                top: 1rem;
                width: 6px;
                height: 6px;
                background: var(--color-accent);
                border-radius: 50%;
            }

            /* Legacy flat grid (kept for backwards compat) */
            .benefits-grid-20 {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-lg);
                margin-bottom: var(--space-2xl);
            }

            .benefit-card {
                padding: var(--space-lg);
                background: var(--color-bg-secondary);
                border: 1px solid var(--color-border);
                border-radius: 12px;
                display: flex;
                flex-direction: column;
                gap: var(--space-xs);
            }

            .benefit-num {
                font-family: var(--font-sans);
                font-size: 0.75rem;
                font-weight: 600;
                letter-spacing: 0.14em;
                color: var(--color-accent);
            }

            .benefit-card h3 {
                font-family: var(--font-primary);
                font-size: 1.25rem;
                font-weight: 500;
                line-height: 1.2;
                letter-spacing: -0.01em;
                margin: 0;
            }

            .benefit-card p {
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
                line-height: 1.65;
                margin: 0;
            }

            .case-study-cta {
                text-align: center;
                background: var(--color-accent-soft);
                border-radius: 16px;
                padding: var(--space-2xl);
            }

            .case-study-cta h2 {
                font-family: var(--font-primary);
                margin-bottom: var(--space-sm);
            }

            .case-study-cta p {
                color: var(--color-text-secondary);
                font-size: 1.0625rem;
                line-height: 1.7;
                max-width: 560px;
                margin: 0 auto var(--space-xl);
            }

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

            .service-features {
                list-style: none;
                padding: 0;
                margin: var(--space-md) 0;
            }

            .service-features li {
                padding: var(--space-xs) 0;
                position: relative;
                padding-left: var(--space-lg);
                color: var(--color-text-secondary);
            }

            .service-features li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: var(--color-purple);
                font-weight: bold;
            }

            .ai-integration-section {
                background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
                border-radius: 24px;
                padding: var(--space-2xl);
                margin-bottom: var(--space-3xl);
            }

            .ai-integration-content h2 {
                text-align: center;
                margin-bottom: var(--space-xl);
                color: var(--color-text-primary);
            }

            .ai-integration-content > p {
                text-align: center;
                font-size: 1.125rem;
                margin-bottom: var(--space-xl);
                color: var(--color-text-secondary);
            }

            .ai-platforms {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
                gap: var(--space-lg);
            }

            .ai-platform {
                background: rgba(255, 255, 255, 0.05);
                border: 1px solid var(--color-border);
                border-radius: 16px;
                padding: var(--space-lg);
                text-align: center;
            }

            .ai-platform h4 {
                color: var(--color-purple);
                margin-bottom: var(--space-sm);
                font-size: 1.125rem;
            }

            .ai-platform p {
                font-size: 0.9375rem;
                line-height: 1.6;
                margin: 0;
            }

            .why-choose-section {
                text-align: center;
                margin-bottom: var(--space-2xl);
            }

            .why-choose-section h2 {
                margin-bottom: var(--space-lg);
            }

            .why-choose-section p {
                max-width: 800px;
                margin: 0 auto var(--space-md);
                line-height: 1.8;
            }

            @media (max-width: 768px) {
                .services-grid {
                    grid-template-columns: 1fr;
                    gap: var(--space-lg);
                }

                .ai-platforms {
                    grid-template-columns: 1fr;
                }

                .ai-integration-section {
                    padding: var(--space-lg);
                }
            }

/* ---- contact.php ---- */
            .contact-hero {
                padding: var(--space-3xl) 0;
                text-align: center;
                position: relative;
                overflow: hidden;
            }

            .contact-hero::before {
                content: '';
                position: absolute;
                top: -50%;
                left: -50%;
                width: 200%;
                height: 200%;
                background: radial-gradient(circle at center, var(--color-accent) 0%, transparent 50%);
                opacity: 0.05;
                animation: pulse 4s infinite;
            }

            .contact-title {
                font-size: clamp(3rem, 5vw, 4rem);
                font-weight: 900;
                margin-bottom: var(--space-md);
                background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-purple) 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .contact-subtitle {
                font-size: 1.25rem;
                color: var(--color-text-secondary);
                max-width: 600px;
                margin: 0 auto;
            }

            .contact-main {
                padding: var(--space-2xl) 0;
            }

            .contact-container {
                padding-left: var(--space-md);
                padding-right: var(--space-md);
            }

            .contact-grid {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: var(--space-3xl);
                margin-bottom: var(--space-3xl);
            }

            /* Contact Form */
            .contact-form-wrapper {
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
                border: 1px solid var(--color-border);
                border-radius: 24px;
                padding: var(--space-2xl);
            }

            .contact-form-wrapper h2 {
                font-size: 2rem;
                margin-bottom: var(--space-xl);
            }

            .form-row {
                display: grid;
                grid-template-columns: 1fr 1fr;
                gap: var(--space-md);
            }

            .form-group {
                margin-bottom: var(--space-md);
            }

            .btn-submit {
                width: 100%;
                padding: var(--space-md) var(--space-xl);
                font-size: 1.125rem;
                margin-top: var(--space-md);
            }

            /* Contact Info */
            .contact-info-wrapper {
                display: flex;
                flex-direction: column;
                gap: var(--space-lg);
            }

            .info-card {
                display: flex;
                gap: var(--space-md);
                padding: var(--space-lg);
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
                border: 1px solid var(--color-border);
                border-radius: 16px;
                transition: all var(--transition-base);
            }

            .info-card:hover {
                transform: translateY(-2px);
                border-color: var(--color-accent);
                box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
            }

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

            .info-icon i {
                font-size: 1.25rem;
                color: white;
            }

            .info-content h3 {
                font-size: 1.125rem;
                margin-bottom: var(--space-xs);
                color: var(--color-text-primary);
            }

            .info-content p {
                margin: 0;
                color: var(--color-text-secondary);
            }

            .info-content a {
                color: var(--color-purple);
                text-decoration: none;
                transition: color var(--transition-fast);
            }

            .info-content a:hover {
                color: var(--color-accent-light);
            }

            /* Social Links */
            .social-links {
                margin-top: var(--space-lg);
                padding: var(--space-lg);
                background: var(--color-bg-secondary);
                border-radius: 16px;
                text-align: center;
            }

            .social-links h3 {
                font-size: 1.25rem;
                margin-bottom: var(--space-md);
            }

            .social-icons {
                display: flex;
                justify-content: center;
                gap: var(--space-md);
            }

            .social-icons a {
                width: 50px;
                height: 50px;
                border: 1px solid var(--color-border);
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                color: var(--color-text-secondary);
                transition: all var(--transition-base);
            }

            .social-icons a:hover {
                border-color: var(--color-accent);
                color: var(--color-accent);
                transform: translateY(-2px);
                box-shadow: 0 5px 20px rgba(124, 58, 237, 0.3);
            }

            /* Map Section */
            .map-section {
                margin-bottom: var(--space-3xl);
            }

            .map-section h2 {
                margin-bottom: var(--space-lg);
                text-align: center;
            }

            .map-wrapper {
                border-radius: 24px;
                overflow: hidden;
                border: 1px solid var(--color-border);
                height: 400px;
            }

            .map-wrapper iframe {
                width: 100%;
                height: 100%;
                border: 0;
            }

            /* Office Gallery */
            .office-gallery h2 {
                margin-bottom: var(--space-lg);
                text-align: center;
            }

            .gallery-grid {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: var(--space-md);
            }

            .gallery-item {
                border-radius: 16px;
                overflow: hidden;
                position: relative;
                aspect-ratio: 16/9;
            }

            .gallery-item img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                transition: transform var(--transition-base);
            }

            .gallery-item:hover img {
                transform: scale(1.05);
            }

            /* Responsive */
            @media (max-width: 1024px) {
                .contact-grid {
                    grid-template-columns: 1fr;
                }

                .form-row {
                    grid-template-columns: 1fr;
                }

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

            @media (max-width: 768px) {
                .contact-container {
                    padding-left: var(--space-sm);
                    padding-right: var(--space-sm);
                }

                .contact-hero {
                    padding: var(--space-xl) var(--space-sm);
                }

                .hero-title {
                    font-size: clamp(2rem, 6vw, 3rem);
                }

                .contact-form-wrapper {
                    padding: var(--space-lg);
                    margin-bottom: var(--space-lg);
                }

                .contact-info-wrapper {
                    gap: var(--space-md);
                }

                .info-card {
                    padding: var(--space-md);
                    gap: var(--space-sm);
                }

                .info-icon {
                    width: 40px;
                    height: 40px;
                }

                .info-icon i {
                    font-size: 1rem;
                }

                .social-icons {
                    flex-wrap: wrap;
                }

                .social-icons a {
                    width: 45px;
                    height: 45px;
                }

                .map-wrapper {
                    height: 300px;
                }

                .gallery-grid {
                    gap: var(--space-sm);
                }

                .cta-buttons {
                    gap: var(--space-sm);
                }

                .contact-main .btn {
                    padding: var(--space-sm) var(--space-md);
                    font-size: 0.9375rem;
                }
            }

            @media (max-width: 480px) {
                .contact-hero {
                    padding: var(--space-lg) var(--space-xs);
                }

                .hero-title {
                    font-size: clamp(1.75rem, 5vw, 2.5rem);
                }

                .hero-subtitle {
                    font-size: 1rem;
                }

                .contact-form-wrapper {
                    padding: var(--space-md);
                }

                .contact-form-wrapper h2 {
                    font-size: 1.5rem;
                }

                .form-group label {
                    font-size: 0.875rem;
                }

                .info-card {
                    flex-direction: column;
                    text-align: center;
                    align-items: center;
                }

                .info-content h3 {
                    font-size: 1rem;
                }

                .info-content p {
                    font-size: 0.875rem;
                }

                .social-links {
                    padding: var(--space-md);
                }

                .social-links h3 {
                    font-size: 1.125rem;
                }

                .map-section h2,
                .office-gallery h2 {
                    font-size: 1.5rem;
                    margin-bottom: var(--space-md);
                }

                .map-wrapper {
                    height: 250px;
                    border-radius: 16px;
                }

                .btn-submit {
                    width: 100%;
                }
            }

/* ---- contactus.php ---- */
.contact-container {
    padding: var(--space-xl) 0;
    min-height: 60vh;
}

.wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--color-border);
    border-radius: 20px;
    overflow: hidden;
}

.contactWrap {
    background: transparent;
}

.contactWrap h2 {
    color: var(--color-text-primary);
    font-weight: 700;
}

/* Form specific overrides */
.contactForm {
    margin: 0;
    padding: 0;
}

.contactForm .form-control {
    width: 100%;
    box-sizing: border-box;
}

.contactForm label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.info-wrap {
    background: var(--color-bg-tertiary);
    border-left: 1px solid var(--color-border);
}

.dbox {
    margin-bottom: var(--space-lg);
}

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

.dbox .icon span {
    color: white;
    font-size: 1.25rem;
}

.dbox .text {
    padding-left: var(--space-md);
}

.dbox .text span {
    font-weight: 600;
    color: var(--color-text-primary);
}

.dbox .text p {
    margin: 0;
    color: var(--color-text-secondary);
}

.dbox .text a {
    color: var(--color-purple);
    text-decoration: none;
}

.dbox .text a:hover {
    color: var(--color-accent-light);
}

.location {
    margin-top: var(--space-xl);
}

.location iframe {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    border: 1px solid var(--color-border);
}

#resultmsg {
    margin-bottom: var(--space-md);
}

.alert {
    padding: var(--space-md);
    border-radius: 8px;
    margin-bottom: var(--space-md);
}

.alert-success {
    background: rgba(40, 199, 111, 0.1);
    border: 1px solid rgba(40, 199, 111, 0.3);
    color: #28c76f;
}

.alert-danger {
    background: rgba(234, 84, 85, 0.1);
    border: 1px solid rgba(234, 84, 85, 0.3);
    color: #ea5455;
}

@media (max-width: 768px) {
    .contact-container {
        padding: var(--space-md) 0;
    }
    
    .wrapper {
        margin: 0 var(--space-sm);
    }
    
    .nogutter {
        margin: 0;
    }
    
    .nogutter > [class*="col-"] {
        padding: 0;
    }
    
    .info-wrap {
        border-left: none;
        border-top: 1px solid var(--color-border);
        padding: var(--space-md) !important;
    }
    
    .contactWrap {
        padding: var(--space-md) !important;
    }
    
    .contactWrap h2 {
        font-size: 1.5rem;
        margin-bottom: var(--space-md) !important;
    }
    
    .contactForm .row {
        margin: 0;
    }
    
    .contactForm [class*="col-"] {
        padding: 0;
        margin-bottom: var(--space-sm);
    }
    
    .info-wrap {
        text-align: center;
    }
    
    .dbox {
        flex-direction: column !important;
        margin-bottom: var(--space-md);
        align-items: center !important;
        text-align: center;
    }
    
    .dbox .icon {
        margin: 0 auto var(--space-sm) !important;
        flex-shrink: 0;
    }
    
    .dbox .text {
        padding-left: 0 !important;
        text-align: center;
        width: 100%;
    }
    
    .dbox .text p {
        margin: 0 auto;
        font-size: 0.875rem;
    }
    
    /* Ensure the last dbox (address) is also centered */
    .dbox:last-of-type {
        align-items: center !important;
    }
    
    .location {
        display: flex;
        justify-content: center;
    }
    
    .location iframe {
        height: 150px;
        max-width: 100%;
    }
    
    .contactWrap .btn-primary {
        width: 100%;
        padding: var(--space-sm) var(--space-md);
    }
}

@media (max-width: 480px) {
    .contact-container {
        padding: var(--space-sm) 0;
    }
    
    .wrapper {
        border-radius: 12px;
    }
    
    .contactWrap h2 {
        font-size: 1.25rem;
    }
    
    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .dbox .icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .dbox .text p,
    .dbox .text a {
        font-size: 0.8125rem;
    }
}

/* ---- cloudcore.php ---- */
            .cloudcore-intro {
                margin-bottom: var(--space-2xl);
            }

            .resource-box {
                background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
                border: 1px solid var(--color-border);
                border-radius: 16px;
                padding: var(--space-lg);
            }

            .resource-box h3 {
                font-size: 1.25rem;
                margin-bottom: var(--space-md);
                color: var(--color-text-primary);
            }

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

            .resource-list li {
                margin-bottom: var(--space-sm);
            }

            .resource-list a {
                display: flex;
                align-items: center;
                gap: var(--space-sm);
                color: var(--color-purple);
                text-decoration: none;
                padding: var(--space-xs) 0;
                transition: all var(--transition-fast);
            }

            .resource-list a:hover {
                color: var(--color-accent-light);
                transform: translateX(4px);
            }

            .resource-list i {
                width: 20px;
                text-align: center;
            }

            .content-section {
                margin-bottom: var(--space-3xl);
            }

            .content-section h2 {
                margin-bottom: var(--space-lg);
            }

            .feature-section {
                background: rgba(255, 255, 255, 0.02);
                border-radius: 24px;
                padding: var(--space-2xl);
                margin-bottom: var(--space-3xl);
            }

            .feature-section h2 {
                color: var(--color-text-primary);
                margin-bottom: var(--space-md);
            }

            .feature-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
                gap: var(--space-lg);
                margin-top: var(--space-xl);
            }

            .feature-card {
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
                border: 1px solid var(--color-border);
                border-radius: 16px;
                padding: var(--space-lg);
                transition: all var(--transition-base);
            }

            .feature-card:hover {
                transform: translateY(-4px);
                border-color: var(--color-accent);
                box-shadow: 0 10px 30px rgba(124, 58, 237, 0.1);
            }

            .feature-icon {
                width: 60px;
                height: 60px;
                background: var(--color-accent);
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: var(--space-md);
            }

            .feature-icon i {
                font-size: 1.5rem;
                color: white;
            }

            .feature-card h3 {
                font-size: 1.25rem;
                margin-bottom: var(--space-sm);
                color: var(--color-text-primary);
            }

            .conclusion-section {
                text-align: center;
                margin-top: var(--space-3xl);
            }

            .conclusion-section h2 {
                margin-bottom: var(--space-lg);
            }

            .cta-box {
                display: flex;
                justify-content: center;
                gap: var(--space-md);
                margin-top: var(--space-xl);
            }

            .img-fluid {
                max-width: 100%;
                height: auto;
            }

            .shadow-sm {
                box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            }

            .rounded {
                border-radius: 12px;
            }

            .gap-3 {
                gap: var(--space-md);
            }

            @media (max-width: 768px) {
                .feature-section .row {
                    flex-direction: column-reverse;
                }
                
                .cta-box {
                    flex-direction: column;
                }
            }

/* ---- automation.php ---- */
            .automation-hero {
                margin-bottom: var(--space-2xl);
                padding: var(--space-xl) var(--space-xl);
                background: linear-gradient(135deg, rgba(124, 58, 237, 0.05) 0%, rgba(167, 139, 250, 0.02) 100%);
                border-radius: 24px;
            }

            .hero-title {
                font-size: clamp(2.5rem, 4vw, 3.5rem);
                font-weight: 900;
                margin-bottom: var(--space-md);
                background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-purple) 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
                background-clip: text;
            }

            .hero-subtitle {
                font-size: 1.25rem;
                line-height: 1.6;
                color: var(--color-text-secondary);
                margin-bottom: var(--space-lg);
            }

            .automation-visual {
                display: flex;
                justify-content: center;
                align-items: center;
            }

            .process-flow {
                display: flex;
                align-items: center;
                gap: var(--space-sm);
                flex-wrap: wrap;
                justify-content: center;
            }

            .flow-step {
                background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-purple) 100%);
                color: white;
                padding: var(--space-sm);
                border-radius: 12px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
                min-width: 80px;
                box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
            }

            .flow-step i {
                font-size: 1.25rem;
            }

            .flow-step span {
                font-size: 0.75rem;
                font-weight: 600;
            }

            .flow-arrow {
                color: var(--color-accent);
                font-size: 1.5rem;
                font-weight: bold;
            }

            .ai-automation-section {
                margin-bottom: var(--space-3xl);
            }

            .ai-automation-section h2 {
                text-align: center;
                margin-bottom: var(--space-md);
            }

            .section-intro {
                text-align: center;
                font-size: 1.125rem;
                color: var(--color-text-secondary);
                max-width: 800px;
                margin: 0 auto var(--space-xl);
                line-height: 1.7;
            }

            .ai-capabilities-grid {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-xl);
                margin-bottom: var(--space-2xl);
            }

            .capability-card {
                background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
                border: 1px solid var(--color-border);
                border-radius: 20px;
                padding: var(--space-xl);
                transition: all var(--transition-base);
            }

            .capability-card:hover {
                transform: translateY(-4px);
                border-color: var(--color-accent);
                box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
            }

            .capability-icon {
                width: 60px;
                height: 60px;
                background: var(--color-accent);
                border-radius: 12px;
                display: flex;
                align-items: center;
                justify-content: center;
                margin-bottom: var(--space-lg);
            }

            .capability-icon i {
                font-size: 1.5rem;
                color: white;
            }

            .capability-card h3 {
                margin-bottom: var(--space-md);
                color: var(--color-text-primary);
            }

            .capability-card ul {
                list-style: none;
                padding: 0;
                margin-top: var(--space-md);
            }

            .capability-card li {
                padding: var(--space-xs) 0;
                position: relative;
                padding-left: var(--space-lg);
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
            }

            .capability-card li::before {
                content: '✓';
                position: absolute;
                left: 0;
                color: var(--color-purple);
                font-weight: bold;
            }

            .cloudcore-architect-section {
                background: rgba(255, 255, 255, 0.02);
                border-radius: 24px;
                padding: var(--space-2xl);
                margin-bottom: var(--space-3xl);
            }

            .architect-features {
                margin-top: var(--space-xl);
            }

            .feature-item {
                display: flex;
                gap: var(--space-md);
                margin-bottom: var(--space-lg);
                align-items: flex-start;
            }

            .feature-item i {
                color: var(--color-accent);
                font-size: 1.25rem;
                margin-top: 4px;
            }

            .feature-item h4 {
                margin-bottom: var(--space-xs);
                color: var(--color-text-primary);
                font-size: 1.125rem;
            }

            .feature-item p {
                margin: 0;
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
            }

            .architect-demo {
                display: flex;
                justify-content: center;
            }

            .demo-window {
                background: var(--color-bg-secondary);
                border: 1px solid var(--color-border);
                border-radius: 12px;
                overflow: hidden;
                max-width: 300px;
                width: 100%;
            }

            .window-header {
                background: var(--color-bg-tertiary);
                padding: var(--space-sm);
                display: flex;
                justify-content: space-between;
                align-items: center;
            }

            .window-title {
                font-size: 0.875rem;
                color: var(--color-text-primary);
                font-weight: 600;
            }

            .window-controls {
                display: flex;
                gap: 6px;
            }

            .control {
                width: 12px;
                height: 12px;
                border-radius: 50%;
            }

            .control.close { background: #ff5f57; }
            .control.minimize { background: #ffbd2e; }
            .control.maximize { background: #28ca42; }

            .demo-content {
                padding: var(--space-lg);
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: var(--space-sm);
            }

            .workflow-node {
                background: var(--color-accent);
                color: white;
                padding: var(--space-sm);
                border-radius: 8px;
                display: flex;
                flex-direction: column;
                align-items: center;
                gap: 4px;
                min-width: 80px;
                font-size: 0.75rem;
                font-weight: 600;
            }

            .workflow-node.ai {
                background: linear-gradient(135deg, var(--color-purple) 0%, var(--color-blue) 100%);
            }

            .workflow-connector {
                width: 2px;
                height: 20px;
                background: var(--color-border);
            }

            .benefits-section {
                margin-bottom: var(--space-3xl);
            }

            .benefits-section h2 {
                text-align: center;
                margin-bottom: var(--space-xl);
            }

            .benefits-grid {
                display: grid;
                grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
                gap: var(--space-xl);
            }

            .benefit-item {
                text-align: center;
                padding: var(--space-lg);
            }

            .benefit-number {
                font-size: 3rem;
                font-weight: 900;
                color: var(--color-accent);
                line-height: 1;
                margin-bottom: var(--space-sm);
            }

            .benefit-item h3 {
                margin-bottom: var(--space-sm);
                color: var(--color-text-primary);
            }

            .benefit-item p {
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
                line-height: 1.6;
            }

            .automation-examples-section {
                margin-bottom: var(--space-2xl);
            }

            .automation-examples-section h2 {
                margin-bottom: var(--space-sm);
            }

            .automation-examples-section .section-intro {
                color: var(--color-text-secondary);
                font-size: 1.0625rem;
                line-height: 1.7;
                margin-bottom: var(--space-xl);
                max-width: 640px;
            }

            .automation-examples {
                display: grid;
                grid-template-columns: repeat(2, 1fr);
                gap: var(--space-lg);
            }

            .automation-example {
                padding: var(--space-lg);
                background: var(--color-bg-secondary);
                border: 1px solid var(--color-border);
                border-radius: 12px;
            }

            .automation-example h4 {
                font-family: var(--font-primary);
                font-size: 1.125rem;
                font-weight: 500;
                margin-bottom: var(--space-sm);
                color: var(--color-text-primary);
            }

            .automation-example p {
                color: var(--color-text-secondary);
                font-size: 0.9375rem;
                line-height: 1.65;
                margin: 0;
            }

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

            .cta-section {
                text-align: center;
                background: linear-gradient(135deg, rgba(124, 58, 237, 0.1) 0%, rgba(167, 139, 250, 0.05) 100%);
                border-radius: 24px;
                padding: var(--space-2xl);
            }

            .cta-section h2 {
                margin-bottom: var(--space-md);
            }

            .cta-section p {
                font-size: 1.125rem;
                color: var(--color-text-secondary);
                max-width: 600px;
                margin: 0 auto var(--space-xl);
                line-height: 1.7;
            }

            .cta-buttons {
                display: flex;
                justify-content: center;
                gap: var(--space-md);
                flex-wrap: wrap;
            }

            @media (max-width: 768px) {
                .automation-hero .row {
                    flex-direction: column;
                    text-align: center;
                }

                .ai-capabilities-grid {
                    grid-template-columns: 1fr;
                }

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

                .cta-buttons {
                    flex-direction: column;
                    align-items: center;
                }

                .flow-arrow {
                    display: none;
                }

                .process-flow {
                    flex-direction: column;
                }
            }

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

/* =================================================================
   Homepage — editorial layout
   ================================================================= */

.home-hero {
    padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
}

.home-hero__inner {
    max-width: var(--content-max);
}

.home-hero__title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 7.5vw, 6.5rem);
    font-weight: 400;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: var(--color-text-primary);
    margin: 0 0 var(--space-lg);
    max-width: 18ch;
}

.home-hero__title em {
    font-style: italic;
    font-weight: 400;
    color: var(--color-accent);
    font-variation-settings: 'SOFT' 50, 'WONK' 1;
}

.home-hero__lead {
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.55;
    color: var(--color-text-secondary);
    max-width: 52ch;
    margin: 0 0 var(--space-lg);
}

.home-hero__lead strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}

.home-hero__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-lg);
    margin: 0;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    max-width: 560px;
}

.home-hero__meta div { margin: 0; }
.home-hero__meta dt {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}
.home-hero__meta dd {
    margin: 0;
    font-family: var(--font-primary);
    font-size: 1.125rem;
    color: var(--color-text-primary);
}

/* Section wrapper — matches the redesign's .section rhythm (120px 0)
   so legacy pages read at the same tempo as the homepage. */
.home-section {
    padding: 120px 0;
}

.home-section > .container {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-lg);
}

.home-cta > .container {
    border-top: none;
    padding-top: 0;
}

.home-section--tight { padding: var(--space-lg) 0; }

.section-header {
    max-width: 44ch;
    margin: 0 0 var(--space-xl);
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.1;
}

/* Homepage feature grid (namespaced to avoid collisions with cloudcore.php's .feature-grid) */
.home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
}

.home-feature {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
}

.home-feature__num {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--color-text-muted);
    margin-bottom: 0.25rem;
}

.home-feature h3 {
    font-family: var(--font-primary);
    font-size: 1.625rem;
    font-weight: 500;
    line-height: 1.15;
    letter-spacing: -0.015em;
    margin: 0 0 0.25rem;
}

.home-feature p {
    color: var(--color-text-secondary);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0 0 var(--space-sm);
    flex: 1;
}

/* Models strip */
.models-strip {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.models-strip__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-muted);
    margin: 0;
    flex-shrink: 0;
}

.models-strip__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.models-strip__list li {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text-primary);
    letter-spacing: -0.01em;
}

/* Capabilities — two-column editorial */
.capabilities {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
}

.capabilities__intro h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    margin-bottom: var(--space-md);
}

.capabilities__intro .lead { max-width: 42ch; }

.capabilities__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    column-gap: var(--space-lg);
}

.capabilities__list li {
    padding: var(--space-md) 0;
    border-top: 1px solid var(--color-border);
}

.capabilities__list li h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.375rem;
    color: var(--color-text-primary);
    letter-spacing: -0.005em;
}

.capabilities__list li p {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--color-text-secondary);
}

/* Stats row */
.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
    padding: var(--space-lg) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat__num {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-text-primary);
}

.stat__num span {
    color: var(--color-accent);
    font-size: 0.7em;
    margin-left: 0.05em;
}

.stat__label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.45;
    max-width: 22ch;
}

/* Home CTA */
.home-cta {
    margin-top: var(--space-2xl);
    padding: var(--space-2xl) 0;
    background: var(--color-bg-inverse);
    border-top: none;
    color: var(--color-text-inverse);
}

.home-cta h2 {
    color: var(--color-text-inverse);
    font-size: clamp(2.25rem, 4vw, 3.5rem);
    max-width: 18ch;
    margin-bottom: var(--space-md);
}

.home-cta .lead {
    color: rgba(250, 249, 244, 0.72);
    max-width: 48ch;
    margin-bottom: var(--space-lg);
}

.home-cta .btn-primary {
    background: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
    color: var(--color-bg-inverse) !important;
}

.home-cta .btn-primary:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #FFFFFF !important;
}

.home-cta .btn-link-arrow {
    color: var(--color-text-inverse);
}

.home-cta .btn-link-arrow:hover {
    color: var(--color-accent-light);
}

/* Case studies grid */
.home-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
}

a.home-case {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.home-case {
    padding: var(--space-lg);
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

a.home-case:hover {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px var(--color-accent-soft);
}

.home-case__industry {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.home-case h3 {
    font-family: var(--font-primary);
    font-size: 1.375rem;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0;
}


.home-case p {
    color: var(--color-text-secondary);
    font-size: 0.9375rem;
    line-height: 1.65;
    margin: 0;
}


.home-case__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: var(--space-xs) 0 0;
}

.home-case__tags li {
    font-size: 0.8125rem;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent-soft);
    color: var(--color-accent-dark);
    border-radius: 100px;
    font-weight: 500;
}


/* Homepage responsive */
@media (max-width: 900px) {
    .home-features { grid-template-columns: 1fr; gap: 0; }
    .home-cases { grid-template-columns: 1fr; }
    .capabilities { grid-template-columns: 1fr; gap: var(--space-lg); }
    .capabilities__list { grid-template-columns: 1fr; }
    .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .home-hero__meta { grid-template-columns: 1fr; gap: var(--space-md); }
    .stats { grid-template-columns: 1fr; }
    .models-strip { flex-direction: column; align-items: flex-start; gap: var(--space-sm); }
    .models-strip__list { gap: var(--space-md); }
}

/* ---- Mobile fixes (390px+) ---- */
@media (max-width: 768px) {
    /* Services grid — single column, reduced padding on mobile */
    .services-grid { grid-template-columns: 1fr !important; gap: var(--space-md) !important; }
    .service-card { padding: var(--space-md) !important; border-radius: 16px !important; }
    .service-card h3 { font-size: 1.25rem !important; }

    /* Automation capability cards — single column, reduced padding */
    .ai-capabilities-grid { grid-template-columns: 1fr !important; gap: var(--space-md) !important; }
    .capability-card { padding: var(--space-md) !important; border-radius: 16px !important; }

    /* CloudCore diagram — ensure SVG scales */
    .cloudcore-intro img { max-width: 100%; height: auto; }

    /* CloudCore editions links — stack vertically */
    .resource-list { flex-direction: column !important; gap: var(--space-sm) !important; }

    /* Resource box — fix background */
    .resource-box {
        background: var(--color-bg-secondary) !important;
        border: 1px solid var(--color-border) !important;
    }

    /* Automation hero — stack columns */
    .automation-hero .row { flex-direction: column; }
    .automation-hero .col-md-4 { display: none; }

    /* Case study tags — wrap properly */
    .home-case__tags { flex-wrap: wrap; }

    /* Process flow visual — hide on mobile */
    .automation-visual { display: none; }
}

/* ============================================================
   ============================================================
   REDESIGN — homepage shell (nav, hero, sections, footer)
   Lifted from /redesign/Exclr8 Homepage.html. Scoped to pages
   that opt in via body.surf-dark / body.surf-light so the
   existing pages keep their old typography and palette.
   ============================================================
   ============================================================ */

:root{
  /* ============================================================
     LIVE OPS CONSOLE — token reset
     Direction A: dark instrument-panel canvas, single typeface
     family (Geist), one accent + one status colour. No warm
     cream, no italic display serif, no // SECTION mono eyebrow.
     ============================================================ */

  /* Brand accent — literal logo "8" polygon fill */
  --accent:       #A43818;
  --accent-soft:  rgba(164,56,24,.10);
  --accent-line:  rgba(164,56,24,.45);
  --accent-glow:  rgba(164,56,24,.25);

  /* Full terracotta family (ref: Onigiry by OnPoint Studio,
     Dribbble shot 27029865 — off-white + terracotta layers). */
  --accent-deep:  #531508;   /* umber — H1 emphasis word, deep CTA */
  --accent-peach: #E8C6B4;   /* warm pale wash — soft section tints */
  --accent-warm:  #F0E5DD;   /* very pale peach — inset blocks */
  --accent-mid:   #C6876D;   /* dusty terracotta — secondary highlights */

  /* Status / positive accent — jade. Used sparingly for live
     pulses, "ok" states, dashboard tick marks. */
  --status:       #3B7C68;
  --status-soft:  rgba(59,124,104,.12);
  --status-glow:  rgba(74,222,128,.15);

  /* Dark surfaces — kept for instrument islands (status bar,
     console viz, footer). Not the default page surface. */
  --d-bg:      #0A0C0F;
  --d-bg-2:    #131619;
  --d-bg-3:    #1B1F25;
  --d-line:    rgba(255,255,255,.06);
  --d-line-2:  rgba(255,255,255,.12);
  --d-line-3:  rgba(255,255,255,.20);
  --d-text:    #ECEEF1;
  --d-text-2:  #9AA1AB;
  --d-text-3:  #5E6772;

  /* Light surface — the new default. Off-white with a faint
     warm tint to read as paper rather than screen. Higher
     contrast text values (was too pale at #6F7780). */
  --l-bg:      #F4F2EE;
  --l-bg-2:    #ECE9E1;
  --l-bg-3:    #E2DDD2;
  --l-line:    rgba(10,12,15,.10);
  --l-line-2:  rgba(10,12,15,.22);
  --l-line-3:  rgba(10,12,15,.34);
  --l-text:    #0A0C0F;
  --l-text-2:  #34373D;
  --l-text-3:  #5C636D;

  /* One typeface family for everything. */
  --f-sans:  'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono:  'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --f-serif: 'Geist', system-ui, sans-serif;  /* alias kept for back-compat — no serif anywhere now */

  --col: 1440px;
  --gutter: 40px;

  --e-fast: 180ms cubic-bezier(.2,0,0,1);
  --e-base: 340ms cubic-bezier(.2,0,0,1);
}

/* Scoped body reset — only affects pages that opt in via
   body.surf-dark / body.surf-light. Existing pages are untouched.
   Specificity is bumped with `html body.fwbody…` so the redesign
   tokens beat the legacy `html body.fwbody { font-family: Inter; … }`
   rule earlier in this file. */
html body.fwbody.surf-dark,
html body.fwbody.surf-light,
html body.surf-dark,
html body.surf-light{
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01','cv11';
}
html body.fwbody.surf-dark,
html body.surf-dark{ background: var(--d-bg); color: var(--d-text); }
html body.fwbody.surf-light,
html body.surf-light{ background: var(--l-bg); color: var(--l-text); }

/* Mastercontent normally adds a 72px top offset for the legacy fixed nav.
   The redesign nav is sticky (in flow), so kill that extra space and let
   each section control its own top padding. */
body.surf-dark .mastercontent,
body.surf-light .mastercontent{ padding-top: 0; }

/* Section surfaces */
.surf-dark {
  background: var(--d-bg);
  color: var(--d-text);
  --text: var(--d-text);
  --text-2: var(--d-text-2);
  --text-3: var(--d-text-3);
  --line: var(--d-line);
  --line-2: var(--d-line-2);
  --bg: var(--d-bg);
  --bg-2: var(--d-bg-2);
  --bg-3: var(--d-bg-3);
}
.surf-light{
  background: var(--l-bg);
  color: var(--l-text);
  --text: var(--l-text);
  --text-2: var(--l-text-2);
  --text-3: var(--l-text-3);
  --line: var(--l-line);
  --line-2: var(--l-line-2);
  --bg: var(--l-bg);
  --bg-2: var(--l-bg-2);
  --bg-3: var(--l-bg-3);
}

.wrap{
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type — single family. .mono is Geist Mono; .serif is Geist Sans
   (alias kept for back-compat — no italic, no display serif). */
.mono{ font-family: var(--f-mono); letter-spacing: .01em; font-feature-settings: 'zero','ss01'; }
.serif{ font-family: var(--f-sans); font-style: normal; letter-spacing: -0.01em; }
.serif.accent{ color: var(--accent); }  /* still tints accent words but no italic */

/* Eyebrow — bare uppercase mono. No `//` prefix is rendered (the
   `// SECTION` text in markup will be stripped in slice 7).
   No terracotta micro-rule. The label IS the label. */
.surf-dark .eyebrow,
.surf-light .eyebrow,
.eyebrow{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3, var(--d-text-3));
  display: inline-block;
}
/* CTA-section eyebrows always sit above a big H2 with a fixed gap.
   Bake the spacing in so we can drop 22 inline style="margin-bottom:28px"
   attrs (helps the script-side CSP cleanup). */
.cta .eyebrow{
  margin-bottom: 28px;
}
/* Lead paragraphs constrain reading width. Most are scoped inside
   sections; the cap was previously set inline as max-width:70-72ch.
   Bake the cap so we can drop the inline styles. */
.lead{
  max-width: 72ch;
}

.surf-dark h1, .surf-dark h2, .surf-dark h3, .surf-dark h4,
.surf-light h1, .surf-light h2, .surf-light h3, .surf-light h4{
  font-family: var(--f-sans);
  font-weight: 400;
  margin: 0;
  letter-spacing: -.025em;
  line-height: 1.02;
  color: var(--text);
}

.h-display{ font-size: clamp(48px, 6.5vw, 104px); font-weight: 300; letter-spacing: -.035em; line-height: .98 }
.h-1{ font-size: clamp(40px, 4.4vw, 68px); font-weight: 300; letter-spacing:-.03em; line-height:1.02 }
.h-2{ font-size: clamp(28px, 2.6vw, 40px); font-weight: 400; letter-spacing:-.02em; line-height:1.08 }
.h-3{ font-size: 22px; font-weight: 500; letter-spacing:-.012em; line-height:1.2 }

.surf-dark p.lead, .surf-light p.lead{
  font-size: clamp(17px,1.25vw,19px);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 56ch;
}
.surf-dark p.body, .surf-light p.body{ color: var(--text-2); max-width: 64ch }

/* Nav — Live Ops Console direction: solid dark, thinner bar, no
   backdrop-filter (which itself is a 2023 cliché). The nav is just
   plain text on a flat surface — like a tool's title bar.
   Explicit `display: block` overrides Bootstrap's greedy `.nav`. */
.nav{
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  position: sticky; top:0; z-index: 50;
  background: var(--d-bg);
  border-bottom: 1px solid var(--d-line-2);
}
.nav__inner{
  height: 56px;
  width: 100%;
  display:flex; align-items:center; justify-content: space-between;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.brand{display:flex; align-items:center; gap: 10px}
.brand__logo{ height: 22px; width: auto; display:block }
/* Logo letters always white — surface class must not flip them */
.brand__logo .logo-letter{ fill: #FFFFFF !important; transition: fill var(--e-base) }
.brand__logo .logo-eight { fill: #FFFFFF !important }
.brand__logo .logo-bg{ fill: var(--accent); transition: fill var(--e-base) }
.brand__mark{
  width: 26px; height: 26px;
  display:grid; place-items:center;
  background: var(--accent);
  color:#fff; font-family: var(--f-mono); font-weight:600; font-size: 14px;
  clip-path: polygon(12% 0,100% 0,88% 100%,0 100%);
}
.brand__name{
  font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em;
  font-size: 14px; color: var(--d-text);
}
.brand__name em{ font-style: normal; color: var(--accent)}

.nav__menu{display:flex; gap: 24px; align-items:center}
.nav__item{ position: relative; display: flex; align-items: center; }
.nav__link{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-text-2);
  display:inline-flex; align-items:center; gap:4px;
  transition: color var(--e-fast);
  white-space: nowrap;
  line-height: 1;
}
.nav__link:hover{color: var(--d-text)}
.nav__link .chev{ opacity:.5; font-size: 9px; display: inline-block; line-height: 1; transition: transform var(--e-fast); }
.nav__item--has-sub:hover .nav__link .chev,
.nav__item--has-sub:focus-within .nav__link .chev{ transform: translateY(1px); opacity: 1; }

/* Dropdown panel — solid dark, hairline border, no backdrop blur.
   Matches the nav's flat treatment. No margin-top: a gap there
   breaks :hover when the mouse crosses from trigger to panel. */
.nav__sub{
  position: absolute;
  top: 100%;
  left: -14px;
  min-width: 240px;
  padding: 8px 0;
  margin-top: 0;
  background: var(--d-bg-2);
  border: 1px solid var(--d-line-2);
  border-radius: 0;
  box-shadow: 0 12px 40px rgba(0,0,0,.4);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--e-fast), transform var(--e-fast), visibility 0s linear var(--e-fast);
  z-index: 60;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub,
.nav__item--has-sub.is-open .nav__sub{
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.nav__item--has-sub.is-open .nav__link .chev{ transform: translateY(1px) rotate(180deg); opacity: 1; }
.nav__sub a{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
  color: var(--d-text-2);
  padding: 8px 16px;
  white-space: nowrap;
  transition: color var(--e-fast), background var(--e-fast);
  border-left: 2px solid transparent;
}
.nav__sub a:hover{
  color: var(--d-text);
  background: var(--d-bg-3);
  border-left-color: var(--accent);
}
.nav__cta{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: none;
  padding: 8px 14px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  border-radius: 2px;
  transition: background var(--e-fast), border-color var(--e-fast);
}
/* Explicit color override — legacy `a:hover { color: var(--color-accent) }`
   otherwise wins (higher specificity than `.nav__cta`) and turns the
   text the same terracotta as the hover background → invisible. */
.nav__cta:hover{ background: var(--accent); border-color: var(--accent); color: #fff; }

/* Region pill sits on the translucent dark nav (72% opacity) over a
   near-white page. The resulting effective background is a medium
   dark brown, so --d-text-3 (#6E5E50) drops almost into the bg.
   Use --d-text-2 (taupe #A0856F) so the text reads clearly while
   still staying quieter than .nav__link hover and .nav__cta. */
.nav__region{
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--d-text-2); text-transform: uppercase;
  display:inline-flex; gap: 6px; align-items:center;
}
.nav__region::before{
  content:""; width:6px; height:6px; background: #4ADE80; border-radius:50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,.15);
}

/* HERO — Live Ops Console direction.
   Top status bar → intro block (h1 + lede + CTAs) → full-bleed
   console stage → log marquee → stack strip. The hero is no longer
   a 2-column grid; the console gets its own full-bleed real estate.
*/
.hero{
  position: relative;
  padding: 0 0 0;
  overflow: hidden;
  /* No hardcoded background — the .surf-dark / .surf-light class
     on the section drives the surface. The homepage hero stays
     surf-dark (instrument island); inner-page heroes opt into
     surf-light by class. */
}

/* Status bar — pinned across the top, terminal-style. Replaces the
   LAT/LON coordinate cosplay. Real fields: build, region, active
   workflow count, deploy time, current SAST clock. */
.status-bar{
  background: var(--d-bg-2);
  border-bottom: 1px solid var(--d-line);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--d-text-3);
  height: 32px;
}
.status-bar__inner{
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
  white-space: nowrap;
  overflow: hidden;
}
.status-bar__cell{ display: inline-flex; align-items: center; gap: 8px; }
.status-bar__cell b{ color: var(--d-text); font-weight: 500; }
.status-bar__cell--right{ margin-left: auto; }
.status-bar .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status);
  box-shadow: 0 0 0 4px var(--status-glow);
  animation: blink 2.4s infinite ease-in-out;
}
.status-bar .dot--ok{ background: var(--status); }

.hero__intro{
  padding: 88px 0 64px;
  max-width: 56rem;
  position: relative;
}
/* Dark-hero (homepage) headline. Phase 4 sales-test pass: the
   previous clamp(54px, 8vw, 128px) wrapped a 9-word sales headline
   to 4 lines and pushed the lede + credibility ribbon below the
   fold. Tighter clamp + wider intro keeps the headline to 2 lines
   at desktop and lets the lede + .cred ribbon sit above 900px-tall
   viewports. */
.hero.surf-dark .hero__title{
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1.02;
  font-weight: 300;
  letter-spacing: -.038em;
  max-width: 22ch;
}

/* Faint warm radial behind the hero on light surfaces — Onigiry +
   Orix both do a subtle gradient hint for energy without distraction.
   Scoped to heroes that opt into surf-light themselves; the homepage
   hero carries .surf-dark and must keep its dark canvas. Using
   .hero.surf-light (not .surf-light .hero) avoids leaking the light
   surface into the homepage hero, which now lives inside a surf-light
   body. */
.hero.surf-light{
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, var(--accent-warm) 0%, transparent 60%),
    var(--l-bg);
}

/* Inner-page hero strap — kept for backwards compatibility on
   non-home pages that haven't been rebuilt around the .status-bar.
   Tightened: mono labels in --text-3, values in --text-2, no
   eyebrow ::before micro-rule, inline-flex wrapping. */
.hero__meta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-bottom: 48px;
  padding-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: none;
  color: var(--text-2);
}
.hero__meta span{ display: inline-flex; gap: 8px; align-items: baseline; }
.hero__meta span strong{ color: var(--text-3); font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.hero__title{
  font-size: clamp(54px, 8vw, 128px);
  font-weight: 200;
  letter-spacing: -.045em;
  line-height: .94;
  margin: 0;
  max-width: 16ch;
}
/* On light, weight 200 reads ghostly. Bump to 300, slightly smaller.
   Scoped to .hero.surf-light so it doesn't leak into the homepage hero
   (which sits inside a surf-light body but is itself surf-dark). */
.hero.surf-light .hero__title{
  font-weight: 300;
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -.04em;
}
.hero__title .accent{ color: var(--accent) }
/* On light, use the deeper umber for the accent word — terracotta on
   off-white can read warm-on-warm; umber lifts contrast. */
.hero.surf-light .hero__title .accent{ color: var(--accent-deep); }
/* No italic display serif. Accent word stays plain Geist, just
   tinted in terracotta if .accent is also applied. */
.hero__title .serif{
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 200;
  letter-spacing: -.04em;
}
.hero__lede{
  margin: 32px 0 0;
  max-width: 56ch;
  font-size: 17px; line-height: 1.55;
  color: var(--d-text-2);
}
.hero__lede strong{
  color: var(--d-text);
  font-weight: 500;
}
.hero__cta{
  display:flex; gap: 16px; margin-top: 36px;
  align-items: center;
  flex-wrap: wrap;
}

/* CLI-style ghost button: looks like a shell prompt invocation
   instead of a chrome button. Anti-cliché replacement for the
   second ghost CTA. */
.btn--cli{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 12px 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--d-text-2);
  text-transform: none;
  border-bottom: 1px solid var(--d-line-2);
  border-radius: 0;
  transition: color var(--e-fast), border-color var(--e-fast);
}
.btn--cli:hover{ color: var(--d-text); border-bottom-color: var(--accent); }
.btn--cli .cli-prompt{ color: var(--accent); font-weight: 600; }

/* Full-bleed console stage. Breaks out of the .wrap horizontal
   constraints so the instrument panel touches the viewport edges. */
.console-stage{
  width: 100%;
  padding: 0 var(--gutter) 0;
  margin: 0 0 0;
}
.console-stage .console{
  max-width: var(--col);
  margin: 0 auto;
  min-height: 64vh;
}

/* Log-stream marquee. Auto-scrolls horizontally beneath the
   console. Doubled set in markup means the scroll loops without
   a visible seam. */
.log-stream{
  margin-top: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  background: var(--d-bg-2);
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.log-stream__track{
  display: inline-flex;
  gap: 56px;
  white-space: nowrap;
  animation: log-scroll 90s linear infinite;
  padding-left: 100%;
  will-change: transform;
}
.log-stream .log{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--d-text-3);
}
.log-stream .log b{ color: var(--accent); font-weight: 500; margin-right: 8px; }
.log-stream .log em{ color: var(--status); font-style: normal; margin-left: 6px; }
@keyframes log-scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}
.surf-dark .btn, .surf-light .btn{
  display:inline-flex; align-items:center; gap: 10px;
  padding: 12px 18px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing:.08em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: background var(--e-fast), color var(--e-fast), border-color var(--e-fast), transform var(--e-fast);
  cursor: pointer;
  border: 1px solid transparent;
}
.surf-dark .btn--primary, .surf-light .btn--primary{
  background: var(--accent);
  color: #fff;
}
.surf-dark .btn--primary:hover, .surf-light .btn--primary:hover{ background: var(--color-accent-dark); transform: translateY(-1px)}
.surf-dark .btn--ghost, .surf-light .btn--ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.surf-dark .btn--ghost:hover, .surf-light .btn--ghost:hover{ border-color: var(--accent); color: var(--accent) }
.btn__arrow{transition: transform var(--e-fast)}
.surf-dark .btn:hover .btn__arrow, .surf-light .btn:hover .btn__arrow{ transform: translateX(3px) }

/* Hero right column — console viz */
.console{
  position: relative;
  border: 1px solid var(--d-line-2);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)) ,
    var(--d-bg-2);
  border-radius: 0;
  overflow: hidden;
  min-height: 600px;
  padding-bottom: 40px;  /* room for the absolute-positioned footer */
}
.console__head{
  display:flex; justify-content:space-between; align-items:center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--d-line);
  font-family: var(--f-mono); font-size: 11px; letter-spacing:.08em;
  color: var(--d-text-3); text-transform: uppercase;
}
.console__head .dots{ display:flex; gap: 5px }
.console__head .dots i{ width:8px; height:8px; border-radius:50%; background: var(--d-line-2); display:inline-block}
.console__head .dots i:nth-child(1){ background: var(--accent)}
.console__tick{display:inline-flex; gap:6px; align-items:center}
.console__tick b{color: var(--d-text-2); font-weight:500}
.console__tick .blink{
  width: 6px; height:6px; border-radius: 50%;
  background: #4ADE80;
  animation: blink 1.6s infinite ease-in-out;
}
@keyframes blink { 0%,70%,100%{opacity:1} 80%{opacity:.3} }

.console__canvas{
  position: relative;
  padding: 28px 24px 24px;
  height: 520px;
}
.console__rulers{
  position:absolute; inset:0;
  pointer-events:none;
  background-image:
    linear-gradient(to right, var(--d-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--d-line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity:.5;
  mask-image: radial-gradient(ellipse at center, #000 55%, transparent 95%);
}
.console__rail{
  position: relative;
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  gap: 12px;
  align-items: start;
  margin-top: 8px;
}
.rail-col{
  border: 1px solid var(--d-line);
  background: var(--d-bg-3);
  border-radius: 2px;
  padding: 10px;
  min-height: 460px;
  position: relative;
}
.rail-col__head{
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em;
  color: var(--d-text-3); text-transform: uppercase;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--d-line-2);
  margin-bottom: 10px;
  display:flex; justify-content:space-between;
}
.rail-col__head b{color: var(--d-text-2); font-weight: 500}

.chip{
  border: 1px solid var(--d-line-2);
  background: rgba(255,255,255,.02);
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 12px;
  position: relative;
  transition: border-color var(--e-fast), background var(--e-fast), transform var(--e-base);
}
.chip__meta{
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em;
  color: var(--d-text-3);
  display:flex; justify-content:space-between;
  margin-bottom: 4px;
}
.chip__label{ color: var(--d-text); font-size: 12px; line-height:1.35 }
.chip__tag{
  display:inline-block; margin-top:6px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing:.08em;
  padding: 1px 6px; border-radius: 2px;
  color: var(--d-text-2);
  background: rgba(255,255,255,.04);
  border: 1px solid var(--d-line);
}
.chip--flag{ border-color: var(--accent-line); background: var(--accent-soft) }
.chip--flag .chip__tag{ color: var(--accent); border-color: var(--accent-line); background: transparent }
.chip--done{ opacity: .55 }
.chip--done .chip__tag{ color: #7BC5A4; border-color: rgba(123,197,164,.3) }

.rail-center{
  background: transparent;
  border: 1px dashed var(--d-line-2);
  padding: 14px;
}
.workflow{
  position:relative; height: 100%;
}
.wf-node{
  border: 1px solid var(--d-line-2);
  background: var(--d-bg-2);
  border-radius: 2px;
  padding: 10px 12px;
  margin-bottom: 14px;
  display:flex; justify-content:space-between; align-items:center;
  font-size: 12px;
  position: relative;
}
.wf-node__n{
  font-family: var(--f-mono); font-size: 10px;
  color: var(--d-text-3); margin-right: 10px;
}
.wf-node__ai{
  display:inline-flex; gap:6px; align-items:center;
  font-family: var(--f-mono); font-size: 10px;
  color: var(--accent);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.wf-node__ai::before{
  content:""; width:6px; height:6px; background: var(--accent);
  border-radius:50%;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.wf-node::after{
  content:""; position:absolute; left: 20px; top: 100%;
  width: 1px; height: 14px; background: var(--d-line-2);
}
.wf-node:last-child::after{display:none}
.wf-node--active{
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--accent-soft), transparent), var(--d-bg-2);
}
.wf-pulse{
  position:absolute;
  left: 19px;
  width: 3px;
  background: var(--accent);
  animation: pulse-down 2.6s infinite ease-in-out;
  opacity:.6;
  border-radius: 2px;
}
@keyframes pulse-down{
  0%{top:40px; height:10px; opacity:0}
  20%{opacity:.8}
  100%{top: calc(100% - 40px); height: 10px; opacity:0}
}

.console__foot{
  position: absolute;
  left:0; right:0; bottom:0;
  display:flex; justify-content:space-between;
  padding: 10px 14px;
  border-top: 1px solid var(--d-line);
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing:.1em; text-transform: uppercase;
  color: var(--d-text-3);
  background: rgba(14,16,19,.8);
}
.console__foot b{ color: var(--d-text-2); font-weight: 500 }

/* Hero bottom strip — scrolling stack */
.hero__foot{
  margin-top: 96px;
  padding: 20px 0;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
  display:flex; gap: 64px; align-items:center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--d-text-3);
  overflow: hidden;
}
.hero__foot > span:first-child{color: var(--d-text-2)}
.hero__foot ul{display:flex; gap: 48px; list-style:none; margin:0; padding:0; flex-wrap:wrap}

/* Section helpers — 80px vertical padding yields a 160px gap between
   adjacent sections, which reads generous on the homepage and keeps
   multi-section pages (ourservices, contactus) from accumulating
   excessive whitespace. */
.surf-dark .section, .surf-light .section, section.section{ padding: 80px 0 }
.section--tight{ padding: 48px 0 }

/* Section heads — Live Ops Console direction strips the 240px
   label-column + numbered index cliché. The .section__index is
   hidden entirely. The .section__title sits alone, full-width.
   Markup-compatible with all existing pages. */
.section__head{
  display: block;
  padding-bottom: 0;
  border-bottom: 0;
  margin-bottom: 40px;
  max-width: 88ch;
}
.section__index{
  display: none;
}
.section__head .section__title{
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 200;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0;
  max-width: 26ch;
  color: var(--text);
}
/* Same weight bump for section titles on light — 200 reads ghostly. */
.surf-light .section__head .section__title,
.surf-light .section__lede .section__title{
  font-weight: 300;
}

.section__title{
  font-size: clamp(32px, 3.6vw, 52px);
  font-weight: 300;
  letter-spacing: -.028em;
  line-height: 1.04;
  max-width: 22ch;
  color: var(--text);
  /* Balance line lengths so the last word doesn't orphan onto its
     own line. Modern browsers (Chrome 114+, Safari 17.4+, FF 121+)
     handle this; older ones fall back to default wrapping. */
  text-wrap: balance;
}
.hero__title,
.cta__title,
.case__title,
.quality__title{
  text-wrap: balance;
}

/* Capabilities grid */
.caps{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}
.cap{
  padding: 40px 32px 48px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  min-height: 280px;
  transition: background var(--e-fast);
  cursor: pointer;
}
.cap:hover{ background: var(--bg-2) }
/* Make the whole cell a click target. The visible "Read more →"
   anchor stretches an invisible pseudo-element across the card, so
   clicking any part of the card follows the link. Text is still
   selectable (drag-select is separate from click). */
.cap .cap__link::after{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.cap:hover .cap__link{ color: var(--accent); }
.cap .cap__link:focus-visible::after{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* When the whole card is an <a> (DrawCard with $href), the cap__link
   span inside is purely visual — no anchor. The whole card is already
   the click target; render the "Read more →" pinned at the bottom
   like the anchor variant. */
a.cap.cap--link{
  text-decoration: none;
  color: inherit;
  display: block;
}
a.cap.cap--link:hover{ color: inherit; }
a.cap.cap--link .cap__link{
  position: absolute; left: 32px; bottom: 28px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing:.12em;
  text-transform: uppercase; color: var(--text-2);
  display: inline-flex; gap: 6px; align-items: center;
}
a.cap.cap--link:hover .cap__link{ color: var(--accent); }
a.cap.cap--link:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.cap__n{
  font-family: var(--f-mono); font-size: 11px; letter-spacing:.14em;
  color: var(--text-3); text-transform: uppercase;
  margin-bottom: 28px;
  display: flex; justify-content: space-between;
}
.cap__n .tag{
  color: var(--accent); border: 1px solid var(--accent-line);
  padding: 1px 6px; border-radius: 2px; font-size: 10px;
}
.cap h3{ font-size: 22px; font-weight: 500; letter-spacing:-.012em; margin-bottom: 14px; color: var(--text) }
.cap p{ font-size: 14px; line-height: 1.6; color: var(--text-2); margin:0 }
.cap__link{
  position: absolute; left: 32px; bottom: 28px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing:.12em;
  text-transform: uppercase; color: var(--text-2);
  display: inline-flex; gap: 6px; align-items: center;
  transition: color var(--e-fast);
}
.cap__link:hover{ color: var(--accent)}

/* Stack strip — horizontal data row */
.strip{
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display:grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: center;
}
.strip__label{
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-3);
}
.strip__label b{ display:block; color: var(--text); font-family: var(--f-sans); font-size:20px; font-weight:400; margin-top: 6px }
.strip__items{
  display: flex; gap: 56px; flex-wrap: wrap;
  font-family: var(--f-mono); font-size: 12px; letter-spacing:.06em;
  text-transform: uppercase;
  color: var(--text-2);
}
.strip__items span{display:inline-flex; gap:10px; align-items:center}
.strip__items span::before{
  content:"";
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink:0;
}

/* CASES — metric-forward cards */
.cases{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.case{
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 26px 28px 24px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  /* No fixed min-height — let metrics + description size the card.
     Previously 480px was needed when cards were sparse, but now every
     card carries 3 metric tiles, content fills naturally. */
  transition: border-color var(--e-fast), transform var(--e-base);
  overflow: hidden;
  /* Card is itself an <a> — kill underline + inherit text colour so we
     don't need 29 inline style="text-decoration:none" attributes (which
     also let the CSP drop 'unsafe-inline' from style-src). */
  text-decoration: none;
  color: inherit;
}
.case:hover{ border-color: var(--line-2); transform: translateY(-2px)}
.case::before{
  content:"";
  position:absolute; left:0; top:0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform var(--e-base);
}
.case:hover::before{ transform: scaleY(1)}
.case__head{
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.case__head b{ color: var(--text-2); font-weight:500 }
/* .surf-light h3 (0,0,1,1) outranks .case__title (0,0,1,0), so scope
   the case title rule under .case to bump specificity to (0,0,2,0). */
.case .case__title{
  font-size: 22px; font-weight: 400; letter-spacing: -.018em; line-height: 1.15;
  margin: 16px 0 10px;
  color: var(--text);
}
.case__desc{ font-size: 14px; line-height: 1.55; color: var(--text-2); max-width: 52ch; margin:0 }

.case__metrics{
  display:grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 18px; padding-top: 14px;
  gap: 14px;
}
.metric b{
  display: block;
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 34px;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--text);
}
.metric b sup{ color: var(--accent); font-size: 20px; margin-left: 3px; font-weight: 400; position: relative; top: -8px }
.metric span{
  display:block; margin-top: 8px;
  font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  line-height: 1.4;
}

/* Methodology — editorial numbered rows */
.method{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.method__manifesto{
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.3;
  font-weight: 300;
  letter-spacing: -.015em;
  color: var(--text);
  max-width: 28ch;
}
.method__manifesto em{ color: var(--accent); font-style: normal }
.method__manifesto .serif{
  font-family: var(--f-sans);
  font-style: normal;
  font-weight: 300;
  letter-spacing:-.015em;
  color: var(--text);
}
.method__steps{ display: flex; flex-direction: column; gap: 0}
.step{
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.step:last-child{ border-bottom: 1px solid var(--line)}
.step__n{
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em;
  color: var(--accent); text-transform: uppercase;
}
.step h4{
  font-size: 19px; font-weight: 500; letter-spacing:-.01em;
  margin: 0 0 8px; color: var(--text);
}
.step p{ margin:0; font-size: 14px; line-height: 1.6; color: var(--text-2); max-width: 46ch }

/* Stats — big mono row */
.surf-dark .stats, .surf-light .stats{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.surf-dark .stat, .surf-light .stat{
  padding: 48px 32px;
  border-right: 1px solid var(--line);
}
.surf-dark .stat:last-child, .surf-light .stat:last-child{ border-right: none }
.stat__val{
  font-size: clamp(44px, 4.4vw, 68px);
  font-family: var(--f-sans);
  font-weight: 200;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--text);
}
.stat__val sup{ font-size: 24px; color: var(--accent); position: relative; top: -20px; margin-left: 4px; font-weight: 400 }
.stat__lbl{
  margin-top: 20px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--text-3);
  line-height: 1.5;
  max-width: 22ch;
}

/* CTA */
.cta{
  padding: 140px 0;
  border-top: 1px solid var(--d-line);
  position: relative;
  overflow: hidden;
}
.cta__grid{
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  align-items: start;
}
.cta__title{
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 300;
  letter-spacing: -.035em;
  line-height: .98;
  max-width: 14ch;
}
.cta__title .serif{ font-family: var(--f-sans); font-style: normal; color: var(--accent); font-weight: 200; letter-spacing: -.035em; }
.cta__aside{
  font-family: var(--f-mono); font-size: 11px; letter-spacing:.14em;
  text-transform: uppercase; color: var(--d-text-3);
}
.cta__aside ul{
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 40px;
  margin-top: 20px;
}
.cta__aside li{ display: flex; flex-direction: column; gap: 6px }
.cta__aside li b{ color: var(--d-text); font-family: var(--f-sans);
  font-size: 15px; font-weight: 400; letter-spacing:-.01em;
  text-transform: none }
/* CTA aside values must be readable on light AND dark CTA surfaces */
.surf-light .cta__aside    { color: var(--text-3); }
.surf-light .cta__aside li b { color: var(--text); }
/* Anchors inside the value <b> inherit the surface-aware colour.
   Without this, the global `a { color: var(--color-text-primary) }`
   rule paints tel:/mailto: links near-black, which disappears on
   surf-dark CTAs. Underline uses the surface's hairline token. */
.cta__aside li b a{
  color: inherit;
  border-bottom: 1px solid var(--d-line-2);
  transition: border-color var(--e-fast), color var(--e-fast);
}
.cta__aside li b a:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.surf-light .cta__aside li b a{ border-bottom-color: var(--l-line-2); }
.cta__actions{ margin-top: 40px; display: flex; gap: 12px }

/* Footer — unix man-page bottom matter. Mono masthead like a
   manpage banner, columns of mono links, build line at the foot. */
.foot{
  background: var(--d-bg);
  color: var(--d-text-2);
  border-top: 1px solid var(--d-line-2);
  padding: 56px 0 28px;
  font-family: var(--f-mono);
}
.foot__masthead{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--d-text-3);
  margin: 0 0 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--d-line);
  white-space: pre;
  overflow-x: auto;
}
.foot__cols{
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 28px 40px;
}
.foot__col h5{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.foot__col p{
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 1.6;
  color: var(--d-text-2);
  margin: 0;
  max-width: 36ch;
  letter-spacing: .02em;
}
.foot__col ul{
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
  gap: 6px;
}
.foot__col li{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--d-text-2);
  line-height: 1.5;
}
.foot__col a{
  color: var(--d-text-2);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color var(--e-fast), border-color var(--e-fast);
}
.foot__col a:hover{
  color: var(--d-text);
  border-bottom-color: var(--accent);
}
.foot__build{
  margin-top: 48px;
  padding-top: 16px;
  border-top: 1px solid var(--d-line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--d-text-3);
}
.foot__build b{
  color: var(--d-text-2);
  font-weight: 500;
}

/* Mobile */
@media (max-width: 1080px){
  .hero__grid{ grid-template-columns: 1fr; gap: 56px }
  .console{ min-height: 520px }
  .caps{ grid-template-columns: 1fr 1fr }
  .cases{ grid-template-columns: 1fr }
  .case{ min-height: 0; }
  .case__metrics{ grid-template-columns: repeat(3, 1fr); }
  .method{ grid-template-columns: 1fr; gap: 40px }
  .surf-dark .stats, .surf-light .stats{ grid-template-columns: 1fr 1fr }
  .surf-dark .stat, .surf-light .stat{ border-bottom: 1px solid var(--line) }
  .cta__grid{ grid-template-columns: 1fr }
  .foot__cols{ grid-template-columns: 1fr 1fr 1fr; }
  .section__head{ grid-template-columns: 1fr; gap: 28px }
  .strip{ grid-template-columns: 1fr; gap: 20px; }
  .strip__items{ gap: 24px 32px; }
  .hero__foot{ gap: 32px; }
  .hero__foot ul{ gap: 20px 32px; }
}
@media (max-width: 720px){
  body.surf-dark, body.surf-light{ --gutter: 20px }
  .caps{ grid-template-columns: 1fr }
  .surf-dark .section, .surf-light .section, section.section{ padding: 80px 0 }
  .hero{ padding-top: 48px }
  .hero__meta{ gap: 18px; flex-wrap: wrap }
  .hero__foot{ flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero__foot ul{ gap: 20px 28px; }
  .section__head{ grid-template-columns: 1fr; gap: 16px; padding-bottom: 28px; margin-bottom: 32px; }
  .stats{ grid-template-columns: 1fr; }
  .surf-dark .stat, .surf-light .stat{ border-right: none; border-bottom: 1px solid var(--line); padding: 32px 0; }
  .foot__cols{ grid-template-columns: 1fr; gap: 28px; }
  .foot__build{ flex-direction: column; gap: 8px; align-items: flex-start; }
  .cta{ padding: 72px 0; }
  .cta__aside ul{ grid-template-columns: 1fr; }
  .case__metrics{ grid-template-columns: 1fr 1fr; gap: 16px; }
  .cap{ padding: 32px 24px 72px; min-height: 0; }
  .cap__link, a.cap.cap--link .cap__link{ left: 24px; bottom: 20px; }
  .strip__items{ gap: 16px 24px; }
  .console__rail{ grid-template-columns: 1fr; gap: 14px; }
  .rail-col{ min-height: auto; }
  .console{ min-height: auto; }
  .console__canvas{ height: auto; padding: 20px 16px 72px; }
  .console__foot{ font-size: 9px; padding: 8px 10px; }
  /* Hide the sup arrow on stat vals at narrow widths, keep alignment */
}

/* ================= Mobile nav toggle ================= */
.nav__toggle{
  display: none;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px solid var(--d-line-2);
  border-radius: 2px;
  width: 36px; height: 36px;
  padding: 0;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: 12px;
}
.nav__toggle span{
  display: block;
  width: 16px; height: 1.5px;
  background: var(--d-text);
  transition: transform var(--e-fast), opacity var(--e-fast);
}
body.nav-open .nav__toggle span:nth-child(1){ transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav__toggle span:nth-child(2){ opacity: 0; }
body.nav-open .nav__toggle span:nth-child(3){ transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 720px){
  .nav__toggle{ display: inline-flex; }
  .nav__menu{
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 20px 20px 32px;
    background: rgba(14,16,19,.98);
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    border-top: 1px solid var(--d-line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--e-fast), transform var(--e-fast);
    z-index: 55;
  }
  body.nav-open .nav__menu{
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
  }
  .nav__item, .nav__item--has-sub{ display: block; }
  .nav__menu .nav__link{ padding: 14px 0; border-bottom: 1px solid var(--d-line); font-size: 14px; }
  /* Dropdown panels — inline on mobile instead of floating */
  .nav__sub{
    position: static;
    display: flex;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0 0 12px 18px;
    min-width: 0;
  }
  .nav__sub a{ padding: 10px 0; font-size: 11px; border-left: none; }
  .nav__region{ padding: 14px 0; border-bottom: 1px solid var(--d-line); }
  .nav__cta{
    display: block;
    text-align: center;
    margin-top: 18px;
    padding: 14px;
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
  }
  body.nav-open{ overflow: hidden; }
}

/* ============================================================
   CONTACT PAGE — redesign-styled form + coordinates
   ============================================================ */
.contact__grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__form-col{ min-width: 0; }

/* Form fields — minimal, hairline borders, mono labels */
.x8form .x8field{
  display: block;
  margin-bottom: 28px;
}
.x8form .x8field label{
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3, var(--color-text-muted));
  margin-bottom: 10px;
}
.x8form .x8field input,
.x8form .x8field textarea{
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text, var(--color-text-primary));
  background: transparent;
  border: 1px solid var(--line-2, var(--color-border-strong));
  border-radius: 2px;
  transition: border-color var(--e-fast), background var(--e-fast);
  -webkit-appearance: none;
  appearance: none;
}
.x8form .x8field textarea{
  resize: vertical;
  min-height: 140px;
  font-family: var(--f-sans);
}
.x8form .x8field input::placeholder,
.x8form .x8field textarea::placeholder{
  color: var(--text-3, var(--color-text-muted));
  opacity: .8;
}
.x8form .x8field input:focus,
.x8form .x8field textarea:focus{
  outline: none;
  border-color: var(--accent);
  background: rgba(164,56,24,.03);
}
.x8form .x8field--actions{
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
  margin-bottom: 0;
}
.x8form #turnstile-container{ margin-bottom: 16px; }
.x8form .alert{
  padding: 12px 16px;
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
  font-size: 14px;
  line-height: 1.5;
  background: var(--accent-soft);
  color: var(--text, var(--color-text-primary));
}
.x8form .alert-success{ border-left-color: #2C7D5E; background: rgba(44,125,94,.08); }
.x8form .alert-danger{  border-left-color: #C7542A; background: rgba(199,84,42,.08); }

/* Contact coordinates aside — same pattern as the homepage CTA aside */
.contact__coord{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3, var(--color-text-muted));
}
.contact__list{
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 32px;
}
.contact__list li{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact__list li b{
  font-family: var(--f-sans);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text, var(--color-text-primary));
}
.contact__list li b a{ color: inherit; border-bottom: 1px solid var(--line, var(--color-border)); transition: border-color var(--e-fast); }
.contact__list li b a:hover{ border-color: var(--accent); }
.contact__list .contact__list__address{ grid-column: 1 / -1; }

/* Map — hairline frame, no chrome */
.contact__map{
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line-2, var(--color-border-strong));
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2, var(--color-bg-tertiary));
}
.contact__map iframe{
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
  filter: grayscale(.2) contrast(1.02);
}

/* Office gallery — 3-column hairline grid */
.contact__gallery{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact__gallery figure{
  margin: 0;
  border: 1px solid var(--line, var(--color-border));
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-2, var(--color-bg-tertiary));
  aspect-ratio: 4 / 3;
}
.contact__gallery img{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--e-base);
}
.contact__gallery figure:hover img{ transform: scale(1.03); }

@media (max-width: 1080px){
  .contact__grid{ grid-template-columns: 1fr; gap: 56px; }
  .contact__list{ grid-template-columns: 1fr; }
  .contact__gallery{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px){
  .contact__gallery{ grid-template-columns: 1fr; }
}

/* ============================================================
   SERVICES — editorial rows (.svc)
   Used on ourservices.php. Two-column: sticky head (number + title)
   on the left, long-form body (description, example, features list)
   on the right. Hairline dividers between rows.
   ============================================================ */
.svc-list{
  border-top: 1px solid var(--line);
}
.svc{
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 64px;
  padding: 40px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.svc__head{ position: sticky; top: 88px; }
.svc__n{
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
  display: inline-flex; align-items: center; gap: 10px;
}
.svc__n::before{
  content: ""; width: 18px; height: 1px; background: var(--accent);
}
.svc .svc__title{
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin: 0;
  max-width: 18ch;
}
.svc__body{ min-width: 0; }
.svc__body > p{
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
  max-width: 60ch;
  margin: 0 0 16px;
}
.svc__body a{
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: border-color var(--e-fast);
}
.svc__body a:hover{ border-color: var(--accent); }
.svc__example{
  border-left: 2px solid var(--accent-line);
  padding: 2px 0 2px 18px;
  margin: 18px 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 60ch;
}
.svc__example strong{
  display: block;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 6px;
}
/* Single-column feature list — the paragraph above is one column of
   prose, so a two-column mono grid under it reads as a disconnected
   data table. One column keeps the same reading width and feels like
   a natural continuation of the description. */
.svc__features{
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  /* Was 60ch + many pages overrode to 72ch inline. Bump to 72ch by
     default so we can drop the 11 inline style="max-width:72ch" attrs
     and let CSP eventually drop 'unsafe-inline' from style-src. */
  max-width: 72ch;
}
.svc__features li{
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: flex-start; gap: 12px;
  line-height: 1.5;
}
.svc__features li::before{
  content: ""; width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 5px;
}

@media (max-width: 960px){
  .svc{ grid-template-columns: 1fr; gap: 20px; padding: 32px 0; }
  .svc__head{ position: static; }
}

/* ============================================================
   CASE STUDY / PROSE — preserves legacy .case-report prose inside
   the new redesign .section shell. Used on case-feedem, case-oms,
   case-xen4, case-lovetech, bespokevsshelf, whyuseus, cctop20*,
   esystems, automation FAQ.

   Single readable column — centred in the section wrap — keeps
   line-length comfortable (72ch) and prevents the prose from
   floating left of a 600px dead zone on wide viewports.
   ============================================================ */
.case-report{
  max-width: 72ch;
  margin-left: auto;
  margin-right: auto;
}
.case-report > h2{
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text);
  margin: 48px 0 16px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  max-width: 28ch;
}
.case-report > h2:first-child{
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.case-report p,
.case-report li{
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-2);
}
.case-report p{ margin: 0 0 16px; max-width: none; }
.case-report ol,
.case-report ul{
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
  counter-reset: caselist;
}
.case-report ol > li,
.case-report ul > li{
  padding: 14px 0 14px 44px;
  border-top: 1px solid var(--line);
  position: relative;
  max-width: 70ch;
  margin: 0;
}
.case-report ol > li:last-child,
.case-report ul > li:last-child{ border-bottom: 1px solid var(--line); }
.case-report ol > li{ counter-increment: caselist; }
.case-report ol > li::before{
  content: counter(caselist, decimal-leading-zero);
  position: absolute;
  left: 0; top: 14px;
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: .14em;
  color: var(--accent);
  font-weight: 500;
}
.case-report ul > li::before{
  content: "";
  position: absolute;
  left: 14px; top: 22px;
  width: 6px; height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}
.case-report li strong{
  color: var(--text);
  font-weight: 500;
}
.case-report hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}
.case-report a{
  color: var(--accent);
  border-bottom: 1px solid var(--accent-line);
  transition: border-color var(--e-fast);
}
.case-report a:hover{ border-bottom-color: var(--accent); }

@media (max-width: 720px){
  .case-report > h2{ margin-top: 32px; padding-top: 24px; }
  .case-report ol > li,
  .case-report ul > li{ padding-left: 36px; }
}

/* ============================================================
   LIVE OPS CONSOLE — Section helpers + Architecture diagram
   New section header pattern (.section__lede) used instead of
   the .section__head 240px-label + 1fr-title cliché. The new
   .arch component renders the platform as a real diagram with
   inputs flowing through CloudCore compartments to downstream
   sinks. No card chrome, hairline rails only.
   ============================================================ */

/* New section header — title + brief lede paragraph. No mono
   eyebrow. No 240px label column. Just type. */
.section__lede{
  max-width: 88ch;
  margin: 0 0 56px;
}
.section__lede .section__title{
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 200;
  letter-spacing: -.025em;
  line-height: 1.04;
  margin: 0 0 20px;
  max-width: 26ch;
}
.section__lede-text{
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 64ch;
  margin: 0;
}

/* Architecture diagram. Three rows: inputs ↓ → platform ▣ → outputs ↓.
   Each row has a tiny mono row-label on the left and a flex/grid
   of nodes on the right. The middle row (platform) is given more
   weight: bigger nodes, hairline emphasis, link-able. */
.arch{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.arch__row{
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 24px 0;
  align-items: center;
  border-top: 1px solid var(--line);
  position: relative;
}
.arch__row:first-child{ border-top: 0; }

/* Vertical flow lines connecting the rows — hint of dataflow. */
.arch__row + .arch__row::before{
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 1px;
  height: 32px;
  background: linear-gradient(180deg, var(--line) 0%, var(--accent-line) 50%, var(--line) 100%);
  transform: translateX(-50%);
  pointer-events: none;
}

.arch__rowlabel{
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* Inputs/outputs nodes — tight grid of small labelled chips. */
.arch__nodes{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
.arch__node{
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  background: var(--bg);
  font-family: var(--f-sans);
  transition: background var(--e-fast);
}
.arch__node:hover{ background: var(--bg-2); }
.arch__node b{
  font-weight: 500;
  color: var(--text);
  font-size: 13px;
}
.arch__node i{
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-3);
}

/* Platform row — heavier emphasis. The CloudCore "engine room". */
.arch__row--platform{
  background:
    linear-gradient(180deg, rgba(164,56,24,.06), rgba(164,56,24,0)),
    var(--bg);
  border-left: 3px solid var(--accent);
  padding-left: 0;
}
/* On light, the platform row lifts with a peach gradient — same
   territory as Onigiry's terracotta accents on off-white. */
.surf-light .arch__row--platform{
  background:
    linear-gradient(180deg, var(--accent-warm), transparent 80%),
    var(--bg);
}
.arch__row--platform .arch__rowlabel{
  color: var(--accent);
  padding-left: 24px;
}
.arch__platform{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--accent-line);
}
.arch__cell{
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--bg);
  text-decoration: none;
  transition: background var(--e-fast);
  position: relative;
}
.arch__cell:hover{
  background: var(--bg-2);
}
/* On light, lift to a paper-white card with subtle peach tint */
.surf-light .arch__cell:hover{
  background: #FFFFFF;
  box-shadow: 0 1px 0 var(--accent-line) inset;
}
.surf-light .arch__node:hover{
  background: var(--accent-warm);
}
.arch__cell::after{
  content: "→";
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-3);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity var(--e-fast), transform var(--e-fast), color var(--e-fast);
}
.arch__cell:hover::after{
  opacity: 1; transform: translateX(0); color: var(--accent);
}
.arch__cell b{
  font-weight: 500;
  color: var(--text);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.arch__cell i{
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3);
}

/* Bottom caption — short prose lines explaining the labelled
   compartments. Mono lead-in + sans body. */
.arch__caption{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 56px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.arch__caption span{
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 64ch;
}
.arch__caption b{
  color: var(--text);
  font-weight: 500;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-right: 8px;
}
.arch__caption code{
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 1px 4px;
  border-radius: 2px;
}

@media (max-width: 1080px){
  .arch__caption{ grid-template-columns: 1fr; }
}
@media (max-width: 1080px){
  .arch__nodes{ grid-template-columns: repeat(2, 1fr); }
  .arch__platform{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .arch__row{ grid-template-columns: 1fr; gap: 14px; }
  .arch__nodes{ grid-template-columns: 1fr; }
  .arch__platform{ grid-template-columns: 1fr; }
  .arch__row--platform{ padding-left: 0; }
  .arch__row--platform .arch__rowlabel{ padding-left: 0; }
}

/* ============================================================
   LIVE OPS CONSOLE — Cases section (ticker + spec table)
   Replaces the 4× .case cards with two pieces:
   1. .ticker — full-bleed terminal-style marquee of metrics.
   2. .spec  — actual <table> with one row per case study.
   No card chrome, no hover-lift micro-animations.
   ============================================================ */

.ticker{
  width: 100%;
  margin: 24px 0 56px;
  padding: 14px 0;
  border-top: 1px solid var(--line, var(--d-line));
  border-bottom: 1px solid var(--line, var(--d-line));
  background: var(--bg-2, var(--d-bg-2));
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
/* On light, the ticker becomes a peach-tinted strip with a slight
   warm gradient — terminal-feel without being grey. */
.surf-light .ticker{
  background: linear-gradient(90deg, var(--accent-warm) 0%, var(--l-bg-2) 50%, var(--accent-warm) 100%);
  border-top-color: var(--accent-line);
  border-bottom-color: var(--accent-line);
}
.surf-light .ticker__cell{ color: var(--text-2); }
.surf-light .ticker__cell b{ color: var(--accent-deep); }
.ticker__track{
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}
.ticker__cell{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--text-2, var(--d-text-2));
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
}
.ticker__cell b{
  color: var(--accent);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ticker__cell em{
  color: var(--status);
  font-style: normal;
  font-size: 14px;
  line-height: 0;
  position: relative;
  top: 1px;
}
.ticker__cell sup{ font-size: 9px; }
@keyframes ticker-scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-50%); }
}

/* Spec sheet — type-foundry-style table. Tabular numerals. */
.spec{
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-sans);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--text-2, var(--d-text-2));
}
.spec thead th{
  text-align: left;
  padding: 12px 16px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3, var(--d-text-3));
  border-bottom: 1px solid var(--line-2, var(--d-line-2));
  font-weight: 500;
  white-space: nowrap;
}
.spec .spec__id{ width: 56px; }
.spec .spec__regions{ width: 100px; }
.spec .spec__nav{ width: 40px; text-align: right; }

.spec tbody tr.spec__row{
  cursor: pointer;
  border-bottom: 1px solid var(--line, var(--d-line));
  transition: background var(--e-fast), box-shadow var(--e-fast);
}
.spec tbody tr.spec__row:hover{
  background: var(--bg-2, var(--d-bg-2));
}
/* On light, hover lifts the row to a brighter inset (paper) with
   a hairline accent left border — pulls the row forward. */
.surf-light .spec tbody tr.spec__row:hover{
  background: #FFFFFF;
  box-shadow: inset 4px 0 0 var(--accent);
}
.spec tbody td{
  padding: 24px 16px;
  vertical-align: top;
  line-height: 1.45;
}
.spec tbody .spec__id{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--text-3, var(--d-text-3));
  padding-top: 28px;
}
.spec tbody td b{
  display: block;
  font-weight: 500;
  font-size: 17px;
  color: var(--text, var(--d-text));
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.spec tbody td span{
  display: block;
  font-size: 13px;
  color: var(--text-3, var(--d-text-3));
}
.spec tbody td:nth-child(7){
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase;
}
.spec tbody .spec__nav{
  font-family: var(--f-mono);
  color: var(--text-3, var(--d-text-3));
  font-size: 16px;
  text-align: right;
  transition: color var(--e-fast), transform var(--e-fast);
}
.spec tbody tr:hover .spec__nav{ color: var(--accent); }

@media (max-width: 1080px){
  .spec thead th:nth-child(6),
  .spec tbody td:nth-child(6){ display: none; }
}
@media (max-width: 720px){
  .spec, .spec thead, .spec tbody, .spec tr, .spec td, .spec th{ display: block; }
  .spec thead{ display: none; }
  .spec tbody tr.spec__row{ padding: 20px 0; }
  .spec tbody td{ padding: 4px 0; }
  .spec tbody td:nth-child(2){ padding-bottom: 12px; }
  .spec tbody td:nth-child(3),
  .spec tbody td:nth-child(4),
  .spec tbody td:nth-child(5),
  .spec tbody td:nth-child(7){
    display: inline-block;
    margin-right: 16px;
    font-family: var(--f-mono);
    font-size: 11px;
    color: var(--text-3, var(--d-text-3));
    padding: 0;
  }
  .spec tbody td:nth-child(7){ color: var(--accent); }
  .spec tbody td:nth-child(6){ display: block; padding-top: 8px; font-size: 12px; }
  .spec tbody .spec__id, .spec tbody .spec__nav{ display: none; }
}

/* ============================================================
   LIVE OPS CONSOLE — Methodology process-graph (.proc)
   Replaces 4 numbered editorial step rows with a horizontal
   chain of labelled process nodes. Each node is itself a link.
   Mono activity sub-labels mimic .exclr8process file syntax.
   ============================================================ */
.proc{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line, var(--d-line));
  background: var(--line, var(--d-line));
  margin-bottom: 80px;
  position: relative;
}
.proc__node{
  background: var(--bg, var(--d-bg));
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  text-decoration: none;
  position: relative;
  transition: background var(--e-fast);
  min-height: 280px;
}
.proc__node:hover{
  background: var(--bg-2, var(--d-bg-2));
}
/* On light, the proc node lifts to white with a deep terracotta
   top-bar — like a card that lights up when active. */
.surf-light .proc__node:hover{
  background: #FFFFFF;
  box-shadow: inset 0 3px 0 var(--accent);
}
.surf-light .proc__node:hover .proc__id{
  color: var(--accent-deep);
}
/* Connector arrows between consecutive nodes — drawn as a tiny
   chevron in the gap that the 1px gutter leaves. */
.proc__node + .proc__node::before{
  content: "→";
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: var(--bg, var(--d-bg));
  border: 1px solid var(--line-2, var(--d-line-2));
  border-radius: 50%;
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
  z-index: 2;
}
.proc__id{
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.proc__name{
  font-family: var(--f-sans);
  font-size: 19px;
  font-weight: 500;
  color: var(--text, var(--d-text));
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-bottom: 24px;
}
.proc__activities{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
  padding-bottom: 24px;
}
.proc__activities .act{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .02em;
  color: var(--text-2, var(--d-text-2));
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
}
.proc__activities .act i{
  font-style: normal;
  color: var(--accent);
  text-transform: lowercase;
  font-size: 10px;
  letter-spacing: .04em;
}
.proc__exit{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3, var(--d-text-3));
  padding-top: 16px;
  border-top: 1px dashed var(--line-2, var(--d-line-2));
}
.proc__node:hover .proc__exit{ color: var(--status); }

/* Numbers row — replaces the .stats card grid. Plain mono
   tabular figures, no card chrome, no border-rights. */
.numbers{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 56px;
  padding: 48px 0;
  border-top: 1px solid var(--line, var(--d-line));
}
.num__val{
  display: block;
  font-family: var(--f-sans);
  font-size: clamp(40px, 4.4vw, 64px);
  font-weight: 200;
  letter-spacing: -.04em;
  line-height: 1;
  color: var(--text, var(--d-text));
  font-variant-numeric: tabular-nums;
}
.num__val sup{
  font-size: .35em;
  color: var(--accent);
  font-weight: 400;
  position: relative;
  top: -0.5em;
  margin-left: 2px;
}
.num__lbl{
  display: block;
  margin-top: 14px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3, var(--d-text-3));
  line-height: 1.5;
  max-width: 28ch;
}

@media (max-width: 1080px){
  .proc{ grid-template-columns: repeat(2, 1fr); }
  .proc__node + .proc__node::before{ display: none; }
  .numbers{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px){
  .proc{ grid-template-columns: 1fr; }
  .numbers{ grid-template-columns: 1fr; gap: 28px; }
}


/* ======================================================================
   PHASE 4 — Homepage company-and-services repositioning
   New components added below; nothing above this comment was touched.
   ====================================================================== */

/* Visually-hidden text for screen readers. Use for aria-supplementary
   labels on status indicators, decorative icons, etc. */
.sr-only{
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect users who've asked their OS to reduce motion. Stops the
   ticker, log-stream marquee, blink dots and workflow pulse from
   animating. Applies broadly via the universal selector for any
   missed cases. */
@media (prefers-reduced-motion: reduce){
  .ticker__track,
  .log-stream__track,
  .blink,
  .wf-pulse,
  .fade-in{
    animation: none !important;
  }
  *{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Spec-table row link — wraps the System cell so the row has a real
   anchor (replaces the tr onclick which screen readers + keyboard
   users couldn't reach). The whole row stays a click target via the
   ::after expansion trick. */
.spec__rowlink{
  display: block;
  text-decoration: none;
  color: inherit;
}
.spec__row{ position: relative; }
.spec__rowlink::after{
  content: '';
  position: absolute;
  inset: 0;
}
.spec__nav a{
  text-decoration: none;
  color: inherit;
  display: inline-block;
  position: relative;
  z-index: 2;
}

/* Credibility ribbon — sits inside the hero __intro under the CTAs.
   Five mono tiles, each with a value and a sub-label. Should fit on
   one row at desktop, wrap to 3+2 at tablet, stack at phone. The
   fifth tile (compliance) was promoted from the footer in Phase 5
   per third-party reviewer feedback — enterprise buyers look for it. */
.cred{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  margin-top: 56px;
  border-top: 1px solid var(--d-line);
  border-bottom: 1px solid var(--d-line);
}
.cred__tile{
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--d-line);
}
.cred__tile:last-child{ border-right: 0; }
.cred__tile b{
  font-family: var(--f-sans);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -.012em;
  color: var(--d-text);
}
.cred__tile i{
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--d-text-3);
}
@media (max-width: 1180px){
  .cred{ grid-template-columns: repeat(3, 1fr); }
  .cred__tile{ border-right: 1px solid var(--d-line); }
  .cred__tile:nth-child(3n){ border-right: 0; }
  .cred__tile:nth-child(-n+3){ border-bottom: 1px solid var(--d-line); }
  .cred__tile:nth-child(n+4){ border-bottom: 0; }
}
@media (max-width: 720px){
  .cred{ grid-template-columns: repeat(2, 1fr); }
  .cred__tile{ border-right: 0; border-bottom: 1px solid var(--d-line); }
  .cred__tile:nth-child(odd){ border-right: 1px solid var(--d-line); }
  .cred__tile:last-child{ border-bottom: 0; }
}
@media (max-width: 480px){
  .cred{ grid-template-columns: 1fr; }
  .cred__tile{ border-right: 0 !important; border-bottom: 1px solid var(--d-line); }
  .cred__tile:last-child{ border-bottom: 0; }
}

/* Contact form hint — sits under the message textarea, prompts the
   buyer with three specific things to mention. Reduces uncertainty
   about what kind of detail we want. */
.x8field__hint{
  margin: 8px 0 0;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--text-3, var(--d-text-3));
}
.x8field__hint em{
  font-style: normal;
  color: var(--accent);
}

/* Executive summary block — strict 6-row Client/Sector/Region/System
   /Scale/Built-on table at the very top of each case-report (Phase 8).
   Sits above the prose Challenge/Solution/Outcomes/Integrations block. */
.case-exec{
  margin: 0 0 32px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--accent);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}
.case-exec__row{
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line, var(--d-line));
  align-items: baseline;
}
.case-exec__row dt{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-3, var(--d-text-3));
  font-weight: 500;
  margin: 0;
}
.case-exec__row dd{
  margin: 0;
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--text, var(--d-text));
  letter-spacing: -.005em;
}
@media (max-width: 720px){
  .case-exec{ grid-template-columns: 1fr; gap: 0; }
  .case-exec__row{ grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; }
}

/* Results metric tiles — 3-5 quick proof numbers between the
   case summary and the deep narrative (Phase 8). Breaks out of the
   72ch case-report prose column to use the full .wrap width, so the
   tiles can lay out 4-5 across at desktop instead of squeezing into
   3 columns and leaving an orphan. */
.case-results{
  margin: 56px calc(50% - 50vw);
  padding: 0 var(--gutter);
  max-width: 100vw;
  box-sizing: border-box;
}
@media (min-width: 1480px){
  /* On viewports wider than .wrap (1440px+), constrain the tile row
     back inside .wrap to avoid edge-to-edge stretch. */
  .case-results{
    margin-left: auto;
    margin-right: auto;
    max-width: var(--col, 1440px);
    padding: 0;
  }
}
.case-results__heading{
  margin: 0 0 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.case-results__grid{
  display: grid;
  /* auto-fit + gap-as-divider so the grid lays out cleanly at any
     tile count (4 or 5+) without an orphan in the last row. The 1px
     gap shows through as a hairline divider against the grid bg. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line, var(--d-line));
  border: 1px solid var(--line, var(--d-line));
}
.case-results__tile{
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg, var(--d-bg));
  border: 0;
}
.case-results__tile b{
  font-family: var(--f-sans);
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--text, var(--d-text));
  line-height: 1.05;
}
.case-results__tile span{
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--text-3, var(--d-text-3));
}
.surf-light .case-results__tile{ background: #FFFFFF; }
/* No explicit column overrides needed at smaller widths — auto-fit
   collapses the grid to fewer columns automatically as the viewport
   shrinks below the minmax(200px) threshold. */

/* Case-study summary block — hybrid scannable strip prepended to
   each case-report (Phase 7 / Ticket 5). Four rows: Challenge,
   Solution, Outcomes, Integrations. Buyer scans the top, evaluator
   reads the deep narrative below. */
.case-summary{
  margin: 0 0 56px;
  padding: 28px 0 0;
  border-top: 2px solid var(--accent);
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.case-summary__row{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line, var(--d-line));
  align-items: baseline;
}
.case-summary__row:last-child{ border-bottom: 0; }
.case-summary__label{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.case-summary__row p{
  margin: 0;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text, var(--d-text));
  max-width: 80ch;
}
@media (max-width: 720px){
  .case-summary__row{
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }
}

/* Cap card chips — small mono tags rendered between title and body
   in cap cards (jobopportunities.php Ticket 14). Lets candidates
   scan stack/seniority/location without clicking through. */
.cap__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin: 0 0 14px;
}
.cap__chips span{
  display: inline-block;
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .04em;
  color: var(--text-2, var(--d-text-2));
  background: rgba(164, 56, 24, .08);
  border: 1px solid rgba(164, 56, 24, .25);
  border-radius: 2px;
  white-space: nowrap;
}
.surf-light .cap__chips span{
  background: rgba(164, 56, 24, .06);
  border-color: rgba(164, 56, 24, .22);
}

/* "How CloudCore accelerates this" line — small accelerator note
   on each service block (Phase 8 / enterprise-redesign brief). Sits
   between the body paragraph and the example aside. */
.svc__cc{
  margin: 16px 0 0;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(164, 56, 24, .04);
  font-family: var(--f-sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text, var(--d-text-2));
}
.svc__cc strong{
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .005em;
}

/* "See it in action" link — closer to a service block on
   ourservices.php pointing to the matching case study (Ticket 12). */
.svc__seeitlink{
  margin: 24px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line, var(--d-line));
}
.svc__seeitlink a{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--e-fast);
}
.svc__seeitlink a:hover{ color: var(--accent-deep, var(--accent)); }

/* Trust strip — slim compliance line under the hero on cloudcore.php
   and whyuseus.php (Ticket 7). Same data as the homepage credibility
   ribbon's 5th tile, formatted as a single horizontal line. */
.trust-strip{
  margin: 24px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line, var(--d-line));
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--text-2, var(--d-text-2));
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.trust-strip__label{
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .14em;
}
.trust-strip b{
  color: var(--text, var(--d-text));
  font-weight: 500;
}
.trust-strip__sep{ color: var(--text-3, var(--d-text-3)); }
.trust-strip__note{
  color: var(--text-3, var(--d-text-3));
  margin-left: 6px;
}
@media (max-width: 560px){
  .trust-strip{ font-size: 11px; gap: 6px; }
  .trust-strip__sep{ display: none; }
  .trust-strip__note{ flex-basis: 100%; margin-left: 0; }
}

/* Engagement-flow process graph — 5 nodes (cloudcore.php Ticket 17).
   Inherits .proc styling but with 5-column grid at desktop. */
.proc--engagement{
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 1280px){
  .proc--engagement{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px){
  .proc--engagement{ grid-template-columns: 1fr; }
}

/* Editions comparison table — adds caption + row-label column to
   the existing .spec table treatment (cloudcore.php Ticket 10). */
.spec--editions{ margin-top: 48px; }
.spec--editions .spec__caption,
.spec .spec__caption{
  caption-side: top;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 0 0 16px;
}
.spec--editions thead th{
  text-align: left;
  vertical-align: bottom;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.spec--editions thead th b{
  display: block;
  font-family: var(--f-sans);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -.012em;
  margin-bottom: 4px;
}
.spec--editions thead th span{
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.spec--editions tbody td{
  padding: 16px 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.spec--editions tbody td.spec__rowlabel{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-3);
  width: 200px;
  white-space: nowrap;
}
@media (max-width: 720px){
  .spec--editions thead{ display: none; }
  .spec--editions tbody, .spec--editions tr, .spec--editions td{ display: block; width: 100%; }
  .spec--editions tbody tr{ border-bottom: 2px solid var(--line); padding: 16px 0; }
  .spec--editions tbody td{ border-bottom: 0; padding: 4px 0; }
  .spec--editions tbody td.spec__rowlabel{ width: auto; padding-bottom: 8px; }
  .spec--editions tbody td:not(.spec__rowlabel)::before{
    content: attr(data-edition) " — ";
    font-family: var(--f-mono);
    color: var(--accent);
    font-size: 11px;
  }
}

/* Direct contact line — sits below the credibility ribbon inside the
   hero __intro. Promotes phone + email above the fold so buyers don't
   have to navigate to /contactus.php to reach a human. */
.hero__contact{
  margin: 24px 0 0;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--d-text-2);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}
.hero__contact-label{
  color: var(--accent);
  font-weight: 500;
  letter-spacing: .14em;
}
.hero__contact a{
  color: var(--d-text);
  text-decoration: none;
  border-bottom: 1px solid var(--d-line);
  padding-bottom: 1px;
  transition: border-color var(--e-fast), color var(--e-fast);
}
.hero__contact a:hover{
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.hero__contact-sep{ color: var(--d-text-3); }
.hero__contact-hours{ color: var(--d-text-3); }
@media (max-width: 560px){
  .hero__contact{ font-size: 11px; gap: 6px; }
  .hero__contact-sep{ display: none; }
}

/* Section kicker — small mono label that sits above a section title.
   Used by the new "Our head-start", "Featured production systems" and
   "How we deliver" section lede headers. */
.section__kicker{
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Quality signals — Section 02 "Why companies choose us".
   Stacked rows, full-width, each row a clickable link to a deeper
   page. Big-title-on-left, body-text-on-right pattern with a small
   mono label above the title. */
.quality{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 24px;
  border-top: 1px solid var(--line);
}
.quality__row{
  display: grid;
  grid-template-columns: 200px 1fr 160px;
  gap: 32px;
  align-items: baseline;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 160ms ease;
}
.quality__row:hover{
  background: var(--accent-warm, #F0E5DD);
}
.quality__label{
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.quality__title{
  font-family: var(--f-sans);
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight: 400;
  letter-spacing: -.018em;
  line-height: 1.18;
  margin: 0;
  color: var(--text);
}
.quality__body{
  grid-column: 2;
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 12px 0 0;
  max-width: 64ch;
}
.quality__cta{
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--accent);
  text-align: right;
  align-self: center;
}
@media (max-width: 900px){
  .quality__row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .quality__body{ grid-column: 1; max-width: 100%; }
  .quality__cta{ text-align: left; margin-top: 8px; }
}

/* Inset console — the .console-stage modifier that drops it from
   75vh full-bleed hero scale to a contained widget that lives inside
   the platform section. Lets the hero focus on company/services and
   the console serve as evidence further down. */
.console-aside{
  display: block;
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.console-aside__label{
  display: block;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.console-aside__intro{
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0 0 24px;
  max-width: 70ch;
}
.console-stage--inset{
  width: 100%;
  padding: 0;
  margin: 0;
}
.console-stage--inset .console{
  max-width: 100%;
  margin: 0;
  min-height: 480px;
}
@media (max-width: 720px){
  .console-stage--inset .console{ min-height: 560px; }
  .console-aside{ margin-top: 40px; padding-top: 28px; }
}

