/* =========================================================
   KKC — Kehinde Kassim & Co. | Design System
   ========================================================= */

:root {
    /* Brand palette — sky-blue family (variable names retain --kkc-teal-* for backward compatibility) */
    --kkc-teal-900: #0b2545;      /* deep navy — footer, hero overlay, headings */
    --kkc-teal-800: #3b82c4;      /* primary brand — sky blue */
    --kkc-teal-700: #5ba4d6;      /* lighter sky — hovers, mid */
    --kkc-teal-50:  #e6f1fb;      /* very pale sky tint */

    --kkc-gold-600: #b8893d;      /* accent — links, underlines */
    --kkc-gold-500: #c9a25a;      /* buttons, highlights */
    --kkc-gold-100: #f5ecd9;      /* gold tints */

    --kkc-ink:      #16201f;      /* body text */
    --kkc-ink-soft: #4a5654;
    --kkc-muted:    #768683;
    --kkc-line:     #dde3e1;
    --kkc-bg:       #ffffff;
    --kkc-surface:  #ffffff;
    --kkc-header-bg: rgba(255,255,255,0.96);
    --kkc-bg-soft:  #f7f8f6;
    --kkc-bg-warm:  #fbf8f1;

    --kkc-danger:   #b3382c;
    --kkc-success:  #2f7a55;

    /* Typography */
    --font-serif:  "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
    --font-sans:   "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* Layout */
    --container: 1200px;
    --container-narrow: 880px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 18px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(11, 37, 69, 0.06), 0 1px 3px rgba(11, 37, 69, 0.04);
    --shadow-md: 0 6px 18px rgba(11, 37, 69, 0.10);
    --shadow-lg: 0 18px 48px rgba(11, 37, 69, 0.18);

    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* =========================================================
   Reset / base
   ========================================================= */

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

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

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.65;
    color: var(--kkc-ink);
    background: var(--kkc-bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: var(--kkc-teal-800);
    text-decoration: none;
    transition: color 0.2s var(--ease);
}
a:hover { color: var(--kkc-gold-600); }

h1, h2, h3, h4, h5 {
    font-family: var(--font-serif);
    color: var(--kkc-teal-900);
    line-height: 1.18;
    margin: 0 0 0.5em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.55rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

p.lead {
    font-size: 1.2rem;
    color: var(--kkc-ink-soft);
    line-height: 1.6;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--kkc-gold-600);
    margin-bottom: 1rem;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

section { padding: 96px 0; }

@media (max-width: 720px) {
    section { padding: 64px 0; }
    body { font-size: 16px; }
}

.section-head {
    max-width: 740px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head--left { margin-left: 0; text-align: left; }

hr.rule {
    border: 0;
    border-top: 1px solid var(--kkc-line);
    margin: 56px 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 14px 26px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.22s var(--ease);
    line-height: 1;
}

.btn-primary {
    background: var(--kkc-teal-800);
    color: #fff;
    border-color: var(--kkc-teal-800);
}
.btn-primary:hover {
    background: var(--kkc-teal-900);
    border-color: var(--kkc-teal-900);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-gold {
    background: var(--kkc-gold-500);
    color: var(--kkc-teal-900);
    border-color: var(--kkc-gold-500);
}
.btn-gold:hover {
    background: var(--kkc-gold-600);
    border-color: var(--kkc-gold-600);
    color: #fff;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--kkc-teal-800);
    border-color: var(--kkc-teal-800);
}
.btn-outline:hover {
    background: var(--kkc-teal-800);
    color: #fff;
}

.btn-outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--kkc-surface);
    color: var(--kkc-teal-900);
    border-color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--kkc-teal-800);
    padding: 8px 0;
}
.btn-ghost::after { content: " \2192"; transition: transform 0.2s var(--ease); }
.btn-ghost:hover { color: var(--kkc-gold-600); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* =========================================================
   Header / Navigation
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--kkc-header-bg);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid var(--kkc-line);
    transition: box-shadow 0.2s var(--ease);
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(11,59,58,0.07); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--kkc-teal-900);
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.brand:hover { color: var(--kkc-teal-900); }

.brand-logo { height: 42px; width: auto; display: block; flex-shrink: 0; }
.site-footer .brand-logo { height: 48px; margin-bottom: 6px; }
@media (max-width: 600px) { .brand-logo { height: 36px; } }

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: var(--kkc-teal-800);
    color: var(--kkc-gold-500);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.04em;
    flex-shrink: 0;
}

.brand-text { line-height: 1.1; }
.brand-text small {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--kkc-muted);
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--kkc-ink);
    border-radius: var(--radius-sm);
}
.nav-links a:hover,
.nav-links a.is-active {
    color: var(--kkc-teal-800);
    background: var(--kkc-teal-50);
}

.nav-cta { margin-left: 12px; }

.nav-toggle {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--kkc-teal-900);
    border-radius: 2px;
    position: relative;
    transition: all 0.22s var(--ease);
}
.nav-toggle span { margin: 0 auto; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after  { top:  7px; }

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

@media (max-width: 960px) {
    .nav-toggle { display: block; }
    .nav-links {
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--kkc-surface);
        padding: 16px 24px 24px;
        gap: 4px;
        border-bottom: 1px solid var(--kkc-line);
        box-shadow: var(--shadow-md);
        transform: translateY(-12px);
        opacity: 0;
        pointer-events: none;
        transition: all 0.22s var(--ease);
    }
    .nav-links.is-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links a { padding: 12px 16px; }
    .nav-cta { margin-left: 0; margin-top: 8px; }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
    position: relative;
    background:
        radial-gradient(120% 80% at 80% 10%, rgba(127, 188, 230, 0.30), transparent 55%),
        linear-gradient(155deg, var(--kkc-teal-900) 0%, #1e5b9c 55%, var(--kkc-teal-800) 100%);
    color: #fff;
    padding: 70px 0 58px;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at 70% 40%, black, transparent 70%);
    pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 { color: #fff; max-width: 22ch; }
.hero h1 em {
    font-style: italic;
    color: var(--kkc-gold-500);
    font-weight: 500;
}
/* Rotating service word in the hero headline */
.word-rotator {
    display: inline-block;
    white-space: nowrap;
    text-align: left;
    transition: width 0.45s var(--ease);
}
.hero h1 .wr-word {
    display: inline-block;
    transition: transform 0.45s var(--ease), opacity 0.45s var(--ease);
}
.hero h1 .wr-word.is-out { opacity: 0; transform: translateY(-0.45em); }
.hero h1 .wr-word.is-in-start { opacity: 0; transform: translateY(0.45em); transition: none; }

.hero .lead {
    color: rgba(255,255,255,0.85);
    max-width: 58ch;
    font-size: 1.18rem;
}

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

.hero-meta {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-meta div strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--kkc-gold-500);
    font-weight: 600;
    line-height: 1;
    margin-bottom: 6px;
}
.hero-meta div span {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.05em;
}
@media (max-width: 720px) {
    .hero { padding: 60px 0 48px; }
    .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* Page hero (sub-pages) */
.page-hero {
    background: linear-gradient(150deg, var(--kkc-teal-900), var(--kkc-teal-800));
    color: #fff;
    padding: 110px 0 80px;
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,90,0.18), transparent 70%);
    pointer-events: none;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.85); max-width: 60ch; }
.page-hero .breadcrumb {
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    margin-bottom: 1.2rem;
}
.page-hero .breadcrumb a { color: var(--kkc-gold-500); }

/* =========================================================
   Service cards
   ========================================================= */

.service-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
}
.service-grid > .service-card {
    flex: 0 1 calc((100% - 56px) / 3);
    max-width: calc((100% - 56px) / 3);
}
@media (max-width: 900px) {
    .service-grid > .service-card { flex-basis: calc((100% - 28px) / 2); max-width: calc((100% - 28px) / 2); }
}
@media (max-width: 560px) {
    .service-grid > .service-card { flex-basis: 100%; max-width: 100%; }
}

.service-card {
    background: var(--kkc-surface);
    border: 1px solid var(--kkc-line);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    transition: all 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: var(--kkc-gold-500);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--kkc-teal-700);
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--kkc-teal-50);
    color: var(--kkc-teal-800);
    display: grid;
    place-items: center;
    margin-bottom: 20px;
    flex-shrink: 0;
}
.service-card .icon svg { width: 28px; height: 28px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p {
    color: var(--kkc-ink-soft);
    margin-bottom: 20px;
    flex: 1;
}

/* Why-choose cards */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 28px;
}
.value-card {
    background: var(--kkc-bg-soft);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    border-left: 3px solid var(--kkc-gold-500);
}
.value-card h4 {
    color: var(--kkc-teal-800);
    margin-bottom: 12px;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.value-card p {
    color: var(--kkc-ink-soft);
    font-size: 0.95rem;
    margin: 0;
}

/* =========================================================
   Stats / Industries / Testimonials
   ========================================================= */

.section--soft { background: var(--kkc-bg-soft); }
.section--warm { background: var(--kkc-bg-warm); }
.section--dark {
    background: var(--kkc-teal-900);
    color: rgba(255,255,255,0.85);
}
.section--dark h2 { color: #fff; }
.section--dark .eyebrow { color: var(--kkc-gold-500); }

.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 36px;
    text-align: center;
}
.stat strong {
    display: block;
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--kkc-teal-800);
    line-height: 1;
    margin-bottom: 8px;
    font-weight: 600;
}
.stat span {
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--kkc-muted);
}
.section--dark .stat strong { color: var(--kkc-gold-500); }
.section--dark .stat span { color: rgba(255,255,255,0.7); }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.industry-card {
    background: var(--kkc-surface);
    border: 1px solid var(--kkc-line);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: all 0.22s var(--ease);
}
.industry-card:hover {
    border-color: var(--kkc-teal-700);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.industry-card .icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--kkc-gold-100);
    color: var(--kkc-gold-600);
    display: grid;
    place-items: center;
    margin-bottom: 16px;
}
.industry-card h4 {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--kkc-teal-900);
    margin-bottom: 8px;
}
.industry-card p {
    color: var(--kkc-ink-soft);
    font-size: 0.92rem;
    margin: 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}
.testimonial {
    background: var(--kkc-surface);
    border-radius: var(--radius-md);
    padding: 36px 32px;
    border: 1px solid var(--kkc-line);
    position: relative;
}
.testimonial::before {
    content: "\201C";
    position: absolute;
    top: 8px;
    left: 18px;
    font-family: var(--font-serif);
    font-size: 5rem;
    color: var(--kkc-gold-500);
    line-height: 1;
    opacity: 0.4;
}
.testimonial blockquote {
    margin: 0 0 24px;
    color: var(--kkc-ink);
    font-size: 1.02rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}
.testimonial cite {
    font-style: normal;
    color: var(--kkc-teal-800);
    font-weight: 600;
}
.testimonial cite span {
    display: block;
    color: var(--kkc-muted);
    font-weight: 400;
    font-size: 0.9rem;
    margin-top: 2px;
}

/* =========================================================
   Team
   ========================================================= */

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 280px));
    justify-content: center;
    gap: 28px;
}
.team-card {
    text-align: center;
}
.team-card .avatar {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--kkc-teal-700), var(--kkc-teal-900));
    color: var(--kkc-gold-500);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 4px solid #fff;
}
.team-card h4 {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    margin-bottom: 4px;
    color: var(--kkc-teal-900);
}
.team-card .role {
    color: var(--kkc-gold-600);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
}

/* =========================================================
   Insights / Knowledge Hub
   ========================================================= */

.search-bar {
    display: flex;
    align-items: center;
    background: var(--kkc-surface);
    border: 1.5px solid var(--kkc-line);
    border-radius: var(--radius-md);
    padding: 6px 6px 6px 18px;
    max-width: 640px;
    margin: 0 auto 32px;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s var(--ease);
}
.search-bar:focus-within { border-color: var(--kkc-teal-800); }
.search-bar svg { color: var(--kkc-muted); flex-shrink: 0; }
.search-bar input {
    flex: 1;
    padding: 14px 12px;
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--kkc-ink);
    outline: none;
}
.search-bar input::placeholder { color: var(--kkc-muted); }

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}
.chip {
    background: var(--kkc-surface);
    border: 1px solid var(--kkc-line);
    color: var(--kkc-ink-soft);
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s var(--ease);
    font-family: inherit;
}
.chip:hover { border-color: var(--kkc-teal-700); color: var(--kkc-teal-800); }
.chip.is-active {
    background: var(--kkc-teal-800);
    border-color: var(--kkc-teal-800);
    color: #fff;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 32px;
}

.article-card {
    background: var(--kkc-surface);
    border: 1px solid var(--kkc-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.22s var(--ease);
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--kkc-teal-700);
}
.article-card a { color: inherit; display: flex; flex-direction: column; height: 100%; }

.article-thumb {
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, var(--kkc-teal-800), var(--kkc-teal-900));
    color: var(--kkc-gold-500);
    display: grid;
    place-items: center;
    font-family: var(--font-serif);
    font-size: 1.5rem;
    padding: 24px;
    text-align: center;
    line-height: 1.25;
    position: relative;
}
.article-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}
/* Dark scrim so the title stays readable on light gradients and photos */
.article-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(11,37,69,0.34) 0%, rgba(11,37,69,0.40) 55%, rgba(11,37,69,0.66) 100%);
    pointer-events: none;
}
.article-thumb > span {
    position: relative;
    z-index: 2;
    color: #fff;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0,0,0,0.45), 0 6px 22px rgba(11,37,69,0.55);
}
.article-thumb--tax       { background: linear-gradient(135deg, #3b82c4, #1e5b9c); }
.article-thumb--audit     { background: linear-gradient(135deg, #5ba4d6, #3b82c4); }
.article-thumb--forensic  { background: linear-gradient(135deg, #0b2545, #1e5b9c); }
.article-thumb--advisory  { background: linear-gradient(135deg, #b8893d, #8a651f); color: #fff; }
.article-thumb--tech      { background: linear-gradient(135deg, #7fbce6, #3b82c4); }

.article-body {
    padding: 24px 26px 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--kkc-muted);
    margin-bottom: 12px;
}
.article-meta .tag {
    color: var(--kkc-gold-600);
    font-weight: 600;
}
.article-card h3 {
    font-size: 1.2rem;
    line-height: 1.3;
    margin-bottom: 10px;
}
.article-card p {
    color: var(--kkc-ink-soft);
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 16px;
}
.article-card .read-more {
    color: var(--kkc-teal-800);
    font-weight: 600;
    font-size: 0.92rem;
    align-self: flex-start;
}
.article-card .read-more::after { content: " \2192"; transition: transform 0.18s var(--ease); display: inline-block; }
.article-card:hover .read-more::after { transform: translateX(4px); }

.no-results {
    text-align: center;
    padding: 60px 20px;
    color: var(--kkc-muted);
}

/* Article page */
.article-page {
    padding: 64px 0 96px;
}
.article-page .container { max-width: 760px; }
.article-page h1 { margin-top: 16px; margin-bottom: 24px; }
.article-page .article-meta {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--kkc-line);
}
.article-page p { font-size: 1.08rem; color: var(--kkc-ink); line-height: 1.75; }
.article-page h2 {
    font-size: 1.7rem;
    margin-top: 40px;
    margin-bottom: 16px;
}
.article-page h3 {
    font-size: 1.3rem;
    margin-top: 32px;
}
.article-page ul, .article-page ol {
    margin: 0 0 1em;
    padding-left: 1.5em;
}
.article-page ul li, .article-page ol li {
    margin-bottom: 0.5em;
    color: var(--kkc-ink);
}
.article-page blockquote {
    margin: 32px 0;
    padding: 20px 28px;
    background: var(--kkc-bg-soft);
    border-left: 4px solid var(--kkc-gold-500);
    color: var(--kkc-ink-soft);
    font-style: italic;
    font-family: var(--font-serif);
    font-size: 1.15rem;
}
.article-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--kkc-teal-800);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 16px;
}
.article-page .back-link::before { content: "\2190"; }

/* =========================================================
   Service detail page (rich content sections)
   ========================================================= */

.content-section {
    padding: 96px 0;
}
.content-section h2 {
    margin-bottom: 1rem;
}
.content-section .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 56px;
    align-items: start;
}
.content-section ul.check-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.content-section ul.check-list li {
    padding-left: 32px;
    margin-bottom: 14px;
    position: relative;
    color: var(--kkc-ink);
    line-height: 1.55;
}
.content-section ul.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--kkc-teal-50);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82c4' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}

.subservices {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}
.subservice {
    padding: 28px 26px;
    border: 1px solid var(--kkc-line);
    border-radius: var(--radius-md);
    background: var(--kkc-surface);
}
.subservice h4 {
    color: var(--kkc-teal-800);
    font-family: var(--font-serif);
    font-size: 1.2rem;
    margin-bottom: 10px;
}
.subservice p {
    color: var(--kkc-ink-soft);
    margin: 0;
    font-size: 0.96rem;
}

/* =========================================================
   CTA strip
   ========================================================= */

.cta-strip {
    background: linear-gradient(135deg, var(--kkc-teal-900), var(--kkc-teal-800));
    color: #fff;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-strip::before {
    content: "";
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,162,90,0.16), transparent 65%);
    top: -200px;
    right: -120px;
}
.cta-strip .container { position: relative; }
.cta-strip h2 { color: #fff; margin-bottom: 16px; }
.cta-strip p {
    color: rgba(255,255,255,0.85);
    max-width: 50ch;
    margin: 0 auto 28px;
    font-size: 1.1rem;
}
.cta-strip .btn-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* =========================================================
   Contact / Forms
   ========================================================= */

.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 880px) {
    .contact-grid { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 20px; }
.form-field label {
    display: block;
    font-size: 0.86rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--kkc-ink-soft);
    margin-bottom: 8px;
}
.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--kkc-line);
    border-radius: var(--radius-sm);
    background: var(--kkc-surface);
    font: inherit;
    color: var(--kkc-ink);
    transition: border-color 0.18s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--kkc-teal-800);
    box-shadow: 0 0 0 4px rgba(59, 130, 196, 0.18);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.contact-card {
    background: var(--kkc-bg-soft);
    border-radius: var(--radius-md);
    padding: 32px;
    border-left: 3px solid var(--kkc-gold-500);
}
.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: var(--kkc-teal-900);
    margin-bottom: 16px;
}
.contact-card p {
    margin-bottom: 8px;
    color: var(--kkc-ink-soft);
    font-size: 0.95rem;
}
.contact-card .icon-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-card .icon-row svg {
    flex-shrink: 0;
    color: var(--kkc-teal-800);
    margin-top: 3px;
}
.contact-card .icon-row strong {
    display: block;
    color: var(--kkc-teal-900);
    margin-bottom: 4px;
    font-size: 0.95rem;
}
.contact-card .icon-row a { color: var(--kkc-ink); }
.contact-card .icon-row a:hover { color: var(--kkc-teal-800); }

.map-embed {
    margin-top: 28px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--kkc-line);
    height: 320px;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
    background: var(--kkc-teal-900);
    color: rgba(255,255,255,0.78);
    padding: 72px 0 24px;
    font-size: 0.93rem;
}
.site-footer h5 {
    color: #fff;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (max-width: 880px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}
@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}

.site-footer .brand { color: #fff; }
.site-footer .brand-text small { color: rgba(255,255,255,0.55); }
.site-footer p { color: rgba(255,255,255,0.72); margin-bottom: 12px; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { margin-bottom: 10px; }
.site-footer ul a { color: rgba(255,255,255,0.78); font-size: 0.92rem; }
.site-footer ul a:hover { color: var(--kkc-gold-500); }

.socials {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
    display: grid;
    place-items: center;
    transition: all 0.2s var(--ease);
}
.socials a:hover {
    background: var(--kkc-gold-500);
    color: var(--kkc-teal-900);
}
.socials svg { width: 18px; height: 18px; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.55);
}
.footer-bottom a { color: rgba(255,255,255,0.55); margin-left: 18px; }
.footer-bottom a:hover { color: #fff; }

/* =========================================================
   Utility / Animations
   ========================================================= */

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.fade-in.is-visible {
    opacity: 1;
    transform: none;
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-md { margin-top: 32px; }
.mb-md { margin-bottom: 32px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== Leadership photo cards ===== */
a.team-card {
    display: block;
    text-decoration: none;
    background: var(--kkc-surface);
    border: 1px solid var(--kkc-line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding-bottom: 22px;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
a.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ef; }
.team-photo { aspect-ratio: 4 / 5; background: var(--kkc-bg-soft); overflow: hidden; }
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
a.team-card h4 { margin-top: 20px; padding: 0 16px; }
a.team-card .role { padding: 0 16px; }
a.team-card .creds { margin: 8px 16px 0; font-size: .8rem; color: var(--kkc-muted); line-height: 1.5; }
.team-link {
    display: inline-flex; align-items: center; gap: 6px;
    margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--kkc-teal-800);
}
.team-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
a.team-card:hover .team-link { color: var(--kkc-gold-600); }
a.team-card:hover .team-link svg { transform: translateX(4px); }

/* ===== Leadership profile (bio) page ===== */
.profile { display: grid; grid-template-columns: 330px 1fr; gap: 50px; align-items: start; }
.profile-media { position: sticky; top: 100px; }
.profile-media img { width: 100%; border-radius: 16px; box-shadow: var(--shadow-md); display: block; background: var(--kkc-bg-soft); }
.profile-creds { margin-top: 14px; font-size: .85rem; color: var(--kkc-muted); text-align: center; letter-spacing: .01em; line-height: 1.6; }
.profile-body h2 { margin: 8px 0 20px; }
.profile-body p { margin-bottom: 16px; color: var(--kkc-ink-soft); }
.profile-body .btn { margin-top: 12px; }
@media (max-width: 760px) {
    .profile { grid-template-columns: 1fr; gap: 28px; }
    .profile-media { position: static; max-width: 300px; margin: 0 auto; }
}

/* ============================================================
   Home hero slider
   ============================================================ */
.home-hero { position: relative; }
.hero-slider { position: relative; min-height: min(640px, 82vh); overflow: hidden; background: var(--kkc-teal-900); }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    display: flex; align-items: center;
    opacity: 0; visibility: hidden;
    transition: opacity 1s var(--ease), visibility 1s;
    will-change: opacity;
}
/* Ken Burns: zoom a pseudo-element that inherits the slide image,
   so background-size: cover cropping is never disturbed */
.hero-slide::before {
    content: "";
    position: absolute; inset: 0;
    background-image: inherit;
    background-size: cover; background-position: center;
    transform: scale(1);
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide.is-active::before { animation: heroZoom 9s var(--ease) forwards; }
@keyframes heroZoom {
    from { transform: scale(1); }
    to   { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-active::before { animation: none; }
}
.hero-slide-overlay {
    position: absolute; inset: 0;
    background:
        linear-gradient(0deg, rgba(8,22,46,.55) 0%, transparent 30%),
        linear-gradient(100deg, rgba(8,22,46,.94) 0%, rgba(8,22,46,.78) 42%, rgba(8,22,46,.28) 78%, rgba(8,22,46,.15) 100%);
}
.hero-slide-content { position: relative; z-index: 2; color: #fff; max-width: 680px; padding: 88px 0 96px; }
.hero-slide-content .eyebrow { display: block; margin-bottom: 14px; letter-spacing: .14em; }
.hero-slide-content h1 { color: #fff; max-width: 17ch; line-height: 1.06; margin: 0 0 18px; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.6rem); text-wrap: balance; }
.hero-slide-content h1 em { color: var(--kkc-gold-500); font-style: italic; }
.hero-slide-content .lead { color: rgba(255,255,255,.92); max-width: 52ch; margin: 0 0 28px; line-height: 1.65; font-size: 1.12rem; }
.hero-slide-content .hero-actions { margin-top: 0; }

/* Content entrance on slide change */
.hero-slide .hero-slide-content > * { opacity: 0; transform: translateY(18px); }
.hero-slide.is-active .hero-slide-content > * {
    opacity: 1; transform: none;
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.hero-slide.is-active .hero-slide-content > *:nth-child(1) { transition-delay: .15s; }
.hero-slide.is-active .hero-slide-content > *:nth-child(2) { transition-delay: .28s; }
.hero-slide.is-active .hero-slide-content > *:nth-child(3) { transition-delay: .42s; }
.hero-slide.is-active .hero-slide-content > *:nth-child(4) { transition-delay: .56s; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide .hero-slide-content > * { opacity: 1; transform: none; transition: none; }
}

.hero-arrow {
    position: absolute; top: calc(50% - 30px); transform: translateY(-50%); z-index: 4;
    width: 46px; height: 46px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.4); background: rgba(8,22,46,.32); color: #fff;
    font-size: 1.7rem; line-height: 1; cursor: pointer; display: grid; place-items: center;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.hero-arrow:hover { background: var(--kkc-gold-500); border-color: var(--kkc-gold-500); color: var(--kkc-teal-900); }
.hero-arrow.prev { left: 20px; } .hero-arrow.next { right: 20px; }

.hero-dots { position: absolute; bottom: 22px; left: 0; right: 0; z-index: 4; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.45); cursor: pointer; transition: all .25s var(--ease); }
.hero-dots button:hover { background: rgba(255,255,255,.75); }
.hero-dots button.is-active { background: var(--kkc-gold-500); width: 28px; border-radius: 6px; }

.hero-stats { background: var(--kkc-teal-900); border-top: 1px solid rgba(255,255,255,.08); }
.hero-stats .hero-meta { margin: 0; padding: 30px 0; border-top: 0; }
.hero-stats .hero-meta div { text-align: left; }

@media (max-width: 880px) {
    .hero-slider { min-height: 520px; }
    .hero-slide-content { max-width: none; padding: 64px 0 80px; }
    .hero-slide-overlay {
        background:
            linear-gradient(0deg, rgba(8,22,46,.55) 0%, transparent 35%),
            linear-gradient(100deg, rgba(8,22,46,.94) 0%, rgba(8,22,46,.84) 55%, rgba(8,22,46,.62) 100%);
    }
    .hero-arrow { display: none; }
}
@media (max-width: 600px) {
    .hero-slider { min-height: 480px; }
    .hero-slide-content h1 { font-size: clamp(1.9rem, 1.4rem + 3.4vw, 2.4rem); }
    .hero-stats .hero-meta { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}

/* ============================================================
   Services dropdown in header
   ============================================================ */
.has-dropdown { position: relative; }
.has-dropdown > a .caret { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; transition: transform .2s var(--ease); }
.dropdown {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 238px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--kkc-surface); border: 1px solid var(--kkc-line); border-radius: var(--radius-md); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 60;
}
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.has-dropdown:hover > a .caret, .has-dropdown:focus-within > a .caret { transform: rotate(180deg); }
.dropdown li { margin: 0; }
.dropdown a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; white-space: nowrap; color: var(--kkc-ink); }
.dropdown a:hover { background: var(--kkc-teal-50); color: var(--kkc-teal-800); }
.dropdown .dropdown-sep { border-top: 1px solid var(--kkc-line); margin-top: 6px; padding-top: 6px; }
.dropdown .dropdown-sep a { color: var(--kkc-gold-600); font-weight: 600; }

@media (max-width: 960px) {
    .nav-links { max-height: calc(100vh - 76px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
    .has-dropdown > a .caret { display: inline-block; }
    .dropdown {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; border: 0; min-width: 0; background: transparent;
        padding: 0; margin: 0; max-height: 0; overflow: hidden;
        transition: max-height .28s var(--ease);
    }
    .has-dropdown.submenu-open > .dropdown { max-height: 420px; padding: 2px 0 6px 10px; }
    .has-dropdown.submenu-open > a .caret { transform: rotate(180deg); }
    .dropdown a { padding: 10px 16px; color: var(--kkc-muted); font-size: .9rem; }
}

/* ============================================================
   Service cards with image headers
   ============================================================ */
.service-card { padding: 0; }
.service-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--kkc-bg-soft); }
.service-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.service-card:hover .service-media img { transform: scale(1.06); }
.service-body { display: flex; flex-direction: column; flex: 1; padding: 24px 26px 28px; }
.service-body .btn-ghost { margin-top: auto; align-self: flex-start; padding-top: 6px; }

/* ---- Hero slider fitment fixes ---- */
.home-hero { padding: 0; }                 /* cancel global section padding (was the white gap) */
.hero-arrow { display: none; }             /* hide prev/next buttons on the banner */
.hero-slider { min-height: 540px; }
@media (max-width: 880px) { .hero-slider { min-height: 470px; } }
@media (max-width: 600px) { .hero-slider { min-height: 430px; } }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }      /* still cycles, just no fade animation */
}

/* ============================================================
   Mobile polish & overflow safeguards
   ============================================================ */
/* Wide grid tracks must never exceed the viewport on small phones */
.testimonial-grid,
.content-section .grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.article-grid           { grid-template-columns: repeat(auto-fill, minmax(min(100%, 310px), 1fr)); }
.subservices            { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

@media (max-width: 600px) {
    .brand { font-size: 1.1rem; }
    .page-hero { padding: 84px 0 56px; }
    .section-head { margin-bottom: 36px; }
    .cta-strip { padding: 60px 0; }
}
@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; text-align: center; }
}
@media (max-width: 380px) {
    .brand-text small { font-size: 0.58rem; letter-spacing: 0.16em; }
}

/* ============================================================
   Sector cards with image headers (home + industries page)
   ============================================================ */
.industry-card { padding: 0; overflow: hidden; display: block; }
.industry-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--kkc-bg-soft); }
.industry-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s var(--ease); }
.industry-card:hover .industry-media img { transform: scale(1.06); }
.industry-body { padding: 22px 24px 26px; }

/* ===== About — Vision & Mission (cohesive split banner, Norrenberger-style) ===== */
.about-intro { max-width: 900px; margin: 0 auto; text-align: center; }
.about-intro h2 { margin-top: 6px; }

.vm-head { text-align: center; max-width: 720px; margin: 52px auto 26px; }
.vm-head h2 { margin-top: 6px; }

.vm-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.vm-panel {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 340px;
    padding: 52px 48px;
    overflow: hidden;
}
.vm-panel__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.7s var(--ease);
}
.vm-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11,37,69,0.86) 0%, rgba(11,37,69,0.90) 100%);
}
.vm-panel:hover .vm-panel__img { transform: scale(1.06); }
.vm-panel + .vm-panel::before {
    content: "";
    position: absolute;
    left: 0; top: 12%; bottom: 12%;
    width: 1px;
    background: rgba(255,255,255,0.16);
    z-index: 2;
}
.vm-panel__inner { position: relative; z-index: 1; max-width: 44ch; }
.vm-panel__inner .eyebrow {
    color: var(--kkc-gold-500);
    font-size: 1.55rem;
    font-family: var(--font-serif);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: none;
    margin-bottom: 0.55rem;
}
.vm-panel__inner h3 {
    color: #fff;
    font-size: 1.9rem;
    line-height: 1.15;
    margin: 10px 0 14px;
}
.vm-panel__inner p {
    color: rgba(255,255,255,0.90);
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

@media (max-width: 760px) {
    .vm-banner { grid-template-columns: 1fr; }
    .vm-panel { min-height: 290px; padding: 40px 30px; }
    .vm-panel + .vm-panel::before { left: 12%; right: 12%; top: 0; bottom: auto; width: auto; height: 1px; }
    .vm-panel__inner h3 { font-size: 1.6rem; }
}

/* ============================================================
   Page hero with photo background
   ============================================================ */
.page-hero--img {
    background:
        linear-gradient(100deg, rgba(8,22,46,.93) 0%, rgba(8,22,46,.80) 45%, rgba(8,22,46,.55) 100%),
        var(--ph-img) center 32% / cover no-repeat,
        linear-gradient(150deg, var(--kkc-teal-900), var(--kkc-teal-800));
}
.page-hero--img::after { display: none; }

/* Anchor offsets under the sticky header */
[id] { scroll-margin-top: 92px; }

/* Back to top */
.back-to-top {
    position: fixed; right: 22px; bottom: 22px; z-index: 70;
    width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: var(--kkc-teal-800); color: #fff; cursor: pointer;
    display: grid; place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s, background .2s var(--ease);
}
.back-to-top svg { width: 20px; height: 20px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { background: var(--kkc-gold-600); }
@media (max-width: 600px) { .back-to-top { right: 14px; bottom: 14px; width: 42px; height: 42px; } }

/* Mailto form confirmation note */
.form-note { margin-top: 14px; font-size: .92rem; color: var(--kkc-success); }

/* Reading progress bar (insight articles) */
.read-progress {
    position: fixed; top: 0; left: 0; z-index: 80;
    height: 3px; width: 0;
    background: linear-gradient(90deg, var(--kkc-gold-600), var(--kkc-gold-500));
    transition: width .1s linear;
    pointer-events: none;
}

/* =========================================================
   DARK MODE — main website
   Toggled from the header; preference saved per browser.
   ========================================================= */
html.theme-dark {
    color-scheme: dark;
}
html.theme-dark body {
    --kkc-surface:  #16202e;
    --kkc-bg:       #16202e;
    --kkc-bg-soft:  #0f1620;
    --kkc-bg-warm:  #141d2b;
    --kkc-header-bg: rgba(15,22,32,0.92);

    --kkc-ink:      #e8edf4;
    --kkc-ink-soft: #b8c4d3;
    --kkc-muted:    #8595a9;
    --kkc-line:     #29354a;

    --kkc-teal-50:  rgba(91,164,214,.14);
    --kkc-gold-100: rgba(201,162,90,.16);

    --shadow-sm: 0 1px 2px rgba(0,0,0,.35), 0 1px 3px rgba(0,0,0,.28);
    --shadow-md: 0 6px 18px rgba(0,0,0,.42);
    --shadow-lg: 0 18px 48px rgba(0,0,0,.55);

    background: var(--kkc-bg-soft);
    color: var(--kkc-ink);
}
html.theme-dark h1, html.theme-dark h2, html.theme-dark h3,
html.theme-dark h4, html.theme-dark h5 { color: var(--kkc-ink); }
/* keep light text on the always-dark sections */
html.theme-dark .page-hero h1, html.theme-dark .hero-slide-content h1,
html.theme-dark .cta-strip h2, html.theme-dark .vm-panel__inner h3,
html.theme-dark .site-footer h5 { color: #fff; }
html.theme-dark a { color: var(--kkc-teal-700); }
html.theme-dark a:hover { color: var(--kkc-gold-500); }
html.theme-dark .site-header { border-bottom-color: var(--kkc-line); }
html.theme-dark .site-header.is-scrolled { box-shadow: 0 4px 16px rgba(0,0,0,.35); }
html.theme-dark .btn-gold, html.theme-dark .btn-gold:hover { color: #211403; }
html.theme-dark img { opacity: .94; }
html.theme-dark .hero-slide img, html.theme-dark .lib-media img { opacity: 1; }
html.theme-dark input, html.theme-dark select, html.theme-dark textarea {
    background: var(--kkc-bg-warm); color: var(--kkc-ink); border-color: var(--kkc-line);
}
html.theme-dark ::placeholder { color: var(--kkc-muted); }
html.theme-dark .form-note { color: #74d1a2; }
html.theme-dark .read-progress { box-shadow: 0 0 8px rgba(201,162,90,.4); }
html.theme-dark .back-to-top { background: var(--kkc-teal-800); }
html.theme-dark .back-to-top:hover { background: var(--kkc-gold-600); }

/* header theme toggle */
.theme-btn {
    background: none; border: 1px solid var(--kkc-line); border-radius: 50%;
    width: 38px; height: 38px; display: grid; place-items: center; flex: none;
    cursor: pointer; color: var(--kkc-muted);
    transition: color .18s var(--ease), border-color .18s var(--ease), transform .3s var(--ease);
}
.theme-btn:hover { color: var(--kkc-gold-600); border-color: var(--kkc-gold-500); transform: rotate(15deg); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 600px) { .theme-btn { width: 34px; height: 34px; } }
html.theme-dark a.team-card:hover { border-color: #33507a; }
html.theme-dark .doc-card:hover { border-color: #33507a; }

/* theme button placement in the header row */
@media (min-width: 961px) {
    /* brand left · links pushed right · theme button after them */
    .site-header .nav-links { margin-left: auto; }
    .site-header .theme-btn { margin-left: -6px; }
}
@media (max-width: 960px) {
    /* nav-links is the slide-down panel (out of flow); right group = button + hamburger */
    .site-header .theme-btn { order: 1; margin-left: auto; }
    .site-header .nav-toggle { order: 2; }
    .site-header .nav { gap: 14px; }
}

/* =========================================================
   Home hero — mobile refinements
   ========================================================= */
@media (max-width: 880px) {
    /* fill the phone screen properly without fighting the URL bar */
    .hero-slider { min-height: min(560px, 82svh); }
    /* Ken Burns off on mobile: cleaner crop, no jank */
    .hero-slide.is-active::before { animation: none; }
    .hero-slide-content { padding: 56px 0 92px; }
    .hero-slide-content h1 { font-size: clamp(1.85rem, 5.8vw + .6rem, 2.5rem); line-height: 1.12; max-width: none; }
    .hero-slide-content .lead { font-size: .98rem; line-height: 1.6; margin-bottom: 22px; }
    .hero-slide-content .eyebrow { font-size: .72rem; letter-spacing: .12em; }
}
@media (max-width: 520px) {
    .hero-slider { min-height: min(540px, 86svh); }
    /* buttons become full-width, thumb-friendly rows */
    .hero-slide-content .hero-actions { display: flex; flex-direction: column; gap: 10px; width: 100%; }
    .hero-slide-content .hero-actions .btn { width: 100%; justify-content: center; text-align: center; }
    /* keep the dots clear of the content */
    .hero-dots { bottom: 16px; }
    .hero-slide-content { padding: 48px 0 84px; }
    /* stats strip: tighter, calmer */
    .hero-stats .hero-meta { padding: 22px 0; gap: 16px; }
    .hero-stats .hero-meta strong { font-size: 1.45rem; }
    .hero-stats .hero-meta span { font-size: .72rem; }
}
@supports not (height: 1svh) {
    @media (max-width: 880px) { .hero-slider { min-height: 540px; } }
}

/* =========================================================
   Page loader — branded splash, once per session
   ========================================================= */
#kkc-loader {
    position: fixed; inset: 0; z-index: 999;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
    background: linear-gradient(150deg, #0b2545, #10315e);
    opacity: 1; transition: opacity .45s var(--ease); 
}
#kkc-loader.is-done { opacity: 0; pointer-events: none; }
#kkc-loader img { height: 54px; width: auto; }
#kkc-loader .ring {
    width: 46px; height: 46px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.18); border-top-color: var(--kkc-gold-500);
    animation: kkcSpin .9s linear infinite;
}
#kkc-loader small {
    color: rgba(255,255,255,.66); font-size: .74rem; font-weight: 600;
    letter-spacing: .18em; text-transform: uppercase;
}
@keyframes kkcSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    #kkc-loader .ring { animation: none; border-top-color: rgba(255,255,255,.18); border-color: var(--kkc-gold-500); }
    #kkc-loader { transition: none; }
}
