﻿html {
    scroll-behavior: smooth;
}

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

/* ==============================
   DESIGN TOKEN SYSTEM
   Three layers:
     1. Brand palette  — raw colours, set per tenant via PHP/JS
     2. Semantic roles — named purposes derived from palette
     3. Component tokens — component-scoped, reference semantic layer

   Theme variants override only Layer 2.
   Clients control the palette; the system derives safe roles.
   ============================== */

/* ── Layer 2: Semantic colour roles ──────────────────────── */
/* These are derived from --brand-* palette tokens.
   Changing the palette automatically updates all roles.   */
:root {
    /* Typography roles */
    --color-heading:           var(--brand-primary);
    --color-body:              #1f2933;
    --color-muted:             rgba(0, 0, 0, 0.45);
    --color-muted-strong:      rgba(0, 0, 0, 0.55);

    /* Action / interactive role */
    --color-action:            var(--brand-secondary);
    --color-action-hover:      color-mix(in srgb, var(--brand-secondary) 82%, var(--brand-primary));
    --color-action-fg:         #ffffff;

    /* Surface roles */
    --color-surface:           #ffffff;
    --color-surface-section:   #ffffff;
    --color-surface-border:    rgba(0, 0, 0, 0.08);

    /* Tile surface — dark by default, uses brand primary as base */
    --color-tile-bg:           var(--brand-primary);
    --color-tile-fg:           #ffffff;
    --color-tile-muted:        rgba(255, 255, 255, 0.65);
    --color-tile-border:       rgba(255, 255, 255, 0.12);
    --color-tile-border-hover: rgba(255, 255, 255, 0.35);
    --color-tile-swatch:       linear-gradient(135deg, var(--brand-secondary) 0%, color-mix(in srgb, var(--brand-secondary) 55%, var(--brand-primary)) 100%);

    /* Overlay role (edit buttons, badges on images) */
    --color-overlay:           rgba(0, 0, 0, 0.55);
    --color-overlay-hover:     rgba(0, 0, 0, 0.80);

    /* Dark brand surface — darkened brand-primary; used for nav gradients,
       footer, page-hero, nav-dropdown, and FAQ section backgrounds         */
    --color-brand-dark:        color-mix(in srgb, var(--brand-primary) 75%, #000000);
}

/* ── Theme variant: "light-tiles" ────────────────────────── */
/* Overrides tile surface only — typography and action unchanged.
   Apply via data-theme-variant="light-tiles" on any ancestor.  */
[data-theme-variant="light-tiles"] {
    --color-tile-bg:           color-mix(in srgb, var(--brand-primary) 8%, #ffffff);
    --color-tile-fg:           var(--brand-primary);
    --color-tile-muted:        rgba(0, 0, 0, 0.50);
    --color-tile-border:       rgba(0, 0, 0, 0.10);
    --color-tile-border-hover: var(--brand-secondary);
    --color-tile-swatch:       linear-gradient(135deg, var(--brand-secondary) 0%, color-mix(in srgb, var(--brand-secondary) 55%, #ffffff) 100%);
}

/* ── Layer 3: Component tokens ───────────────────────────── */
/* Reference semantic roles only — never raw values.          */
:root {
    /* Spacing scale */
    --admin-space-xs:  0.3rem;
    --admin-space-sm:  0.6rem;
    --admin-space-md:  1rem;
    --admin-space-lg:  1.5rem;
    --admin-space-xl:  2rem;
    --admin-space-2xl: 2.5rem;
    --admin-space-3xl: 4rem;

    /* Border radius scale */
    --admin-radius-sm:  4px;
    --admin-radius-md:  8px;
    --admin-radius-lg:  16px;
    --admin-radius-xl:  20px;
    --admin-radius-2xl: 24px;

    /* Shadows */
    --admin-shadow-card:       0 18px 40px rgba(27, 54, 93, 0.08);
    --admin-shadow-tile-hover: 0 10px 36px rgba(0, 0, 0, 0.45);

    /* Admin surfaces — reference semantic layer */
    --admin-surface:           var(--color-surface-section);
    --admin-border:            var(--color-surface-border);
    --admin-text-muted:        var(--color-muted);

    /* Admin tile — reference semantic layer */
    --admin-tile-bg:            var(--color-tile-bg);
    --admin-tile-border:        var(--color-tile-border);
    --admin-tile-border-hover:  var(--color-tile-border-hover);
    --admin-tile-text:          var(--color-tile-fg);
    --admin-tile-text-muted:    var(--color-tile-muted);
    --admin-tile-height-swatch: 104px;
    --admin-tile-height-body:   116px;

    /* Overlays — reference semantic layer */
    --admin-overlay:       var(--color-overlay);
    --admin-overlay-hover: var(--color-overlay-hover);

    /* Aliases referenced by admin/editor rules */
    --color-text:          var(--color-body);
    --color-text-muted:    var(--color-muted);
    --admin-bg:            var(--color-surface);
}

.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;
}

body {
    margin: 0;
    font-family: var(--brand-body-font), "Segoe UI", sans-serif;
    color: #1f2933;
    line-height: 1.5;
    overflow-x: hidden;
    background:
        radial-gradient(circle at top, rgba(79, 129, 189, 0.16), transparent 32%),
        linear-gradient(180deg, #f7f9fc 0%, #edf2f7 100%);
}

body:has([data-view^="website/"]) {
    background: #f8f9fb;
}

body.page-website {
    background: #f8f9fb;
}

a {
    color: var(--brand-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

a:hover,
a:focus-visible {
    color: var(--brand-secondary);
}

button,
input,
textarea {
    font: inherit;
}

.site-shell__frame {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header,
.site-navigation,
.site-main,
.site-footer {
    padding-inline: 1.5rem;
}

.site-header__inner,
.site-navigation__inner,
.site-main__inner,
.site-footer__inner {
    width: min(1100px, 100%);
    margin: 0 auto;
}

.site-header {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 4px solid var(--color-action);
    background: linear-gradient(180deg, #ffffff 0%, #eef3f8 100%);
    box-shadow: 0 14px 30px rgba(27, 54, 93, 0.08);
}

.site-header--hidden {
    display: none;
}

.site-header__brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-header__logo-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.site-header__logo {
    display: block;
    height: clamp(42px, 7vw, 58px);
    width: auto;
    max-width: min(320px, 42vw);
    object-fit: contain;
}

.site-header__copy {
    display: grid;
    gap: 0.2rem;
}

.site-header__copy h1 {
    margin: 0;
    color: var(--color-heading);
    font-family: var(--brand-heading-font), "Segoe UI", sans-serif;
    font-size: clamp(1.5rem, 2vw + 1rem, 2.25rem);
    line-height: 1.1;
}

.site-header__tenant {
    margin: 0;
    color: var(--color-action);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.site-header__meta {
    margin: 0.35rem 0 0;
    color: #4b5b6b;
    font-size: 0.98rem;
}

.site-navigation {
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid #d6dce4;
    backdrop-filter: blur(10px);
}

.site-navigation--website {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(to right, #ffffff 0%, var(--color-brand-dark) 480px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
    transition: box-shadow 200ms ease;
    padding-inline-start: 0;
}

/* Hover-state gradient crossfades over the base via ::before */
.site-navigation--website::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, color-mix(in srgb, var(--color-heading) 15%, #ffffff) 0%, var(--color-brand-dark) 480px);
    opacity: 0;
    transition: opacity 350ms ease;
    pointer-events: none;
    z-index: 0;
}

.site-navigation--website:hover::before {
    opacity: 1;
}


.site-navigation--website .site-navigation__logo {
    opacity: 1;
}

.site-navigation__brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-navigation__brand:hover,
.site-navigation__brand:focus-visible {
    text-decoration: none;
}

/* Website nav brand: transparent - gradient lives on the nav background */
.site-navigation--website .site-navigation__brand {
    background: transparent;
    padding: 0 1.5rem 0 1.5rem;
    align-self: stretch;
    border-radius: 0;
    gap: 0.6rem;
    flex-shrink: 0;
}

.site-navigation--website .site-navigation__brand:hover,
.site-navigation--website .site-navigation__brand:focus-visible {
    background: transparent;
    text-decoration: none;
}

.site-navigation__logo {
    height: 36px;
    width: auto;
    display: block;
    object-fit: contain;
}

.site-navigation--website .site-navigation__logo {
    height: 52px;
}

.site-navigation__brand-name {
    font-family: var(--brand-heading-font), sans-serif;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--color-heading);
    letter-spacing: -0.01em;
    white-space: nowrap;
}

/* Brand name: dark on the light left of the gradient, shadow keeps it readable across the fade */
.site-navigation--website .site-navigation__brand-name {
    color: var(--color-heading);
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.9), 0 0 4px rgba(255, 255, 255, 0.7);
}

.site-navigation__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    flex-wrap: wrap;
}

/* 3-column grid: brand | nav | actions */
.site-navigation--website .site-navigation__inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: stretch;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    height: 70px;
    position: relative;
    z-index: 1;
}

.site-navigation__list,
.site-footer__nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
}

.site-navigation__list a,
.site-footer__nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
}

.site-navigation__list a {
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: #eef3f8;
    color: #1f2933;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.site-navigation__list a:hover,
.site-navigation__list a:focus-visible {
    color: #ffffff;
    background: var(--color-tile-bg);
    transform: translateY(-1px);
}

/* Website nav: clean text links, white on dark; centred in the grid */
.site-navigation--website .site-navigation__list {
    justify-content: center;
    align-items: center;
    align-self: center;
    padding: 0 1rem;
    flex-wrap: nowrap;
    gap: 0;
}

.site-navigation--website .site-navigation__list a {
    background: transparent;
    border-radius: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    font-weight: 600;
    padding: 0.35rem 0.4rem;
    position: relative;
    letter-spacing: 0.01em;
    transform: none;
    transition: color 150ms ease;
}

.site-navigation--website .site-navigation__list a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-action);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.site-navigation--website .site-navigation__list a:hover,
.site-navigation--website .site-navigation__list a:focus-visible {
    background: transparent;
    color: #ffffff;
    transform: none;
}

.site-navigation--website .site-navigation__list a:hover::after,
.site-navigation--website .site-navigation__list a:focus-visible::after {
    transform: scaleX(1);
}

/* Website CTA button in nav */
.site-navigation__cta {
    display: inline-flex;
    align-items: center;
    background: var(--color-action);
    color: var(--color-brand-dark);
    font-family: var(--brand-heading-font), sans-serif;
    font-weight: 700;
    font-size: 0.87rem;
    padding: 0.55rem 1.3rem;
    border-radius: 999px;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
    flex-shrink: 0;
}

.site-navigation__cta:hover,
.site-navigation__cta:focus-visible {
    background: var(--color-action-hover);
    color: var(--color-brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--color-action) 35%, transparent);
    text-decoration: none;
}

/* Right-side actions group (CTA + user dropdown) */
.site-navigation__actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0 1.25rem;
    align-self: center;
    flex-shrink: 0;
}

/* User dropdown trigger - teal underline on hover, matches Services nav link style */
.site-navigation--website .site-navigation__actions .site-navigation__user-trigger {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: color 150ms ease;
    padding: 0.35rem 0.4rem;
    letter-spacing: 0.01em;
    position: relative;
}

.site-navigation--website .site-navigation__actions .site-navigation__user-trigger::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-action);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.site-navigation--website .site-navigation__actions .site-navigation__user-trigger:hover {
    color: #ffffff;
    text-decoration: none;
}

.site-navigation--website .site-navigation__actions .site-navigation__user-trigger:hover::after,
.site-navigation--website .nav-item--user:hover .site-navigation__user-trigger::after,
.site-navigation--website .nav-item--user:focus-within .site-navigation__user-trigger::after {
    transform: scaleX(1);
}

/* User dropdown: compact, with right-aligned items + teal underline on hover */
.nav-dropdown--user {
    min-width: 0;
    width: max-content;
}

.nav-dropdown--user .nav-dropdown__list a,
.nav-dropdown--user .nav-dropdown__btn {
    text-align: right;
    position: relative;
}

.nav-dropdown--user .nav-dropdown__list a::after,
.nav-dropdown--user .nav-dropdown__btn::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0.9rem;
    right: 0.9rem;
    height: 1px;
    background: var(--color-action);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 200ms ease;
}

.nav-dropdown--user .nav-dropdown__list a:hover::after,
.nav-dropdown--user .nav-dropdown__list a:focus-visible::after,
.nav-dropdown--user .nav-dropdown__btn:hover::after,
.nav-dropdown--user .nav-dropdown__btn:focus-visible::after {
    transform: scaleX(1);
}

.site-navigation__button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 2.75rem;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 999px;
    background: var(--color-tile-bg);
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

.site-navigation__button:hover,
.site-navigation__button:focus-visible,
button:hover,
button:focus-visible {
    background: var(--color-action);
}

button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

.site-main {
    flex: 1;
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

/* Pass flex height down to admin pages so content fills the shell */
body:has(.admin-page) .site-main {
    display: flex;
    flex-direction: column;
}

body:has(.admin-page) .site-main__inner {
    flex: 1;
    display: flex;
    flex-direction: column;
}

body:has([data-view="auth/login"]) .site-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

body:has([data-view="auth/login"]) .site-main__inner {
    width: min(460px, 100%);
    margin: 0 auto;
}

body:has([data-view="auth/login"]) section[data-view="auth/login"] {
    text-align: center;
}

body:has([data-view^="website/"]) .site-main {
    padding: 0;
}

body:has([data-view^="website/"]) .site-main__inner {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.page-website .site-main {
    padding: 0;
}

body.page-website .site-main__inner {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-main__inner > section[data-view] {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dce3eb;
    border-radius: 24px;
    padding: clamp(1.25rem, 2vw, 2rem);
    box-shadow: 0 18px 40px rgba(27, 54, 93, 0.08);
}

main[data-layout="default"] h2,
main[data-layout="default"] h3 {
    margin-top: 0;
    color: var(--brand-primary);
    font-family: var(--brand-heading-font), "Segoe UI", sans-serif;
}

main[data-layout="default"] p,
main[data-layout="default"] li,
.settings-help__item {
    max-width: 72ch;
}

body:has([data-view^="website/"]) main[data-layout="default"] p,
body:has([data-view^="website/"]) main[data-layout="default"] li {
    max-width: none;
}

body:has([data-view^="website/"]) main[data-layout="default"] form {
    display: block;
    margin-top: 0;
    gap: 0;
}

body.page-website main[data-layout="default"] p,
body.page-website main[data-layout="default"] li {
    max-width: none;
}

body.page-website main[data-layout="default"] form {
    display: block;
    margin-top: 0;
    gap: 0;
}

main[data-layout="default"] form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
}

main[data-layout="default"] label {
    font-weight: 700;
    color: #344454;
}

main[data-layout="default"] input,
main[data-layout="default"] textarea {
    width: min(100%, 42rem);
    padding: 0.75rem 0.9rem;
    border: 1px solid #c8d2de;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2933;
}

main[data-layout="default"] textarea {
    min-height: 8rem;
    resize: vertical;
}

.site-footer {
    padding-top: 1rem;
    padding-bottom: 1.75rem;
    color: #51606f;
}

.site-footer__inner {
    display: grid;
    gap: 0.9rem;
    border-top: 1px solid #d6dce4;
    padding-top: 1rem;
}

.site-footer__meta {
    display: grid;
    gap: 0.2rem;
}

.site-footer__context {
    margin: 0;
    color: #243241;
    font-weight: 700;
}

.site-footer__caption {
    display: block;
}

/* ==============================
   WEBSITE FOOTER
   ============================== */

.site-footer--website {
    background: var(--color-brand-dark);
    color: rgba(255, 255, 255, 0.7);
    padding-block: 0;
}

.site-footer__col {
    min-width: 0;
}

.site-footer__website-inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 3.5rem 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: stretch;
}

.site-footer__website-inner--slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
}

.site-footer__website-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer__website-bottom nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.site-footer__website-bottom a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 150ms ease;
}

.site-footer__website-bottom a:hover {
    color: #ffffff;
}

.site-footer__col--brand {
    display: flex;
    flex-direction: column;
}

.site-footer__col--copy {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding-bottom: 0.25rem;
}

.site-footer__social-links {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-footer__social-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 150ms ease;
}

.site-footer__social-links a:hover {
    color: #ffffff;
}

.site-footer__col--links {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    justify-content: center;
}

.site-footer__logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    text-decoration: none;
}

.site-footer__logo {
    height: 40px;
    width: auto;
    display: block;
    opacity: 0.9;
    flex-shrink: 0;
}

.site-footer__brand-name-inline {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.site-footer__tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 1.5rem;
    line-height: 1.5;
    max-width: 28ch;
}

.site-footer__copy {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.35);
    margin: 0;
    text-align: right;
}

.site-footer__col-heading {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0 0 1rem;
}

.site-footer__col-group {
    display: flex;
    flex-direction: column;
}

.site-footer__col-group + .site-footer__col-group {
    margin-top: 0;
}

.site-footer__col-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

.site-footer__col-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    align-content: start;
}

.site-footer__col-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 150ms ease;
}

.site-footer__col-links a:hover {
    color: #ffffff;
}

.settings-help {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(79, 129, 189, 0.2);
    border-left: 4px solid var(--brand-secondary);
    border-radius: 18px;
    background: #eef7fb;
}

.settings-help h3 {
    margin: 0 0 0.5rem;
    color: var(--brand-primary);
}

.settings-help__item {
    margin: 0.35rem 0;
}

/* ==============================
    PAGE HOME - full-bleed override
   ============================== */

.site-main__inner > section[data-view="website/home"],
.site-main__inner > div[data-view="website/home"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.site-main__inner > section[data-view="website/services"],
.site-main__inner > div[data-view="website/services"],
.site-main__inner > section[data-view="website/about"],
.site-main__inner > div[data-view="website/about"],
.site-main__inner > section[data-view="website/service-detail"],
.site-main__inner > div[data-view="website/service-detail"],
.site-main__inner > section[data-view="website/contact"],
.site-main__inner > div[data-view="website/contact"] {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* ==============================
   PAGE SECTIONS
   ============================== */

.page-section {
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.5rem;
}

.page-section__inner {
    width: min(1400px, 100%);
    margin: 0 auto;
}

.page-section__inner--narrow {
    width: min(740px, 100%);
}

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

.page-section__inner--two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.page-section--light {
    background: #ffffff;
}

.page-section--alt {
    background: #f4f8fb;
}

.page-section--cta {
    background: var(--color-tile-bg);
    color: #ffffff;
}

.page-section--cta p {
    color: #ffffff;
}

main[data-layout="default"] .page-section--cta h2 {
    color: var(--brand-secondary);
    font-size: clamp(1.5rem, 2vw + 0.75rem, 2.25rem);
    margin: 0 0 1rem;
}

.page-section--cta p {
    margin: 0 0 2rem;
    font-size: 1.05rem;
}

.page-section--page-hero {
    background: var(--color-brand-dark);
    color: #ffffff;
    padding-top: clamp(2.5rem, 5vw, 4rem);
    padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.page-section--page-hero h2,
.page-section--page-hero p {
    color: #ffffff;
}

.page-section--page-hero .page-hero__heading {
    color: var(--brand-secondary, #4FBFC3);
}

@media (prefers-reduced-motion: no-preference) {
    .page-section--page-hero .page-hero__eyebrow {
        opacity: 0;
        animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
    }
    .page-section--page-hero .page-hero__heading {
        opacity: 0;
        animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.20s both;
    }
    .page-section--page-hero .page-hero__sub {
        opacity: 0;
        animation: fadeInUp 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.38s both;
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-section--page-hero .page-hero__eyebrow,
    .page-section--page-hero .page-hero__heading,
    .page-section--page-hero .page-hero__sub {
        opacity: 1;
        animation: none;
    }
}

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

.page-section--hero {
    position: relative;
    background: #0a1929;
    color: #ffffff;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: clamp(5rem, 10vw, 8rem) 1.5rem;
    overflow: hidden;
}

/* Dark overlay + teal accent on top of the video */
.page-section--hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(105deg, rgba(10,25,41,0.82) 0%, rgba(10,25,41,0.60) 55%, rgba(10,25,41,0.40) 100%),
        radial-gradient(ellipse 60% 70% at 10% 60%, rgba(79, 191, 195, 0.10) 0%, transparent 60%);
    pointer-events: none;
}

/* Dot-grid texture */
.page-section--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 36px 36px;
    pointer-events: none;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 1;
    pointer-events: none;
}

.page-section--hero .page-section__inner {
    position: relative;
    z-index: 4;
}

.hero__eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 1rem;
}

.page-section--hero .hero__headline {
    color: var(--brand-secondary, #4FBFC3);
}

.hero__headline {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: clamp(2rem, 4vw + 0.5rem, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--brand-secondary, #4FBFC3);
    margin: 0 0 1.25rem;
}

.hero__sub {
    font-size: clamp(1rem, 1.5vw + 0.4rem, 1.2rem);
    color: rgba(255, 255, 255, 0.88);
    max-width: 60ch;
    line-height: 1.7;
    margin: 0 0 2.5rem;
}

/* hero__content animation is defined in ENTRANCE ANIMATIONS section */

.page-hero__heading {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.75rem);
    font-weight: 800;
    color: var(--brand-secondary, #4FBFC3);
    margin: 0 0 0.75rem;
}

.page-hero__logo-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
}

.page-hero__logo-heading .page-hero__logo {
    height: 36px;
    width: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0.9;
}

.page-hero__logo-heading .page-hero__heading {
    margin: 0;
}

.page-hero__eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-secondary, #4FBFC3);
    margin: 0 0 0.75rem;
}

.page-hero__sub {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 58ch;
    line-height: 1.6;
}

/* ==============================
   BUTTONS
   ============================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
    text-decoration: none;
}

.btn--hero {
    background: #ffffff;
    color: var(--color-heading);
    border-color: #ffffff;
}

.btn--hero:hover,
.btn--hero:focus-visible {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn--primary {
    background: var(--color-action);
    color: #ffffff;
    border-color: var(--color-action);
}

.btn--primary:hover,
.btn--primary:focus-visible {
    background: #ffffff;
    color: var(--color-heading);
    border-color: #ffffff;
}

.btn--inverted {
    background: #ffffff;
    color: var(--color-heading);
    border-color: #ffffff;
}

.btn--inverted:hover,
.btn--inverted:focus-visible {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn--outline {
    background: transparent;
    color: var(--color-heading);
    border-color: var(--color-heading);
}

.btn--outline:hover,
.btn--outline:focus-visible {
    background: var(--color-tile-bg);
    color: #ffffff;
}

/* ==============================
   SECTION HEADING
   ============================== */

.section-heading {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);
    color: var(--color-heading);
    margin: 0 0 2rem;
    text-align: center;
}

.section-heading.reveal {
    position: relative;
    display: inline-block;
}

.section-heading.reveal::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--color-action);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.45s;
}

.section-heading.reveal.is-visible::after {
    transform: scaleX(1);
}

/* ==============================
   FEATURE GRID
   ============================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: #f4f8fb;
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    border: 1px solid #dce8f0;
}

.feature-card__icon {
    display: none;
}

.feature-card__heading {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 0.5rem;
}

.feature-card__heading-logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0.9;
}

.feature-card h3 {
    margin: 0;
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.05rem;
}

.feature-card p {
    margin: 0;
    color: #4b5b6b;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ==============================
   SERVICE GRID + CARDS
   ============================== */

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.service-card {
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem 1.75rem;
    border: 1px solid #d6dce4;
    text-decoration: none;
    color: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
    border-color: var(--color-action);
    box-shadow: 0 8px 30px rgba(27, 54, 93, 0.12);
    transform: translateY(-3px);
    color: inherit;
    text-decoration: none;
}

.service-card h3 {
    margin: 0 0 0.75rem;
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.1rem;
}

.service-card p {
    margin: 0 0 1.25rem;
    color: #4b5b6b;
    line-height: 1.6;
    font-size: 0.95rem;
}

.service-card__cta {
    color: var(--color-action);
    font-weight: 700;
    font-size: 0.9rem;
}

/* ==============================
   SERVICE DETAIL CARDS (services landing)
   ============================== */

.service-detail-card {
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #d6dce4;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
}

.service-detail-card__header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.service-detail-card__icon {
    display: none;
}

.service-detail-card__logo {
    height: 28px;
    width: auto;
    display: block;
    flex-shrink: 0;
    opacity: 0.85;
}

.service-detail-card__header h3 {
    margin: 0;
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.2rem;
}

.service-detail-card__points {
    list-style: none;
    margin: 1rem 0 1.5rem;
    padding: 0;
    display: grid;
    gap: 0.5rem;
}

.service-detail-card__points li {
    padding: 0.5rem 0.75rem;
    background: #f4f8fb;
    border-left: 3px solid var(--color-action);
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
    color: #1f2933;
}

.service-detail-card .btn {
    margin-top: auto;
    align-self: flex-start;
}

/* ==============================
   TESTIMONIAL
   ============================== */

.testimonial {
    margin: 0;
    text-align: center;
}

.testimonial__quote {
    font-size: clamp(1.05rem, 1.5vw + 0.25rem, 1.35rem);
    font-style: italic;
    color: #2c3e50;
    line-height: 1.75;
    margin: 0 0 1.25rem;
}

.testimonial__attribution {
    color: #4b5b6b;
    font-size: 0.9rem;
}

/* ==============================
   VALUES GRID
   ============================== */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.value-card {
    background: #f4f8fb;
    border-left: 4px solid var(--color-action);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem;
}

.value-card h3 {
    margin: 0 0 0.4rem;
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1rem;
}

.value-card p {
    margin: 0;
    color: #4b5b6b;
    font-size: 0.95rem;
    line-height: 1.55;
}

/* ==============================
   ABOUT PAGE BLOCKS
   ============================== */

.about-block {
    margin-bottom: 2.5rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block h2 {
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: clamp(1.25rem, 1.5vw + 0.5rem, 1.75rem);
    margin: 0 0 0.75rem;
}

.about-block p {
    color: #4b5b6b;
    line-height: 1.7;
    max-width: 65ch;
}

.about-block--highlight {
    background: linear-gradient(135deg, var(--color-tile-bg) 0%, var(--color-action) 100%);
    border-radius: 16px;
    padding: 2rem;
    color: #ffffff;
}

.about-block--highlight h2,
.about-block--highlight p {
    color: #ffffff;
}

.about-block--highlight p {
    opacity: 0.9;
}

/* ==============================
   SERVICE DETAIL PAGE
   ============================== */

.service-detail-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.capabilities-list {
    list-style: none;
    margin: 1rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.6rem;
}

.capabilities-list li {
    padding: 0.75rem 1rem;
    background: #f4f8fb;
    border-left: 3px solid var(--color-action);
    border-radius: 0 8px 8px 0;
    color: #1f2933;
    font-size: 0.95rem;
}

.related-title {
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

/* ==============================
   CONTACT FORM
   ============================== */

.contact-block h2 {
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.5rem;
    margin: 0 0 0.75rem;
}

.contact-intro {
    color: #4b5b6b;
    line-height: 1.7;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    max-width: 55ch;
}

.contact-form {
    display: grid;
    gap: 1rem;
}

.form-field {
    display: grid;
    gap: 0.35rem;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-field__optional {
    font-weight: 400;
    color: #6b7b8d;
}

.form-field input,
.form-field textarea {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #c8d2dc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--brand-body-font), sans-serif;
    color: #1f2933;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--color-action);
    box-shadow: 0 0 0 3px rgba(79, 191, 195, 0.2);
}

.contact-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 2rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    background: var(--color-tile-bg);
    color: #ffffff;
    border: 2px solid var(--color-tile-bg);
    cursor: pointer;
    margin-top: 0.75rem;
    transition: background-color 150ms ease, transform 120ms ease, box-shadow 150ms ease;
    justify-self: start;
}

.contact-form button[type="submit"]:hover,
.contact-form button[type="submit"]:focus-visible {
    background: var(--color-action);
    border-color: var(--color-action);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.contact-block--info h2 {
    font-family: var(--brand-heading-font), sans-serif;
    color: var(--color-heading);
    font-size: 1.5rem;
    margin: 0 0 1.25rem;
}

.contact-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 1.5rem;
    counter-reset: steps;
}

.contact-steps li {
    padding-left: 3rem;
    position: relative;
}

.contact-steps li::before {
    content: counter(steps);
    counter-increment: steps;
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--color-action);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.contact-steps li strong {
    display: block;
    color: var(--color-heading);
    font-family: var(--brand-heading-font), sans-serif;
    margin-bottom: 0.35rem;
    font-size: 0.95rem;
}

.contact-steps li p {
    margin: 0;
    color: #4b5b6b;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ==============================
   NAV DROPDOWN
   ============================== */

.nav-item--has-dropdown {
    position: relative;
}

.nav-dropdown-caret {
    font-size: 0.75em;
    vertical-align: middle;
    margin-left: 2px;
}

.nav-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    transform: translateY(-8px);
    background: var(--color-brand-dark);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    padding: 0.5rem 0.5rem 0.5rem;
    padding-top: 1rem;
    min-width: 240px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 100;
}

.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0;
}

.nav-dropdown__list a {
    display: block;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 120ms ease, color 120ms ease;
}

.nav-dropdown__list a:hover,
.nav-dropdown__list a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

/* User dropdown right-aligned */
.nav-item--user .nav-dropdown--user {
    left: auto;
    right: 0;
}

.nav-dropdown__divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.10);
    margin: 0.25rem 0.5rem;
    pointer-events: none;
}

.nav-dropdown__btn {
    display: block;
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.80);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    text-align: left;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease;
    min-height: unset;
    font-family: inherit;
    line-height: 1.4;
}

.nav-dropdown__btn:hover,
.nav-dropdown__btn:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

/* ==============================
   ADMIN DASHBOARD
   ============================== */

.admin-page__header {
    display: flex;
    align-items: flex-end;
    gap: var(--admin-space-xl);
    margin-bottom: var(--admin-space-2xl);
}

.admin-page__title {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 0.4rem;
}

.admin-page__meta {
    font-size: 0.9rem;
    color: var(--admin-text-muted);
    margin: 0;
}

.admin-back-link {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--admin-text-muted);
    text-decoration: none;
    margin-bottom: var(--admin-space-xs);
}

.admin-back-link:hover {
    color: var(--brand-primary);
}

.admin-nav {
    display: flex;
    gap: 0;
    margin-bottom: var(--admin-space-2xl);
    flex-wrap: wrap;
}

.admin-nav__link {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--admin-text-muted);
    text-decoration: none;
    position: relative;
    transition: color 150ms ease;
}

.admin-nav__link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--brand-secondary);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 200ms ease;
}

.admin-nav__link:hover {
    color: var(--brand-primary);
    text-decoration: none;
}

.admin-nav__link:hover::after {
    transform: scaleX(1);
}

.admin-nav__link--active {
    color: var(--brand-primary);
    font-weight: 700;
}

.admin-nav__link--active::after {
    transform: scaleX(1);
}

.admin-nav__item {
    position: relative;
    display: inline-flex;
}

.admin-nav__item--has-dropdown:hover .admin-nav__dropdown,
.admin-nav__item--has-dropdown:focus-within .admin-nav__dropdown {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.admin-nav__dropdown {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    transform: translateY(-6px);
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-md);
    box-shadow: var(--admin-shadow-card);
    padding: 0.6rem 0.4rem 0.4rem;
    min-width: 220px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 100;
}

/* Bridge the gap so the mouse doesn't fall through before reaching the dropdown */
.admin-nav__dropdown::before {
    content: '';
    position: absolute;
    top: -0.6rem;
    left: 0;
    right: 0;
    height: 0.6rem;
}

.admin-nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: right;
}

.admin-nav__dropdown-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    border-radius: var(--admin-radius-sm);
    color: var(--brand-primary);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration-line: underline;
    text-decoration-color: var(--brand-primary);
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
    transition: background 120ms ease;
}

.admin-nav__dropdown-list a:hover,
.admin-nav__dropdown-list a:focus-visible {
    background: color-mix(in srgb, var(--brand-primary) 6%, transparent);
    color: var(--brand-primary);
    text-decoration-color: var(--brand-primary);
}

.admin-nav__dropdown-divider {
    height: 1px;
    background: var(--admin-border);
    margin: 0.3rem 0.5rem;
    pointer-events: none;
}

.admin-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.admin-tile {
    display: flex;
    flex-direction: column;
    background: var(--admin-tile-bg);
    border: 2px solid var(--admin-tile-border);
    border-radius: var(--admin-radius-lg);
    padding: 0;
    text-decoration: none;
    color: var(--admin-tile-text);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.admin-tile:hover,
.admin-tile:focus-visible {
    border-color: var(--admin-tile-border-hover);
    transform: translateY(-3px);
    box-shadow: var(--admin-shadow-tile-hover);
    text-decoration: none;
    color: var(--admin-tile-text);
}

.admin-section-hint {
    margin-top: var(--admin-space-md);
    font-size: 0.82rem;
    color: var(--admin-text-muted);
}

.admin-section-hint__link {
    color: var(--admin-text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 150ms ease;
}

.admin-section-hint__link:hover {
    color: var(--brand-primary);
}

.admin-tile__swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--admin-tile-height-swatch);
    width: 100%;
    flex-shrink: 0;
    background: var(--color-tile-swatch);
    background-size: cover;
    background-position: center;
    transition: filter 220ms ease;
}

.admin-tile:hover .admin-tile__swatch,
.admin-tile:focus-visible .admin-tile__swatch {
    filter: brightness(1.1);
}

.admin-tile__icon {
    font-size: 2.4rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-tile__body {
    padding: var(--admin-space-sm) var(--admin-space-md) var(--admin-space-md);
    min-height: var(--admin-tile-height-body);
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--admin-tile-bg);
}

.admin-tile .admin-tile__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--admin-tile-text);
    margin: 0 0 var(--admin-space-xs);
    font-family: var(--brand-heading-font), sans-serif;
}

.admin-tile__desc .processes-status-badge {
    background: transparent;
    color: var(--admin-tile-text-muted);
    padding: 0;
    font-size: 0.72rem;
    letter-spacing: 0.05em;
}

.admin-tile__desc .processes-version-badge {
    font-size: 0.72rem;
    color: var(--admin-tile-text-muted);
    opacity: 0.75;
    margin-left: 0.4rem;
}

.admin-tile__desc {
    font-size: 0.82rem;
    color: var(--admin-tile-text-muted);
    margin: 0;
    line-height: 1.4;
}

.admin-tile__badge {
    position: absolute;
    top: var(--admin-space-sm);
    right: var(--admin-space-sm);
    background: var(--admin-overlay);
    color: var(--admin-tile-text);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.2em 0.55em;
    border-radius: var(--admin-radius-sm);
    z-index: 1;
}

.admin-tile-wrapper {
    position: relative;
    border-radius: var(--admin-radius-lg);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.admin-tile-wrapper:hover,
.admin-tile-wrapper:focus-within {
    transform: translateY(-3px);
    box-shadow: var(--admin-shadow-tile-hover);
}

.admin-tile-wrapper:hover .admin-tile,
.admin-tile-wrapper:focus-within .admin-tile {
    border-color: var(--admin-tile-border-hover);
}

/* Suppress the individual tile transform when inside a wrapper (wrapper handles it) */
.admin-tile-wrapper .admin-tile:hover,
.admin-tile-wrapper .admin-tile:focus-visible {
    transform: none;
    box-shadow: none;
}

.admin-tile-action {
    position: absolute;
    top: var(--admin-space-sm);
    right: var(--admin-space-sm);
    padding: 0.25rem 0.7rem;
    background: var(--admin-overlay);
    color: var(--admin-tile-text);
    border-radius: var(--admin-radius-md);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background 180ms ease;
    z-index: 1;
}

.admin-tile-action:hover,
.admin-tile-action:focus-visible {
    background: var(--admin-overlay-hover);
    color: var(--admin-tile-text);
    text-decoration: none;
    transform: none;
}

.admin-tile--disabled {
    pointer-events: none;
    cursor: default;
    opacity: 0.52;
    filter: grayscale(0.35);
}

.admin-tile--disabled:hover,
.admin-tile--disabled:focus-visible {
    border-color: var(--admin-tile-border);
    transform: none;
    box-shadow: none;
}

.admin-tile--disabled .admin-tile__swatch {
    filter: none;
}

/* ==============================
   ADMIN SHELL
   ============================== */

/* Top-level shell container — full viewport width inside site-shell */
.admin-shell {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
}

/* Shell body: sidebar + content side-by-side */
.admin-shell__body {
    display: grid;
    grid-template-columns: 220px 1fr;
    flex: 1;
    min-height: 0;
}

/* When no sidebar is present, content spans full width */
.admin-shell__body:not(:has(.admin-sidebar)) {
    grid-template-columns: 1fr;
}

.admin-shell__content {
    position: relative;
    min-width: 0;
    overflow-y: auto;
}

/* Nav sits inside the white content card, top-right */
.admin-shell__topbar {
    position: absolute;
    top: var(--admin-space-2xl);    /* matches .admin-page padding-top (2.5rem) */
    right: calc(50% - 0.4 * min(1100px, 100%));
    z-index: 10;
}

.admin-shell__topbar .admin-nav {
    margin-bottom: 0;
}

/* ── Admin sidebar ────────────────────────────────────── */

.admin-sidebar {
    background: linear-gradient(160deg, var(--color-brand-dark) 0%, var(--brand-primary) 100%);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.1) transparent;
}

.admin-sidebar__brand {
    padding: 1.75rem 1.25rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 0.25rem;
}

.admin-sidebar__eyebrow {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.32);
    margin-bottom: 0.35rem;
}

.admin-sidebar__title {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.admin-sidebar__nav {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    flex: 1;
}

.admin-sidebar__nav-link {
    display: block;
    padding: 0.85rem 1.25rem;
    border-left: 3px solid transparent;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.52);
    text-decoration: none;
    transition: background 120ms ease, color 120ms ease;
}

.admin-sidebar__nav-link:hover,
.admin-sidebar__nav-link:focus-visible {
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.admin-sidebar__nav-link--active {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-left-color: var(--brand-secondary);
    font-weight: 700;
}

.admin-sidebar__footer {
    margin-top: auto;
    padding: 1rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-sidebar__escape {
    display: block;
    padding: 0.45rem 1.25rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.35);
    text-decoration: none;
    transition: color 120ms ease;
}

.admin-sidebar__escape:hover,
.admin-sidebar__escape:focus-visible {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

/* ── Sidebar submenu (expandable children) ────────────────── */

.admin-sidebar__nav-item--has-children {
    position: relative;
}
.admin-sidebar__nav-item-header {
    display: flex;
    align-items: center;
}

.admin-sidebar__nav-item-header .admin-sidebar__nav-link {
    flex: 1;
}

.admin-sidebar__submenu-toggle {
    background: transparent;
    border: none;
    padding: 0.85rem 0.85rem 0.85rem 0;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.7rem;
    line-height: 1;
    font-family: inherit;
}

.admin-sidebar__submenu-toggle:hover,
.admin-sidebar__submenu-toggle:focus-visible {
    color: rgba(255, 255, 255, 0.85);
    outline: none;
}

.admin-sidebar__nav-item--open > .admin-sidebar__nav-item-header .admin-sidebar__submenu-toggle,
.admin-sidebar__nav-item--has-children:hover > .admin-sidebar__nav-item-header .admin-sidebar__submenu-toggle {
    transform: rotate(180deg);
    color: rgba(255, 255, 255, 0.85);
}

.admin-sidebar__submenu {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 180ms ease;
}

.admin-sidebar__nav-item--has-children:hover .admin-sidebar__submenu,
.admin-sidebar__nav-item--has-children:focus-within .admin-sidebar__submenu,
.admin-sidebar__nav-item--open .admin-sidebar__submenu {
    max-height: 400px;
}

.admin-sidebar__submenu-link {
    display: block;
    padding: 0.6rem 1.25rem 0.6rem 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.42);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: background 120ms ease, color 120ms ease;
}

.admin-sidebar__submenu-link:hover,
.admin-sidebar__submenu-link:focus-visible {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.admin-sidebar__submenu-link--active {
    color: var(--brand-secondary);
    border-left-color: var(--brand-secondary);
}

/* Responsive: stack sidebar above content at narrow viewport */
@media (max-width: 768px) {
    .admin-shell__body {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .admin-sidebar__brand {
        display: none;
    }

    .admin-sidebar__nav {
        display: flex;
        flex-direction: row;
        margin: 0;
    }

    .admin-sidebar__nav-link {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }

    .admin-sidebar__nav-link--active {
        border-left: none;
        border-bottom-color: var(--brand-secondary);
    }

    .admin-sidebar__footer {
        display: none;
    }
}

/* ==============================
   PROCESS MANAGEMENT
   ============================== */

[data-view="processes/index"] h2 {
    margin-bottom: 1.25rem;
}

.processes-template-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.processes-template-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.1rem;
    border: 2px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-primary);
    text-decoration: none;
    background: #fff;
    transition: background 120ms ease, color 120ms ease;
}

.processes-template-tab:hover,
.processes-template-tab:focus-visible {
    background: var(--brand-primary);
    color: #fff;
}

.processes-template-tab--active {
    background: var(--tab-brand-primary, var(--brand-primary));
    color: #fff;
}

.processes-template-tab--active .processes-status-badge {
    background: var(--tab-brand-secondary, var(--brand-secondary));
    color: var(--tab-brand-primary, var(--brand-primary));
}

.processes-status-badge {
    display: inline-block;
    padding: 0.1em 0.55em;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: rgba(255,255,255,0.22);
    color: inherit;
    vertical-align: middle;
}

.processes-template-tab:not(.processes-template-tab--active) .processes-status-badge {
    background: var(--tab-brand-primary, var(--brand-primary));
    color: #fff;
}

/* Panel header badge uses template brand secondary */
.processes-panel__name .processes-status-badge {
    background: color-mix(in srgb, var(--brand-secondary) 18%, #fff);
    color: var(--brand-primary);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 35%, #fff);
}

.processes-panel {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 10px;
    padding: 1.5rem 1.75rem 2rem;
    overflow: hidden;
}

.processes-panel__hd {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.processes-panel__logo {
    height: 2.75rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.processes-panel__hd-text {
    flex: 1;
}

.processes-panel__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.processes-panel__hint {
    margin: 0;
    font-size: 0.875rem;
    color: #5a6a7e;
}

/* Stage map - breaks out of panel padding */
.processes-stage-map {
    margin-inline: -1.75rem;
    margin-bottom: 1.5rem;
}

/* Row section labels */
.processes-row-label {
    padding: 0.5rem 1.75rem 0.2rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #8a9bb0;
}

.processes-row-label--cj {
    color: var(--brand-primary);
}

.processes-row-label--vs {
    color: var(--brand-secondary);
    margin-top: 0.25rem;
}

/* CJ strip - N-column grid of column wrappers */
.processes-cj-strip {
    display: grid;
    grid-template-columns: repeat(var(--stage-count, 9), 1fr);
    gap: 2px;
}

.processes-cj-col {
    display: flex;
    flex-direction: column;
}

/* CJ chevrons (reuse .processes-chevron for the link element) */
.processes-chevron {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.65rem 0.4rem 0.65rem 1.4rem;
    background: #e9f0f8;
    color: var(--brand-primary);
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    transition: background 120ms ease, color 120ms ease;
}

.processes-chevron--first {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    padding-left: 0.75rem;
}

.processes-chevron:hover,
.processes-chevron:focus-visible {
    background: var(--brand-secondary);
    color: #fff;
}

.processes-chevron--active {
    background: var(--brand-primary);
    color: #fff;
}

.processes-chevron__label {
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Behaviour drop - hidden by default, expands on hover or active column */
.processes-beh-drop {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 520ms cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.02);
}

.processes-beh-drop__inner {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.processes-cj-col:hover .processes-beh-drop,
.processes-cj-col--active .processes-beh-drop {
    grid-template-rows: 1fr;
}

.processes-behaviour-item {
    background: #f2f7fb;
    border: 1px solid #ccdde9;
    color: #2e4a5e;
    padding: 0.3rem 0.5rem;
    font-size: 0.68rem;
    text-align: left;
    display: flex;
    align-items: center;
    line-height: 1.25;
    min-height: 2.25rem;
    flex: 1;
}

.processes-cj-col--active .processes-behaviour-item {
    background: color-mix(in srgb, var(--brand-secondary) 14%, #fff);
    border-color: var(--brand-secondary);
    color: #1a2d3a;
}

/* VS strip - N-column grid, mirrors CJ columns */
.processes-vs-strip {
    display: grid;
    grid-template-columns: repeat(var(--stage-count, 9), 1fr);
    gap: 2px;
}

.processes-vs-col {
    display: flex;
    flex-direction: column;
}

.processes-vs-chevron {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0.65rem 0.4rem 0.65rem 1.4rem;
    background: rgba(0, 0, 0, 0.06);
    color: var(--brand-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
    transition: background 120ms ease, color 120ms ease;
}

.processes-vs-chevron--first {
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
    padding-left: 0.75rem;
}

.processes-vs-chevron:hover,
.processes-vs-chevron:focus-visible {
    background: var(--brand-secondary);
    color: #fff;
}

.processes-vs-chevron--active {
    background: var(--brand-secondary);
    color: #fff;
}

.processes-vs-chevron--empty {
    background: transparent;
    color: #c8d4df;
    pointer-events: none;
}

.processes-vs-chevron__label {
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.2;
}

/* Process flow section (shown when a stage is selected) */
.processes-flow-section {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 0 0 0px rgba(79, 191, 195, 0);
    transition: box-shadow 250ms ease;
}

/* CJ column vs-hint: pulsing teal line at the base of the column, not around the chevron */
.processes-cj-col--vs-hint {
    position: relative;
}

.processes-cj-col--vs-hint::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 15%;
    right: 15%;
    height: 3px;
    background: var(--brand-secondary);
    border-radius: 999px;
    animation: cj-hint-pulse 700ms ease-in-out infinite alternate;
}

@keyframes cj-hint-pulse {
    from { opacity: 0.4; transform: scaleX(0.7); }
    to   { opacity: 1;   transform: scaleX(1); }
}

.processes-flow-section--vs-hover {
    box-shadow: 0 0 0 3px var(--brand-secondary), 0 4px 20px rgba(79, 191, 195, 0.2);
}

.processes-flow-heading {
    font-size: 0.9rem;
    font-weight: 600;
    color: #5a6a7e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1rem;
}

.processes-flow-heading em {
    font-style: normal;
    color: var(--brand-primary);
}

.processes-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

/* Admin page scaffold */
.admin-page {
    flex: 1;
    width: 80%;
    margin: 0 auto;
    padding: var(--admin-space-2xl) 0 var(--admin-space-xl);
}

.settings-status {
    padding: 0.75rem 1.1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.settings-status--success { background: rgba(93, 190, 138, 0.15); color: #5DBE8A; border: 1px solid rgba(93, 190, 138, 0.25); }
.settings-status--error   { background: rgba(255, 80, 80, 0.12);  color: #ff6b6b; border: 1px solid rgba(255, 80, 80, 0.20); }
.settings-status--info    { background: rgba(0, 0, 0, 0.04); color: rgba(0,0,0,0.55); border: 1px solid rgba(0,0,0,0.10); }

.settings-section,
.admin-section {
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: var(--admin-radius-xl);
    padding: var(--admin-space-xl) var(--admin-space-xl) 2.2rem;
    margin-bottom: var(--admin-space-lg);
}

/* ==============================
   WIZARD — FORM FIELDS
   ============================== */

.wizard-form__field {
    display: grid;
    gap: 0.35rem;
    margin-bottom: 1.25rem;
}

.wizard-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
}

.wizard-form__required {
    color: var(--brand-secondary);
    margin-left: 0.15rem;
}

.wizard-form__optional {
    font-weight: 400;
    color: #6b7b8d;
}

.wizard-form__input {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #c8d2dc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--brand-body-font), sans-serif;
    color: #1f2933;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
    max-width: 435px;
    box-sizing: border-box;
}

.wizard-form__input:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(79, 191, 195, 0.2);
}

.wizard-form__input--error {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

.wizard-form__select {
    padding: 0.7rem 0.9rem;
    border: 1.5px solid #c8d2dc;
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--brand-body-font), sans-serif;
    color: #1f2933;
    background: #ffffff;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
    max-width: 435px;
    box-sizing: border-box;
    appearance: auto;
}

.wizard-form__select:focus {
    outline: none;
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 3px rgba(79, 191, 195, 0.2);
}

.wizard-form__select--error {
    border-color: #e05252;
    box-shadow: 0 0 0 3px rgba(224, 82, 82, 0.15);
}

.wizard-form__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.75rem;
}

.wizard-form__action--back {
    margin-right: auto;
}

/* ==============================
   WIZARD — SUMMARY TABLE (dt/dd)
   ============================== */

.wizard-summary {
    margin: 0;
    padding: 0;
}

.wizard-summary__row {
    display: grid;
    grid-template-columns: 12rem 1fr;
    gap: 0.5rem;
    align-items: baseline;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--admin-border);
}

.wizard-summary__row:first-child {
    border-top: 1px solid var(--admin-border);
}

.wizard-summary__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

.wizard-summary__value {
    font-size: 0.95rem;
    color: var(--brand-primary);
    margin: 0;
}

/* ==============================
   WIZARD — ERROR BANNER
   ============================== */

.wizard-error {
    background: rgba(224, 82, 82, 0.08);
    border: 1px solid rgba(224, 82, 82, 0.25);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    margin-bottom: 1.25rem;
}

.wizard-error__message {
    font-size: 0.9rem;
    color: #c0392b;
    margin: 0 0 0.3rem;
}

.wizard-error__tiers {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.55);
    margin: 0;
}

.wizard-error__tier-list {
    font-weight: 600;
}

/* ==============================
   WIZARD — SUCCESS PANEL
   ============================== */

.wizard-success {
    background: rgba(93, 190, 138, 0.08);
    border: 1px solid rgba(93, 190, 138, 0.25);
    border-radius: var(--admin-radius-xl);
    padding: var(--admin-space-xl);
}

.wizard-success__title {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #2d7a56;
    margin: 0 0 1.1rem;
}

.wizard-success__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.settings-section__header {
    margin-bottom: 1.75rem;
}

.settings-section__title {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--brand-primary);
    margin: 0 0 0.3rem;
}

.settings-section__lead {
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.50);
    margin: 0;
}

/* Palette selector */
.palette-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.palette-card-wrap {
    position: relative;
}

.palette-card-wrap .palette-card {
    width: 100%;
}

.palette-card {
    position: relative;
    background: #1d2d44;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 0;
    cursor: pointer;
    text-align: left;
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
    overflow: hidden;
    outline: none;
    font-family: inherit;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.palette-card:hover,
.palette-card:focus-visible {
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45);
}

.palette-card--active {
    border-color: var(--brand-secondary);
    box-shadow: 0 0 0 1px var(--brand-secondary), 0 10px 36px rgba(0, 0, 0, 0.35);
}

.palette-card__swatch {
    display: block;
    height: var(--admin-tile-height-swatch);
    width: 100%;
    flex-shrink: 0;
    transition: filter 220ms ease;
}

.palette-card:hover .palette-card__swatch,
.palette-card:focus-visible .palette-card__swatch {
    filter: brightness(1.08);
}

.palette-card__body {
    display: block;
    width: 100%;
    min-height: var(--admin-tile-height-body);
    padding: 0.75rem 0.85rem 0.9rem;
    text-align: left;
}

.palette-card__name {
    display: block;
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.2rem;
}

.palette-card__tagline {
    display: block;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.3;
    margin-bottom: 0.1rem;
}

.palette-card__descriptor {
    display: block;
    font-style: italic;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.40);
    line-height: 1.3;
}

.palette-card__check {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--brand-secondary);
    color: #ffffff;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.5);
    transition: opacity 200ms ease, transform 200ms ease, background 220ms ease;
    pointer-events: none;
}

.palette-card--active .palette-card__check {
    opacity: 1;
    transform: scale(1);
}

.palette-card__delete {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.30);
    color: #ffffff;
    border: none;
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 150ms ease, background 150ms ease;
    z-index: 2;
    padding: 0;
}

.palette-card-wrap:hover .palette-card__delete { opacity: 1; }
.palette-card__delete:hover { background: rgba(210, 50, 50, 0.88); }

/* Settings form */
.settings-live-note {
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 1.25rem;
}

.settings-preview-link {
    font-size: 0.88rem;
    color: var(--brand-secondary);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 1.25rem;
}

.settings-preview-link:hover {
    text-decoration: underline;
}

.settings-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.settings-form__label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.65);
}

.settings-form__textarea {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    color: #1f2933;
    font-family: inherit;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    resize: vertical;
    transition: border-color 150ms ease;
}

.settings-form__textarea:focus {
    outline: none;
    border-color: var(--brand-secondary);
}

.settings-form__submit {
    align-self: flex-start;
    background: var(--brand-secondary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.55rem 1.4rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 150ms ease;
}

.settings-form__submit:hover {
    opacity: 0.88;
}

.settings-publish-form {
    margin-top: 0.5rem;
}

.settings-publish-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.20);
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.55);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1.2rem;
    cursor: pointer;
    transition: border-color 150ms ease, color 150ms ease;
}

.settings-publish-btn:not([disabled]):hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
}

.settings-publish-btn[disabled] {
    opacity: 0.35;
    cursor: not-allowed;
}

.settings-preview-panel {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.9rem;
    color: rgba(0, 0, 0, 0.60);
}

/* Palette subsections */
.palette-subsection {
    margin-top: 2rem;
}

.palette-subsection + .palette-subsection {
    padding-top: 1.75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.palette-subsection__title {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 0.4rem;
}

.palette-subsection__lead {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.50);
    margin: 0 0 1.1rem;
}

.palette-subsection__empty {
    font-size: 0.88rem;
    color: rgba(0, 0, 0, 0.40);
    font-style: italic;
    margin: 0;
    padding: 0.5rem 0;
}

/* Palette studio */
.palette-studio__workspace {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.palette-studio__controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.palette-studio__picker-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.palette-studio__picker-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.palette-studio__picker-wrap {
    display: flex;
    gap: 0.4rem;
    align-items: stretch;
}

.palette-studio__color-input {
    flex: 1;
    height: 36px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
    padding: 3px;
    transition: border-color 150ms ease;
}

.palette-studio__color-input:focus { outline: none; border-color: var(--brand-secondary); }
.palette-studio__color-input::-webkit-color-swatch-wrapper { padding: 0; border-radius: 5px; }
.palette-studio__color-input::-webkit-color-swatch { border: none; border-radius: 5px; }

.palette-studio__dropper {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: rgba(0, 0, 0, 0.55);
    cursor: pointer;
    font-size: 0.8rem;
    padding: 0 0.6rem;
    transition: background 150ms ease, color 150ms ease;
    white-space: nowrap;
}

.palette-studio__dropper:hover { background: rgba(0, 0, 0, 0.09); color: var(--brand-primary); }
.palette-studio__dropper--hidden { display: none; }

.palette-studio__name-row {
    display: flex;
    gap: 0.6rem;
}

.palette-studio__name-input {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    color: #1f2933;
    font-family: inherit;
    font-size: 0.88rem;
    padding: 0.5rem 0.85rem;
    transition: border-color 150ms ease;
}

.palette-studio__name-input::placeholder { color: rgba(0, 0, 0, 0.30); }
.palette-studio__name-input:focus { outline: none; border-color: var(--brand-secondary); }

.palette-studio__save-btn {
    background: var(--brand-secondary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.2rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 150ms ease;
}

.palette-studio__save-btn:hover { opacity: 0.88; }

.palette-studio__dropper-note {
    font-size: 0.78rem;
    color: rgba(0, 0, 0, 0.38);
    margin: 0;
    line-height: 1.5;
}

/* Studio live preview */
.palette-studio__preview {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.85rem;
    user-select: none;
}

.palette-studio__preview-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.55rem 1rem;
    background: var(--color-brand-dark);
    transition: background 220ms ease;
}

.preview-nav__logo {
    color: rgba(255, 255, 255, 0.90);
    font-weight: 700;
    font-size: 0.82rem;
    font-family: var(--brand-heading-font), sans-serif;
}

.preview-nav__cta {
    background: var(--color-action);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    transition: background 220ms ease;
}

.palette-studio__preview-hero {
    background: linear-gradient(135deg, var(--color-brand-dark) 0%, var(--brand-primary) 100%);
    padding: 1.2rem 1rem 1.1rem;
    transition: background 220ms ease;
}

.preview-hero__heading {
    color: #ffffff;
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.preview-hero__sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.75rem;
    margin: 0;
}

.palette-studio__preview-body {
    background: #f8f9fb;
    padding: 0.85rem 1rem;
}

.preview-body__text {
    color: #2d3748;
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.5;
}

.preview-body__link {
    color: var(--color-action);
    text-decoration: none;
    font-weight: 600;
    transition: color 220ms ease;
}

.preview-body__link:hover { text-decoration: underline; }

@media (max-width: 1050px) {
    .palette-studio__workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {
    .palette-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .palette-grid {
        grid-template-columns: 1fr;
    }
    .settings-section,
    .admin-section {
        padding: 1.4rem 1.2rem 1.6rem;
    }
}

/* Admin responsive */
@media (max-width: 900px) {
    .admin-page {
        width: 92%;
    }
    .admin-tiles {
        grid-template-columns: repeat(2, 1fr);
    }
    .palette-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .admin-page {
        width: 96%;
        padding: var(--admin-space-lg) 0 var(--admin-space-2xl);
    }
    .admin-page__header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--admin-space-md);
    }
    .admin-tiles {
        grid-template-columns: 1fr;
    }
    .palette-grid {
        grid-template-columns: 1fr;
    }
    .admin-nav__dropdown {
        right: auto;
        left: 0;
        text-align: center;
    }
    .admin-nav__dropdown-list {
        text-align: center;
    }
}

.processes-flow-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1rem;
    border: 2px solid var(--brand-primary);
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand-primary);
    background: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: background 120ms ease, color 120ms ease, box-shadow 120ms ease;
    text-align: center;
}

.processes-flow-box:hover,
.processes-flow-box:focus-visible {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    text-decoration: none;
}

.processes-flow-box--active {
    background: var(--brand-primary);
    color: #fff;
}

.processes-flow-box--leaf {
    background: #f0f5ff;
    border-color: var(--brand-secondary);
    color: #1f3a5f;
    cursor: default;
}

.processes-flow-arrow {
    color: #9aadbd;
    font-size: 1.1rem;
    font-weight: 400;
    flex-shrink: 0;
}

.processes-empty {
    font-size: 0.9rem;
    color: #8a9bb0;
    padding: 0.75rem 0;
}

/* ==============================
   ENTRANCE ANIMATIONS
   ============================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Page-level overlay transition */
#page-overlay {
    position: fixed;
    inset: 0;
    background: #fff;
    z-index: 9999;
    pointer-events: none;
    animation: overlayFadeOut 0.35s ease 0.05s both;
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.hero__line {
    display: block;
}

@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(-22px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes heroPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.0); }
    50%       { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.12); }
}

@media (prefers-reduced-motion: no-preference) {
    .hero__enter {
        opacity: 0;
        animation: heroSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    }
    .hero__enter--1 { animation-delay: 0.10s; }
    .hero__enter--2 { animation-delay: 0.30s; }
    .hero__enter--3 { animation-delay: 0.55s; }
    .hero__enter--4 { animation-delay: 0.75s; }
    .hero__enter--5 { animation-delay: 0.95s; }
    .hero__enter--6 {
        animation: heroSlideIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 1.15s both,
                   heroPulse 3s ease-in-out 3s infinite;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__enter { opacity: 1; transform: none; animation: none; }
}

/* Nav logo: spring entrance on home page only */
@keyframes logoReveal {
    from {
        opacity: 0;
        transform: scale(0.72) translateX(-8px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateX(0);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .site-navigation--website .site-navigation__logo {
        animation: logoReveal 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }
    .site-navigation--website .site-navigation__brand-name {
        animation: logoReveal 1.1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.18s both;
    }
}

/* Scroll-triggered reveal - driven by JS IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays for child elements */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }

/* Reveal children: scale lifts as they enter */
@media (prefers-reduced-motion: no-preference) {
    .reveal-child {
        transform: translateY(28px) scale(0.94);
    }
    .reveal-child.is-visible {
        transform: translateY(0) scale(1);
    }
}

/* ==============================
   FAQ ACCORDION
   ============================== */

.page-section--faq {
    background: var(--color-brand-dark);
    color: #ffffff;
}

.page-section__inner--faq {
    display: block;
}

.page-section--faq .faq-heading h2 {
    font-family: var(--brand-heading-font), sans-serif;
    font-size: clamp(1.75rem, 3vw + 0.5rem, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 2.5rem;
}

.faq-list {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item__question {
    width: 100%;
    background: none;
    border: none;
    color: #ffffff;
    font-family: var(--brand-body-font), sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    padding: 1.25rem 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
}

.faq-item__question:hover,
.faq-item__question:focus-visible {
    color: #ffffff;
    outline: none;
    background: none;
}

.faq-item__question::after {
    content: '+';
    font-size: 1.75rem;
    font-weight: 300;
    line-height: 1;
    flex-shrink: 0;
    color: var(--brand-secondary, #4FBFC3);
    transition: transform 280ms ease;
}

.faq-item__question[aria-expanded="true"]::after {
    content: '\2212';
    transform: rotate(0deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 380ms cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item__answer.is-open {
    max-height: 600px;
}

.faq-item__answer p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-bottom: 1.25rem;
    margin: 0;
}

/* ==============================
   SERVICE FOCUS CAROUSEL
   ============================== */

.page-section--services {
    background: var(--brand-primary);
    overflow: hidden;
}

.page-section--services .section-heading {
    color: #ffffff;
}

.page-section--services .section-heading::after {
    background: var(--brand-secondary);
}

.service-carousel {
    position: relative;
    padding: 2rem 0 4rem;
}

.service-carousel__track {
    position: relative;
    width: 100%;
    min-height: 700px;
}

.service-carousel__slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(280px, 76%, 960px);
    transform: translateX(-50%) translateY(-50%) scale(0.82) rotate(0deg);
    opacity: 0.52;
    z-index: 1;
    cursor: pointer;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-carousel__slide.is-active {
    transform: translateX(-50%) translateY(-50%) scale(1) rotate(0deg);
    opacity: 1;
    z-index: 3;
    cursor: default;
    pointer-events: auto;
}

.service-carousel__slide.is-prev {
    transform: translateX(calc(-50% - 480px)) translateY(-50%) scale(0.50) rotate(-12deg);
    opacity: 0.45;
    z-index: 2;
    pointer-events: auto;
}

.service-carousel__slide.is-next {
    transform: translateX(calc(-50% + 480px)) translateY(-50%) scale(0.50) rotate(12deg);
    opacity: 0.45;
    z-index: 2;
    pointer-events: auto;
}

.service-carousel__slide.is-hidden {
    transform: translateX(-50%) translateY(-50%) scale(0.7) rotate(0deg);
    opacity: 0;
    pointer-events: none;
    z-index: 0;
}

.service-carousel__card {
    position: relative;
    padding: 0;
    width: 100%;
    height: 580px;
    border-radius: 20px;
    background: rgba(79, 191, 195, 0.18);
    border: 1px solid rgba(79, 191, 195, 0.45);
    text-decoration: none;
    color: #ffffff;
    transition: background 0.55s ease, border-color 0.55s ease;
    overflow: hidden;
    display: block;
}

.service-carousel__slide.is-active .service-carousel__card {
    background: rgba(79, 191, 195, 0.90);
    border-color: rgba(79, 191, 195, 1);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.service-carousel__card .service-card__inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem 2.25rem;
    display: flex;
    flex-direction: column;
}

.service-carousel__card--with-image .service-card__inner { top: 65%; padding: 1.5rem 2.25rem; }

.service-carousel__card h3 {
    color: #ffffff;
    margin: 0 0 1.25rem;
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 2rem;
    font-weight: 800;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

.service-carousel__card p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 1.15rem;
    line-height: 1.7;
    margin: 0 0 1.5rem;
}

.service-carousel__card .service-card__cta {
    display: inline;
    float: right;
    margin-left: 1rem;
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Image stubs — swap background: none for background-image when assets are available */
.service-carousel__slide--crm .service-carousel__card { background-image: none; }
.service-carousel__slide--websites .service-carousel__card { background-image: none; }
.service-carousel__slide--consulting .service-carousel__card { background-image: none; }

.service-carousel__card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 65%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
    pointer-events: none;
    border-radius: 20px 20px 0 0;
}

.service-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
    position: relative;
    z-index: 5;
}

.service-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: unset;
    transition: background 200ms ease, transform 200ms ease;
}

.service-carousel__dot.is-active {
    background: var(--brand-secondary);
    transform: scale(1.4);
}

@media (max-width: 900px) {
    .service-carousel__slide.is-prev { transform: translateX(calc(-50% - 320px)) translateY(-50%) scale(0.50) rotate(-12deg); }
    .service-carousel__slide.is-next { transform: translateX(calc(-50% + 320px)) translateY(-50%) scale(0.50) rotate(12deg); }
}

@media (max-width: 640px) {
    .service-carousel__track { min-height: 400px; }
    .service-carousel__slide { width: 82vw; }
    .service-carousel__slide.is-prev { transform: translateX(calc(-50% - 108vw)) translateY(-50%) scale(0.50) rotate(-12deg); }
    .service-carousel__slide.is-next { transform: translateX(calc(-50% + 108vw)) translateY(-50%) scale(0.50) rotate(12deg); }
}

/* ==============================
   CLIENT GALLERY MARQUEE
   ============================== */

.page-section--clients {
    background: #f4f8fb;
    padding-block: clamp(2rem, 4vw, 3rem);
    overflow: hidden;
}

.clients__heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #8a9bb0;
    text-align: center;
    margin: 0 0 1.75rem;
}

.client-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.client-marquee__track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: clientMarquee 36s linear infinite;
}

@keyframes clientMarquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .client-marquee__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        justify-content: center;
        gap: 0.5rem;
        padding: 0 1.5rem;
    }
}

.client-marquee__item {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 1.4rem;
    margin: 0 0.4rem;
    background: #ffffff;
    border: 1px solid #dce8f0;
    border-radius: 999px;
    font-family: var(--brand-heading-font), sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4b5b6b;
    white-space: nowrap;
}

.client-marquee__item--logo {
    padding: 0.45rem 1.2rem;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.client-marquee__item--logo img {
    display: block;
    height: 28px;
    width: auto;
}

/* ==============================
   TESTIMONIAL CAROUSEL
   ============================== */

.testimonial-carousel {
    position: relative;
}

.testimonial-carousel__track {
    position: relative;
    min-height: 220px;
}

.testimonial-carousel__slide { position: absolute; inset: 0; opacity: 0; transform: translateX(100vw); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.testimonial-carousel__slide.is-entering { opacity: 1; transform: translateX(0); pointer-events: auto; }
.testimonial-carousel__slide.is-active { opacity: 1; transform: translateX(0); pointer-events: auto; }
.testimonial-carousel__slide.is-exiting { opacity: 0; transform: translateX(-100vw); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }

.testimonial-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonial-carousel__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c8d4df;
    border: none;
    cursor: pointer;
    padding: 0;
    min-height: unset;
    transition: background 200ms ease, transform 200ms ease;
}

.testimonial-carousel__dot.is-active {
    background: var(--brand-secondary);
    transform: scale(1.4);
}

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

@media (max-width: 768px) {
    .page-section--hero {
        min-height: auto;
        padding: 3rem 1.5rem;
    }

    .feature-grid,
    .service-grid {
        grid-template-columns: 1fr;
    }

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

    .page-section__inner--two-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .service-detail-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ==============================
   STATS STRIP
   ============================== */

.page-section--dark {
    background: var(--brand-primary);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat__number {
    display: block;
    font-family: var(--brand-heading-font), sans-serif;
    font-size: clamp(2.5rem, 5vw + 0.5rem, 4rem);
    font-weight: 800;
    color: var(--brand-secondary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat__label {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

@media (max-width: 1024px) {
    .site-footer__col--links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-footer__website-inner,
    .site-footer__website-inner--with-social {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.5rem 1.5rem 1.5rem;
    }

    .site-footer__col--copy {
        justify-content: flex-start;
        text-align: left;
        align-items: flex-start;
    }

    .site-footer__col--links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 2rem;
    }

    .site-navigation--website .site-navigation__inner {
        height: auto;
        padding: 0.75rem 0;
    }

    .site-navigation--website {
        background: linear-gradient(to right, #ffffff 0%, var(--color-brand-dark) 280px);
    }

    .site-navigation__brand-name {
        display: none;
    }
}

@media (max-width: 640px) {
    .site-header,
    .site-navigation,
    .site-main,
    .site-footer {
        padding-inline: 1rem;
    }

    .site-header {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .site-header__brand {
        align-items: flex-start;
        gap: 0.75rem;
    }

    .site-header__logo {
        height: clamp(36px, 12vw, 46px);
        max-width: 52vw;
    }

    .site-header__copy h1 {
        font-size: clamp(1.25rem, 3vw + 0.75rem, 1.8rem);
    }

    .site-navigation__inner {
        align-items: stretch;
    }

    .site-navigation__list {
        width: 100%;
    }

    .site-navigation__session {
        width: 100%;
    }

    .site-navigation__button,
    button,
    main[data-layout="default"] input,
    main[data-layout="default"] textarea {
        width: 100%;
    }

    .site-main__inner > section[data-view] {
        border-radius: 20px;
        padding: 1.1rem;
    }
}

/* ============================================================
   WORKFLOW EDITOR — Chevron stage builder
   ============================================================ */

/* ── Meta fields (name + version label) ──────────────────── */
.wf-editor__meta {
    display: flex;
    gap: var(--admin-space-xl);
    margin-bottom: var(--admin-space-2xl);
    flex-wrap: wrap;
}
.wf-editor__meta-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
    min-width: 220px;
}
.wf-editor__meta-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: none;
    letter-spacing: 0;
}
.wf-editor__meta-hint {
    font-weight: 400;
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.5rem;
}
.wf-editor__meta-input {
    padding: 0.55rem 0.85rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.95rem;
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color 0.2s;
}
.wf-editor__meta-input:focus {
    outline: none;
    border-color: var(--brand-secondary);
}

.wf-editor__version-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Version control — three-part layout */
.wf-editor__version-ctrl {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.wf-editor__version-grp {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.wf-editor__version-pill {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 4px;
    padding: 0.15rem 0.45rem;
    color: var(--color-text-muted);
    white-space: nowrap;
}
.wf-editor__version-pill--next {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    background: color-mix(in srgb, var(--brand-secondary) 8%, white);
}
.wf-editor__version-val {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-text);
    white-space: nowrap;
}
.wf-editor__version-val--next {
    color: var(--brand-secondary);
}
.wf-editor__version-auto,
.wf-editor__version-computed {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text);
    white-space: nowrap;
}
.wf-editor__meta-select {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--admin-border);
    border-radius: 6px;
    font-size: 0.9rem;
    color: var(--color-text);
    background: var(--color-surface);
    cursor: pointer;
    transition: border-color 0.2s;
}
.wf-editor__meta-select:focus {
    outline: none;
    border-color: var(--brand-secondary);
}
.wf-editor__meta-input[readonly] {
    background: var(--admin-bg);
    color: var(--color-text-muted);
    cursor: default;
    border-color: var(--admin-border);
}

/* ── Row header label (labels above CJ / VS rows) ────────── */
.wf-row-header {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.wf-row-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}
.wf-row-hint {
    font-size: 0.78rem;
    color: var(--color-text-muted);
}

/* ── Stage row (chevron chain) ───────────────────────────── */
.wf-stage-row {
    display: flex;
    align-items: center;
    margin-bottom: 0;
    overflow: visible;   /* CRITICAL: scaled chevrons overflow their box */
    gap: 3%;             /* proportional gap — scales with container and chevron count */
    padding: 2rem 0;    /* absorbs scale(1.85) vertical overshoot on 72px = ~29px each side */
}
/* VS row: subtle tint gradient */
.pd-vs-row {
    background: linear-gradient(180deg, color-mix(in srgb, var(--brand-secondary) 7%, var(--admin-bg)) 0%, transparent 100%);
    border-radius: 8px 8px 0 0;
}
/* CJ row: no background */
.pd-cj-row {
    background: transparent;
}
/* Each chevron wrapper occupies equal share of the row */
.wf-chevron-wrap {
    position: relative;
    flex: 1;
    min-width: 60px;     /* floor so text doesn't collapse on narrow screens */
    cursor: pointer;
    /* Gap on parent creates visible space between chevrons */
    z-index: 1;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 420ms cubic-bezier(0.34, 1.2, 0.64, 1);
    overflow: visible;
}
/* Hover: slight grow, high z so it sits above neighbours */
.wf-chevron-wrap:hover:not(.wf-chevron-wrap--active) {
    transform: scale(1.15);
    z-index: 5;
}
/* Active: Figma scale(2) — 1.85 suits admin panel width with 5 stages */
.wf-chevron-wrap--active {
    transform: scale(1.85);
    z-index: 50;
}
/* CJ row chevrons use a lighter tint to visually separate from VS row */
.wf-chevron-wrap--cj .wf-chevron__bg  { background: var(--brand-secondary); }
.wf-chevron-wrap--cj .wf-chevron__fill { background: color-mix(in srgb, var(--brand-secondary) 60%, white); }
.wf-chevron-wrap--cj-active .wf-chevron__bg  { background: var(--brand-secondary); opacity: 0.7; }
/* Ghost add-stage card (replaces old chevron ghost) */
.wf-stage-ghost {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 110px;
    height: 72px;
    margin-left: 0;
    flex-shrink: 0;
    border: 2px dashed var(--brand-secondary);
    border-radius: 6px;
    background: transparent;
    color: var(--brand-secondary);
    cursor: pointer;
    gap: 0.25rem;
    transition: background 0.2s;
}
.wf-stage-ghost:hover,
.wf-stage-ghost:focus {
    background: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
    outline: none;
}
.wf-stage-ghost__icon {
    font-size: 1.5rem;
    font-weight: 300;
    line-height: 1;
}
.wf-stage-ghost__label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: center;
    padding: 0 0.4rem;
}

/* ── Chevron shape (two-layer: bg = border colour, fill = fill colour) ── */
.wf-chevron {
    position: relative;
    height: 72px;   /* fixed — scale handles visual size change */
    user-select: none;
}

/* bg layer = border colour */
.wf-chevron__bg {
    position: absolute;
    inset: 0;
    background: var(--brand-primary);
    transition: background 0.25s;
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
}
/* fill layer = fill colour (inset 3px for border effect) */
.wf-chevron__fill {
    position: absolute;
    inset: 3px;
    background: var(--brand-secondary);
    transition: background 0.25s;
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%, 15px 50%);
}
/* First chevron: no left notch */
.wf-chevron-wrap:first-child .wf-chevron__bg {
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
}
.wf-chevron-wrap:first-child .wf-chevron__fill {
    clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 50%, calc(100% - 15px) 100%, 0 100%);
}

/* Active state: swap colours */
.wf-chevron-wrap--active .wf-chevron__bg  { background: var(--brand-secondary); }
.wf-chevron-wrap--active .wf-chevron__fill { background: var(--brand-primary); }

/* CJ row: reversed colour scheme — inactive=navy/teal-border, active=teal/navy-border */
.pd-cj-row .wf-chevron__bg   { background: var(--brand-secondary); }
.pd-cj-row .wf-chevron__fill  { background: var(--brand-primary); }
.pd-cj-row .wf-chevron-wrap--active .wf-chevron__bg   { background: var(--brand-primary); }
.pd-cj-row .wf-chevron-wrap--active .wf-chevron__fill  { background: var(--brand-secondary); }

/* Ghost fill: transparent so bg colour shows as a tinted block */
.wf-chevron-wrap--ghost .wf-chevron__fill { background: transparent; }

/* ── Chevron content overlay ─────────────────────────────── */
.wf-chevron__content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    gap: 0.2rem;
    pointer-events: none; /* inputs below handle events */
}
.wf-chevron__content--ghost {
    font-size: 1.6rem;
    font-weight: 300;
    color: var(--brand-primary);
    pointer-events: none;
}
/* Inactive text: white on teal */
.wf-chevron__label-input,
.wf-chevron__desc-input {
    pointer-events: auto;
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    text-align: center;
    cursor: text;
    color: #ffffff;
}
.wf-chevron__label-input {
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
}
.wf-chevron__desc-input {
    font-size: 0.70rem;
    font-weight: 400;
    opacity: 0.85;
    line-height: 1.2;
}
.wf-chevron__label-input::placeholder,
.wf-chevron__desc-input::placeholder {
    color: rgba(255,255,255,0.55);
}
/* Active state: light text on navy */
.wf-chevron-wrap--active .wf-chevron__label-input,
.wf-chevron-wrap--active .wf-chevron__desc-input {
    color: #ffffff;
}
.wf-chevron-wrap--active .wf-chevron__label-input::placeholder,
.wf-chevron-wrap--active .wf-chevron__desc-input::placeholder {
    color: rgba(179,214,242,0.55);
}

/* ── Chevron remove button ───────────────────────────────── */
.wf-chevron__remove {
    position: absolute;
    top: 3px;
    right: 26px; /* inside the chevron tip */
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.25);
    color: #fff;
    font-size: 0.7rem;
    line-height: 1;
    cursor: pointer;
    display: none; /* shown on hover */
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s;
}
.wf-chevron-wrap:hover .wf-chevron__remove {
    display: flex;
}
.wf-chevron__remove:hover {
    background: rgba(255,255,255,0.5);
}

/* ── Steps panels ─────────────────────────────────────────── */
.wf-steps-panel {
    margin-bottom: var(--admin-space-xl);
}
.wf-steps-panel--empty {
    padding: var(--admin-space-xl) 0;
}
.wf-empty-hint {
    color: var(--color-text-muted);
    font-size: 0.88rem;
}

/* ── Steps section heading ───────────────────────────────── */
.wf-steps-section {
    margin-bottom: var(--admin-space-lg);
}
.wf-steps-section__heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

/* ── Steps row (horizontal boxes + arrows) ───────────────── */
.wf-steps-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Individual step item ─────────────────────────────────── */
.wf-step-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--brand-primary);
    border: 3px solid var(--brand-primary);
    border-radius: 6px;
    padding: 0.6rem 0.85rem;
    min-width: 130px;
    position: relative;
    transition: border-color 0.2s;
}
.wf-step-item:hover {
    border-color: var(--brand-secondary);
}
.wf-step__input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--brand-tertiary);
    font-size: 0.82rem;
    font-weight: 600;
    width: 100%;
    min-width: 80px;
    text-align: center;
    cursor: text;
}
.wf-step__input::placeholder {
    color: rgba(179,214,242,0.5);
}
.wf-step__remove {
    background: none;
    border: none;
    color: rgba(179,214,242,0.6);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}
.wf-step__remove:hover {
    color: #ffffff;
}

/* ── Arrows between steps ──────────────────────────────────── */
.wf-step-arrow {
    color: var(--brand-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
    line-height: 1;
}

/* ── Ghost step (add new step) ─────────────────────────────── */
.wf-step-ghost {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 40px;
    border-radius: 6px;
    border: 2px dashed var(--brand-secondary);
    color: var(--brand-secondary);
    font-size: 1.3rem;
    font-weight: 300;
    cursor: pointer;
    background: transparent;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
    flex-shrink: 0;
}
.wf-step-ghost:hover,
.wf-step-ghost:focus {
    background: color-mix(in srgb, var(--brand-secondary) 10%, transparent);
    outline: none;
}

/* ── Accordion stage editor ───────────────────────────────── */
/* Accordion stage editor — card-with-accent-strip pattern */
.wf-accordions {
    counter-reset: stage-counter;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: var(--admin-space-xl);
}

.wf-accord {
    counter-increment: stage-counter;
    background: #ffffff;
    border: 1px solid var(--admin-border);
    border-left: 4px solid var(--admin-border);
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: border-left-color 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms cubic-bezier(0.22, 1, 0.36, 1);
    overflow: hidden;
}
.wf-accord:hover {
    border-left-color: color-mix(in srgb, var(--brand-secondary) 55%, var(--admin-border));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
}
.wf-accord--open {
    border-left-color: var(--brand-secondary);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* CSS counter stage badge — no PHP changes required */
.wf-accord__hdr::before {
    content: counter(stage-counter, decimal-leading-zero);
    flex-shrink: 0;
    min-width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--brand-secondary) 12%, white);
    color: var(--brand-secondary);
    border: 1.5px solid color-mix(in srgb, var(--brand-secondary) 30%, white);
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    transition: background 240ms, color 240ms, border-color 240ms;
}
.wf-accord--open .wf-accord__hdr::before {
    background: var(--brand-secondary);
    color: #ffffff;
    border-color: var(--brand-secondary);
}

.wf-accord__hdr {
    display: flex;
    align-items: center;
    gap: var(--admin-space-md);
    padding: 1rem 1rem 1rem 1.1rem;
    cursor: pointer;
    background: #ffffff;
    transition: background 240ms cubic-bezier(0.22, 1, 0.36, 1);
}
.wf-accord--open .wf-accord__hdr {
    background: color-mix(in srgb, var(--brand-secondary) 5%, white);
}

.wf-accord__toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--admin-border);
    background: transparent;
    cursor: pointer;
    padding: 0;
    color: var(--color-text-muted);
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 200ms, border-color 200ms, color 200ms;
}
.wf-accord__toggle::after {
    content: '+';
}
.wf-accord--open .wf-accord__toggle::after {
    content: '\2212';
}
.wf-accord--open .wf-accord__toggle {
    background: var(--brand-secondary);
    border-color: var(--brand-secondary);
    color: #ffffff;
}
.wf-accord__toggle:hover,
.wf-accord__toggle:focus-visible {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    outline: 2px solid color-mix(in srgb, var(--brand-secondary) 35%, transparent);
    outline-offset: 2px;
}
.wf-accord--open .wf-accord__toggle:hover,
.wf-accord--open .wf-accord__toggle:focus-visible {
    background: color-mix(in srgb, var(--brand-secondary) 80%, black);
    border-color: color-mix(in srgb, var(--brand-secondary) 80%, black);
    color: #ffffff;
}

.wf-accord__fields {
    flex: 1;
    display: flex;
    gap: var(--admin-space-xl);
    min-width: 0;
    flex-wrap: wrap;
}
.wf-accord__fieldset {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.wf-accord__sublabel {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    display: block;
    line-height: 1.2;
}
.wf-accord__input {
    font-size: 0.975rem;
    font-weight: 600;
    color: var(--color-text);
    border: none;
    border-bottom: 2px solid transparent;
    background: transparent;
    padding: 0.15rem 0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    font-family: inherit;
}
.wf-accord__input:focus { border-bottom-color: var(--brand-secondary); }
.wf-accord__input::placeholder { color: var(--color-text-muted); font-weight: 400; }
.wf-accord__subinput {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    border: none;
    border-bottom: 1px dashed transparent;
    background: transparent;
    padding: 0;
    outline: none;
    width: 100%;
    transition: border-color 0.2s;
    font-family: inherit;
}
.wf-accord__subinput:focus { border-bottom-color: var(--admin-border); }
.wf-accord__subinput::placeholder { color: var(--color-text-muted); }

.wf-accord__remove {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}
.wf-accord__hdr:hover .wf-accord__remove,
.wf-accord__remove:focus-visible { opacity: 1; }
.wf-accord__remove:hover { background: #fee2e2; color: #dc2626; }

/* Body — css-driven show/hide via max-height */
.wf-accord__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1), padding 320ms cubic-bezier(0.22, 1, 0.36, 1);
    padding: 0 1.5rem;
    border-top: 1px solid transparent;
}
.wf-accord--open .wf-accord__body {
    max-height: 900px;
    padding: 1.25rem 1.5rem;
    border-top-color: var(--admin-border);
    background: color-mix(in srgb, var(--brand-secondary) 5%, white);
}
.wf-accord__cols {
    display: flex;
    gap: var(--admin-space-xl);
}
.wf-accord__col { flex: 1; min-width: 0; }
.wf-accord__col-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}

/* Step list */
.wf-step-list {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.wf-step-entry {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--admin-bg);
    border: 1px solid var(--admin-border);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.2s;
}
.wf-step-entry:focus-within { border-color: var(--brand-secondary); }
.wf-step-entry__num {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
    flex-shrink: 0;
    width: 1.5rem;
    text-align: right;
}
.wf-step-entry__input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.92rem;
    color: var(--color-text);
    font-family: inherit;
}
.wf-step-entry__input::placeholder { color: var(--color-text-muted); }
.wf-step-entry__remove {
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.15s, color 0.15s;
}
.wf-step-entry:hover .wf-step-entry__remove,
.wf-step-entry__remove:focus-visible { opacity: 1; }
.wf-step-entry__remove:hover { color: #dc2626; }

.wf-add-step {
    align-self: flex-start;
    margin-top: 0.35rem;
    background: transparent;
    border: 1.5px dashed var(--brand-secondary);
    border-radius: 6px;
    color: var(--brand-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.35rem 0.9rem;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}
.wf-add-step:hover { background: color-mix(in srgb, var(--brand-secondary) 10%, transparent); }

.wf-add-stage-btn {
    margin-top: 0.75rem;
    background: transparent;
    border: 2px dashed var(--admin-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    cursor: pointer;
    font-family: inherit;
    width: 100%;
    text-align: center;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.wf-add-stage-btn:hover {
    border-color: var(--brand-secondary);
    color: var(--brand-secondary);
    background: color-mix(in srgb, var(--brand-secondary) 5%, white);
}

.wf-empty-hint {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 1.25rem 0;
    text-align: center;
}

/* ── Save / Error modal ──────────────────────────────────── */
.wf-save-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
}
.wf-save-modal--dismissed { opacity: 0; pointer-events: none; }
.wf-save-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(2px);
}
.wf-save-modal__card {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    padding: 2rem 2.5rem 1.75rem;
    max-width: 380px;
    width: 90%;
    text-align: center;
    animation: wf-modal-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes wf-modal-in {
    from { transform: translateY(24px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.wf-save-modal__close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    border: none;
    background: transparent;
    font-size: 1.4rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    padding: 0.15rem 0.3rem;
    border-radius: 4px;
    transition: background 0.15s, color 0.15s;
}
.wf-save-modal__close:hover { background: #f3f4f6; color: var(--color-text); }
.wf-save-modal__icon {
    font-size: 2.5rem;
    color: #22c55e;
    line-height: 1;
    margin-bottom: 0.6rem;
}
.wf-save-modal--error .wf-save-modal__icon { color: #ef4444; }
.wf-save-modal__title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}
.wf-save-modal__body {
    font-size: 0.92rem;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
    line-height: 1.5;
}
.wf-save-modal__ok { min-width: 100px; }

/* ── Actions bar ───────────────────────────────────────────── */
.wf-editor__actions {
    display: flex;
    gap: var(--admin-space-md);
    padding: var(--admin-space-md) var(--admin-space-xl);
    border-top: 1px solid var(--admin-border);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: sticky;
    bottom: 0;
    z-index: 100;
    margin-top: var(--admin-space-xl);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}

/* ── Version history ───────────────────────────────────────── */
.wf-history {
    margin-top: var(--admin-space-2xl);
    border-top: 1px solid var(--admin-border);
}
.wf-history__summary {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0;
    cursor: pointer;
    list-style: none;
    user-select: none;
}
.wf-history__summary::-webkit-details-marker { display: none; }
.wf-history__summary::marker { display: none; }
.wf-history__summary-label {
    font-size: 0.88rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
    flex: 1;
}
.wf-history__count {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--color-text-muted);
}
.wf-history__summary::after {
    content: '\203A';
    color: var(--color-text-muted);
    font-size: 1.3rem;
    font-weight: 300;
    display: inline-block;
    transform: rotate(0deg);
    transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 1;
}
details.wf-history[open] .wf-history__summary::after {
    transform: rotate(90deg);
}
.wf-history__body {
    padding-bottom: var(--admin-space-xl);
}
.wf-history__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.wf-history__table th,
.wf-history__table td {
    padding: 0.45rem 0.75rem;
    border-bottom: 1px solid var(--admin-border);
    text-align: left;
}
.wf-history__table th {
    font-weight: 600;
    color: var(--color-text-muted);
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
    .wf-stage-row {
        overflow-x: auto;
    }
    .wf-chevron-wrap {
        min-width: 90px;
    }
    .wf-steps-row {
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .wf-editor__meta {
        flex-direction: column;
    }
    .wf-chevron {
        height: 68px;
    }
    .wf-chevron__label-input {
        font-size: 0.72rem;
    }
    .wf-chevron__desc-input {
        display: none;
    }
}

/* ── Process Display View (pd-*) ────────────────────────────────────────── */

/* Chevron read-only label / description spans */
/* Scale handles apparent size — keep font sizes consistent, let scale do the work */
.wf-chevron__label-text {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
    pointer-events: none;
}
.wf-chevron__desc-text {
    display: block;
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    line-height: 1.2;
    pointer-events: none;
    transition: opacity 300ms ease, transform 300ms ease;
    opacity: 0.7;
    transform: translateY(2px);
}
.wf-chevron-wrap--active .wf-chevron__label-text,
.wf-chevron-wrap:hover .wf-chevron__label-text {
    color: #ffffff;
}
.wf-chevron-wrap--active .wf-chevron__desc-text,
.wf-chevron-wrap:hover .wf-chevron__desc-text {
    color: rgba(179, 214, 242, 0.9);
    opacity: 1;
    transform: translateY(0);
}
/* CJ row active: teal fill so text is white (not light-blue on teal) */
.pd-cj-row .wf-chevron-wrap--active .wf-chevron__label-text,
.pd-cj-row .wf-chevron-wrap:hover .wf-chevron__label-text {
    color: #ffffff;
}
.pd-cj-row .wf-chevron-wrap--active .wf-chevron__desc-text,
.pd-cj-row .wf-chevron-wrap:hover .wf-chevron__desc-text {
    color: rgba(255, 255, 255, 0.85);
}

/* Display header */
/* ── Process display (pd-) ─────────────────────────────────── */

.pd-display .admin-page__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.pd-header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}
.pd-edit-link {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: transparent;
    border: 1.5px solid var(--brand-secondary);
    border-radius: 6px;
    color: var(--brand-secondary);
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.pd-edit-link:hover {
    background: var(--brand-secondary);
    color: #fff;
}
.pd-version-label {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: color-mix(in srgb, var(--brand-secondary) 10%, white);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 25%, white);
    border-radius: 4px;
    font-size: 0.74rem;
    color: var(--brand-secondary);
    font-style: italic;
}
.pd-version-label--unpublished {
    background: #fff3cd;
    color: #6c4d00;
    border-color: #f0d070;
}

/* Stage panel — no card, let content breathe */
.pd-display .wf-steps-panel {
    margin-bottom: var(--admin-space-xl);
    padding: var(--admin-space-md) 0;
}

/* Customer Journey context strip */
.pd-cj-strip {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem 0.85rem;
    padding: 0.75rem 1.25rem;
    background: color-mix(in srgb, var(--brand-secondary) 8%, white);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 18%, white);
    border-radius: 8px;
    margin-bottom: 1.25rem;
}
.pd-cj-strip__label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-secondary);
    flex-shrink: 0;
    align-self: center;
    opacity: 0.8;
}
.pd-cj-strip__stage {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
    align-self: center;
}
.pd-cj-strip__desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    align-self: center;
}
.pd-cj-strip__behaviours {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: 100%;
    margin-top: 0.3rem;
}
.pd-behaviour-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.18rem 0.65rem;
    background: color-mix(in srgb, var(--brand-secondary) 12%, white);
    border: 1px solid color-mix(in srgb, var(--brand-secondary) 28%, white);
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--brand-secondary);
}

/* Workflow section */
.pd-workflow-section {
    padding: 0.25rem 0;
}
.pd-workflow-section__heading {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 0.9rem;
}

/* Workflow chain */
.pd-workflow-chain {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}
.pd-workflow-arrow {
    color: var(--brand-primary);
    font-size: 1.5rem;
    font-weight: 900;
    flex-shrink: 0;
    line-height: 1;
    padding: 0 0.35rem;
}
.pd-workflow-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--brand-primary);               /* navy fill */
    border: 2px solid var(--brand-secondary);        /* teal border */
    border-radius: 6px;
    color: #b3d6f2;                                  /* light blue text */
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    flex: 1;
    min-width: 0;
    transform: scale(1);
    transform-origin: center center;
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease, box-shadow 300ms ease;
}
.pd-workflow-tile:hover,
.pd-workflow-tile:focus {
    background: var(--brand-secondary);              /* teal fill (active) */
    border-color: var(--brand-primary);              /* navy border (active) */
    color: #ffffff;                                  /* white text (active) */
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    outline: none;
}
.pd-workflow-tile:active {
    transform: scale(1);
    box-shadow: none;
}

/* Behaviour chip — inverse of workflow tile (teal fill, navy border) */
.pd-behaviour-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.75rem;
    background: var(--brand-secondary);     /* teal fill */
    border: 2px solid var(--brand-primary); /* navy border */
    border-radius: 6px;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
    min-width: 0;
    transform: scale(1);
    transition: background 300ms ease, border-color 300ms ease, color 300ms ease, transform 300ms ease;
}
.pd-behaviour-chip:hover {
    background: var(--brand-primary);
    border-color: var(--brand-secondary);
    color: var(--brand-tertiary, #b3d6f2);
    transform: scale(1.03);
}

/* Substep content zones (between/below chevron rows) */
.pd-substep-zone {
    padding: 2rem 0;
    min-height: 5rem;
}
.pd-substep-zone__heading {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin: 0 0 0.75rem;
}
.pd-substep-panel:not([hidden]) {
    animation: pd-panel-in 220ms ease both;
}

/* Panel reveal animation */
@keyframes pd-panel-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Empty states */
.pd-row-empty {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    font-style: italic;
}
.pd-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--color-text-muted);
}
.pd-empty__message {
    margin-bottom: 0.75rem;
    font-size: 1rem;
}
.pd-empty__action {
    color: var(--brand-secondary);
    font-weight: 600;
    text-decoration: none;
}
.pd-empty__action:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .pd-display .admin-page__header {
        flex-direction: column;
        align-items: stretch;
    }
    .pd-header-actions {
        flex-wrap: wrap;
    }
    .wf-chevron__desc-text {
        display: none;
    }
}

