/*
 * Everklin Phase 1 Design System
 * Scope rule: this file only styles pages that opt in with .ek-system or
 * .ek-prototype. It must not change the global website during Phase 1.
 */
:root {
    --ekd-olive-900: #263d22;
    --ekd-olive-800: #35552c;
    --ekd-olive-700: #54732f;
    --ekd-olive-600: #6f8b2f;
    --ekd-olive-500: #7e9d35;
    --ekd-olive-400: #8fae46;
    --ekd-olive-300: #a5c15a;
    --ekd-olive-200: #c8d998;
    --ekd-olive-100: #eef5df;
    --ekd-cream-100: #faf8f3;
    --ekd-white: #ffffff;
    --ekd-ink: #122018;
    --ekd-heading: #1f3a26;
    --ekd-text: #435347;
    --ekd-muted: #647268;
    --ekd-line: #dde7c8;
    --ekd-water: #2276a8;
    --ekd-steam: #d97832;
    --ekd-danger: #ad4538;
    --ekd-success: #6f8b2f;
    --ekd-radius-xs: 8px;
    --ekd-radius-sm: 12px;
    --ekd-radius-md: 16px;
    --ekd-radius-lg: 24px;
    --ekd-radius-xl: 34px;
    --ekd-shadow-sm: 0 10px 28px rgba(18, 32, 24, .07);
    --ekd-shadow-md: 0 18px 54px rgba(18, 32, 24, .11);
    --ekd-shadow-lg: 0 34px 90px rgba(18, 32, 24, .16);
    --ekd-container: 1320px;
    --ekd-reading: 780px;
    --ekd-space-1: 4px;
    --ekd-space-2: 8px;
    --ekd-space-3: 12px;
    --ekd-space-4: 16px;
    --ekd-space-5: 24px;
    --ekd-space-6: 32px;
    --ekd-space-7: 48px;
    --ekd-space-8: 64px;
    --ekd-space-9: 80px;
    --ekd-space-10: 96px;
    --ekd-section: clamp(64px, 7vw, 112px);
    --ekd-section-tight: clamp(44px, 5vw, 76px);
    --ekd-ease: cubic-bezier(.2, .75, .25, 1);
    --ekd-fast: 160ms;
    --ekd-standard: 280ms;
    --ekd-slow: 520ms;
    --ekd-z-sticky: 20;
    --ekd-z-modal: 80;
}

:where(.ek-system, .ek-prototype) {
    background:
        radial-gradient(circle at 12% 4%, rgba(200, 217, 152, .36), transparent 30%),
        linear-gradient(180deg, var(--ekd-cream-100) 0%, #ffffff 42%, var(--ekd-cream-100) 100%);
    color: var(--ekd-ink);
    font-family: Inter, Manrope, "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: clip;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body:has(.ek-system),
body:has(.ek-prototype) {
    overflow-x: hidden;
}

body:has(.ek-system) .site-header,
body:has(.ek-prototype) .site-header {
    overflow-x: clip !important;
}

body:has(.ek-system) .site-header .header-cta,
body:has(.ek-prototype) .site-header .header-cta {
    min-width: max-content;
}

@media (max-width: 991px) {
    body:has(.ek-system) .site-header .mobile-drawer:not(.is-open):not(.active),
    body:has(.ek-prototype) .site-header .mobile-drawer:not(.is-open):not(.active) {
        display: none !important;
        visibility: hidden !important;
        transform: none !important;
    }

    body:has(.ek-system) .site-header .mobile-drawer.is-open,
    body:has(.ek-system) .site-header .mobile-drawer.active,
    body:has(.ek-prototype) .site-header .mobile-drawer.is-open,
    body:has(.ek-prototype) .site-header .mobile-drawer.active {
        display: block !important;
    }
}

:where(.ek-system, .ek-prototype) *,
:where(.ek-system, .ek-prototype) *::before,
:where(.ek-system, .ek-prototype) *::after {
    box-sizing: border-box;
}

:where(.ek-system, .ek-prototype) :where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid rgba(126, 157, 53, .45);
    outline-offset: 3px;
}

.ek-container {
    width: min(100% - clamp(32px, 5vw, 72px), var(--ekd-container));
    margin-inline: auto;
}

.ek-reading {
    max-width: var(--ekd-reading);
}

.ek-section {
    padding-block: var(--ekd-section);
    scroll-margin-top: 128px;
}

.ek-section--tight {
    padding-block: var(--ekd-section-tight);
}

.ek-section--white {
    background: var(--ekd-white);
}

.ek-section--sage {
    background:
        radial-gradient(circle at 78% 20%, rgba(165, 193, 90, .16), transparent 28%),
        var(--ekd-olive-100);
}

.ek-section--dark {
    background:
        radial-gradient(circle at 10% 10%, rgba(255, 255, 255, .12), transparent 26%),
        linear-gradient(135deg, var(--ekd-olive-800), var(--ekd-olive-900));
    color: var(--ekd-white);
}

.ek-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ekd-olive-600);
    font-size: clamp(11px, .82vw, 13px);
    font-weight: 900;
    letter-spacing: .12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ek-display,
.ek-hero-title,
.ek-h1,
.ek-h2,
.ek-h3,
.ek-h4 {
    margin: 0;
    color: var(--ekd-heading);
    letter-spacing: 0;
}

.ek-display {
    font-size: clamp(56px, 8vw, 116px);
    line-height: .9;
}

.ek-hero-title {
    font-size: clamp(44px, 6.2vw, 86px);
    line-height: .94;
}

.ek-h1 {
    font-size: clamp(38px, 5vw, 72px);
    line-height: .98;
}

.ek-h2 {
    font-size: clamp(30px, 3.8vw, 54px);
    line-height: 1.04;
}

.ek-h3 {
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.16;
}

.ek-h4 {
    font-size: 18px;
    line-height: 1.25;
}

.ek-lead {
    margin: 18px 0 0;
    color: var(--ekd-text);
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.65;
}

.ek-body,
.ek-card p,
.ek-panel p,
.ek-list li {
    color: var(--ekd-text);
    font-size: 15px;
    line-height: 1.65;
}

.ek-small {
    color: var(--ekd-muted);
    font-size: 13px;
    line-height: 1.55;
}

.ek-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.ek-button,
.ek-text-link,
.ek-icon-button {
    font: inherit;
}

.ek-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 22px;
    border: 1px solid var(--ekd-olive-500);
    border-radius: 999px;
    background: var(--ekd-olive-500);
    color: var(--ekd-white) !important;
    font-size: 14px;
    font-weight: 850;
    line-height: 1;
    text-decoration: none;
    transition: transform var(--ekd-fast) var(--ekd-ease), background var(--ekd-fast) ease, border-color var(--ekd-fast) ease, box-shadow var(--ekd-fast) ease;
}

.ek-button:hover {
    background: var(--ekd-olive-600);
    border-color: var(--ekd-olive-600);
    box-shadow: var(--ekd-shadow-sm);
    transform: translateY(-2px);
}

.ek-button--secondary {
    background: rgba(255, 255, 255, .9);
    color: var(--ekd-heading) !important;
    border-color: rgba(126, 157, 53, .36);
}

.ek-button--secondary:hover {
    background: var(--ekd-olive-100);
    color: var(--ekd-heading) !important;
}

.ek-button--light {
    background: var(--ekd-white);
    color: var(--ekd-heading) !important;
    border-color: rgba(255, 255, 255, .78);
}

.ek-button[disabled],
.ek-button.is-disabled {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}

.ek-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ekd-heading);
    font-weight: 850;
    text-decoration: none;
}

.ek-text-link:hover {
    color: var(--ekd-olive-600);
}

.ek-icon-button {
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid rgba(126, 157, 53, .36);
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: var(--ekd-olive-600);
}

.ek-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 26px;
    color: var(--ekd-muted);
    font-size: 13px;
    font-weight: 780;
}

.ek-breadcrumb a {
    color: var(--ekd-heading);
    text-decoration: none;
}

.ek-breadcrumb a:hover {
    color: var(--ekd-olive-600);
}

.ek-hero {
    position: relative;
    min-height: clamp(640px, 82vh, 820px);
    display: grid;
    align-items: center;
    padding-block: clamp(54px, 7vw, 96px);
    overflow: hidden;
    background:
        radial-gradient(circle at 78% 18%, rgba(165, 193, 90, .28), transparent 30%),
        radial-gradient(circle at 8% 88%, rgba(34, 118, 168, .12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f9fbf3 44%, #e9f1d4 100%);
}

.ek-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(31, 58, 38, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 58, 38, .045) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(circle at 72% 48%, #000 0 30%, transparent 68%);
}

.ek-hero__grid,
.ek-split {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    gap: clamp(34px, 5vw, 72px);
    align-items: center;
}

.ek-hero__media,
.ek-image-panel {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(126, 157, 53, .18);
    border-radius: var(--ekd-radius-xl);
    background: var(--ekd-white);
    box-shadow: var(--ekd-shadow-lg);
}

.ek-hero__media img,
.ek-image-panel img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 440px;
    object-fit: cover;
    filter: saturate(1.03) contrast(1.03);
}

.ek-hero__media::after,
.ek-image-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.2) 48%, transparent 64%);
    opacity: .35;
}

.ek-section-head {
    max-width: var(--ekd-reading);
    margin-bottom: clamp(24px, 3vw, 42px);
}

.ek-grid {
    display: grid;
    gap: clamp(16px, 2vw, 24px);
}

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

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

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

.ek-panel,
.ek-card,
.ek-resource-card,
.ek-state {
    min-width: 0;
    border: 1px solid rgba(126, 157, 53, .18);
    border-radius: var(--ekd-radius-lg);
    background: rgba(255, 255, 255, .92);
    box-shadow: var(--ekd-shadow-sm);
}

.ek-panel {
    padding: clamp(24px, 3vw, 38px);
}

.ek-card,
.ek-resource-card,
.ek-state {
    display: grid;
    gap: 14px;
    padding: clamp(18px, 2.2vw, 26px);
    transition: transform var(--ekd-fast) var(--ekd-ease), border-color var(--ekd-fast) ease, box-shadow var(--ekd-fast) ease;
}

.ek-card:hover,
.ek-resource-card:hover {
    border-color: rgba(126, 157, 53, .62);
    box-shadow: var(--ekd-shadow-md);
    transform: translateY(-4px);
}

.ek-icon {
    display: inline-grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 18px;
    background: var(--ekd-olive-100);
    color: var(--ekd-olive-600);
}

.ek-icon svg {
    width: 28px;
    height: 28px;
}

.ek-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
}

.ek-stat {
    padding: 18px;
    border: 1px solid rgba(126, 157, 53, .2);
    border-radius: var(--ekd-radius-md);
    background: rgba(255, 255, 255, .82);
}

.ek-stat strong {
    display: block;
    color: var(--ekd-heading);
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1;
}

.ek-stat span {
    display: block;
    margin-top: 8px;
    color: var(--ekd-text);
    font-size: 13px;
    font-weight: 760;
}

.ek-anchor-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 38px);
    align-items: start;
}

.ek-anchor-nav {
    position: sticky;
    top: 118px;
    display: grid;
    gap: 6px;
    padding: 10px;
    border: 1px solid rgba(126, 157, 53, .18);
    border-radius: var(--ekd-radius-lg);
    background: rgba(255, 255, 255, .88);
    box-shadow: var(--ekd-shadow-sm);
}

.ek-anchor-nav a {
    display: flex;
    min-height: 46px;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    color: var(--ekd-heading);
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
}

.ek-anchor-nav a:hover,
.ek-anchor-nav a.is-active {
    background: var(--ekd-olive-100);
    color: var(--ekd-olive-700);
}

.ek-menu-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 92px;
    padding: 18px 24px;
    border-left: 8px solid rgba(126, 157, 53, .24);
    border-radius: 0 14px 14px 0;
    color: var(--ekd-heading);
    background: #fff;
    text-decoration: none;
}

.ek-menu-card.is-active,
.ek-menu-card:hover {
    border-left-color: var(--ekd-olive-500);
    background: var(--ekd-olive-100);
}

.ek-swatch-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
}

.ek-swatch {
    min-height: 128px;
    display: grid;
    align-content: end;
    padding: 14px;
    border-radius: var(--ekd-radius-md);
    border: 1px solid rgba(18, 32, 24, .1);
    color: var(--ekd-heading);
    box-shadow: var(--ekd-shadow-sm);
}

.ek-swatch strong,
.ek-swatch span {
    display: block;
    padding: 2px 0;
    font-size: 12px;
    line-height: 1.25;
}

.ek-swatch--dark {
    color: #fff;
}

.ek-form {
    display: grid;
    gap: 16px;
}

.ek-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.ek-field {
    display: grid;
    gap: 7px;
    color: var(--ekd-heading);
    font-size: 13px;
    font-weight: 820;
}

.ek-field input,
.ek-field select,
.ek-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid rgba(126, 157, 53, .28);
    border-radius: var(--ekd-radius-sm);
    background: #fff;
    color: var(--ekd-ink);
    font: inherit;
}

.ek-field textarea {
    min-height: 112px;
    resize: vertical;
}

.ek-field input:focus,
.ek-field select:focus,
.ek-field textarea:focus {
    border-color: var(--ekd-olive-500);
    box-shadow: 0 0 0 4px rgba(126, 157, 53, .14);
    outline: 0;
}

.ek-field--wide {
    grid-column: 1 / -1;
}

.ek-checkbox {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--ekd-text);
    font-size: 14px;
    line-height: 1.55;
}

.ek-checkbox input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--ekd-olive-500);
}

.ek-technical-block {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr);
    gap: 22px;
    align-items: stretch;
}

.ek-technical-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ek-technical-list li {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
}

.ek-technical-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    margin-top: 8px;
    border-radius: 999px;
    background: var(--ekd-olive-500);
    box-shadow: 0 0 0 6px rgba(126, 157, 53, .12);
}

.ek-tabs [role="tablist"] {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ek-tabs [role="tab"] {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid rgba(126, 157, 53, .32);
    border-radius: 999px;
    background: #fff;
    color: var(--ekd-heading);
    font-weight: 830;
    cursor: pointer;
}

.ek-tabs [role="tab"][aria-selected="true"] {
    background: var(--ekd-olive-500);
    color: #fff;
}

.ek-tab-panel {
    margin-top: 18px;
}

.ek-accordion details {
    border-bottom: 1px solid rgba(126, 157, 53, .2);
}

.ek-accordion summary {
    min-height: 58px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ekd-heading);
    font-weight: 880;
    cursor: pointer;
}

.ek-accordion details[open] summary {
    color: var(--ekd-olive-700);
}

.ek-resource-card {
    grid-template-columns: 48px minmax(0, 1fr);
    align-items: start;
}

.ek-resource-card .ek-actions {
    grid-column: 1 / -1;
    margin-top: 4px;
}

.ek-state {
    text-align: center;
    place-items: center;
    padding: 32px;
}

.ek-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(30px, 5vw, 54px);
    border-radius: var(--ekd-radius-xl);
    background:
        radial-gradient(circle at 12% 14%, rgba(255, 255, 255, .18), transparent 28%),
        linear-gradient(135deg, var(--ekd-olive-600), var(--ekd-olive-900));
    color: #fff;
    box-shadow: var(--ekd-shadow-lg);
}

.ek-cta .ek-h2,
.ek-cta .ek-lead,
.ek-cta .ek-eyebrow {
    color: #fff;
}

.ek-water-map {
    position: relative;
    overflow: auto;
    padding: clamp(14px, 2vw, 22px);
    border: 1px solid rgba(126, 157, 53, .18);
    border-radius: var(--ekd-radius-xl);
    background: #fff;
    box-shadow: var(--ekd-shadow-md);
}

.ek-water-map svg {
    display: block;
    min-width: 920px;
    width: 100%;
    height: auto;
}

.ek-water-flow {
    stroke-dasharray: 16 10;
    animation: ekWaterFlow 2.4s linear infinite;
}

.ek-water-node {
    cursor: pointer;
    outline: none;
}

.ek-water-node rect,
.ek-water-node circle {
    transition: transform var(--ekd-fast) var(--ekd-ease), filter var(--ekd-fast) ease, stroke var(--ekd-fast) ease;
    transform-box: fill-box;
    transform-origin: center;
}

.ek-water-node:hover rect,
.ek-water-node:focus-visible rect,
.ek-water-node:hover circle,
.ek-water-node:focus-visible circle {
    stroke: var(--ekd-olive-500);
    filter: drop-shadow(0 0 14px rgba(126, 157, 53, .42));
    transform: scale(1.04);
}

.ek-water-tip {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity var(--ekd-fast) ease, transform var(--ekd-fast) ease;
}

.ek-water-node:hover .ek-water-tip,
.ek-water-node:focus-visible .ek-water-tip {
    opacity: 1;
    transform: translateY(0);
}

.ek-reveal,
[data-ek-reveal] {
    opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .ek-reveal,
    [data-ek-reveal] {
        opacity: 0;
        transform: translateY(18px);
        transition: opacity var(--ekd-slow) var(--ekd-ease), transform var(--ekd-slow) var(--ekd-ease);
    }

    .ek-reveal.is-visible,
    [data-ek-reveal].is-visible {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ekWaterFlow {
    to {
        stroke-dashoffset: -52;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ek-water-flow {
        animation: none;
    }

    .ek-card,
    .ek-resource-card,
    .ek-button,
    .ek-water-node rect,
    .ek-water-node circle {
        transition: none;
    }
}

@media (max-width: 1100px) {
    .ek-hero__grid,
    .ek-split,
    .ek-technical-block {
        grid-template-columns: 1fr;
    }

    .ek-grid--4,
    .ek-stat-grid,
    .ek-swatch-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ek-anchor-layout {
        grid-template-columns: 1fr;
    }

    .ek-anchor-nav {
        position: relative;
        top: auto;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        overflow-x: auto;
        padding: 8px;
    }
}

@media (max-width: 720px) {
    .ek-hero {
        min-height: auto;
        padding-block: 64px;
    }

    .ek-container {
        width: min(100% - 28px, var(--ekd-container));
    }

    .ek-actions,
    .ek-form-grid {
        flex-direction: column;
        grid-template-columns: 1fr;
    }

    .ek-button {
        width: 100%;
    }

    .ek-grid--2,
    .ek-grid--3,
    .ek-grid--4,
    .ek-stat-grid,
    .ek-swatch-grid {
        grid-template-columns: 1fr;
    }

    .ek-hero__media img,
    .ek-image-panel img {
        min-height: 300px;
    }

    .ek-menu-card {
        grid-template-columns: 36px minmax(0, 1fr) auto;
        min-height: 78px;
        padding: 14px 16px;
    }
}

@media (max-width: 360px) {
    .ek-container {
        width: min(100% - 22px, var(--ekd-container));
    }

    .ek-display {
        font-size: clamp(44px, 15vw, 56px);
    }

    .ek-hero-title {
        font-size: clamp(38px, 13vw, 48px);
    }
}

/*
 * Enterprise rollout, August 2026
 *
 * This is the single shared presentation layer for opted-in corporate pages.
 * It intentionally preserves their individual technical templates and data,
 * while aligning type, hierarchy, surfaces, controls and responsive spacing.
 */
:root {
    --ekd-olive-900: #4f5b3a;
    --ekd-olive-800: #596544;
    --ekd-olive-700: #65704a;
    --ekd-olive-600: #72804f;
    --ekd-olive-500: #8aa63a;
    --ekd-olive-400: #a4b274;
    --ekd-olive-300: #b5bda1;
    --ekd-olive-200: #d9dec8;
    --ekd-olive-100: #edf0e3;
    --ekd-cream-100: #f8f6ef;
    --ekd-stone: #eae4d5;
    --ekd-champagne: #c6b78d;
    --ekd-ink: #252a21;
    --ekd-heading: #252a21;
    --ekd-text: #596052;
    --ekd-muted: #6c7266;
    --ekd-line: #dedccf;
    --ekd-radius-xs: 4px;
    --ekd-radius-sm: 6px;
    --ekd-radius-md: 8px;
    --ekd-radius-lg: 12px;
    --ekd-radius-xl: 16px;
    --ekd-shadow-sm: 0 12px 32px rgba(37, 42, 33, .07);
    --ekd-shadow-md: 0 20px 54px rgba(37, 42, 33, .10);
}

:where(.ek-system, .ek-prototype) {
    background: var(--ekd-cream-100);
    color: var(--ekd-ink);
}

.ek-system :where(h1, h2, h3, h4) {
    color: var(--ekd-heading);
    font-family: Manrope, Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.ek-system :where(p, li, dd) {
    color: var(--ekd-text);
}

.ek-system :where(.inner-kicker, .anchor-eyebrow, .solutions-kicker, .industries-hub__kicker, .sn-kicker, .contact-eyebrow) {
    color: var(--ekd-olive-700);
    font-weight: 800;
    letter-spacing: .1em;
}

.ek-system :where(.page-button, .solutions-button, .industries-hub__button, .contact-button) {
    border-radius: var(--ekd-radius-sm);
    font-family: Inter, system-ui, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
}

.ek-system :where(.page-button, .solutions-button--olive, .industries-hub__button--olive, .contact-button--primary) {
    background: var(--ekd-olive-500);
    border-color: var(--ekd-olive-500);
    color: #fff;
}

.ek-system :where(.page-button:hover, .solutions-button--olive:hover, .industries-hub__button--olive:hover, .contact-button--primary:hover) {
    background: var(--ekd-olive-700);
    border-color: var(--ekd-olive-700);
    transform: translateY(-1px);
}

/* Universal inner-hero frame. It keeps the page-specific image but establishes
   the same editorial left-copy/right-image rhythm across corporate routes. */
.ek-system.anchor-page .anchor-hero {
    position: relative;
    overflow: clip;
    background: var(--ekd-cream-100);
    border-bottom: 1px solid var(--ekd-line);
}

.ek-system.anchor-page .anchor-hero-grid {
    min-height: clamp(520px, 62vw, 700px);
    align-items: stretch;
}

.ek-system.anchor-page .anchor-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(60px, 8vw, 120px);
}

.ek-system.anchor-page .anchor-hero-copy h1 {
    max-width: 15ch;
    font-size: clamp(2.7rem, 5.15vw, 5.45rem);
    line-height: .98;
}

.ek-system.anchor-page .anchor-hero-copy h1 em {
    color: var(--ekd-olive-600);
}

.ek-system.anchor-page .anchor-hero-copy > p {
    max-width: 57ch;
    font-size: clamp(1rem, 1.22vw, 1.17rem);
    line-height: 1.7;
}

.ek-system.anchor-page .anchor-hero-media {
    min-height: 100%;
    border-radius: 0;
}

.ek-system.anchor-page .anchor-hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(248, 246, 239, .20), transparent 34%);
}

.ek-system.anchor-page .anchor-metrics {
    border-color: rgba(79, 91, 58, .18);
}

.ek-system.anchor-page .anchor-metrics > * + * {
    border-color: rgba(79, 91, 58, .14);
}

.ek-system.anchor-page .anchor-metrics strong {
    color: var(--ekd-olive-700);
}

.ek-system.anchor-page .anchor-layout,
.ek-system.anchor-page .anchor-content {
    min-width: 0;
}

.ek-system.anchor-page .anchor-section {
    padding-block: clamp(58px, 7vw, 110px);
    border-color: var(--ekd-line);
}

.ek-system.anchor-page .anchor-section-grid,
.ek-system.anchor-page .anchor-card-grid,
.ek-system.anchor-page .enterprise-directory-list {
    gap: clamp(20px, 2.8vw, 42px);
}

.ek-system.anchor-page .anchor-image-card,
.ek-system.anchor-page .anchor-card,
.ek-system.anchor-page .enterprise-directory-item {
    border-color: var(--ekd-line);
    border-radius: var(--ekd-radius-md);
    box-shadow: none;
}

.ek-system.anchor-page .anchor-card:hover,
.ek-system.anchor-page .enterprise-directory-item:hover {
    box-shadow: var(--ekd-shadow-sm);
    transform: translateY(-2px);
}

.ek-system.anchor-page .anchor-sidebar {
    top: 104px;
}

.ek-system.anchor-page .anchor-nav,
.ek-system.anchor-page .enterprise-sticky-nav {
    border-color: var(--ekd-line);
    background: rgba(248, 246, 239, .96);
}

.ek-system.anchor-page .anchor-nav a.is-active,
.ek-system.anchor-page .enterprise-sticky-nav a.is-active {
    color: var(--ekd-olive-700);
    background: var(--ekd-olive-100);
}

/* Hub templates retain their distinct data-driven bodies but share a restrained
   five-chapter visual cadence, not full viewport lock-in. */
.ek-system.solutions-flagship,
.ek-system.industries-hub {
    background: var(--ekd-cream-100);
}

.ek-system .solutions-hero,
.ek-system .industries-hub__hero {
    min-height: clamp(560px, 72vh, 760px);
    background-color: var(--ekd-cream-100);
}

.ek-system .solutions-hero::before,
.ek-system .industries-hub__hero::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: var(--solutions-hero-image, var(--industries-hero-image)) center / cover no-repeat !important;
}

.ek-system .solutions-hero::after,
.ek-system .industries-hub__hero::after {
    background: linear-gradient(90deg, rgba(248, 246, 239, .97) 0%, rgba(248, 246, 239, .87) 42%, rgba(248, 246, 239, .16) 74%, rgba(248, 246, 239, .02) 100%) !important;
}

.ek-system .solutions-hero__inner,
.ek-system .industries-hub__hero-inner {
    position: relative;
    z-index: 1;
}

.ek-system .solutions-hero h1,
.ek-system .industries-hub__hero h1 {
    max-width: 13ch;
    font-size: clamp(3rem, 6vw, 6.25rem);
    line-height: .94;
}

.ek-system .solutions-hero__copy > p,
.ek-system .industries-hub__hero-inner > div > p {
    max-width: 56ch;
    line-height: 1.7;
}

.ek-system :where(.solutions-workflow, .solutions-families, .industries-hub__reality, .industries-hub__portfolio) {
    background: var(--ekd-cream-100);
}

.ek-system :where(.solutions-selection, .industries-hub__selection, .industries-hub__connection) {
    background: var(--ekd-olive-100);
}

.ek-system :where(.solutions-review, .industries-hub__review) {
    background: var(--ekd-olive-900);
}

.ek-system :where(.solutions-review, .industries-hub__review) :where(h2, p, .solutions-kicker, .industries-hub__kicker) {
    color: #fff;
}

.ek-system :where(.solutions-family-card, .industries-hub__industry-card) {
    border-radius: var(--ekd-radius-md);
}

.ek-system :where(.solutions-family-card, .industries-hub__industry-card) img {
    transition: transform 320ms var(--ekd-ease);
}

.ek-system :where(.solutions-family-card:hover, .industries-hub__industry-card:hover) img {
    transform: scale(1.035);
}

/* Sustainability, Resources, Knowledge and Contact preserve their supplied
   page photography while getting the same cream, olive and white system. */
.ek-system.sustainability-nova,
.ek-system.contact-ultra,
.ek-system.resources-flagship {
    background: var(--ekd-cream-100);
}

.ek-system.sustainability-nova :where(.sn-intro, .sn-orbit-section, .sn-pillar, .sn-detail, .sn-impact, .sn-cta),
.ek-system.contact-ultra :where(.contact-section),
.ek-system.resources-flagship :where(.anchor-section) {
    border-color: var(--ekd-line);
}

.ek-system .kc-faq details,
.ek-system .kc-newsletter__card,
.ek-system .contact-document-card,
.ek-system .contact-channel,
.ek-system .resource-card {
    border-radius: var(--ekd-radius-md);
    border-color: var(--ekd-line);
}

/* Keep the supplied Knowledge Center photograph, but give its editorial copy
   a dependable cream reading field at every viewport. */
.ek-system.knowledge-flagship .anchor-hero {
    background-position: center;
    background-image: linear-gradient(90deg, rgba(248, 246, 239, .99) 0%, rgba(248, 246, 239, .96) 42%, rgba(248, 246, 239, .72) 64%, rgba(248, 246, 239, .16) 88%, rgba(248, 246, 239, .04) 100%), url('/assets/images/resources/knowledge-center-hero.png') !important;
}

.ek-system.knowledge-flagship .anchor-hero::after {
    background: linear-gradient(90deg, rgba(248, 246, 239, .99) 0%, rgba(248, 246, 239, .96) 42%, rgba(248, 246, 239, .72) 64%, rgba(248, 246, 239, .16) 88%, rgba(248, 246, 239, .04) 100%);
}

.ek-system.knowledge-flagship .anchor-hero-copy :where(h1, h1 em) {
    color: var(--ekd-heading) !important;
    opacity: 1;
}

.ek-system.knowledge-flagship .anchor-hero-copy > p {
    color: var(--ekd-text) !important;
    opacity: 1;
}

/* Only the homepage uses the carousel. Its content remains readable against
   all five images, while slide controls and CTAs keep keyboard parity. */
.ek-home .corp-hero__content {
    max-width: 740px;
}

.ek-home .corp-hero h1 {
    max-width: 11.5ch;
    text-wrap: balance;
}

.ek-home .corp-hero h1 em {
    display: block;
    margin-top: .08em;
    font-style: normal;
}

.ek-home .corp-business,
.ek-home .corp-business__metrics {
    border-radius: var(--ekd-radius-md);
}

.ek-home .corp-commitment {
    background: var(--ekd-olive-900);
}

.ek-home .corp-commitment :where(h2, h3, p) {
    color: #fff;
}

.ek-home .corp-commitment .corp-kicker,
.ek-home .corp-commitment__grid span {
    color: #dce3c3;
}

/* Header/footer are shared output, so their geometry stays compact and stable.
   The palette is intentionally light and never introduces a dark-forest shell. */
.site-header {
    background: rgba(248, 246, 239, .97);
    border-bottom-color: var(--ekd-line);
}

.site-header .header-technical-cta,
.site-header .mobile-technical-cta {
    border-radius: var(--ekd-radius-sm);
    background: var(--ekd-olive-500);
}

.site-header .header-technical-cta:hover,
.site-header .mobile-technical-cta:hover {
    background: var(--ekd-olive-700);
}

.site-footer .footer-support {
    background: var(--ekd-olive-900);
}

.site-footer .footer-main,
.site-footer .footer-legal {
    background: var(--ekd-cream-100);
    border-color: var(--ekd-line);
}

.site-footer :where(h2, p, a) {
    color: var(--ekd-ink);
}

.site-footer .footer-support :where(h2, p, a) {
    color: #fff;
}

@media (max-width: 1024px) {
    .ek-system.anchor-page .anchor-hero-grid {
        min-height: 0;
    }

    .ek-system.anchor-page .anchor-hero-copy {
        padding-bottom: 44px;
    }

    .ek-system.anchor-page .anchor-hero-media {
        min-height: 360px;
        border-radius: var(--ekd-radius-md);
    }
}

@media (max-width: 720px) {
    .ek-system.anchor-page .anchor-hero-copy h1,
    .ek-system .solutions-hero h1,
    .ek-system .industries-hub__hero h1 {
        max-width: 100%;
        font-size: clamp(2.55rem, 12vw, 4.1rem);
    }

    .ek-system.anchor-page .anchor-hero-copy {
        padding-block: 54px 34px;
    }

    .ek-system.anchor-page .anchor-hero-media {
        min-height: 280px;
        margin-inline: 0;
    }

    .ek-system .solutions-hero,
    .ek-system .industries-hub__hero {
        min-height: 590px;
    }

    .ek-system .solutions-hero::before,
    .ek-system .industries-hub__hero::before {
        background: var(--solutions-hero-image, var(--industries-hero-image)) center / cover no-repeat !important;
    }

    .ek-system .solutions-hero::after,
    .ek-system .industries-hub__hero::after {
        background: linear-gradient(180deg, rgba(248, 246, 239, .96) 0%, rgba(248, 246, 239, .82) 56%, rgba(248, 246, 239, .62) 100%) !important;
    }

    .ek-home .corp-hero h1 em {
        display: inline;
    }
}
