/* =================================================================
   NEBULA INNOVATIONS V2 — "STELLAR"
   A mixed dark/light design: dramatic dark hero + Azure section,
   complete editorial reversal for Language/Evidentia section.
================================================================= */

/* -----------------------------------------------------------------
   1. CUSTOM PROPERTIES
----------------------------------------------------------------- */
:root {
    /* Dark palette */
    --void:           #04041a;
    --deep:           #06071e;
    --surface:        #0c0d26;
    --surface-raised: #10112c;

    /* Brand — steel blue, matched to original logo */
    --purple:         #3d82c4;
    --purple-bright:  #2b6fad;
    --purple-light:   #74b0d8;
    --purple-pale:    #aed0ea;
    --cyan:           #06b6d4;
    --cyan-light:     #67e8f9;
    --indigo:         #4a8fc4;

    /* Gradient */
    --grad-brand: linear-gradient(120deg, #c0dcf0 0%, #74b0d8 45%, #38bdf8 90%);
    --grad-glow:  linear-gradient(135deg, #3d82c4 0%, #06b6d4 100%);

    /* Dark text */
    --text-on-dark:       #f1f5f9;
    --text-muted-on-dark: #64748b;
    --text-soft-on-dark:  #94a3b8;
    --border-dark:        rgba(255,255,255,0.08);

    /* Light section palette */
    --cream:          #faf9f6;
    --paper:          #f2f0eb;
    --ink:            #130f1e;
    --ink-muted:      #3d4a5c;
    --ink-soft:       #6b7a8d;
    --rule:           #e2ddd5;
    --accent-dark:    #1c5a90;

    /* Type */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Nav */
    --nav-h: 66px;

    /* Spacing */
    --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
    --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
    --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
    --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;

    /* Layout */
    --max: 1160px;
    --pad: clamp(var(--space-4), 5vw, var(--space-12));

    /* Motion */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --dur: 220ms;
}

/* -----------------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-h);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--void);
    color: var(--text-on-dark);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
p { max-width: 70ch; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.15; letter-spacing: -0.025em; }

:focus-visible {
    outline: 2px solid var(--purple-light);
    outline-offset: 3px;
    border-radius: 4px;
}

/* -----------------------------------------------------------------
   3. UTILITIES
----------------------------------------------------------------- */
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-kicker {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--purple-light);
    margin-bottom: var(--space-4);
}

.section-kicker--dark { color: var(--accent-dark); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-5);
    color: var(--text-on-dark);
    letter-spacing: -0.03em;
}

.section-title--light { color: var(--text-on-dark); }

/* -----------------------------------------------------------------
   4. BUTTONS
----------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font: 600 0.875rem/1 var(--font);
    cursor: pointer;
    border: none;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                background var(--dur) var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--glow {
    background: var(--purple);
    color: #fff;
    box-shadow: 0 0 0 0 rgba(61,130,196,0);
}
.btn--glow:hover {
    background: var(--purple-bright);
    box-shadow: 0 0 32px rgba(61,130,196,0.5), 0 4px 16px rgba(61,130,196,0.3);
}

.btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.7);
    border: 1px solid rgba(255,255,255,0.2);
}
.btn--ghost:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

.btn--dark {
    background: var(--ink);
    color: #fff;
    box-shadow: 0 2px 12px rgba(19,15,30,0.2);
}
.btn--dark:hover {
    background: var(--accent-dark);
    box-shadow: 0 4px 20px rgba(28,90,144,0.35);
}

.btn--large { padding: 1rem 2rem; font-size: 1rem; }

/* -----------------------------------------------------------------
   5. SCROLL REVEAL
----------------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

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

/* -----------------------------------------------------------------
   6. NAVIGATION
----------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background var(--dur), backdrop-filter var(--dur), box-shadow var(--dur);
}

.nav.scrolled {
    background: rgba(4, 4, 26, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 var(--border-dark);
}

.nav__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: -0.015em;
    transition: opacity var(--dur);
    flex-shrink: 0;
}

.nav__logo:hover { opacity: 0.8; }

.nav__mark { width: 26px; height: 26px; color: var(--purple-light); flex-shrink: 0; }

.nav__wordmark strong { font-weight: 700; }

.nav__right {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav__link {
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--text-soft-on-dark);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    transition: color var(--dur), background var(--dur);
    white-space: nowrap;
}

.nav__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav__cta {
    font-size: 0.825rem;
    font-weight: 600;
    color: #fff;
    background: var(--purple);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    transition: background var(--dur), box-shadow var(--dur);
    white-space: nowrap;
}

.nav__cta:hover {
    background: var(--purple-bright);
    box-shadow: 0 0 20px rgba(61,130,196,0.4);
}

/* Mobile toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 16px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.nav__toggle span {
    display: block;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform var(--dur), opacity var(--dur);
    transform-origin: center;
}

.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }

/* Mobile menu */
.nav__menu {
    display: none;
    flex-direction: column;
    background: rgba(4,4,26,0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-dark);
    padding: var(--space-4) var(--pad);
    gap: var(--space-1);
}

.nav__menu.open { display: flex; }

.nav__menu-link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-soft-on-dark);
    padding: var(--space-3) var(--space-3);
    border-radius: 8px;
    transition: color var(--dur), background var(--dur);
}

.nav__menu-link:hover {
    color: #fff;
    background: rgba(255,255,255,0.05);
}

.nav__menu-link--cta {
    color: var(--purple-light);
    font-weight: 600;
    border: 1px solid rgba(61,130,196,0.3);
    margin-top: var(--space-2);
    text-align: center;
}

/* -----------------------------------------------------------------
   7. HERO
----------------------------------------------------------------- */

/* Screen-reader only utility */
.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;
}

.hero {
    position: relative;
    min-height: 100dvh;
    background: var(--void);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    width: 100%;
    margin: 0 auto;
    padding: calc(var(--nav-h) + var(--space-16)) var(--pad) var(--space-20);
}

/* Company name eyebrow */
.hero__eyebrow {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.32);
    margin-bottom: clamp(var(--space-5), 2vw, var(--space-8));
    max-width: none;
}

/* Main heading — "Nebula Innovations." */
.hero__heading {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: clamp(var(--space-4), 1.5vw, var(--space-6));
    max-width: none;
}

.hero__line {
    display: block;
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero__line--grad {
    font-size: clamp(3.5rem, 8vw, 7rem);
    background: var(--grad-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Strap line */
.hero__sub {
    font-size: clamp(0.9rem, 1.4vw, 1.05rem);
    color: var(--text-muted-on-dark);
    font-weight: 300;
    margin-bottom: clamp(var(--space-10), 4vw, var(--space-14));
    max-width: none;
}

/* ----- Two service cards ----- */
.hero__services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-5);
    max-width: 820px;
}

.hero__svc {
    display: flex;
    flex-direction: column;
    padding: var(--space-7) var(--space-7);
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition:
        background var(--dur) var(--ease),
        border-color var(--dur) var(--ease),
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease);
}

.hero__svc:hover {
    background: rgba(61,130,196,0.08);
    border-color: rgba(61,130,196,0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(61,130,196,0.18);
}

.hero__svc--language:hover {
    background: rgba(6,182,212,0.06);
    border-color: rgba(6,182,212,0.3);
    box-shadow: 0 12px 40px rgba(6,182,212,0.12);
}

.hero__svc-head {
    display: flex;
    justify-content: flex-end;
    margin-bottom: var(--space-4);
}

.hero__svc-arrow {
    width: 16px;
    height: 16px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
    transition: transform var(--dur) var(--ease), color var(--dur);
}

.hero__svc:hover .hero__svc-arrow {
    color: rgba(255,255,255,0.7);
    transform: translateX(3px);
}

.hero__svc-name {
    font-size: clamp(1.2rem, 2.2vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--text-on-dark);
    margin-bottom: var(--space-3);
}

.hero__svc-desc {
    font-size: 0.82rem;
    color: var(--text-muted-on-dark);
    line-height: 1.7;
    max-width: 36ch;
    margin-top: auto;
    padding-top: var(--space-3);
}

/* Scroll cue */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.2);
    animation: bounce 2.2s ease-in-out infinite;
    z-index: 1;
    transition: color var(--dur);
}

.hero__scroll:hover { color: rgba(255,255,255,0.55); }
.hero__scroll svg { width: 30px; height: 30px; }

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(7px); }
}

/* -----------------------------------------------------------------
   8. AZURE SECTION
----------------------------------------------------------------- */
.azure {
    background: var(--deep);
    padding: var(--space-24) 0;
    position: relative;
}

/* Subtle top border glow */
.azure::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple), var(--cyan), transparent);
    opacity: 0.4;
}

.azure__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.azure__header {
    margin-bottom: var(--space-16);
    max-width: 680px;
}

.azure__header .section-title {
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    margin-bottom: var(--space-6);
}

.azure__manifesto {
    font-size: clamp(1rem, 1.75vw, 1.2rem);
    font-weight: 300;
    font-style: italic;
    color: var(--text-soft-on-dark);
    line-height: 1.7;
    border-left: 3px solid var(--purple);
    padding-left: var(--space-5);
    max-width: 62ch;
}

.azure__consultant {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--purple-light);
    opacity: 0.7;
    margin-bottom: var(--space-6);
}

/* BENTO GRID */
.bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 14px;
    margin-bottom: var(--space-12);
}

/* Card base */
.bento__card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border-dark);
    border-radius: 16px;
    padding: var(--space-8);
    transition:
        transform 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        background 0.2s;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
}

/* Gradient border glow on hover */
.bento__card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(var(--surface), var(--surface)) padding-box,
                linear-gradient(135deg, transparent, transparent) border-box;
    z-index: -1;
    transition: background 0.3s;
    pointer-events: none;
}

.bento__card:hover::before {
    background: linear-gradient(var(--surface-raised), var(--surface-raised)) padding-box,
                var(--grad-glow) border-box;
}

.bento__card:hover {
    background: var(--surface-raised);
    box-shadow: 0 8px 40px rgba(61,130,196,0.15);
}

.bento__card h3 {
    font-size: 1.1rem;
    margin-bottom: var(--space-3);
    color: var(--text-on-dark);
}

.bento__card p {
    font-size: 0.875rem;
    color: var(--text-soft-on-dark);
    line-height: 1.75;
}

/* Card icon */
.bento__card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61,130,196,0.12);
    border-radius: 10px;
    color: var(--purple-light);
    margin-bottom: var(--space-5);
    flex-shrink: 0;
}

.bento__card-icon svg { width: 22px; height: 22px; }

/* Tag chips */
.bento__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-5);
}

.bento__tags span {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--purple-pale);
    background: rgba(61,130,196,0.1);
    border: 1px solid rgba(61,130,196,0.2);
    padding: 2px 10px;
    border-radius: 100px;
}

/* Grid placements */
.bento__card--platform  { grid-column: 1 / 8; }
.bento__card--iac       { grid-column: 8 / 13; }
.bento__card--self      { grid-column: 1 / 5; }
.bento__card--finops    { grid-column: 5 / 9; }
.bento__card--identity  { grid-column: 9 / 13; }
.bento__card--obs       { grid-column: 1 / 13; }

/* Full-width obs card layout */
.bento__obs-layout {
    display: flex;
    gap: var(--space-10);
    align-items: flex-start;
}

.bento__obs-main { flex: 1; }

.bento__obs-tech {
    flex-shrink: 0;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    align-content: flex-start;
    max-width: 220px;
    justify-content: flex-end;
}

.bento__obs-tech span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--cyan-light);
    background: rgba(6,182,212,0.08);
    border: 1px solid rgba(6,182,212,0.2);
    padding: var(--space-1) var(--space-3);
    border-radius: 100px;
}

.azure__cta {
    text-align: center;
}

/* -----------------------------------------------------------------
   9. LANGUAGE / EVIDENTIA SECTION  (THE "WOW" MOMENT)
      Full editorial reversal to warm cream/light
----------------------------------------------------------------- */
.language {
    background: var(--cream);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
    color: var(--ink);
}

/* Giant watermark behind content */
.language::before {
    content: 'Evidentia';
    position: absolute;
    top: -0.1em;
    left: -0.05em;
    font-size: clamp(8rem, 22vw, 20rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--paper);
    pointer-events: none;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.language__inner {
    position: relative;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    z-index: 1;
}

/* Header */
.language__header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.language__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    background: var(--ink);
    color: #fff;
    padding: var(--space-2) var(--space-5);
    border-radius: 100px;
    margin-bottom: var(--space-6);
    font-size: 0.875rem;
}

.lang-flag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 3px 8px;
    border-radius: 4px;
}

.lang-flag--fr {
    background: linear-gradient(90deg, #002395 33.3%, #fff 33.3%, #fff 66.7%, #ed2939 66.7%);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    text-shadow: 0 1px 3px rgba(0,0,35,0.85), 0 0 6px rgba(0,0,0,0.6);
}

.lang-flag--en {
    background: linear-gradient(135deg, #012169 40%, #c8102e 60%);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
}

.language__badge svg { color: rgba(255,255,255,0.5); width: 28px; height: 10px; }

.language__title {
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
    margin-bottom: var(--space-3);
}

.language__sub {
    font-size: 0.95rem;
    color: var(--ink-soft);
    font-style: italic;
    max-width: none;
}

/* Profile */
.language__profile {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-12);
    align-items: start;
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--rule);
}

/* Pull quote — the differentiator statement */
.language__vp {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--rule);
}

.language__vp p {
    font-size: clamp(1.1rem, 2.2vw, 1.45rem);
    font-weight: 400;
    font-style: italic;
    color: var(--ink);
    line-height: 1.65;
    max-width: 72ch;
    padding-left: var(--space-6);
    border-left: 3px solid var(--accent-dark);
    position: relative;
}

.language__name {
    font-size: 1.75rem;
    color: var(--ink);
    font-weight: 800;
    margin-bottom: var(--space-1);
}

.language__role {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-dark);
    margin-bottom: var(--space-5);
    max-width: none;
}

.language__desc {
    font-size: 1rem;
    color: var(--ink-muted);
    line-height: 1.8;
    margin-bottom: var(--space-8);
}

.language__stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    text-align: right;
    flex-shrink: 0;
}

/* Block so child spans remain inline (not flex-children) */
.language__stat {
    display: block;
    text-align: right;
}

.language__stat-number {
    display: inline;
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--ink);
    line-height: 1;
}

.language__stat-suffix {
    display: inline;
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--accent-dark);
    line-height: 1;
    margin-left: 2px;
}

.language__stat-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-top: var(--space-2);
    max-width: none;
}

/* Specialisms */
.language__section-heading {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: var(--space-5);
}

.language__specialisms {
    margin-bottom: var(--space-12);
    padding-bottom: var(--space-12);
    border-bottom: 1px solid var(--rule);
}

.specialisms {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.specialisms li {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ink-muted);
    border: 1px solid var(--rule);
    padding: var(--space-2) var(--space-4);
    border-radius: 100px;
    transition: border-color var(--dur), color var(--dur), background var(--dur);
}

.specialisms li:hover {
    border-color: var(--accent-dark);
    color: var(--accent-dark);
    background: rgba(28,90,144,0.04);
}

/* Services — editorial list */
.language__services { }

.lang-services { }

.lang-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: baseline;
    gap: var(--space-6);
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--rule);
}

.lang-service:first-child { border-top: 1px solid var(--rule); }

.lang-service__head {
    display: flex;
    align-items: baseline;
    gap: var(--space-4);
}

.lang-service__num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-dark);
    opacity: 0.6;
    flex-shrink: 0;
}

.lang-service h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.lang-service p {
    font-size: 0.875rem;
    color: var(--ink-muted);
    line-height: 1.7;
}

/* -----------------------------------------------------------------
   10. CONTACT SECTION
----------------------------------------------------------------- */
.contact {
    background: var(--deep);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(61,130,196,0.12) 0%, transparent 55%),
        radial-gradient(ellipse at 85% 30%, rgba(6,182,212,0.08) 0%, transparent 55%);
    pointer-events: none;
}

.contact__inner {
    position: relative;
    z-index: 1;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
}

.contact__header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.contact__header .section-title { margin-bottom: var(--space-4); }

.contact__desc {
    font-size: 1rem;
    color: var(--text-muted-on-dark);
    max-width: 52ch;
    margin: 0 auto;
}

.contact__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-5);
    max-width: 680px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--space-10) var(--space-8);
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-dark);
    border-radius: 20px;
    text-decoration: none;
    color: inherit;
    transition: background var(--dur), border-color var(--dur),
                transform 0.2s var(--ease), box-shadow 0.2s;
    transform-style: preserve-3d;
    will-change: transform;
}

.contact-card:hover {
    background: rgba(61,130,196,0.06);
    border-color: rgba(61,130,196,0.4);
    box-shadow: 0 8px 40px rgba(61,130,196,0.15);
}

.contact-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(61,130,196,0.12);
    border-radius: 12px;
    color: var(--purple-light);
    margin-bottom: var(--space-5);
}

.contact-card__icon svg { width: 26px; height: 26px; }

.contact-card h3 {
    font-size: 1.1rem;
    color: var(--text-on-dark);
    margin-bottom: var(--space-2);
}

.contact-card__org {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted-on-dark);
    margin-bottom: var(--space-5);
    max-width: none;
}

.contact-card__email {
    display: block;
    font-size: 0.825rem;
    font-weight: 500;
    color: var(--purple-light);
    border-bottom: 1px solid transparent;
    transition: border-color var(--dur);
    max-width: none;
}

.contact-card:hover .contact-card__email {
    border-color: var(--purple-light);
}

/* -----------------------------------------------------------------
   11. FOOTER
----------------------------------------------------------------- */
.footer {
    background: #02021a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: var(--space-8) 0;
}

.footer__inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    letter-spacing: -0.015em;
    transition: color var(--dur);
}

.footer__logo:hover { color: #fff; }
.footer__logo svg { color: var(--purple-light); }
.footer__logo strong { font-weight: 700; }

.footer__copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.25);
    max-width: none;
}

/* -----------------------------------------------------------------
   12. RESPONSIVE
----------------------------------------------------------------- */
@media (max-width: 900px) {
    /* Bento collapses */
    .bento {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    .bento__card--platform,
    .bento__card--iac,
    .bento__card--self,
    .bento__card--finops,
    .bento__card--identity { grid-column: span 1; }
    .bento__card--obs { grid-column: span 2; }

    /* Obs layout */
    .bento__obs-layout { flex-direction: column; gap: var(--space-6); }
    .bento__obs-tech { max-width: none; justify-content: flex-start; }

    /* Language profile */
    .language__profile {
        grid-template-columns: 1fr;
    }
    .language__stats {
        flex-direction: row;
        text-align: left;
        justify-content: flex-start;
        gap: var(--space-10);
    }
    .language__stat { text-align: left; }

    /* Language services list */
    .lang-service {
        grid-template-columns: 1fr;
        gap: var(--space-2);
    }
}

@media (max-width: 680px) {
    /* Nav */
    .nav__right { display: none; }
    .nav__toggle { display: flex; }

    /* Hero service cards — stack vertically */
    .hero__services {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Bento single column */
    .bento { grid-template-columns: 1fr; }
    .bento__card--obs { grid-column: span 1; }

    /* Language */
    .language::before { left: -0.1em; font-size: clamp(5rem, 25vw, 10rem); }
    .language__stats { gap: var(--space-6); }
}

@media (max-width: 420px) {
    .hero__line--grad { font-size: 3rem; }
    .footer__inner { justify-content: center; text-align: center; }
}
