/* =============================================================
   Rimesoft – styles.css
   Nordic minimalism · Mobile-first · CSS Variables + Nesting
   ============================================================= */

/* ── 1. Variables & Reset ─────────────────────────────────── */
:root {
    /* Palette */
    --navy:        #1a2e4a;
    --navy-dark:   #0f1e35;
    --navy-mid:    #1e3a5f;
    --navy-light:  #2d5488;
    --blue:        #2563eb;
    --blue-hover:  #1d4fd8;
    --blue-light:  #3b82f6;

    --white:       #ffffff;
    --surface:     #f8fafc;
    --surface-2:   #f1f5f9;
    --border:      #e2e8f0;

    --text:        #0f172a;
    --text-muted:  #64748b;
    --text-light:  #94a3b8;

    /* Typography */
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', Roboto,
            'Helvetica Neue', Arial, sans-serif;

    /* 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 */
    --container: 1200px;
    --pad: clamp(1rem, 5vw, 1.5rem);

    /* Borders */
    --radius-sm: 0.375rem;
    --radius:    0.625rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgb(0 0 0 / .08);
    --shadow:    0 4px 12px rgb(0 0 0 / .08);
    --shadow-lg: 0 12px 32px rgb(0 0 0 / .12);
    --shadow-xl: 0 24px 48px rgb(0 0 0 / .16);

    /* Motion */
    --ease:      cubic-bezier(.4, 0, .2, 1);
    --duration:  .2s;
    --duration-slow: .35s;
}

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

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

body {
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* 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;
    opacity: 0;
    pointer-events: none;
}

/* ── 2. Layout ───────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--pad);
}

.section { padding-block: var(--space-20); }
.section--alt { background: var(--surface); }

/* ── 3. Typography ────────────────────────────────────────── */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
}
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.2rem; font-weight: 600; }
p  { max-width: 65ch; }

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

    & .section__tag { margin-inline: auto; }
    & .section__title { margin: var(--space-3) auto var(--space-4); }
    & .section__sub {
        color: var(--text-muted);
        max-width: 54ch;
        margin-inline: auto;
    }
}

.section__tag {
    display: inline-block;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--blue);
    background: rgb(37 99 235 / .1);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.section__title { color: var(--text); }
.section__sub   { color: var(--text-muted); line-height: 1.7; }

/* ── 4. Buttons ───────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: .75rem 1.5rem;
    border-radius: var(--radius);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1;
    transition: background var(--duration) var(--ease),
                color      var(--duration) var(--ease),
                transform  var(--duration) var(--ease),
                box-shadow var(--duration) var(--ease);
    white-space: nowrap;
    border: 2px solid transparent;

    & svg { width: 1rem; height: 1rem; flex-shrink: 0; }

    &:focus-visible {
        outline: 3px solid var(--blue-light);
        outline-offset: 3px;
    }
    &:active { transform: scale(.97); }
}

.btn--primary {
    background: var(--blue);
    color: var(--white);
    box-shadow: 0 4px 14px rgb(37 99 235 / .35);

    &:hover {
        background: var(--blue-hover);
        box-shadow: 0 6px 20px rgb(37 99 235 / .45);
        transform: translateY(-1px);
    }
}

.btn--ghost {
    background: transparent;
    color: var(--white);
    border-color: rgb(255 255 255 / .35);

    &:hover {
        background: rgb(255 255 255 / .12);
        border-color: rgb(255 255 255 / .6);
    }
}

.btn--lg {
    padding: .875rem 1.875rem;
    font-size: 1rem;
}

.btn--full { width: 100%; justify-content: center; }

/* ── 5. Badge ─────────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .8125rem;
    font-weight: 500;
    color: rgb(255 255 255 / .75);
    background: rgb(255 255 255 / .1);
    border: 1px solid rgb(255 255 255 / .2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-6);
}

/* ── 6. Header ────────────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background var(--duration-slow) var(--ease),
                box-shadow  var(--duration-slow) var(--ease),
                backdrop-filter var(--duration-slow) var(--ease);
}

.header.scrolled {
    background: rgb(26 46 74 / .9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgb(255 255 255 / .08);
}

.header__inner {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    height: 6rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: opacity var(--duration) var(--ease);

    &:hover { opacity: .85; }
}

.logo__img {
    height: 5rem;
    width: auto;
    /* The logo PNG has transparency – works on both light and dark bg */
    display: block;
}

/* Footer logo override – slightly smaller */
.logo--light .logo__img { height: 4.5rem; }

/* Nav */
.nav { margin-left: auto; }

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

.nav__link {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    color: rgb(255 255 255 / .8);
    transition: color var(--duration) var(--ease),
                background var(--duration) var(--ease);

    &:hover {
        color: var(--white);
        background: rgb(255 255 255 / .1);
    }
}

.nav__cta { margin-left: var(--space-4); }

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 2.5rem;
    height: 2.5rem;
    padding: var(--space-2);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease);
    margin-left: auto;

    & span {
        display: block;
        width: 100%;
        height: 2px;
        background: var(--white);
        border-radius: var(--radius-full);
        transition: transform var(--duration-slow) var(--ease),
                    opacity   var(--duration) var(--ease);
    }

    &:hover { background: rgb(255 255 255 / .1); }

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    background: var(--navy-dark);
    border-top: 1px solid rgb(255 255 255 / .08);

    & ul {
        display: flex;
        flex-direction: column;
        padding: var(--space-4) var(--pad) var(--space-6);
        gap: var(--space-1);
    }

    & a {
        display: block;
        padding: var(--space-3) var(--space-4);
        color: rgb(255 255 255 / .85);
        font-weight: 500;
        border-radius: var(--radius-sm);
        transition: background var(--duration) var(--ease), color var(--duration) var(--ease);

        &:hover { background: rgb(255 255 255 / .08); color: var(--white); }
    }

    &.is-open { display: block; }
}

.mobile-menu__cta { margin-top: var(--space-2); }

/* ── 7. Hero ──────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding-top: 6rem; /* header height */
    background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-mid) 100%);
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    padding-block: var(--space-20);
}

.hero__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 1;
}

.hero__title {
    color: var(--white);
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    line-height: 1.1;
    margin-bottom: var(--space-6);
}

.hero__sub {
    color: rgb(255 255 255 / .72);
    font-size: 1.0625rem;
    line-height: 1.75;
    margin-bottom: var(--space-10);
    max-width: 48ch;
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Video card (hero media) */
.hero__media {
    position: relative;
    z-index: 1;
}

.video-card {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: var(--navy-dark);
    box-shadow: var(--shadow-xl), 0 0 0 1px rgb(255 255 255 / .08);
    cursor: pointer;
}

.video-card__bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #0a1628 0%, #1a2e4a 100%);
    padding: var(--space-8);
    overflow: hidden;
}

.video-card__lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    font-family: 'Courier New', Courier, monospace;
    font-size: clamp(.6rem, 1.2vw, .8rem);
    line-height: 1.6;
    opacity: .35;
    user-select: none;

    & span { color: #e2e8f0; white-space: pre; }
    & em   { color: #7dd3fc; font-style: normal; }
    & b    { color: #86efac; }
}

.play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: transform var(--duration-slow) var(--ease);

    &:hover { transform: scale(1.05); }
    &:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 4px; }
}

.play-btn__ring {
    position: absolute;
    width: 5rem; height: 5rem;
    border-radius: 50%;
    border: 2px solid rgb(37 99 235 / .4);
    animation: pulse 2s ease-in-out infinite;
}

.play-btn__inner {
    width: 4rem; height: 4rem;
    border-radius: 50%;
    background: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgb(37 99 235 / .5);

    & svg { width: 1.5rem; height: 1.5rem; fill: var(--white); margin-left: 3px; }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: .6; }
    50%       { transform: scale(1.2); opacity: .2; }
}

.video-card__label {
    position: absolute;
    bottom: var(--space-6);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: rgb(255 255 255 / .8);
    font-size: .875rem;
    font-weight: 500;
    background: rgb(0 0 0 / .4);
    backdrop-filter: blur(8px);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    white-space: nowrap;

    & svg { width: 1rem; height: 1rem; }
}

/* Decorative background shapes */
.hero__shapes { position: absolute; inset: 0; pointer-events: none; }

.hero__shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(37 99 235 / .18) 0%, transparent 70%);
}

.hero__shape--1 { width: 55vw; height: 55vw; top: -15vw; right: -10vw; }
.hero__shape--2 { width: 30vw; height: 30vw; bottom: -8vw; left: -8vw; background: radial-gradient(circle, rgb(37 99 235 / .12) 0%, transparent 70%); }
.hero__shape--3 { width: 20vw; height: 20vw; top: 30%; left: 40%; background: radial-gradient(circle, rgb(125 211 252 / .06) 0%, transparent 70%); }

/* ── 8. Services ──────────────────────────────────────────── */
.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
    transition: box-shadow var(--duration-slow) var(--ease),
                border-color var(--duration-slow) var(--ease),
                transform var(--duration-slow) var(--ease);

    &:hover {
        box-shadow: var(--shadow-lg);
        border-color: rgb(37 99 235 / .25);
        transform: translateY(-4px);
    }

    & h3 {
        margin-bottom: var(--space-3);
        color: var(--text);
    }

    & p {
        color: var(--text-muted);
        font-size: .9375rem;
        line-height: 1.7;
        margin-bottom: var(--space-6);
    }
}

.service-card__icon {
    width: 3.25rem; height: 3.25rem;
    background: rgb(37 99 235 / .08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-6);
    color: var(--blue);
    transition: background var(--duration) var(--ease);

    & svg { width: 1.5rem; height: 1.5rem; }

    .service-card:hover & {
        background: rgb(37 99 235 / .14);
    }
}

.service-card__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    border-top: 1px solid var(--border);
    padding-top: var(--space-5);

    & li {
        display: flex;
        align-items: center;
        gap: var(--space-2);
        font-size: .875rem;
        color: var(--text-muted);

        &::before {
            content: '';
            display: inline-block;
            width: 6px; height: 6px;
            border-radius: 50%;
            background: var(--blue);
            flex-shrink: 0;
        }
    }
}

/* ── 9. About ─────────────────────────────────────────────── */
.about__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-16);
    align-items: start;
}

.about__visual {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* Profile card */
.profile-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    text-align: center;
    box-shadow: var(--shadow);
}

.profile-avatar {
    width: 6rem; height: 6rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: .05em;
    border: 4px solid var(--white);
    box-shadow: 0 0 0 2px var(--border), var(--shadow);
}

.profile-card__info {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);

    & strong { font-size: 1.0625rem; color: var(--text); }
    & span   { font-size: .875rem; color: var(--text-muted); }
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.stat-card__number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -.03em;
    line-height: 1;
}

.stat-card__label {
    font-size: .8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* About content */
.about__content {
    & .section__tag { margin-bottom: var(--space-3); }
    & .section__title { margin-bottom: var(--space-5); }
}

.about__lead {
    font-size: 1.0625rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: var(--space-4);
    line-height: 1.7;
    max-width: 55ch;
}

.about__content p {
    color: var(--text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.75;
}

/* References row */
.about__refs {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    background: var(--surface-2);
    border-radius: var(--radius);
}

.about__refs-label {
    font-size: .8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    white-space: nowrap;
}

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

.ref-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: .875rem;
    font-weight: 500;
    color: var(--blue);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);

    & svg { width: .9rem; height: .9rem; flex-shrink: 0; }

    &:hover {
        background: rgb(37 99 235 / .08);
        color: var(--blue-hover);
    }
}

.value-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    margin: var(--space-6) 0 var(--space-6);

    & li {
        display: flex;
        align-items: center;
        gap: var(--space-3);
        font-size: .9375rem;
        font-weight: 500;
        color: var(--text);

        & svg {
            width: 1.1rem; height: 1.1rem;
            color: var(--blue);
            flex-shrink: 0;
        }
    }
}

/* ── 10. Contact ──────────────────────────────────────────── */
.contact__grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: var(--space-12);
    align-items: start;
}

.contact__info {
    & h3 {
        font-size: 1.125rem;
        margin-bottom: var(--space-6);
        color: var(--text);
    }
}

.contact__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-bottom: var(--space-8);
}

.contact__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);

    & small {
        display: block;
        font-size: .8125rem;
        color: var(--text-muted);
        margin-top: var(--space-1);
        line-height: 1.5;
    }
}

.contact__icon {
    width: 2.5rem; height: 2.5rem;
    background: rgb(37 99 235 / .08);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;

    & svg { width: 1.1rem; height: 1.1rem; }
}

.contact__label {
    display: block;
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.contact__value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: var(--blue);
    transition: color var(--duration) var(--ease);

    &:hover { color: var(--blue-hover); }
}

.contact__note {
    display: flex;
    gap: var(--space-3);
    background: rgb(37 99 235 / .06);
    border: 1px solid rgb(37 99 235 / .15);
    border-radius: var(--radius);
    padding: var(--space-4);

    & svg { width: 1.125rem; height: 1.125rem; color: var(--blue); flex-shrink: 0; margin-top: 2px; }
    & p   { font-size: .875rem; color: var(--text-muted); line-height: 1.6; }
}

/* Form */
.contact__form-wrap {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    box-shadow: var(--shadow);
}

.contact-form { display: flex; flex-direction: column; gap: var(--space-5); }

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);

    & label {
        font-size: .875rem;
        font-weight: 600;
        color: var(--text);
    }

    & input,
    & textarea {
        width: 100%;
        padding: .75rem 1rem;
        font: inherit;
        font-size: .9375rem;
        color: var(--text);
        background: var(--surface);
        border: 1.5px solid var(--border);
        border-radius: var(--radius);
        transition: border-color var(--duration) var(--ease),
                    box-shadow  var(--duration) var(--ease),
                    background  var(--duration) var(--ease);
        resize: vertical;

        &::placeholder { color: var(--text-light); }

        &:hover  { border-color: var(--text-light); background: var(--white); }

        &:focus  {
            outline: none;
            border-color: var(--blue);
            background: var(--white);
            box-shadow: 0 0 0 3px rgb(37 99 235 / .12);
        }

        &:user-invalid {
            border-color: #ef4444;
            box-shadow: 0 0 0 3px rgb(239 68 68 / .1);
        }
    }

    & textarea { min-height: 8rem; }
}

.required { color: var(--blue); }

.form-status {
    border-radius: var(--radius);
    padding: var(--space-4);
    font-size: .9375rem;
    font-weight: 500;

    &.is-success {
        background: rgb(5 150 105 / .08);
        border: 1px solid rgb(5 150 105 / .25);
        color: #065f46;
    }

    &.is-error {
        background: rgb(239 68 68 / .08);
        border: 1px solid rgb(239 68 68 / .25);
        color: #991b1b;
    }
}

/* ── 11. Footer ───────────────────────────────────────────── */
.footer {
    background: var(--navy-dark);
    color: rgb(255 255 255 / .7);
}

.footer__top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    padding-block: var(--space-16);
    border-bottom: 1px solid rgb(255 255 255 / .08);
}

.footer__brand {
    & p {
        margin-top: var(--space-4);
        font-size: .9rem;
        line-height: 1.7;
        color: rgb(255 255 255 / .55);
    }

    & .logo { margin-bottom: 0; }
}

.footer__nav,
.footer__social {
    & h4 {
        font-size: .75rem;
        font-weight: 600;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: rgb(255 255 255 / .4);
        margin-bottom: var(--space-5);
    }
}

.footer__nav ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);

    & a {
        font-size: .9375rem;
        color: rgb(255 255 255 / .65);
        transition: color var(--duration) var(--ease);

        &:hover { color: var(--white); }
    }
}

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

.social-link {
    position: relative;
    width: 2.5rem; height: 2.5rem;
    background: rgb(255 255 255 / .08);
    border: 1px solid rgb(255 255 255 / .1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(255 255 255 / .65);
    transition: background var(--duration) var(--ease),
                color     var(--duration) var(--ease),
                transform var(--duration) var(--ease);

    & svg { width: 1.1rem; height: 1.1rem; }

    &:hover {
        background: var(--blue);
        border-color: var(--blue);
        color: var(--white);
        transform: translateY(-2px);
    }

    &:focus-visible {
        outline: 2px solid var(--blue-light);
        outline-offset: 2px;
    }
}

.social-link__badge {
    position: absolute;
    top: -6px; right: -6px;
    font-size: .55rem;
    font-weight: 700;
    background: var(--blue);
    color: var(--white);
    padding: 1px 4px;
    border-radius: var(--radius-full);
    line-height: 1.4;
    letter-spacing: .02em;
}

.footer__bottom {
    padding-block: var(--space-6);
    text-align: center;

    & p { font-size: .875rem; color: rgb(255 255 255 / .35); max-width: none; }
}

/* Footer logo override (light text on dark bg) */
.logo--light .logo__text { color: var(--white); }

/* ── 12. Reveal animations ────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);

    &.is-visible {
        opacity: 1;
        transform: none;
    }
}

/* Stagger siblings */
.services__grid .reveal:nth-child(2) { transition-delay: .1s; }
.services__grid .reveal:nth-child(3) { transition-delay: .2s; }

/* ── 13. Responsive ───────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
    .hero__inner { grid-template-columns: 1fr; gap: var(--space-12); }
    .hero__content { align-items: flex-start; }
    .hero__title { font-size: clamp(2rem, 5vw, 2.75rem); }
    .hero__media { max-width: 36rem; margin-inline: auto; }
    .hero { min-height: auto; }

    .about__grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .about__visual { flex-direction: row; flex-wrap: wrap; gap: var(--space-4); }
    .profile-card { flex: 1; min-width: 220px; }
    .stats-grid   { flex: 1; min-width: 220px; }

    .contact__grid { grid-template-columns: 1fr; gap: var(--space-10); }
    .footer__top   { grid-template-columns: 1fr 1fr; }
    .footer__brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
    :root { --space-20: 3.5rem; --space-16: 3rem; --space-12: 2.5rem; }

    .nav    { display: none; }
    .nav__cta   { display: none; }
    .menu-toggle { display: flex; }

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

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

    .hero__actions { flex-direction: column; width: 100%; }
    .hero__actions .btn { justify-content: center; }

    .footer__top {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-block: var(--space-10);
    }
    .footer__brand { grid-column: auto; }
}

/* Large screens */
@media (min-width: 1400px) {
    .hero__title { font-size: 3.5rem; }
}
