/* ==========================================================================
   Intelligence in Motion: main stylesheet

   Sections:
   1. Design tokens
   2. Base / reset
   3. Accessibility helpers
   4. Layout containers
   5. Site header and primary navigation
   6. Main content area
   7. Site footer
   8. Reusable components
   9. Responsive adjustments
   10. Mobile menu behaviour
   11. Homepage (premium design)
   12. Reduced motion (always last so it overrides everything above)
   ========================================================================== */


/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root {
    /* Brand palette */
    --iim-navy: #0B1220;
    --iim-blue: #2563EB;
    --iim-white: #F8FAFC;
    --iim-muted: #94A3B8;
    --iim-glass: rgba(255, 255, 255, 0.06);
    --iim-border: rgba(255, 255, 255, 0.12);
    --iim-radius: 18px;
    --iim-container: 1160px;

    /* Additional tokens */
    --iim-blue-hover: #1D4ED8;
    --iim-focus: #93C5FD;
    --iim-link: #93C5FD;
    --iim-header-bg: rgba(11, 18, 32, 0.88);
    --iim-radius-sm: 10px;

    /* Homepage tokens: ambient lighting, surfaces, spacing, easing */
    --iim-violet: #7C3AED;
    --iim-blue-glow: rgba(37, 99, 235, 0.38);
    --iim-violet-glow: rgba(124, 58, 237, 0.28);
    --iim-text-soft: #CBD5E1;
    --iim-surface: #0F1A30;
    --iim-border-strong: rgba(255, 255, 255, 0.2);
    --iim-radius-lg: 28px;
    --iim-section-space: clamp(72px, 10vw, 136px);
    --iim-ease: cubic-bezier(0.22, 1, 0.36, 1);

    /* Font stacks */
    --iim-font-body: Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --iim-font-heading: Manrope, Inter, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}


/* ==========================================================================
   2. Base / reset
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--iim-navy);
    color: var(--iim-white);
    font-family: var(--iim-font-body);
    line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--iim-font-heading);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

::selection {
    background: rgba(37, 99, 235, 0.55);
    color: #fff;
}


/* ==========================================================================
   3. Accessibility helpers
   ========================================================================== */

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link:focus {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    overflow: visible;
    clip: auto;
    clip-path: none;
    border-radius: var(--iim-radius-sm);
    background: var(--iim-blue);
    color: #fff;
    font-weight: 700;
    line-height: 1.4;
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--iim-focus);
    outline-offset: 4px;
}


/* ==========================================================================
   4. Layout containers
   ========================================================================== */

.site-container {
    width: min(
        var(--iim-container),
        calc(100% - 40px)
    );
    margin-inline: auto;
}


/* ==========================================================================
   5. Site header and primary navigation
   ========================================================================== */

.site-header {
    border-bottom: 1px solid var(--iim-border);
    background: var(--iim-header-bg);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.site-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 14px;
}

/* Legacy branding class retained for compatibility. */
.site-brand {
    display: inline-block;
    padding-block: 22px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

/* Site branding */
.site-branding__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-block: 8px;
    border-radius: var(--iim-radius-sm);
}

.site-branding__link::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--iim-blue);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.22);
}

.site-title {
    font-family: var(--iim-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.site-branding .custom-logo {
    width: auto;
    max-height: 44px;
}

/* Primary navigation */
.primary-nav {
    display: flex;
    align-items: center;
}

/* Menu links remain visible unless JavaScript activates mobile navigation. */
.primary-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-menu a {
    display: block;
    padding: 8px 14px;
    border-radius: var(--iim-radius-sm);
    color: var(--iim-muted);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 180ms ease, background-color 180ms ease;
}

.primary-menu a:hover {
    background: var(--iim-glass);
    color: var(--iim-white);
}

.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu .current-menu-ancestor > a,
.primary-menu a[aria-current="page"] {
    background: rgba(37, 99, 235, 0.2);
    color: var(--iim-white);
}

.primary-menu a:focus-visible {
    outline-offset: 2px;
}

/* Mobile menu button: hidden until JavaScript is working. */
.nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid var(--iim-border);
    border-radius: var(--iim-radius-sm);
    background: var(--iim-glass);
    color: var(--iim-white);
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: rgba(255, 255, 255, 0.24);
}

/* Hamburger icon */
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform 180ms ease, background-color 180ms ease;
}

.nav-toggle__bars {
    position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
    content: "";
    position: absolute;
    left: 0;
}

.nav-toggle__bars::before {
    top: -6px;
}

.nav-toggle__bars::after {
    top: 6px;
}

/* Hamburger becomes an X when the menu is open. */
.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
    transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
    transform: translateY(-6px) rotate(-45deg);
}


/* ==========================================================================
   6. Main content area
   ========================================================================== */

.site-main {
    min-height: 70vh;
    padding-block: 72px;
}

.content-entry {
    max-width: 780px;
    margin-inline: auto;
}

.content-entry h1,
.site-main h1 {
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.entry-content {
    color: var(--iim-muted);
}

.entry-content a {
    color: var(--iim-link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.entry-content a:hover {
    color: var(--iim-white);
}


/* ==========================================================================
   7. Site footer
   ========================================================================== */

.site-footer {
    border-top: 1px solid var(--iim-border);
    padding-block: 24px;
    color: var(--iim-muted);
    font-size: 0.9rem;
}

.site-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
}

.footer-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-menu a {
    display: inline-block;
    padding-block: 4px;
    color: var(--iim-muted);
    transition: color 180ms ease;
}

.footer-menu a:hover {
    color: var(--iim-white);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer__copyright {
    margin: 0;
}


/* ==========================================================================
   8. Reusable components
   ========================================================================== */

.glass-panel {
    border: 1px solid var(--iim-border);
    border-radius: var(--iim-radius);
    background: var(--iim-glass);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
}

.button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--iim-blue);
    color: #fff;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease;
}

.button-primary:hover {
    transform: translateY(-2px);
    background: var(--iim-blue-hover);
}

/* Fallback for browsers without backdrop-filter. */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .site-header {
        background: rgba(11, 18, 32, 0.98);
    }

    .glass-panel {
        background: rgba(255, 255, 255, 0.09);
    }
}


/* ==========================================================================
   9. Responsive adjustments
   ========================================================================== */

/* Desktop header remains visible while scrolling. */
@media (min-width: 641px) {
    html {
        scroll-padding-top: 6rem;
    }

    .site-header {
        position: sticky;
        top: 0;
        z-index: 50;
    }

    /* Account for the WordPress admin bar when logged in. */
    .admin-bar .site-header {
        top: 46px;
    }
}

@media (min-width: 783px) {
    .admin-bar .site-header {
        top: 32px;
    }
}

@media (max-width: 640px) {
    .site-container {
        width: calc(100% - 32px);
    }

    /* Default mobile layout before JavaScript navigation is activated. */
    .primary-nav {
        width: 100%;
    }

    .primary-menu {
        gap: 2px;
    }

    .primary-menu a {
        padding: 8px 12px;
    }

    .site-main {
        padding-block: 48px;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* ==========================================================================
   10. Mobile menu behaviour
   Only applies after main.js successfully activates navigation.
   Without JavaScript, menu links remain visible.
   ========================================================================== */

@media (max-width: 640px) {

    /* Allow the dropdown to anchor to the header. */
   /* Keep the mobile header and open navigation above page content. */
.js .site-header {
    position: relative;
    z-index: 1000;
}
    /* Keep branding and the Menu button on the same row. */
    .js .site-header__inner {
        flex-wrap: nowrap;
        gap: 12px;
    }

    .js .site-branding {
        min-width: 0;
    }

    .js .site-branding__link {
        gap: 8px;
    }

    .js .site-title {
        overflow-wrap: anywhere;
    }

    .js .primary-nav {
        width: auto;
        flex-shrink: 0;
    }

    .js .nav-toggle {
        display: inline-flex;
    }

    /* Hide the links while the mobile menu is closed. */
    .js .primary-menu {
        display: none;
    }

    /* Show the links in a dropdown when the menu is open. */
    .js .primary-nav.is-open .primary-menu {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 60;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
        padding: 12px 16px 16px;
        border-bottom: 1px solid var(--iim-border);
        background: var(--iim-navy);
        box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
    }

    .js .primary-menu a {
        padding: 12px;
    }
}


/* ==========================================================================
   11. Homepage (premium design)
   Styles for front-page.php. Subsections:
   11.1  Foundation and ambient background
   11.2  Shared typography, buttons, links
   11.3  Hero
   11.4  Focus strip
   11.5  About
   11.6  Services
   11.7  Featured projects
   11.8  Achievement
   11.9  Call to action

   Motion on this page is limited to the hero entrance and the slow ambient
   glow orbs. Nothing below the hero depends on an animation to be visible.
   ========================================================================== */


/* --------------------------------------------------------------------------
   11.1 Foundation and ambient background
   -------------------------------------------------------------------------- */

.iim-home {
    position: relative;
    isolation: isolate;
    /* The fallback line comes first; browsers that understand "clip"
       use the second line, which never creates a scroll container. */
    overflow-x: hidden;
    overflow-x: clip;
}

/* A faint grid that fades out below the hero. Purely decorative. */
.iim-home::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: 880px;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 72px 72px;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
    mask-image: linear-gradient(to bottom, #000 0%, transparent 85%);
}

.iim-about,
.iim-services,
.iim-projects,
.iim-achievement {
    padding-block: var(--iim-section-space);
}

/* The achievement panel follows the projects section directly, which
   already supplies the space above it. */
.iim-achievement {
    padding-top: 0;
}


/* --------------------------------------------------------------------------
   11.2 Shared typography, buttons, links
   -------------------------------------------------------------------------- */

.iim-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--iim-focus);
    font-family: var(--iim-font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Short gradient rule before every eyebrow label. */
.iim-eyebrow::before {
    content: "";
    flex-shrink: 0;
    width: 28px;
    height: 1px;
    background: linear-gradient(90deg, var(--iim-blue), var(--iim-focus));
}

.iim-section-heading {
    max-width: 720px;
    margin-bottom: clamp(32px, 5vw, 64px);
}

.iim-section-title {
    margin: 0;
    font-size: clamp(1.85rem, 1.2rem + 2.8vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* Buttons. These sit alongside the existing .button-primary class. */
.iim-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 14px 28px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-family: var(--iim-font-body);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transition:
        transform 240ms var(--iim-ease),
        border-color 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease;
}

.iim-button--primary {
    background: linear-gradient(135deg, var(--iim-blue) 0%, #4F46E5 100%);
    color: #fff;
    box-shadow:
        0 12px 32px -12px rgba(37, 99, 235, 0.75),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.iim-button--secondary {
    border-color: var(--iim-border-strong);
    background: rgba(255, 255, 255, 0.04);
    color: var(--iim-white);
}

/* Hover effects only on devices that can really hover (not touch screens). */
@media (hover: hover) and (pointer: fine) {
    .iim-button--primary:hover {
        transform: translateY(-2px);
        background: linear-gradient(135deg, #1D4ED8 0%, #4338CA 100%);
        box-shadow:
            0 18px 40px -14px rgba(79, 70, 229, 0.8),
            inset 0 1px 0 rgba(255, 255, 255, 0.22);
    }

    .iim-button--secondary:hover {
        transform: translateY(-2px);
        border-color: rgba(147, 197, 253, 0.55);
        background: rgba(255, 255, 255, 0.09);
    }
}

/* Text links with an arrow that nudges forward on hover. */
.iim-text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--iim-link);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 5px;
    transition: color 200ms ease, text-decoration-color 200ms ease;
}

.iim-text-link span {
    display: inline-block;
    transition: transform 240ms var(--iim-ease);
}

.iim-text-link:hover {
    color: #fff;
    text-decoration-color: rgba(147, 197, 253, 0.6);
}

.iim-text-link:hover span {
    transform: translateX(4px);
}


/* --------------------------------------------------------------------------
   11.3 Hero
   -------------------------------------------------------------------------- */

.iim-hero {
    position: relative;
    isolation: isolate;
    padding-block: clamp(40px, 9vw, 120px) clamp(56px, 10vw, 140px);
}

/* On tall desktop screens the hero fills most of the first view. */
@media (min-width: 900px) and (min-height: 720px) {
    .iim-hero {
        display: flex;
        align-items: center;
        min-height: min(84vh, 820px);
    }
}

/* Two soft ambient glow orbs, drifting very slowly (transform only). */
.iim-hero::before,
.iim-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: clamp(340px, 56vw, 780px);
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
}

.iim-hero::before {
    top: -14%;
    left: -14%;
    background: radial-gradient(circle, var(--iim-blue-glow) 0%, rgba(37, 99, 235, 0) 68%);
    animation: iim-drift-a 24s ease-in-out infinite alternate;
}

.iim-hero::after {
    right: -16%;
    bottom: -24%;
    background: radial-gradient(circle, var(--iim-violet-glow) 0%, rgba(124, 58, 237, 0) 68%);
    animation: iim-drift-b 28s ease-in-out infinite alternate;
}

/* The single column uses minmax(0, 1fr) so long words can never push the
   page wider than the screen. */
.iim-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(36px, 6vw, 80px);
    align-items: center;
}

.iim-hero .iim-eyebrow {
    display: flex;
    margin-bottom: 22px;
}

.iim-hero__title {
    margin: 0;
    font-size: clamp(2.1rem, 0.9rem + 4.6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.04;
    letter-spacing: -0.045em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

/* Subtle white-to-silver gradient on the heading where supported. */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .iim-hero__title {
        background: linear-gradient(180deg, #FFFFFF 25%, #B6C4DB 100%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }
}

.iim-hero__intro {
    max-width: 56ch;
    margin: clamp(20px, 3vw, 28px) 0 clamp(26px, 4vw, 36px);
    color: var(--iim-text-soft);
    font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.25rem);
    line-height: 1.7;
}

.iim-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Portrait area. The width leaves room for the offset frame so it never
   reaches the edge of the screen. */
.iim-hero__portrait {
    position: relative;
    isolation: isolate;
    width: min(calc(100% - 12px), 300px);
    margin: 0;
}

/* Offset outline behind the portrait for a layered, framed look. */
.iim-hero__portrait::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border: 1px solid rgba(147, 197, 253, 0.28);
    border-radius: var(--iim-radius-lg);
    transform: translate(12px, 12px);
}

.iim-hero__image {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 1px solid var(--iim-border-strong);
    border-radius: var(--iim-radius-lg);
    box-shadow:
        0 30px 90px -30px rgba(37, 99, 235, 0.55),
        0 40px 80px -36px rgba(0, 0, 0, 0.75);
}

/* Placeholder: layered glow, faint concentric rings and a solid base. */
.iim-hero__placeholder {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--iim-border-strong);
    border-radius: var(--iim-radius-lg);
    background:
        repeating-radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 38px),
        radial-gradient(90% 70% at 25% 15%, rgba(37, 99, 235, 0.55), transparent 60%),
        radial-gradient(80% 70% at 85% 95%, rgba(124, 58, 237, 0.45), transparent 60%),
        var(--iim-surface);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 30px 90px -30px rgba(37, 99, 235, 0.55),
        0 40px 80px -36px rgba(0, 0, 0, 0.75);
}

.iim-hero__initials {
    color: rgba(248, 250, 252, 0.92);
    font-family: var(--iim-font-heading);
    font-size: clamp(3.2rem, 2rem + 6vw, 7rem);
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 1;
}

/* Phones: buttons stack and fill the width instead of wrapping unevenly. */
@media (max-width: 479px) {
    .iim-hero__actions {
        flex-direction: column;
    }

    .iim-hero__actions .iim-button {
        width: 100%;
    }
}

/* Larger tablets and desktop: balanced two-column hero. */
@media (min-width: 900px) {
    .iim-hero__inner {
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    }

    .iim-hero__portrait {
        justify-self: end;
        width: min(calc(100% - 18px), 420px);
        margin-top: 32px;
    }

    .iim-hero__portrait::before {
        transform: translate(18px, 18px);
    }
}

/* Hero entrance: each element rises into place, one after another.
   Content is visible by default; this only adds a short intro. */
.iim-hero__content > *,
.iim-hero__portrait {
    animation: iim-rise 900ms var(--iim-ease) both;
}

.iim-hero__content > :nth-child(1) { animation-delay: 80ms; }
.iim-hero__content > :nth-child(2) { animation-delay: 180ms; }
.iim-hero__content > :nth-child(3) { animation-delay: 300ms; }
.iim-hero__content > :nth-child(4) { animation-delay: 420ms; }
.iim-hero__portrait { animation-delay: 480ms; }

@keyframes iim-rise {
    from {
        opacity: 0;
        translate: 0 22px;
    }

    to {
        opacity: 1;
        translate: 0 0;
    }
}

@keyframes iim-drift-a {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(48px, 36px, 0) scale(1.08);
    }
}

@keyframes iim-drift-b {
    from {
        transform: translate3d(0, 0, 0) scale(1.05);
    }

    to {
        transform: translate3d(-44px, -32px, 0) scale(0.96);
    }
}


/* --------------------------------------------------------------------------
   11.4 Focus strip
   -------------------------------------------------------------------------- */

.iim-focus {
    padding-block: 22px;
    border-block: 1px solid var(--iim-border);
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.05));
}

.iim-focus__list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iim-focus__item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 10px 18px;
    border: 1px solid var(--iim-border);
    border-radius: 999px;
    background: var(--iim-glass);
    color: var(--iim-text-soft);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
}

.iim-focus__item::before {
    content: "";
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--iim-blue), var(--iim-violet));
}


/* --------------------------------------------------------------------------
   11.5 About
   -------------------------------------------------------------------------- */

.iim-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.iim-about .iim-section-heading {
    margin-bottom: 0;
}

.iim-about__body {
    color: var(--iim-text-soft);
    font-size: clamp(1.02rem, 0.98rem + 0.4vw, 1.25rem);
    line-height: 1.75;
}

.iim-about__body p {
    max-width: 62ch;
    margin: 0 0 1.25em;
}

.iim-about__body p:last-child {
    margin-bottom: 0;
}

@media (min-width: 860px) {
    .iim-about__inner {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    }

    .iim-about__body {
        padding-left: clamp(24px, 3vw, 48px);
        border-left: 1px solid var(--iim-border);
    }
}


/* --------------------------------------------------------------------------
   11.6 Services
   -------------------------------------------------------------------------- */

.iim-services__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2vw, 24px);
    counter-reset: iim-service;
}

.iim-service-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(22px, 3vw, 36px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px -32px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    counter-increment: iim-service;
    transition:
        transform 320ms var(--iim-ease),
        border-color 320ms ease,
        box-shadow 320ms ease;
}

/* Soft blue glow that fades in behind the card text on hover. */
.iim-service-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -40%;
    left: -20%;
    width: 70%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.35), rgba(37, 99, 235, 0) 65%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease;
}

/* Decorative card number (01 to 04), generated by a CSS counter. */
.iim-service-card::after {
    content: counter(iim-service, decimal-leading-zero);
    position: absolute;
    top: 22px;
    right: 24px;
    color: var(--iim-muted);
    font-family: var(--iim-font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.iim-service-card__title {
    margin: 0 0 12px;
    padding-right: 44px;
    font-size: clamp(1.2rem, 1.08rem + 0.5vw, 1.55rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.iim-service-card__text {
    margin: 0;
    color: var(--iim-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.iim-services__more,
.iim-projects__more {
    margin: clamp(28px, 4vw, 44px) 0 0;
}

@media (min-width: 640px) {
    .iim-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Desktop: an asymmetrical layout (wide, narrow, narrow, wide). */
@media (min-width: 960px) {
    .iim-services__grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }

    .iim-service-card {
        justify-content: flex-end;
        min-height: 280px;
    }

    .iim-service-card:nth-child(1) { grid-column: span 7; }
    .iim-service-card:nth-child(2) { grid-column: span 5; }
    .iim-service-card:nth-child(3) { grid-column: span 5; }
    .iim-service-card:nth-child(4) { grid-column: span 7; }

}
.iim-service-card:nth-child(5) {
    grid-column: 4 / span 6;
}

@media (hover: hover) and (pointer: fine) {
    .iim-service-card:hover {
        transform: translateY(-4px);
        border-color: rgba(147, 197, 253, 0.35);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 32px 56px -30px rgba(37, 99, 235, 0.55);
    }

    .iim-service-card:hover::before {
        opacity: 1;
    }
}


/* --------------------------------------------------------------------------
   11.7 Featured projects
   -------------------------------------------------------------------------- */

/* One column on phones, two on tablets, three on desktop. */
.iim-projects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: clamp(16px, 2vw, 28px);
}

.iim-project-card {
    position: relative;
    isolation: isolate; /* Keeps the stretched-link overlay inside this card. */
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.025) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 24px 48px -32px rgba(0, 0, 0, 0.7);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition:
        transform 320ms var(--iim-ease),
        border-color 320ms ease,
        box-shadow 320ms ease;
}

/* The image link is hidden from keyboards and screen readers in the markup.
   It also ignores the pointer, so the title link is the only click target
   and the two links never compete. */
.iim-project-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--iim-surface);
    pointer-events: none;
}

/* Gentle darkening toward the bottom of the image. */
.iim-project-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(11, 18, 32, 0.55), rgba(11, 18, 32, 0) 50%);
}

.iim-project-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--iim-ease);
}

.iim-project-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 12px;
    padding: 22px 24px 26px;
}

.iim-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.iim-project-card__tag {
    padding: 5px 10px;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.16);
    color: #BFDBFE;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
}

.iim-project-card__title {
    margin: 0;
    font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.45rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

/* Stretched link: the title link's overlay covers the whole card, so the
   entire card is one single, clearly defined click target. The link itself
   stays unpositioned so the overlay is sized by the card. */
.iim-project-card__title a {
    position: static;
}

.iim-project-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: var(--iim-radius);
}

/* Keyboard focus: draw one clear ring around the whole card instead of
   only around the title text. */
.iim-project-card__title a:focus-visible {
    outline: none;
}

.iim-project-card__title a:focus-visible::after {
    outline: 3px solid var(--iim-focus);
    outline-offset: -3px;
}

.iim-project-card:focus-within {
    border-color: rgba(147, 197, 253, 0.55);
}

.iim-project-card__excerpt {
    margin: 0;
    color: var(--iim-muted);
    font-size: 0.98rem;
    line-height: 1.7;
}

/* Empty state, shown until the first project is published. */
.iim-projects__empty {
    max-width: 760px;
    padding: clamp(24px, 4vw, 48px);
    border-style: dashed;
    border-color: rgba(147, 197, 253, 0.28);
}

.iim-projects__empty p {
    margin: 0;
    color: var(--iim-text-soft);
    font-size: 1.05rem;
}

@media (hover: hover) and (pointer: fine) {
    .iim-project-card:hover {
        transform: translateY(-4px);
        border-color: rgba(147, 197, 253, 0.35);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.12),
            0 32px 56px -30px rgba(37, 99, 235, 0.55);
    }

    .iim-project-card:hover .iim-project-card__image {
        transform: scale(1.05);
    }
}


/* --------------------------------------------------------------------------
   11.8 Achievement
   -------------------------------------------------------------------------- */

.iim-achievement__panel {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 6vw, 88px);
    border-color: rgba(147, 197, 253, 0.26);
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(124, 58, 237, 0.28) 0%, rgba(124, 58, 237, 0) 55%),
        radial-gradient(110% 130% at 0% 100%, rgba(37, 99, 235, 0.3) 0%, rgba(37, 99, 235, 0) 55%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 40px 80px -48px rgba(37, 99, 235, 0.6);
}

/* Concentric rings, partly off the right edge. Decorative only. */
.iim-achievement__panel::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    right: calc(clamp(90px, 14vw, 220px) * -1);
    width: clamp(260px, 38vw, 460px);
    aspect-ratio: 1;
    border: 1px solid rgba(147, 197, 253, 0.22);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.22), rgba(37, 99, 235, 0) 65%);
    box-shadow:
        0 0 0 clamp(24px, 3vw, 44px) rgba(255, 255, 255, 0.018),
        0 0 0 clamp(48px, 6vw, 88px) rgba(255, 255, 255, 0.012);
    transform: translateY(-50%);
    pointer-events: none;
}

/* Phones: keep the rings quieter so text stays easy to read. */
@media (max-width: 640px) {
    .iim-achievement__panel::before {
        opacity: 0.55;
    }
}

.iim-achievement__title {
    max-width: 16em;
    margin: 0 0 18px;
    font-size: clamp(1.7rem, 1rem + 3vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.iim-achievement__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0 0 22px;
    color: var(--iim-focus);
    font-family: var(--iim-font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;
    text-transform: uppercase;
}

.iim-achievement__text {
    max-width: 56ch;
    margin: 0;
    color: var(--iim-text-soft);
    font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
    line-height: 1.7;
}


/* --------------------------------------------------------------------------
   11.9 Call to action
   -------------------------------------------------------------------------- */

.iim-cta {
    position: relative;
    isolation: isolate;
    padding-block: var(--iim-section-space);
    border-top: 1px solid var(--iim-border);
    text-align: center;
}

/* A wide, soft glow behind the closing message. */
.iim-cta::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 50%;
    left: 50%;
    width: min(900px, 130vw);
    aspect-ratio: 16 / 9;
    border-radius: 50%;
    background: radial-gradient(
        ellipse at center,
        rgba(37, 99, 235, 0.24) 0%,
        rgba(124, 58, 237, 0.12) 40%,
        rgba(124, 58, 237, 0) 70%
    );
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.iim-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.iim-cta__title {
    max-width: 18ch;
    margin: 0 0 20px;
    font-size: clamp(1.85rem, 1.1rem + 3.6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.045em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.iim-cta__text {
    max-width: 54ch;
    margin: 0 0 clamp(26px, 4vw, 36px);
    color: var(--iim-text-soft);
    font-size: clamp(1.02rem, 0.98rem + 0.3vw, 1.2rem);
    line-height: 1.7;
}

/* Phones: the closing button fills the width for an easy tap. */
@media (max-width: 479px) {
    .iim-cta__inner .iim-button {
        width: 100%;
    }
}


/* ==========================================================================
   12. Reduced motion
   People who ask their device to limit motion get no animations, no hover
   movement and instant transitions. All content stays fully visible.
   This section must stay last so it overrides everything above.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
    }

    .button-primary:hover,
    .iim-button:hover,
    .iim-service-card:hover,
    .iim-project-card:hover,
    .iim-project-card:hover .iim-project-card__image,
    .iim-text-link:hover span {
        transform: none !important;
    }
}
/* ==========================================================================
   13. Carousels (Projects and Achievements)

   Additive styles for the homepage carousels. Everything that changes layout
   is scoped to ".iim-carousel.is-carousel", a class that main.js adds only
   when a carousel is actually running. Without that class, the original
   static grid is untouched.
   ========================================================================== */


/* --------------------------------------------------------------------------
   13.1 Controls (Pause/Resume, Previous, Next)
   main.js builds the buttons and removes the "hidden" attribute. The :not()
   below keeps the browser's hidden behaviour working before that happens.
   -------------------------------------------------------------------------- */

.iim-carousel__controls:not([hidden]) {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    margin-bottom: 12px;
}

.iim-carousel__button {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--iim-border-strong);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--iim-white);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition:
        transform 240ms var(--iim-ease),
        border-color 240ms ease,
        background-color 240ms ease;
}

.iim-carousel__button:active {
    background: rgba(37, 99, 235, 0.28);
}

/* Visible keyboard focus (matches the rest of the site). */
.iim-carousel__button:focus-visible {
    outline: 3px solid var(--iim-focus);
    outline-offset: 3px;
}

/* The Pause button is highlighted while the user has paused the carousel. */
.iim-carousel__button--toggle.is-paused {
    border-color: rgba(147, 197, 253, 0.55);
    background: rgba(37, 99, 235, 0.28);
}

/* Hover effects only on devices that can really hover (not touch screens). */
@media (hover: hover) and (pointer: fine) {
    .iim-carousel__button:hover {
        transform: translateY(-1px);
        border-color: rgba(147, 197, 253, 0.55);
        background: rgba(255, 255, 255, 0.12);
    }
}



/* ==========================================================================
   13. Carousels (Projects and Achievements)

   The original static grid remains unchanged until main.js activates a
   carousel. When active, Previous and Next buttons sit at the left and
   right sides, vertically centered beside the cards.
   ========================================================================== */


/* --------------------------------------------------------------------------
   13.1 Carousel wrapper and navigation controls
   -------------------------------------------------------------------------- */

.iim-carousel.is-carousel {
    position: relative;
}

/* Keep the controls over the carousel instead of in a separate row. */
.iim-carousel__controls:not([hidden]) {
    position: absolute;
    top: 50%;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Only the buttons receive pointer events, not the full-width control row. */
.iim-carousel__button {
    display: inline-grid;
    flex: 0 0 auto;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid var(--iim-border-strong);
    border-radius: 50%;
    background: rgba(11, 18, 32, 0.92);
    color: var(--iim-white);
    font: inherit;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition:
        transform 240ms var(--iim-ease),
        border-color 240ms ease,
        background-color 240ms ease,
        box-shadow 240ms ease;
}

.iim-carousel__button:active {
    background: rgba(37, 99, 235, 0.85);
}

.iim-carousel__button:focus-visible {
    outline: 3px solid var(--iim-focus);
    outline-offset: 3px;
}

/* If an old Pause/Resume button remains in the markup, do not display it. */
.iim-carousel__button--toggle {
    display: none !important;
}

/* Hover effects only on devices that can really hover. */
@media (hover: hover) and (pointer: fine) {
    .iim-carousel__button:hover {
        transform: scale(1.08);
        border-color: rgba(147, 197, 253, 0.7);
        background: rgba(37, 99, 235, 0.9);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
}


/* --------------------------------------------------------------------------
   13.2 Button icons, drawn with CSS
   -------------------------------------------------------------------------- */

.iim-carousel__icon {
    position: relative;
    display: block;
    width: 18px;
    height: 18px;
}

.iim-carousel__icon::before,
.iim-carousel__icon::after {
    content: "";
    position: absolute;
}

/* Previous and Next: clean chevron arrows. */
.iim-carousel__button--previous .iim-carousel__icon::before,
.iim-carousel__button--next .iim-carousel__icon::before {
    top: 4px;
    width: 9px;
    height: 9px;
    border-style: solid;
    border-color: currentColor;
    border-width: 2px 2px 0 0;
}

.iim-carousel__button--previous .iim-carousel__icon::after,
.iim-carousel__button--next .iim-carousel__icon::after {
    content: none;
}

.iim-carousel__button--next .iim-carousel__icon::before {
    left: 3px;
    transform: rotate(45deg);
}

.iim-carousel__button--previous .iim-carousel__icon::before {
    left: 7px;
    transform: rotate(-135deg);
}


/* --------------------------------------------------------------------------
   13.3 Active carousel layout
   -------------------------------------------------------------------------- */

/* The viewport scrolls horizontally without showing a scrollbar. */
.iim-carousel.is-carousel .iim-carousel__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding-block: 12px 32px;
    scroll-behavior: auto;
    scroll-padding-inline: 48px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0,
        #000 32px,
        #000 calc(100% - 32px),
        transparent 100%
    );
}

.iim-carousel.is-carousel .iim-carousel__viewport::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* Keep the cards in a single horizontal row. */
.iim-carousel.is-carousel .iim-carousel__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: clamp(16px, 2vw, 28px);
    width: max-content;
}

/* Original cards and cloned cards share the same dimensions. */
.iim-carousel.is-carousel .iim-carousel__item {
    flex: 0 0 auto;
    width: clamp(280px, 32vw, 400px);
    min-width: 0;
}


/* --------------------------------------------------------------------------
   13.4 Smaller screens
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
    .iim-carousel__button {
        width: 40px;
        height: 40px;
    }

    .iim-carousel__controls:not([hidden]) {
        padding-inline: 2px;
    }

    .iim-carousel.is-carousel .iim-carousel__viewport {
        scroll-padding-inline: 28px;
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 20px,
            #000 calc(100% - 20px),
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 20px,
            #000 calc(100% - 20px),
            transparent 100%
        );
    }

    /* Keep the next card partly visible to suggest horizontal scrolling. */
    .iim-carousel.is-carousel .iim-carousel__item {
        width: clamp(250px, 82vw, 340px);
    }
}


/* --------------------------------------------------------------------------
   13.5 Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .iim-carousel__controls,
    .iim-carousel__button,
    .iim-carousel__button:hover,
    .iim-carousel__button:active {
        transition: none;
    }

    .iim-carousel__controls {
        transform: translateY(-50%);
    }

    .iim-carousel__button:hover {
        transform: none;
    }
}



/* --------------------------------------------------------------------------
   14.3 Smaller screens: a narrower edge fade
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: no-preference) and (max-width: 640px) {
    .iim-focus__marquee {
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
        mask-image: linear-gradient(to right, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
    }
}

/* =========================================================
   PROFESSIONAL FOCUS AREAS — CONTINUOUS HORIZONTAL TICKER
   ========================================================= */

/* Keep the ticker in a single horizontal row */
.iim-focus__marquee {
    display: block;
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Arrange the three ticker lists horizontally */
.iim-focus__track {
    display: flex !important;
    flex-flow: row nowrap !important;
    width: max-content;
    max-width: none;
    align-items: center;
    gap: 0;
    animation: iim-ticker 32s linear infinite !important;
    animation-play-state: running !important;
    will-change: transform;
}

/* Keep each set of pills on one line */
.iim-focus__list {
    display: flex !important;
    flex: 0 0 auto;
    flex-flow: row nowrap !important;
    align-items: center;
    gap: 12px;
    width: max-content;
    margin: 0;
    padding: 0 12px 0 0;
    list-style: none;
}

/* Show the duplicated lists needed for a seamless loop */
.iim-focus__list[hidden] {
    display: flex !important;
}

/* Prevent individual pills from wrapping */
.iim-focus__list li {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Never pause the ticker on hover or keyboard focus */
.iim-focus__marquee:hover .iim-focus__track,
.iim-focus__marquee:focus-within .iim-focus__track,
.iim-focus__track:hover {
    animation-play-state: running !important;
}

/* Continuous right-to-left movement across three lists */
@keyframes iim-ticker {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% / 3));
    }
}



/* =========================================
   TESTIMONIALS — INFINITE SCROLLING CAROUSEL
   ========================================= */

.iim-testimonials__viewport {
    --iim-testimonial-gap: 24px;
    overflow: hidden;
    width: 100%;
    margin-top: 36px;
    padding: 8px 0 18px;
}

.iim-testimonials__track {
    display: flex;
    align-items: stretch;
    gap: var(--iim-testimonial-gap);
    width: max-content;
    animation: iim-testimonials-scroll 48s linear infinite;
    will-change: transform;
}

.iim-testimonials__viewport:hover .iim-testimonials__track,
.iim-testimonials__viewport:focus-within .iim-testimonials__track {
    animation-play-state: paused;
}

.iim-testimonial {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    flex: 0 0 340px;
    width: 340px;
    min-height: 260px;
    padding: 26px;
    overflow-wrap: anywhere;
}

.iim-testimonial__content {
    flex: 1;
    line-height: 1.75;
}

.iim-testimonial__quote-mark {
    display: block;
    margin-bottom: 10px;
    color: var(--iim-accent, #2563eb);
    font-family: Georgia, serif;
    font-size: 52px;
    line-height: 0.8;
}

.iim-testimonial__text > :first-child {
    margin-top: 0;
}

.iim-testimonial__text > :last-child {
    margin-bottom: 0;
}

.iim-testimonial__author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 128, 128, 0.25);
}

.iim-testimonial__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: var(--iim-accent, #2563eb);
    font-size: 16px;
    font-weight: 700;
}

.iim-testimonial__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.iim-testimonial__identity {
    min-width: 0;
}

.iim-testimonial__name {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
}

@keyframes iim-testimonials-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 600px) {
    .iim-testimonials__viewport {
        --iim-testimonial-gap: 16px;
    }

    .iim-testimonial {
        flex-basis: min(82vw, 340px);
        width: min(82vw, 340px);
        padding: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-testimonials__track {
        animation: none;
        transform: none;
        width: 100%;
        flex-wrap: wrap;
    }

    .iim-testimonial {
        flex-basis: 100%;
        width: 100%;
    }
}


/* =========================================================
   BOOK LANDING PAGE
   ========================================================= */

.iim-book-page {
    overflow: hidden;
}

.iim-book-hero {
    position: relative;
    padding: clamp(72px, 10vw, 132px) 24px 88px;
    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 38%
        ),
        var(--wp--preset--color--base, #0B1220);
}

.iim-book-hero__inner,
.iim-book-details__inner {
    width: min(1120px, 100%);
    margin-inline: auto;
}

.iim-book-hero__inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(36px, 7vw, 88px);
}

.iim-book-hero__cover {
    width: 100%;
    max-width: 390px;
    margin-inline: auto;
    perspective: 1000px;
}

.iim-book-hero__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: 6px 14px 14px 6px;
    box-shadow:
        0 35px 70px rgba(0, 0, 0, 0.36),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

.iim-book-hero__placeholder {
    display: grid;
    align-content: center;
    gap: 24px;
    min-height: 420px;
    padding: 36px;
    color: #F8FAFC;
    text-align: center;
    background: linear-gradient(145deg, #172554, #0B1220);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    box-shadow: 0 35px 70px rgba(0, 0, 0, 0.3);
}

.iim-book-hero__placeholder h2 {
    color: inherit;
    overflow-wrap: anywhere;
}

.iim-book-hero__content {
    min-width: 0;
    color: #F8FAFC;
}

.iim-book-hero__content .iim-eyebrow,
.iim-book-details__inner > .iim-eyebrow {
    margin: 0 0 18px;
    color: #60A5FA;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.6;
}

.iim-book-hero__title {
    margin: 0 0 24px;
    color: #F8FAFC;
    font-size: clamp(2.3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.iim-book-hero__summary {
    margin-bottom: 24px;
    color: #CBD5E1;
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.8;
}

.iim-book-hero__description,
.iim-book-details__content {
    color: #CBD5E1;
    font-size: 1rem;
    line-height: 1.85;
}

.iim-book-hero__description > :first-child,
.iim-book-details__content > :first-child {
    margin-top: 0;
}

.iim-book-hero__actions {
    margin-top: 32px;
}

.iim-book-buy-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 54px;
    padding: 15px 25px;
    color: #FFFFFF;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    background: #2563EB;
    border: 1px solid #3B82F6;
    border-radius: 10px;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.25);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.iim-book-buy-button:hover {
    color: #FFFFFF;
    background: #1D4ED8;
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.34);
    transform: translateY(-2px);
}

.iim-book-buy-button:focus-visible {
    outline: 3px solid #93C5FD;
    outline-offset: 4px;
}

.iim-book-hero__note {
    margin: 14px 0 0;
    color: #94A3B8;
    font-size: 0.875rem;
    line-height: 1.7;
}

.iim-book-details {
    padding: 80px 24px 100px;
    background: #F8FAFC;
}

.iim-book-details__inner {
    max-width: 850px;
}

.iim-book-details__inner > .iim-eyebrow {
    color: #2563EB;
}

.iim-book-details__inner .iim-section-title {
    margin-top: 0;
    color: #0B1220;
    line-height: 1.2;
}

.iim-book-details__content {
    color: #334155;
}

.iim-book-details__cta {
    margin-top: 56px;
    padding: clamp(24px, 5vw, 44px);
    color: #F8FAFC;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(37, 99, 235, 0.25),
            transparent 50%
        ),
        #0B1220;
    border: 1px solid rgba(37, 99, 235, 0.25);
    border-radius: 18px;
}

.iim-book-details__cta h2 {
    margin-top: 0;
    color: #F8FAFC;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.25;
}

.iim-book-details__cta p {
    margin-bottom: 24px;
    color: #CBD5E1;
    line-height: 1.8;
}

@media (max-width: 760px) {
    .iim-book-hero {
        padding: 64px 20px 60px;
    }

    .iim-book-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .iim-book-hero__cover {
        width: min(76%, 310px);
    }

    .iim-book-hero__placeholder {
        min-height: 360px;
    }

    .iim-book-hero__title {
        font-size: clamp(2.1rem, 9vw, 3.25rem);
    }

    .iim-book-hero__actions .iim-book-buy-button {
        width: 100%;
    }

    .iim-book-details {
        padding: 60px 20px 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-book-buy-button {
        transition: none;
    }

    .iim-book-buy-button:hover {
        transform: none;
    }
}

/* =========================================================
   BOOKS I WROTE — HOMEPAGE CAROUSEL
   ========================================================= */

.iim-books {
    position: relative;
    padding: clamp(64px, 8vw, 100px) 0;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(37, 99, 235, 0.12),
            transparent 42%
        ),
        #0B1220;
}

.iim-books__heading {
    margin-bottom: 32px;
}

.iim-books__heading .iim-section-title {
    color: #F8FAFC;
}

.iim-books__heading .iim-section-description {
    max-width: 620px;
    color: #94A3B8;
}

.iim-books .iim-carousel {
    width: 100%;
}

.iim-books .iim-carousel__viewport {
    overflow: hidden;
}

.iim-books__track {
    align-items: stretch;
}

.iim-book-card {
    flex: 0 0 clamp(220px, 26vw, 300px);
    min-width: 0;
    overflow: hidden;
    padding: 0;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 16px;
    transition:
        border-color 200ms ease,
        background-color 200ms ease,
        box-shadow 200ms ease,
        transform 200ms ease;
}

.iim-book-card:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: rgba(96, 165, 250, 0.55);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
    transform: translateY(-4px);
}

.iim-book-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.iim-book-card__link:focus-visible {
    outline: 3px solid #60A5FA;
    outline-offset: -4px;
    border-radius: 16px;
}

.iim-book-card__cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 3 / 4;
    margin: 14px 14px 0;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 50% 30%,
            rgba(37, 99, 235, 0.18),
            transparent 70%
        ),
        #111827;
    border-radius: 8px;
}

.iim-book-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 350ms ease;
}

.iim-book-card:hover .iim-book-card__image {
    transform: scale(1.035);
}

.iim-book-card__placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 24px;
    color: #F8FAFC;
    text-align: center;
    background: linear-gradient(145deg, #172554, #0B1220);
}

.iim-book-card__placeholder-label {
    color: #93C5FD;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.iim-book-card__placeholder-title {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.iim-book-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 18px 22px;
}

.iim-book-card__title {
    margin: 0 0 10px;
    color: #F8FAFC;
    font-size: 1.1rem;
    font-weight: 750;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.iim-book-card__excerpt {
    margin: 0 0 18px;
    color: #AAB8CA;
    font-size: 0.9rem;
    line-height: 1.7;
}

.iim-book-card__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 8px;
    color: #93C5FD;
    font-size: 0.9rem;
    font-weight: 700;
}

.iim-book-card__link:hover .iim-book-card__action {
    color: #FFFFFF;
}

.iim-books__empty {
    padding: 28px;
    color: #CBD5E1;
}

.iim-books .iim-carousel__controls {
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .iim-books {
        padding: 60px 0;
    }

    .iim-book-card {
        flex-basis: min(76vw, 280px);
    }

    .iim-book-card__cover {
        margin: 10px 10px 0;
    }

    .iim-book-card__body {
        padding: 17px 15px 19px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-book-card,
    .iim-book-card__image {
        transition: none;
    }

    .iim-book-card:hover,
    .iim-book-card:hover .iim-book-card__image {
        transform: none;
    }
}

/* ==========================================================================
   BLOG PREVIEW — HOMEPAGE
   ========================================================================== */

.iim-blog {
	padding-block: clamp(4rem, 8vw, 7rem);
	overflow: hidden;
}

.iim-blog__heading {
	margin-bottom: 2rem;
}

.iim-blog__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.iim-blog-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.16);
	border-radius: 1rem;
	transition:
		transform 220ms ease,
		border-color 220ms ease,
		box-shadow 220ms ease;
}

.iim-blog-card:hover {
	transform: translateY(-4px);
	border-color: rgba(37, 99, 235, 0.55);
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

.iim-blog-card__image-link {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #111827;
}

.iim-blog-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 300ms ease;
}

.iim-blog-card:hover .iim-blog-card__image {
	transform: scale(1.035);
}

.iim-blog-card__image-placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	min-height: 10rem;
	place-items: center;
	padding: 1.5rem;
	background:
		radial-gradient(ellipse at top right, rgba(37, 99, 235, 0.35), transparent 60%),
		linear-gradient(135deg, #0b1220, #111827);
}

.iim-blog-card__image-placeholder span {
	color: #f8fafc;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-align: center;
	text-transform: uppercase;
}

.iim-blog-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: clamp(1.15rem, 2vw, 1.6rem);
}

.iim-blog-card__date {
	margin: 0 0 0.8rem;
	color: #94a3b8;
	font-size: 0.8rem;
	letter-spacing: 0.04em;
}

.iim-blog-card__title {
	margin: 0 0 0.8rem;
	font-size: clamp(1.15rem, 1.7vw, 1.4rem);
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.iim-blog-card__title a {
	color: inherit;
	text-decoration: none;
}

.iim-blog-card__title a:hover {
	color: #60a5fa;
}

.iim-blog-card__excerpt {
	margin: 0 0 1.25rem;
	color: #cbd5e1;
	font-size: 0.95rem;
	line-height: 1.75;
}

.iim-blog-card__read-more {
	margin-top: auto;
}

.iim-blog__empty {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid rgba(148, 163, 184, 0.18);
	border-radius: 1rem;
}

.iim-blog__empty p {
	margin-bottom: 0;
	color: #cbd5e1;
	line-height: 1.75;
}

.iim-blog__empty .iim-blog__empty-title {
	margin-bottom: 0.5rem;
	color: #f8fafc;
	font-size: 1.15rem;
	font-weight: 700;
}

.iim-blog__more {
	display: flex;
	justify-content: center;
	margin: 2rem 0 0;
}

.iim-blog-card a:focus-visible,
.iim-blog__more a:focus-visible {
	outline: 3px solid #60a5fa;
	outline-offset: 4px;
}

@media (max-width: 900px) {
	.iim-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.iim-blog__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.25rem;
	}

	.iim-blog-card__image-link {
		aspect-ratio: 16 / 9;
	}

	.iim-blog-card__body {
		padding: 1.2rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iim-blog-card,
	.iim-blog-card__image {
		transition: none;
	}

	.iim-blog-card:hover {
		transform: none;
	}

	.iim-blog-card:hover .iim-blog-card__image {
		transform: none;
	}
}


/* ==========================================================================
   BLOG ARCHIVE
   ========================================================================== */

.iim-blog-archive {
	padding-block: clamp(3rem, 7vw, 6rem);
}

.iim-blog-archive__header {
	max-width: 48rem;
	margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.iim-blog-archive__header .iim-section-title {
	margin-bottom: 1rem;
}

.iim-blog-archive__header .iim-section-description {
	line-height: 1.8;
}

.iim-blog-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.5rem;
	align-items: stretch;
}

.iim-blog-archive__pagination {
	margin-top: 3rem;
}

.iim-blog-archive__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
}

.iim-blog-archive__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.75rem;
	min-height: 2.75rem;
	padding: 0.5rem 0.8rem;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 0.65rem;
	color: inherit;
	text-decoration: none;
}

.iim-blog-archive__pagination a.page-numbers:hover,
.iim-blog-archive__pagination .page-numbers.current {
	border-color: #2563eb;
	background: rgba(37, 99, 235, 0.15);
}

.iim-blog-archive__pagination a:focus-visible {
	outline: 3px solid #60a5fa;
	outline-offset: 3px;
}

@media (max-width: 900px) {
	.iim-blog-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.iim-blog-archive__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ==========================================================================
   15. Footer contact area and social links
   ========================================================================== */

.site-footer {
    padding-block: clamp(48px, 7vw, 84px) 24px;
    background:
        radial-gradient(
            ellipse at 10% 0%,
            rgba(37, 99, 235, 0.12),
            transparent 45%
        ),
        #080E19;
}

.site-footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
    gap: 42px clamp(32px, 6vw, 88px);
}

.site-footer__contact,
.site-footer__social {
    min-width: 0;
}

.site-footer__eyebrow {
    margin: 0 0 12px;
    color: #93C5FD;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.site-footer__heading {
    margin: 0 0 14px;
    color: var(--iim-white);
    font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.site-footer__intro,
.site-footer__social-intro {
    max-width: 52ch;
    margin: 0 0 24px;
    color: var(--iim-muted);
    line-height: 1.8;
}

.site-footer__contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.site-footer__whatsapp-button,
.site-footer__email-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid transparent;
    border-radius: 12px;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 750;
    line-height: 1.35;
    text-align: center;
    transition:
        transform 200ms ease,
        background-color 200ms ease,
        border-color 200ms ease,
        box-shadow 200ms ease;
}

.site-footer__whatsapp-button {
    background: #15803D;
    color: #FFFFFF;
    box-shadow: 0 8px 24px rgba(21, 128, 61, 0.2);
}

.site-footer__email-button {
    border-color: var(--iim-border-strong);
    background: rgba(255, 255, 255, 0.045);
    color: var(--iim-white);
}

.site-footer__icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.site-footer__social-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.site-footer__social-list li {
    margin: 0;
    padding: 0;
}

.site-footer__social-list a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--iim-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--iim-text-soft);
    font-size: 0.9rem;
    font-weight: 650;
    transition:
        transform 200ms ease,
        border-color 200ms ease,
        background-color 200ms ease,
        color 200ms ease;
}

.site-footer__social-icon {
    display: block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
}

.site-footer__social-list a:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.55);
    background: rgba(37, 99, 235, 0.12);
    color: #FFFFFF;
}

.site-footer__whatsapp-button:hover {
    transform: translateY(-2px);
    background: #166534;
    color: #FFFFFF;
}

.site-footer__email-button:hover {
    transform: translateY(-2px);
    border-color: rgba(147, 197, 253, 0.55);
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
}

.site-footer a:focus-visible {
    outline: 3px solid var(--iim-focus);
    outline-offset: 4px;
}

.site-footer__inner > .footer-nav {
    grid-column: 1 / -1;
    padding-top: 24px;
    border-top: 1px solid var(--iim-border);
}

.site-footer__inner > .site-footer__copyright {
    grid-column: 1 / -1;
    margin: 0;
    padding-top: 20px;
    border-top: 1px solid var(--iim-border);
    color: var(--iim-muted);
    font-size: 0.85rem;
}

@media (max-width: 760px) {
    .site-footer__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .site-footer__inner > .footer-nav,
    .site-footer__inner > .site-footer__copyright {
        grid-column: 1;
    }

    .site-footer__contact-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .site-footer__whatsapp-button,
    .site-footer__email-button {
        width: 100%;
    }

    .site-footer__social-list {
        gap: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .site-footer__whatsapp-button,
    .site-footer__email-button,
    .site-footer__social-list a {
        transition: none;
    }

    .site-footer__whatsapp-button:hover,
    .site-footer__email-button:hover,
    .site-footer__social-list a:hover {
        transform: none;
    }
}
/* =========================================
   ABOUT ME PAGE
   ========================================= */

.about-page {
	padding-top: clamp(3rem, 7vw, 6rem);
	padding-bottom: clamp(4rem, 8vw, 7rem);
}

.about-page__header {
	max-width: 850px;
	margin: 0 auto clamp(3rem, 7vw, 5rem);
	text-align: center;
}

.about-page__eyebrow {
	margin: 0 0 1rem;
	color: #60a5fa;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.about-page__header h1 {
	margin: 0 0 1.5rem;
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.08;
	letter-spacing: -0.045em;
}

.about-page__intro {
	max-width: 760px;
	margin: 0 auto;
	font-size: clamp(1.05rem, 2vw, 1.3rem);
	line-height: 1.8;
	opacity: 0.9;
}

.about-page__section {
	max-width: 1000px;
	margin: 0 auto clamp(3.5rem, 7vw, 5.5rem);
}

.about-page__section > h2 {
	margin: 0 0 1.5rem;
	font-size: clamp(1.7rem, 4vw, 2.4rem);
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.about-page__section > p {
	line-height: 1.9;
}

.about-page__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 2rem;
}

.about-page__card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 1rem;
	background: rgba(148, 163, 184, 0.05);
}

.about-page__card h3 {
	margin: 0 0 0.85rem;
	font-size: 1.2rem;
	line-height: 1.4;
}

.about-page__card p {
	margin: 0;
	line-height: 1.8;
	opacity: 0.9;
}

.about-page__highlight {
	padding: clamp(1.5rem, 4vw, 2.5rem);
	border: 1px solid rgba(37, 99, 235, 0.45);
	border-radius: 1.25rem;
	background: rgba(37, 99, 235, 0.09);
}

.about-page__highlight h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.3rem, 3vw, 1.8rem);
	line-height: 1.4;
}

.about-page__highlight > p:not(.about-page__eyebrow) {
	line-height: 1.85;
}

.about-page__text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.75rem;
	font-weight: 700;
	text-decoration: none;
}

.about-page__text-link:hover {
	text-decoration: underline;
	text-underline-offset: 0.25em;
}

.about-page__values {
	display: grid;
	gap: 1rem;
	padding-left: 1.25rem;
	line-height: 1.85;
}

.about-page__values li {
	padding-left: 0.35rem;
}

.about-page__cta {
	padding: clamp(1.5rem, 5vw, 3.5rem);
	border: 1px solid rgba(148, 163, 184, 0.22);
	border-radius: 1.25rem;
	background: rgba(148, 163, 184, 0.05);
	text-align: center;
}

.about-page__cta > p {
	max-width: 650px;
	margin: 0 auto 1.75rem;
	line-height: 1.8;
}

.about-page__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1rem;
}

.about-page__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.85rem 1.35rem;
	border: 1px solid #2563eb;
	border-radius: 0.65rem;
	background: #2563eb;
	color: #fff;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease;
}

.about-page__button:hover {
	transform: translateY(-2px);
	background: #1d4ed8;
	color: #fff;
}

.about-page__button--secondary {
	border-color: rgba(148, 163, 184, 0.45);
	background: transparent;
	color: inherit;
}

.about-page__button--secondary:hover {
	background: rgba(148, 163, 184, 0.12);
	color: inherit;
}

.about-page a:focus-visible {
	outline: 3px solid #60a5fa;
	outline-offset: 4px;
}

@media (max-width: 640px) {
	.about-page__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.about-page__actions {
		flex-direction: column;
	}

	.about-page__button {
		width: 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.about-page__button {
		transition: none;
	}

	.about-page__button:hover {
		transform: none;
	}
}


/* About page: introduction and portrait */
.about-page__header--with-portrait {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
	align-items: center;
	gap: clamp(2rem, 5vw, 4.5rem);
	padding-block: clamp(3rem, 7vw, 6rem);
}

.about-page__header-content {
	min-width: 0;
}

.about-page__portrait {
	width: 100%;
	max-width: 420px;
	margin: 0 auto;
	overflow: hidden;
	border: 1px solid rgba(148, 163, 184, 0.25);
	border-radius: 1.5rem;
	background: #0B1220;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.22);
}

.about-page__portrait-image {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	object-position: center top;
}

/* Responsive About page portrait */
@media (max-width: 700px) {
	.about-page__header--with-portrait {
		grid-template-columns: minmax(0, 1fr);
		gap: 2rem;
		padding-block: 2.5rem;
	}

	.about-page__header-content {
		order: 1;
	}

	.about-page__portrait {
		order: 2;
		width: min(100%, 340px);
	}
}

/* ==========================================================================
   SERVICES PAGE — Intelligence in Motion
   Scoped styles to protect the homepage and other templates.
   ========================================================================== */

.services-page {
	--services-bg: #0b1220;
	--services-panel: #111c2e;
	--services-panel-hover: #15243a;
	--services-blue: #2563eb;
	--services-blue-light: #60a5fa;
	--services-white: #f8fafc;
	--services-muted: #a7b4c8;
	--services-border: rgba(148, 163, 184, 0.19);

	background: var(--services-bg);
	color: var(--services-white);
	overflow: hidden;
}

.services-page *,
.services-page *::before,
.services-page *::after {
	box-sizing: border-box;
}

.services-container {
	width: min(1160px, calc(100% - 48px));
	margin-inline: auto;
}

.services-page h1,
.services-page h2,
.services-page h3,
.services-page p {
	margin-top: 0;
}

.services-page h1,
.services-page h2,
.services-page h3 {
	color: var(--services-white);
	letter-spacing: -0.035em;
}

.services-page p {
	color: var(--services-muted);
	line-height: 1.8;
}

.services-page a {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.services-page a:focus-visible {
	outline: 3px solid var(--services-blue-light);
	outline-offset: 5px;
}

.services-eyebrow {
	margin-bottom: 18px;
	color: var(--services-blue-light) !important;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.17em;
	line-height: 1.5;
	text-transform: uppercase;
}

/* Hero */

.services-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(88px, 11vw, 148px) 0 88px;
	background:
		radial-gradient(
			ellipse at 83% 22%,
			rgba(37, 99, 235, 0.22),
			transparent 38%
		),
		radial-gradient(
			ellipse at 12% 85%,
			rgba(37, 99, 235, 0.09),
			transparent 34%
		),
		#0b1220;
	border-bottom: 1px solid var(--services-border);
}

.services-hero::after {
	position: absolute;
	z-index: -1;
	top: 12%;
	right: -110px;
	width: 380px;
	height: 380px;
	border: 1px solid rgba(96, 165, 250, 0.12);
	border-radius: 50%;
	box-shadow:
		0 0 0 42px rgba(96, 165, 250, 0.025),
		0 0 0 84px rgba(96, 165, 250, 0.02);
	content: "";
	pointer-events: none;
}

.services-hero .services-container {
	position: relative;
}

.services-hero h1 {
	max-width: 900px;
	margin-bottom: 26px;
	font-size: clamp(2.8rem, 7vw, 5.7rem);
	font-weight: 800;
	line-height: 1.04;
}

.services-hero h1 span,
.services-section-heading h2 span,
.services-approach h2 span,
.services-cta h2 span {
	color: var(--services-blue-light);
}

.services-hero__intro {
	max-width: 690px;
	margin-bottom: 32px;
	font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.services-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: center;
}

.services-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 22px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 0.94rem;
	font-weight: 750;
	text-decoration: none;
}

.services-button--primary {
	background: var(--services-blue);
	color: #fff !important;
	box-shadow: 0 8px 26px rgba(37, 99, 235, 0.2);
}

.services-button--primary:hover {
	transform: translateY(-2px);
	background: #1d4ed8;
	box-shadow: 0 12px 30px rgba(37, 99, 235, 0.3);
}

.services-button--secondary {
	border-color: rgba(148, 163, 184, 0.35);
	background: rgba(15, 23, 42, 0.35);
	color: var(--services-white) !important;
}

.services-button--secondary:hover {
	border-color: var(--services-blue-light);
	background: rgba(37, 99, 235, 0.1);
}

.services-hero__note {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 40px;
	color: var(--services-muted);
	font-size: 0.87rem;
}

.services-hero__indicator {
	width: 8px;
	height: 8px;
	flex: 0 0 8px;
	border-radius: 50%;
	background: #60a5fa;
	box-shadow: 0 0 15px rgba(96, 165, 250, 0.6);
}

/* Section heading and service cards */

.services-overview {
	padding: clamp(76px, 9vw, 112px) 0;
	background:
		linear-gradient(
			180deg,
			rgba(17, 28, 46, 0.42),
			transparent 260px
		),
		var(--services-bg);
}

.services-section-heading {
	max-width: 760px;
	margin-bottom: 44px;
}

.services-section-heading h2,
.services-approach h2,
.services-cta h2 {
	margin-bottom: 18px;
	font-size: clamp(2rem, 4vw, 3.3rem);
	font-weight: 800;
	line-height: 1.15;
}

.services-section-heading > p:last-child {
	max-width: 650px;
	margin-bottom: 0;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	scroll-margin-top: 40px;
}

.service-card {
	position: relative;
	display: flex;
	min-width: 0;
	flex-direction: column;
	padding: 28px 25px 24px;
	border: 1px solid var(--services-border);
	border-radius: 14px;
	background:
		linear-gradient(
			145deg,
			rgba(30, 49, 77, 0.42),
			rgba(17, 28, 46, 0.92) 65%
		);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
	transition:
		transform 220ms ease,
		border-color 220ms ease,
		background-color 220ms ease,
		box-shadow 220ms ease;
}

.service-card:hover {
	transform: translateY(-5px);
	border-color: rgba(96, 165, 250, 0.48);
	background-color: var(--services-panel-hover);
	box-shadow: 0 20px 44px rgba(0, 0, 0, 0.23);
}

.service-card__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 25px;
}

.service-card__number {
	display: inline-flex;
	min-width: 43px;
	min-height: 39px;
	align-items: center;
	justify-content: center;
	border: 1px solid rgba(96, 165, 250, 0.25);
	border-radius: 8px;
	background: rgba(37, 99, 235, 0.11);
	color: var(--services-blue-light);
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.service-card__mark {
	color: rgba(148, 163, 184, 0.7);
	font-size: 1.5rem;
	line-height: 1;
	transition: color 180ms ease, transform 180ms ease;
}

.service-card:hover .service-card__mark {
	transform: translate(2px, -2px);
	color: var(--services-blue-light);
}

.service-card h2 {
	margin-bottom: 14px;
	font-size: clamp(1.2rem, 1.8vw, 1.48rem);
	font-weight: 750;
	line-height: 1.35;
}

.service-card__description {
	margin-bottom: 23px;
	font-size: 0.94rem;
	line-height: 1.8;
}

.service-card__list {
	display: grid;
	gap: 12px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.service-card__list li {
	position: relative;
	padding-left: 22px;
	color: #d4deec;
	font-size: 0.88rem;
	line-height: 1.65;
}

.service-card__list li::before {
	position: absolute;
	top: 0.52em;
	left: 0;
	width: 8px;
	height: 8px;
	border: 2px solid var(--services-blue-light);
	border-radius: 50%;
	content: "";
}

.service-card__link {
	display: inline-flex;
	width: fit-content;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	padding-top: 17px;
	border-top: 1px solid var(--services-border);
	color: var(--services-blue-light) !important;
	font-size: 0.88rem;
	font-weight: 750;
	line-height: 1.6;
	text-decoration: none;
}

.service-card__link span {
	transition: transform 180ms ease;
}

.service-card__link:hover {
	color: #bfdbfe !important;
}

.service-card__link:hover span {
	transform: translateX(4px);
}

/* Working approach */

.services-approach {
	padding: clamp(72px, 9vw, 110px) 0;
	border-top: 1px solid var(--services-border);
	border-bottom: 1px solid var(--services-border);
	background:
		radial-gradient(
			ellipse at 5% 50%,
			rgba(37, 99, 235, 0.11),
			transparent 42%
		),
		#0e1829;
}

.services-approach__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
	gap: clamp(38px, 7vw, 100px);
	align-items: start;
}

.services-approach__inner > div:first-child {
	position: sticky;
	top: 35px;
}

.services-approach h2 {
	font-size: clamp(2rem, 3.7vw, 3rem);
}

.services-approach__content > p {
	margin-bottom: 30px;
}

.services-process {
	display: grid;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.services-process li {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr);
	gap: 18px;
	padding: 22px 0;
	border-top: 1px solid var(--services-border);
}

.services-process li > span {
	padding-top: 3px;
	color: var(--services-blue-light);
	font-size: 0.84rem;
	font-weight: 800;
	letter-spacing: 0.05em;
}

.services-process h3 {
	margin-bottom: 7px;
	font-size: 1.08rem;
	font-weight: 750;
	letter-spacing: -0.01em;
}

.services-process p {
	margin-bottom: 0;
	font-size: 0.92rem;
}

/* Final call to action */

.services-cta {
	padding: clamp(76px, 10vw, 125px) 0;
	background:
		radial-gradient(
			ellipse at 50% 100%,
			rgba(37, 99, 235, 0.2),
			transparent 58%
		),
		#0b1220;
	text-align: center;
}

.services-cta__inner {
	max-width: 800px;
}

.services-cta h2 {
	max-width: 760px;
	margin-inline: auto;
}

.services-cta__inner > p:not(.services-eyebrow) {
	max-width: 600px;
	margin: 0 auto 28px;
}

.services-cta .services-button {
	margin-top: 5px;
}

/* Tablet */

@media (max-width: 960px) {
	.services-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}

	.services-approach__inner {
		grid-template-columns: 1fr;
		gap: 28px;
	}

	.services-approach__inner > div:first-child {
		position: static;
		max-width: 700px;
	}
}

/* Mobile */

@media (max-width: 600px) {
	.services-container {
		width: calc(100% - 36px);
	}

	.services-hero {
		padding: 78px 0 64px;
	}

	.services-hero::after {
		top: 4%;
		right: -260px;
		width: 330px;
		height: 330px;
	}

	.services-hero h1 {
		font-size: clamp(2.55rem, 12vw, 3.7rem);
	}

	.services-hero__intro {
		font-size: 1rem;
	}

	.services-hero__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.services-hero__actions .services-button {
		width: 100%;
	}

	.services-hero__note {
		align-items: flex-start;
		font-size: 0.82rem;
	}

	.services-overview {
		padding: 66px 0;
	}

	.services-section-heading {
		margin-bottom: 30px;
	}

	.services-grid {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.service-card {
		padding: 25px 22px 22px;
	}

	.services-approach {
		padding: 66px 0;
	}

	.services-process li {
		grid-template-columns: 37px minmax(0, 1fr);
		gap: 12px;
	}

	.services-cta {
		padding: 72px 0;
	}
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
	.services-page *,
	.services-page *::before,
	.services-page *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}



/* =========================================================
   INTELLIGENCE IN MOTION
   PORTFOLIO ARCHIVE + PROJECT CASE STUDIES
   Scoped to .portfolio-page and .project-detail only
   ========================================================= */

/* ---------- Shared portfolio and case-study foundations ---------- */

.portfolio-page,
.project-detail {
	--portfolio-bg: #0b1220;
	--portfolio-surface: #111c2e;
	--portfolio-surface-light: #16243a;
	--portfolio-text: #f8fafc;
	--portfolio-muted: #aab7ca;
	--portfolio-blue: #2563eb;
	--portfolio-border: rgba(148, 163, 184, 0.2);
	--portfolio-radius: 20px;
	--portfolio-content-width: 1180px;

	background: var(--portfolio-bg);
	color: var(--portfolio-text);
	font-family: inherit;
	overflow-wrap: anywhere;
}

.portfolio-page *,
.project-detail * {
	box-sizing: border-box;
}

.portfolio-page img,
.project-detail img {
	display: block;
	max-width: 100%;
}

.portfolio-page a,
.project-detail a {
	transition:
		color 180ms ease,
		background-color 180ms ease,
		border-color 180ms ease,
		transform 180ms ease,
		box-shadow 180ms ease;
}

.portfolio-page a:focus-visible,
.project-detail a:focus-visible {
	outline: 3px solid #60a5fa;
	outline-offset: 5px;
	border-radius: 4px;
}

.portfolio-container,
.project-detail__container {
	width: min(
		var(--portfolio-content-width),
		calc(100% - 48px)
	);
	margin-inline: auto;
}

/* ---------- Shared eyebrow labels ---------- */

.portfolio-page .portfolio-eyebrow,
.project-detail .project-detail__eyebrow {
	margin: 0 0 18px;
	color: #60a5fa;
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.16em;
	line-height: 1.6;
	text-transform: uppercase;
}

/* =========================================================
   PORTFOLIO ARCHIVE
   archive-iim_project.php
   ========================================================= */

/* ---------- Portfolio hero ---------- */

.portfolio-page .portfolio-hero {
	position: relative;
	isolation: isolate;
	padding: clamp(76px, 11vw, 142px) 0 100px;
	border-bottom: 1px solid var(--portfolio-border);
	background:
		radial-gradient(
			ellipse at 82% 15%,
			rgba(37, 99, 235, 0.22),
			transparent 38%
		),
		linear-gradient(135deg, #0b1220 0%, #101b2e 58%, #0b1220 100%);
}

.portfolio-page .portfolio-hero::after {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: min(45%, 540px);
	height: 100%;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
	background-size: 38px 38px;
	content: "";
	mask-image: linear-gradient(to left, #000, transparent);
	pointer-events: none;
}

.portfolio-page .portfolio-hero .portfolio-container {
	position: relative;
	z-index: 1;
}

.portfolio-page .portfolio-hero h1 {
	max-width: 950px;
	margin: 0;
	color: #f8fafc;
	font-size: clamp(2.8rem, 6.7vw, 5.7rem);
	font-weight: 800;
	letter-spacing: -0.065em;
	line-height: 1.02;
	text-wrap: balance;
}

.portfolio-page .portfolio-hero h1 span {
	display: block;
	margin-top: 12px;
	color: #60a5fa;
}

.portfolio-page .portfolio-hero__intro {
	max-width: 720px;
	margin: 28px 0 0;
	color: var(--portfolio-muted);
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.9;
}

.portfolio-page .portfolio-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 32px;
	color: #dbeafe;
	font-size: 0.9rem;
	font-weight: 600;
}

.portfolio-page .portfolio-hero__dot {
	flex: 0 0 9px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #60a5fa;
	box-shadow: 0 0 0 5px rgba(96, 165, 250, 0.13);
}

/* ---------- Portfolio listing section ---------- */

.portfolio-page .portfolio-listing {
	padding: clamp(70px, 9vw, 112px) 0;
	background: #0b1220;
}

.portfolio-page .portfolio-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 36px;
	margin-bottom: 38px;
}

.portfolio-page .portfolio-section-heading > div {
	min-width: 0;
}

.portfolio-page .portfolio-section-heading .portfolio-eyebrow {
	margin-bottom: 12px;
}

.portfolio-page .portfolio-section-heading h2 {
	margin: 0;
	color: #f8fafc;
	font-size: clamp(2rem, 4vw, 3.25rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.1;
}

.portfolio-page .portfolio-section-heading__description {
	max-width: 430px;
	margin: 0;
	color: var(--portfolio-muted);
	font-size: 0.98rem;
	line-height: 1.8;
}

/* ---------- Category filter links ---------- */

.portfolio-page .portfolio-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 36px;
	padding: 0 0 26px;
	border-bottom: 1px solid var(--portfolio-border);
}

.portfolio-page .portfolio-filter {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 17px;
	border: 1px solid var(--portfolio-border);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.025);
	color: #cbd5e1;
	font-size: 0.86rem;
	font-weight: 650;
	line-height: 1.4;
	text-decoration: none;
}

.portfolio-page .portfolio-filter:hover,
.portfolio-page .portfolio-filter:focus-visible {
	border-color: #60a5fa;
	background: rgba(37, 99, 235, 0.14);
	color: #ffffff;
}

.portfolio-page .portfolio-filter.is-active {
	border-color: var(--portfolio-blue);
	background: var(--portfolio-blue);
	color: #ffffff;
}

/* ---------- Responsive project card grid ---------- */

.portfolio-page .portfolio-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 26px;
}

/* ---------- Individual project card ---------- */

.portfolio-page .portfolio-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--portfolio-border);
	border-radius: var(--portfolio-radius);
	background: linear-gradient(
		160deg,
		rgba(22, 36, 58, 0.98),
		rgba(15, 25, 42, 0.98)
	);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.portfolio-page .portfolio-card:hover {
	transform: translateY(-6px);
	border-color: rgba(96, 165, 250, 0.65);
	box-shadow: 0 24px 52px rgba(0, 0, 0, 0.24);
}

.portfolio-page .portfolio-card__image {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background:
		radial-gradient(
			circle at 75% 25%,
			rgba(37, 99, 235, 0.35),
			transparent 45%
		),
		linear-gradient(135deg, #17263d, #0b1220);
	text-decoration: none;
}

.portfolio-page .portfolio-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.portfolio-page .portfolio-card:hover .portfolio-card__image img {
	transform: scale(1.045);
}

.portfolio-page .portfolio-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 180px;
	background:
		linear-gradient(rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.02)),
		linear-gradient(135deg, #16243a, #0b1220);
}

.portfolio-page .portfolio-card__placeholder span {
	color: #93c5fd;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.22em;
}

.portfolio-page .portfolio-card__image-arrow {
	position: absolute;
	right: 15px;
	bottom: 15px;
	display: grid;
	width: 42px;
	height: 42px;
	place-items: center;
	border: 1px solid rgba(255, 255, 255, 0.22);
	border-radius: 50%;
	background: rgba(11, 18, 32, 0.78);
	color: #ffffff;
	font-size: 1.25rem;
	backdrop-filter: blur(10px);
}

.portfolio-page .portfolio-card:hover .portfolio-card__image-arrow {
	background: var(--portfolio-blue);
	transform: translate(2px, -2px);
}

.portfolio-page .portfolio-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 25px;
}

.portfolio-page .portfolio-card__categories {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-bottom: 15px;
	color: #93c5fd;
	font-size: 0.75rem;
	font-weight: 750;
	line-height: 1.7;
}

.portfolio-page .portfolio-card__categories a {
	color: #93c5fd;
	text-decoration: none;
}

.portfolio-page .portfolio-card__categories a:hover {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 4px;
}

.portfolio-page .portfolio-card__separator {
	color: #64748b;
}

.portfolio-page .portfolio-card__uncategorized {
	margin: 0 0 14px;
	color: #93c5fd;
	font-size: 0.75rem;
	font-weight: 750;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.portfolio-page .portfolio-card__title {
	margin: 0;
	font-size: clamp(1.2rem, 1.8vw, 1.5rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.35;
}

.portfolio-page .portfolio-card__title a {
	color: #f8fafc;
	text-decoration: none;
}

.portfolio-page .portfolio-card__title a:hover {
	color: #93c5fd;
}

.portfolio-page .portfolio-card__excerpt {
	margin: 14px 0 24px;
	color: var(--portfolio-muted);
	font-size: 0.92rem;
	line-height: 1.85;
}

.portfolio-page .portfolio-card__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
	color: #93c5fd;
	font-size: 0.9rem;
	font-weight: 750;
	text-decoration: none;
}

.portfolio-page .portfolio-card__link span {
	transition: transform 180ms ease;
}

.portfolio-page .portfolio-card__link:hover {
	color: #ffffff;
}

.portfolio-page .portfolio-card__link:hover span {
	transform: translateX(4px);
}

/* ---------- Pagination ---------- */

.portfolio-page .navigation.pagination {
	margin-top: 48px;
}

.portfolio-page .navigation.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 9px;
}

.portfolio-page .navigation.pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 10px 14px;
	border: 1px solid var(--portfolio-border);
	border-radius: 10px;
	background: var(--portfolio-surface);
	color: #e2e8f0;
	font-size: 0.9rem;
	text-decoration: none;
}

.portfolio-page .navigation.pagination a.page-numbers:hover,
.portfolio-page .navigation.pagination .page-numbers.current {
	border-color: var(--portfolio-blue);
	background: var(--portfolio-blue);
	color: #ffffff;
}

/* ---------- Empty portfolio state ---------- */

.portfolio-page .portfolio-empty {
	position: relative;
	padding: clamp(34px, 6vw, 68px);
	overflow: hidden;
	border: 1px solid var(--portfolio-border);
	border-radius: 24px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(37, 99, 235, 0.18),
			transparent 42%
		),
		var(--portfolio-surface);
}

.portfolio-page .portfolio-empty__number {
	display: block;
	margin-bottom: 22px;
	color: #60a5fa;
	font-size: 0.8rem;
	font-weight: 800;
	letter-spacing: 0.15em;
}

.portfolio-page .portfolio-empty h2 {
	max-width: 680px;
	margin: 0;
	color: #f8fafc;
	font-size: clamp(1.8rem, 4vw, 3rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.15;
}

.portfolio-page .portfolio-empty p {
	max-width: 620px;
	margin: 18px 0 28px;
	color: var(--portfolio-muted);
	line-height: 1.8;
}

/* ---------- Shared portfolio CTA button ---------- */

.portfolio-page .portfolio-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 50px;
	padding: 14px 21px;
	border: 1px solid var(--portfolio-blue);
	border-radius: 10px;
	background: var(--portfolio-blue);
	color: #ffffff;
	font-size: 0.9rem;
	font-weight: 750;
	line-height: 1.4;
	text-align: center;
	text-decoration: none;
}

.portfolio-page .portfolio-button:hover {
	border-color: #60a5fa;
	background: #1d4ed8;
	color: #ffffff;
	transform: translateY(-2px);
	box-shadow: 0 12px 25px rgba(37, 99, 235, 0.22);
}

.portfolio-page .portfolio-button span {
	transition: transform 180ms ease;
}

.portfolio-page .portfolio-button:hover span {
	transform: translateX(3px);
}

/* ---------- Portfolio closing CTA ---------- */

.portfolio-page .portfolio-cta {
	position: relative;
	padding: clamp(70px, 9vw, 112px) 0;
	overflow: hidden;
	border-top: 1px solid var(--portfolio-border);
	background:
		radial-gradient(
			ellipse at 80% 50%,
			rgba(37, 99, 235, 0.24),
			transparent 48%
		),
		#101b2e;
}

.portfolio-page .portfolio-cta__inner {
	max-width: 900px;
}

.portfolio-page .portfolio-cta h2 {
	max-width: 850px;
	margin: 0;
	color: #f8fafc;
	font-size: clamp(2.2rem, 5.2vw, 4.5rem);
	font-weight: 800;
	letter-spacing: -0.055em;
	line-height: 1.08;
	text-wrap: balance;
}

.portfolio-page .portfolio-cta h2 span {
	color: #60a5fa;
}

.portfolio-page .portfolio-cta__inner > p:not(.portfolio-eyebrow) {
	max-width: 680px;
	margin: 23px 0 30px;
	color: var(--portfolio-muted);
	font-size: 1rem;
	line-height: 1.9;
}

/* =========================================================
   SINGLE PROJECT CASE STUDY
   single-iim_project.php
   ========================================================= */

/* ---------- Case-study hero ---------- */

.project-detail .project-detail__hero {
	position: relative;
	isolation: isolate;
	padding: 30px 0 clamp(64px, 9vw, 108px);
	overflow: hidden;
	border-bottom: 1px solid var(--portfolio-border);
	background:
		radial-gradient(
			ellipse at 85% 30%,
			rgba(37, 99, 235, 0.2),
			transparent 42%
		),
		linear-gradient(145deg, #0b1220, #101b2e);
}

.project-detail .project-detail__hero::after {
	position: absolute;
	z-index: -1;
	top: 0;
	right: 0;
	width: 40%;
	height: 100%;
	background-image:
		linear-gradient(rgba(148, 163, 184, 0.045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(148, 163, 184, 0.045) 1px, transparent 1px);
	background-size: 34px 34px;
	content: "";
	mask-image: linear-gradient(to left, #000, transparent);
	pointer-events: none;
}

/* ---------- Breadcrumb navigation ---------- */

.project-detail .project-detail__breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 0 0 50px;
	color: #7f91aa;
	font-size: 0.82rem;
	line-height: 1.7;
}

.project-detail .project-detail__breadcrumb a {
	color: #cbd5e1;
	text-decoration: none;
}

.project-detail .project-detail__breadcrumb a:hover {
	color: #93c5fd;
}

.project-detail .project-detail__breadcrumb [aria-current="page"] {
	color: #93c5fd;
}

/* ---------- Case-study categories ---------- */

.project-detail .project-detail__hero > .project-detail__container {
	position: relative;
	z-index: 1;
}

.project-detail .project-detail__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin: 0 0 20px;
}

.project-detail .project-detail__categories a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	padding: 7px 12px;
	border: 1px solid rgba(96, 165, 250, 0.35);
	border-radius: 999px;
	background: rgba(37, 99, 235, 0.12);
	color: #bfdbfe;
	font-size: 0.76rem;
	font-weight: 700;
	line-height: 1.4;
	text-decoration: none;
}

.project-detail .project-detail__categories a:hover {
	border-color: #60a5fa;
	background: rgba(37, 99, 235, 0.25);
	color: #ffffff;
}

.project-detail .project-detail__hero .project-detail__eyebrow {
	margin-bottom: 15px;
}

/* ---------- Project title, summary and publication date ---------- */

.project-detail .project-detail__title {
	max-width: 1000px;
	margin: 0;
	color: #f8fafc;
	font-size: clamp(2.5rem, 6vw, 5.2rem);
	font-weight: 800;
	letter-spacing: -0.06em;
	line-height: 1.04;
	text-wrap: balance;
}

.project-detail .project-detail__summary {
	max-width: 790px;
	margin: 25px 0 0;
	color: #c0ccdc;
	font-size: clamp(1.05rem, 1.8vw, 1.25rem);
	line-height: 1.9;
}

.project-detail .project-detail__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 32px;
	color: #93a4bb;
	font-size: 0.85rem;
}

.project-detail .project-detail__meta span {
	color: #71839b;
}

.project-detail .project-detail__meta time {
	color: #e2e8f0;
	font-weight: 650;
}

/* ---------- Main case-study content section ---------- */

.project-detail .project-detail__content-section {
	padding: clamp(48px, 7vw, 84px) 0;
	background: #0b1220;
}

/* ---------- Featured project image ---------- */

.project-detail .project-detail__featured-image {
	position: relative;
	margin: 0 0 54px;
	overflow: hidden;
	border: 1px solid var(--portfolio-border);
	border-radius: 22px;
	background: var(--portfolio-surface);
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

.project-detail .project-detail__featured-image img {
	width: 100%;
	max-height: 680px;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	object-position: center;
}

/* ---------- Article and sidebar layout ---------- */

.project-detail .project-detail__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
	align-items: start;
	gap: clamp(32px, 5vw, 70px);
}

.project-detail .project-detail__article {
	min-width: 0;
}

.project-detail .project-detail__body {
	color: #c4cfdd;
	font-size: 1rem;
	line-height: 1.95;
	overflow-wrap: anywhere;
}

.project-detail .project-detail__body > :first-child {
	margin-top: 0;
}

.project-detail .project-detail__body > :last-child {
	margin-bottom: 0;
}

/* ---------- Article typography ---------- */

.project-detail .project-detail__body h2 {
	margin: 1.9em 0 0.65em;
	color: #f8fafc;
	font-size: clamp(1.65rem, 3vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.2;
}

.project-detail .project-detail__body h3 {
	margin: 1.8em 0 0.6em;
	color: #f1f5f9;
	font-size: clamp(1.25rem, 2.5vw, 1.55rem);
	font-weight: 750;
	letter-spacing: -0.025em;
	line-height: 1.35;
}

.project-detail .project-detail__body h4 {
	margin: 1.6em 0 0.5em;
	color: #e2e8f0;
	font-size: 1.1rem;
	font-weight: 750;
	line-height: 1.4;
}

.project-detail .project-detail__body p {
	margin: 0 0 1.45em;
}

.project-detail .project-detail__body a {
	color: #93c5fd;
	text-decoration: underline;
	text-decoration-color: rgba(147, 197, 253, 0.45);
	text-underline-offset: 4px;
}

.project-detail .project-detail__body a:hover {
	color: #ffffff;
	text-decoration-color: #ffffff;
}

.project-detail .project-detail__body ul,
.project-detail .project-detail__body ol {
	margin: 0 0 1.6em;
	padding-left: 1.5em;
}

.project-detail .project-detail__body li {
	margin-bottom: 0.55em;
	padding-left: 0.2em;
}

.project-detail .project-detail__body li::marker {
	color: #60a5fa;
}

.project-detail .project-detail__body blockquote {
	margin: 2em 0;
	padding: 20px 24px;
	border-left: 3px solid #3b82f6;
	border-radius: 0 12px 12px 0;
	background: rgba(37, 99, 235, 0.08);
	color: #e2e8f0;
}

.project-detail .project-detail__body blockquote > :last-child {
	margin-bottom: 0;
}

.project-detail .project-detail__body img {
	height: auto;
	margin: 28px 0;
	border: 1px solid var(--portfolio-border);
	border-radius: 14px;
}

.project-detail .project-detail__body figure {
	max-width: 100%;
	margin: 28px 0;
}

.project-detail .project-detail__body figure img {
	margin: 0;
}

.project-detail .project-detail__body figcaption {
	margin-top: 10px;
	color: #94a3b8;
	font-size: 0.83rem;
	line-height: 1.7;
}

.project-detail .project-detail__body pre {
	max-width: 100%;
	padding: 20px;
	overflow-x: auto;
	border: 1px solid var(--portfolio-border);
	border-radius: 12px;
	background: #070d17;
	color: #dbeafe;
	font-size: 0.88rem;
	line-height: 1.7;
}

.project-detail .project-detail__body code {
	font-family: "JetBrains Mono", Consolas, monospace;
	font-size: 0.9em;
}

.project-detail .project-detail__body table {
	width: 100%;
	margin: 28px 0;
	border-collapse: collapse;
	font-size: 0.9rem;
}

.project-detail .project-detail__body th,
.project-detail .project-detail__body td {
	padding: 12px 14px;
	border: 1px solid var(--portfolio-border);
	text-align: left;
	vertical-align: top;
}

.project-detail .project-detail__body th {
	background: var(--portfolio-surface);
	color: #f8fafc;
}

.project-detail .project-detail__body hr {
	margin: 38px 0;
	border: 0;
	border-top: 1px solid var(--portfolio-border);
}

/* ---------- Project overview sidebar ---------- */

.project-detail .project-detail__sidebar {
	min-width: 0;
}

.project-detail .project-detail__sidebar-card {
	position: sticky;
	top: 30px;
	padding: 28px;
	border: 1px solid var(--portfolio-border);
	border-radius: 18px;
	background:
		radial-gradient(
			circle at 100% 0,
			rgba(37, 99, 235, 0.12),
			transparent 45%
		),
		linear-gradient(155deg, #142238, #101a2b);
	box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.project-detail .project-detail__sidebar-card .project-detail__eyebrow {
	margin-bottom: 13px;
	font-size: 0.7rem;
}

.project-detail .project-detail__sidebar-card h2 {
	margin: 0 0 15px;
	color: #f8fafc;
	font-size: 1.55rem;
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.25;
}

.project-detail .project-detail__sidebar-card > p:not(.project-detail__eyebrow) {
	margin: 0 0 24px;
	color: var(--portfolio-muted);
	font-size: 0.9rem;
	line-height: 1.8;
}

.project-detail .project-detail__sidebar-card h3 {
	margin: 26px 0 13px;
	color: #e2e8f0;
	font-size: 0.92rem;
	font-weight: 750;
}

.project-detail .project-detail__service-list {
	display: grid;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.project-detail .project-detail__service-list li {
	margin: 0;
	padding: 0;
}

.project-detail .project-detail__service-list a {
	display: block;
	padding: 11px 13px;
	border: 1px solid var(--portfolio-border);
	border-radius: 9px;
	background: rgba(255, 255, 255, 0.025);
	color: #cbd5e1;
	font-size: 0.85rem;
	line-height: 1.6;
	text-decoration: none;
}

.project-detail .project-detail__service-list a:hover {
	border-color: rgba(96, 165, 250, 0.55);
	background: rgba(37, 99, 235, 0.12);
	color: #ffffff;
}

/* ---------- Case-study CTA buttons ---------- */

.project-detail .project-detail__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 48px;
	padding: 13px 17px;
	border: 1px solid var(--portfolio-blue);
	border-radius: 9px;
	background: var(--portfolio-blue);
	color: #ffffff;
	font-size: 0.87rem;
	font-weight: 750;
	line-height: 1.5;
	text-align: center;
	text-decoration: none;
}

.project-detail .project-detail__button:hover {
	border-color: #60a5fa;
	background: #1d4ed8;
	color: #ffffff;
	transform: translateY(-2px);
}

.project-detail .project-detail__sidebar-card > .project-detail__button {
	width: 100%;
	margin-top: 27px;
}

/* ---------- Back to portfolio link ---------- */

.project-detail .project-detail__back {
	margin-top: 52px;
	padding-top: 28px;
	border-top: 1px solid var(--portfolio-border);
}

.project-detail .project-detail__back a {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	color: #93c5fd;
	font-size: 0.92rem;
	font-weight: 700;
	text-decoration: none;
}

.project-detail .project-detail__back a:hover {
	color: #ffffff;
}

.project-detail .project-detail__back a span {
	transition: transform 180ms ease;
}

.project-detail .project-detail__back a:hover span {
	transform: translateX(-4px);
}

/* ---------- Closing case-study CTA ---------- */

.project-detail .project-detail__cta {
	padding: clamp(66px, 9vw, 105px) 0;
	border-top: 1px solid var(--portfolio-border);
	background:
		radial-gradient(
			ellipse at 80% 50%,
			rgba(37, 99, 235, 0.22),
			transparent 48%
		),
		#101b2e;
}

.project-detail .project-detail__cta .project-detail__container {
	max-width: 1180px;
}

.project-detail .project-detail__cta h2 {
	max-width: 780px;
	margin: 0;
	color: #f8fafc;
	font-size: clamp(2rem, 4.5vw, 3.8rem);
	font-weight: 800;
	letter-spacing: -0.05em;
	line-height: 1.12;
	text-wrap: balance;
}

.project-detail .project-detail__cta p:not(.project-detail__eyebrow) {
	max-width: 650px;
	margin: 20px 0 28px;
	color: var(--portfolio-muted);
	font-size: 1rem;
	line-height: 1.85;
}

/* =========================================================
   TABLET RESPONSIVENESS
   ========================================================= */

@media (max-width: 1024px) {
	.portfolio-page .portfolio-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.project-detail .project-detail__layout {
		grid-template-columns: minmax(0, 1fr) minmax(230px, 280px);
		gap: 30px;
	}

	.project-detail .project-detail__sidebar-card {
		padding: 22px;
	}
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 700px) {
	.portfolio-container,
	.project-detail__container {
		width: calc(100% - 36px);
	}

	.portfolio-page .portfolio-hero {
		padding: 76px 0 70px;
	}

	.portfolio-page .portfolio-hero::after,
	.project-detail .project-detail__hero::after {
		width: 75%;
		opacity: 0.6;
	}

	.portfolio-page .portfolio-hero h1 {
		font-size: clamp(2.55rem, 11vw, 4.2rem);
		letter-spacing: -0.055em;
	}

	.portfolio-page .portfolio-hero__intro {
		margin-top: 23px;
		font-size: 0.98rem;
		line-height: 1.8;
	}

	.portfolio-page .portfolio-hero__meta {
		align-items: flex-start;
		font-size: 0.83rem;
		line-height: 1.6;
	}

	.portfolio-page .portfolio-listing {
		padding: 64px 0;
	}

	.portfolio-page .portfolio-section-heading {
		display: block;
		margin-bottom: 28px;
	}

	.portfolio-page .portfolio-section-heading__description {
		margin-top: 16px;
		font-size: 0.92rem;
	}

	.portfolio-page .portfolio-filters {
		gap: 8px;
		margin-bottom: 27px;
		padding-bottom: 22px;
	}

	.portfolio-page .portfolio-filter {
		min-height: 39px;
		padding: 9px 13px;
		font-size: 0.8rem;
	}

	.portfolio-page .portfolio-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.portfolio-page .portfolio-card__image {
		aspect-ratio: 16 / 9;
	}

	.portfolio-page .portfolio-card__body {
		padding: 22px;
	}

	.portfolio-page .portfolio-card__title {
		font-size: 1.35rem;
	}

	.portfolio-page .portfolio-card__excerpt {
		font-size: 0.9rem;
	}

	.portfolio-page .portfolio-cta {
		padding: 68px 0;
	}

	.portfolio-page .portfolio-cta h2 {
		font-size: clamp(2.25rem, 9vw, 3.5rem);
	}

	.portfolio-page .portfolio-empty {
		padding: 30px 23px;
	}

	/* Single case-study page */

	.project-detail .project-detail__hero {
		padding: 24px 0 66px;
	}

	.project-detail .project-detail__breadcrumb {
		gap: 7px;
		margin-bottom: 38px;
		font-size: 0.76rem;
	}

	.project-detail .project-detail__title {
		font-size: clamp(2.35rem, 10vw, 4rem);
		letter-spacing: -0.055em;
	}

	.project-detail .project-detail__summary {
		font-size: 1rem;
		line-height: 1.8;
	}

	.project-detail .project-detail__content-section {
		padding: 42px 0 64px;
	}

	.project-detail .project-detail__featured-image {
		margin-bottom: 35px;
		border-radius: 15px;
	}

	.project-detail .project-detail__featured-image img {
		min-height: 210px;
		max-height: 420px;
		aspect-ratio: 4 / 3;
	}

	.project-detail .project-detail__layout {
		grid-template-columns: minmax(0, 1fr);
		gap: 38px;
	}

	.project-detail .project-detail__body {
		font-size: 0.96rem;
		line-height: 1.9;
	}

	.project-detail .project-detail__body h2 {
		font-size: 1.75rem;
	}

	.project-detail .project-detail__body h3 {
		font-size: 1.35rem;
	}

	.project-detail .project-detail__sidebar-card {
		position: static;
		padding: 24px;
	}

	.project-detail .project-detail__back {
		margin-top: 36px;
	}

	.project-detail .project-detail__cta {
		padding: 68px 0;
	}

	.project-detail .project-detail__cta h2 {
		font-size: clamp(2rem, 8.5vw, 3.2rem);
	}

	.project-detail .project-detail__button {
		width: 100%;
	}
}

/* ---------- Small phones ---------- */

@media (max-width: 380px) {
	.portfolio-container,
	.project-detail__container {
		width: calc(100% - 28px);
	}

	.portfolio-page .portfolio-hero h1 {
		font-size: 2.35rem;
	}

	.portfolio-page .portfolio-card__body {
		padding: 18px;
	}

	.portfolio-page .portfolio-filter {
		padding-inline: 11px;
		font-size: 0.76rem;
	}

	.project-detail .project-detail__title {
		font-size: 2.2rem;
	}

	.project-detail .project-detail__sidebar-card {
		padding: 19px;
	}
}

/* ---------- Respect reduced-motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
	.portfolio-page *,
	.project-detail * {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.portfolio-page .portfolio-card:hover,
	.portfolio-page .portfolio-card:hover .portfolio-card__image img {
		transform: none;
	}
}


/* Individual achievement pages */
.iim-achievement-single {
	--iim-achievement-navy: #0B1220;
	--iim-achievement-blue: #2563EB;
	--iim-achievement-white: #F8FAFC;
	--iim-achievement-muted: #64748B;
	color: var(--iim-achievement-navy);
}

.iim-achievement-single__container {
	width: min(100% - 40px, 1080px);
	margin-inline: auto;
}

.iim-achievement-single__hero {
	padding: clamp(56px, 9vw, 108px) 0 44px;
	background: var(--iim-achievement-navy);
	color: var(--iim-achievement-white);
}

.iim-achievement-single__back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 42px;
	color: #CBD5E1;
	text-decoration: none;
	font-size: 0.95rem;
}

.iim-achievement-single__back:hover,
.iim-achievement-single__back:focus-visible {
	color: #FFFFFF;
}

.iim-achievement-single__eyebrow {
	margin: 0 0 16px;
	color: #93C5FD;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
}

.iim-achievement-single__title {
	max-width: 900px;
	margin: 0;
	color: var(--iim-achievement-white);
	font-size: clamp(2.2rem, 5vw, 4.5rem);
	line-height: 1.08;
	overflow-wrap: anywhere;
}

.iim-achievement-single__date {
	margin: 22px 0 0;
	color: #CBD5E1;
	font-size: 0.95rem;
}

.iim-achievement-single__content {
	padding-top: clamp(32px, 6vw, 64px);
	padding-bottom: clamp(56px, 8vw, 96px);
}

.iim-achievement-single__featured-image {
	margin: 0 auto 42px;
	overflow: hidden;
	border: 1px solid #E2E8F0;
	border-radius: 20px;
	background: #F1F5F9;
}

.iim-achievement-single__image {
	display: block;
	width: 100%;
	height: auto;
	max-height: 720px;
	object-fit: contain;
	margin-inline: auto;
}

.iim-achievement-single__featured-image figcaption {
	padding: 12px 18px;
	color: var(--iim-achievement-muted);
	font-size: 0.9rem;
}

.iim-achievement-single__body {
	max-width: 780px;
	margin-inline: auto;
	font-size: 1.05rem;
	line-height: 1.85;
	overflow-wrap: anywhere;
}

.iim-achievement-single__body h2,
.iim-achievement-single__body h3 {
	margin-top: 1.8em;
	line-height: 1.25;
}

.iim-achievement-single__body img {
	max-width: 100%;
	height: auto;
}

.iim-achievement-single__navigation {
	max-width: 780px;
	margin: 48px auto 0;
	padding-top: 24px;
	border-top: 1px solid #E2E8F0;
}

.iim-achievement-single__navigation a {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--iim-achievement-blue);
	font-weight: 700;
	text-decoration: none;
}

.iim-achievement-single__navigation a:hover,
.iim-achievement-single__navigation a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 640px) {
	.iim-achievement-single__container {
		width: min(100% - 32px, 1080px);
	}

	.iim-achievement-single__back {
		margin-bottom: 32px;
	}

	.iim-achievement-single__featured-image {
		border-radius: 14px;
		margin-bottom: 30px;
	}

	.iim-achievement-single__body {
		font-size: 1rem;
	}
}


/* ==========================================================
   ACHIEVEMENTS ARCHIVE
   Scoped to the all-achievements gallery only.
   ========================================================== */

.iim-achievements-archive {
	--iim-gallery-navy: #0B1220;
	--iim-gallery-blue: #2563EB;
	--iim-gallery-white: #F8FAFC;
	--iim-gallery-text: #111827;
	--iim-gallery-muted: #64748B;
	--iim-gallery-border: #E2E8F0;
	color: var(--iim-gallery-text);
}

.iim-achievements-container {
	width: min(100% - 40px, 1160px);
	margin-inline: auto;
}

/* Hero */
.iim-achievements-hero {
	position: relative;
	overflow: hidden;
	padding: clamp(76px, 10vw, 132px) 0 clamp(64px, 8vw, 100px);
	background:
		radial-gradient(
			ellipse at 85% 20%,
			rgba(37, 99, 235, 0.24),
			transparent 42%
		),
		var(--iim-gallery-navy);
	color: var(--iim-gallery-white);
}

.iim-achievements-hero::after {
	position: absolute;
	right: -100px;
	bottom: -240px;
	width: 480px;
	height: 480px;
	border: 1px solid rgba(147, 197, 253, 0.15);
	border-radius: 50%;
	content: "";
	pointer-events: none;
}

.iim-achievements-hero .iim-achievements-container {
	position: relative;
	z-index: 1;
}

.iim-achievements-eyebrow {
	margin: 0 0 18px;
	color: var(--iim-gallery-blue);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	line-height: 1.5;
	text-transform: uppercase;
}

.iim-achievements-hero .iim-achievements-eyebrow {
	color: #93C5FD;
}

.iim-achievements-hero h1 {
	max-width: 900px;
	margin: 0;
	color: var(--iim-gallery-white);
	font-size: clamp(2.5rem, 6vw, 5rem);
	font-weight: 800;
	letter-spacing: -0.045em;
	line-height: 1.05;
	overflow-wrap: anywhere;
}

.iim-achievements-hero h1 span {
	display: block;
	margin-top: 12px;
	color: #93C5FD;
}

.iim-achievements-intro {
	max-width: 700px;
	margin: 26px 0 0;
	color: #CBD5E1;
	font-size: clamp(1rem, 1.5vw, 1.15rem);
	line-height: 1.85;
}

/* Gallery section */
.iim-achievements-listing {
	padding: clamp(64px, 8vw, 100px) 0;
	background: var(--iim-gallery-white);
}

.iim-achievements-section-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 38px;
}

.iim-achievements-section-heading .iim-achievements-eyebrow {
	margin-bottom: 12px;
}

.iim-achievements-section-heading h2 {
	margin: 0;
	color: var(--iim-gallery-navy);
	font-size: clamp(1.8rem, 3.5vw, 2.8rem);
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 1.15;
}

/* Achievement cards */
.iim-achievements-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
}

.iim-achievement-gallery-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--iim-gallery-border);
	border-radius: 18px;
	background: #FFFFFF;
	box-shadow: 0 8px 30px rgba(15, 23, 42, 0.045);
	transition:
		transform 220ms ease,
		box-shadow 220ms ease,
		border-color 220ms ease;
}

.iim-achievement-gallery-card:hover {
	transform: translateY(-5px);
	border-color: #BFDBFE;
	box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10);
}

/* Image area */
.iim-achievement-gallery-card__image,
.iim-achievement-gallery-card__placeholder {
	display: flex;
	width: 100%;
	aspect-ratio: 16 / 10;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background:
		radial-gradient(
			circle at 80% 15%,
			rgba(37, 99, 235, 0.20),
			transparent 45%
		),
		#EAF0FA;
}

.iim-achievement-gallery-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 350ms ease;
}

.iim-achievement-gallery-card:hover
.iim-achievement-gallery-card__image img {
	transform: scale(1.035);
}

.iim-achievement-gallery-card__placeholder span {
	color: #1D4ED8;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.16em;
}

/* Card text */
.iim-achievement-gallery-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 24px;
}

.iim-achievement-gallery-card__date {
	margin: 0 0 12px;
	color: var(--iim-gallery-muted);
	font-size: 0.82rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.iim-achievement-gallery-card__title {
	margin: 0 0 14px;
	color: var(--iim-gallery-navy);
	font-size: clamp(1.15rem, 1.6vw, 1.4rem);
	font-weight: 800;
	letter-spacing: -0.025em;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.iim-achievement-gallery-card__description {
	color: #475569;
	font-size: 0.96rem;
	line-height: 1.8;
	overflow-wrap: anywhere;
}

/* Empty state */
.iim-achievements-empty {
	padding: clamp(36px, 6vw, 70px);
	border: 1px dashed #CBD5E1;
	border-radius: 20px;
	background: #FFFFFF;
	text-align: center;
}

.iim-achievements-empty h2 {
	margin: 0 0 14px;
	color: var(--iim-gallery-navy);
	font-size: clamp(1.5rem, 3vw, 2rem);
}

.iim-achievements-empty p {
	margin: 0;
	color: var(--iim-gallery-muted);
	line-height: 1.8;
}

/* Pagination */
.iim-achievements-pagination {
	margin-top: 48px;
}

.iim-achievements-pagination ul {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.iim-achievements-pagination li {
	margin: 0;
	padding: 0;
}

.iim-achievements-pagination a,
.iim-achievements-pagination .current {
	display: inline-flex;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border: 1px solid var(--iim-gallery-border);
	border-radius: 10px;
	background: #FFFFFF;
	color: var(--iim-gallery-navy);
	font-size: 0.9rem;
	font-weight: 700;
	text-decoration: none;
}

.iim-achievements-pagination a:hover,
.iim-achievements-pagination a:focus-visible {
	border-color: var(--iim-gallery-blue);
	color: var(--iim-gallery-blue);
}

.iim-achievements-pagination .current {
	border-color: var(--iim-gallery-blue);
	background: var(--iim-gallery-blue);
	color: #FFFFFF;
}

/* Closing call to action */
.iim-achievements-cta {
	padding: clamp(64px, 8vw, 96px) 0;
	background: var(--iim-gallery-navy);
	color: var(--iim-gallery-white);
}

.iim-achievements-cta .iim-achievements-eyebrow {
	color: #93C5FD;
}

.iim-achievements-cta h2 {
	max-width: 800px;
	margin: 0;
	color: var(--iim-gallery-white);
	font-size: clamp(2rem, 4.5vw, 3.5rem);
	font-weight: 800;
	letter-spacing: -0.04em;
	line-height: 1.12;
}

.iim-achievements-cta h2 span {
	color: #93C5FD;
}

.iim-achievements-cta > .iim-achievements-container > p:not(.iim-achievements-eyebrow) {
	max-width: 640px;
	margin: 22px 0 28px;
	color: #CBD5E1;
	font-size: 1.05rem;
	line-height: 1.8;
}

.iim-achievements-button {
	display: inline-flex;
	min-height: 50px;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 13px 22px;
	border: 1px solid var(--iim-gallery-blue);
	border-radius: 10px;
	background: var(--iim-gallery-blue);
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
	transition:
		background 180ms ease,
		transform 180ms ease;
}

.iim-achievements-button:hover,
.iim-achievements-button:focus-visible {
	transform: translateY(-2px);
	background: #1D4ED8;
	color: #FFFFFF;
}

/* Responsive layout */
@media (max-width: 900px) {
	.iim-achievements-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}

	.iim-achievement-gallery-card__body {
		padding: 21px;
	}
}

@media (max-width: 600px) {
	.iim-achievements-container {
		width: min(100% - 32px, 1160px);
	}

	.iim-achievements-hero {
		padding: 68px 0 60px;
	}

	.iim-achievements-hero h1 {
		font-size: clamp(2.25rem, 11vw, 3.4rem);
	}

	.iim-achievements-section-heading {
		margin-bottom: 28px;
	}

	.iim-achievements-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 22px;
	}

	.iim-achievement-gallery-card {
		border-radius: 15px;
	}

	.iim-achievement-gallery-card__image,
	.iim-achievement-gallery-card__placeholder {
		aspect-ratio: 16 / 9;
	}

	.iim-achievement-gallery-card__body {
		padding: 22px;
	}

	.iim-achievements-pagination {
		margin-top: 34px;
	}

	.iim-achievements-cta h2 {
		font-size: clamp(2rem, 9vw, 2.8rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.iim-achievement-gallery-card,
	.iim-achievement-gallery-card__image img,
	.iim-achievements-button {
		transition: none;
	}

	.iim-achievement-gallery-card:hover,
	.iim-achievements-button:hover {
		transform: none;
	}
}


/* ==========================================================================
   BOOKS ARCHIVE — COMPACT THREE-COLUMN GRID
   Applies only to the Books & Publications archive.
   Does not change the homepage Books carousel.
   ========================================================================== */

.iim-books-archive .iim-carousel {
	display: block;
	width: 100%;
}

.iim-books-archive .iim-carousel__controls {
	display: none !important;
}

.iim-books-archive .iim-carousel__viewport {
	overflow: visible;
}

.iim-books-archive .iim-carousel__track {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
	align-items: stretch;
	width: 100%;
	transform: none !important;
}

.iim-books-archive .iim-book-card {
	display: flex;
	width: 100%;
	min-width: 0;
	max-width: none;
	height: 100%;
	flex: initial;
	overflow: hidden;
}

.iim-books-archive .iim-book-card__link {
	display: flex;
	width: 100%;
	height: 100%;
	flex-direction: column;
}

.iim-books-archive .iim-book-card__cover {
	width: calc(100% - 32px);
	max-width: 220px;
	aspect-ratio: 3 / 4;
	margin: 16px auto 0;
}

.iim-books-archive .iim-book-card__image {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.iim-books-archive .iim-book-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: stretch;
	padding: 18px;
}

.iim-books-archive .iim-book-card__title {
	margin-bottom: 8px;
	font-size: 1.05rem;
	line-height: 1.4;
}

.iim-books-archive .iim-book-card__excerpt {
	margin-bottom: 18px;
	font-size: 0.875rem;
	line-height: 1.6;
}

.iim-books-archive .iim-book-card__action {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: auto;
	padding: 12px 16px;
	border: 1px solid rgba(96, 165, 250, 0.55);
	border-radius: 8px;
	background: #2563EB;
	color: #FFFFFF;
	font-size: 0.9rem;
	font-weight: 700;
	text-align: center;
	transition:
		background-color 180ms ease,
		border-color 180ms ease;
}

.iim-books-archive .iim-book-card__link:hover .iim-book-card__action {
	background: #1D4ED8;
	border-color: #60A5FA;
	color: #FFFFFF;
}

.iim-books-archive .iim-book-card__link:focus-visible {
	outline: 3px solid #60A5FA;
	outline-offset: 3px;
	border-radius: 12px;
}

/* Tablet: two books per row. */
@media (max-width: 900px) {
	.iim-books-archive .iim-carousel__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 22px;
	}
}

/* Mobile: one book per row for readable titles and descriptions. */
@media (max-width: 560px) {
	.iim-books-archive .iim-carousel__track {
		grid-template-columns: minmax(0, 1fr);
		gap: 20px;
	}

	.iim-books-archive .iim-book-card__cover {
		max-width: 200px;
	}

	.iim-books-archive .iim-book-card__body {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.iim-books-archive .iim-book-card,
	.iim-books-archive .iim-book-card__image,
	.iim-books-archive .iim-book-card__action {
		transition: none;
	}

	.iim-books-archive .iim-book-card:hover {
		transform: none;
	}
}


/* =========================================================
   INTELLIGENCE IN MOTION — CONTACT FORM 7
   Premium styling for the portfolio contact form
   ========================================================= */

.iim-contact-form {
    width: 100%;
    color: var(--color-text, #0B1220);
}

.iim-contact-form .iim-form-row {
    margin-bottom: 24px;
}

.iim-contact-form label {
    display: block;
    margin-bottom: 9px;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.5;
}

.iim-contact-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.iim-contact-form select,
.iim-contact-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    background: #FFFFFF;
    color: #0B1220;
    font: inherit;
    line-height: 1.5;
    box-sizing: border-box;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.iim-contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

.iim-contact-form input::placeholder,
.iim-contact-form textarea::placeholder {
    color: #64748B;
    opacity: 1;
}

.iim-contact-form input:focus-visible,
.iim-contact-form select:focus-visible,
.iim-contact-form textarea:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
    border-color: #2563EB;
}

.iim-contact-form .iim-form-note {
    margin: 0 0 20px;
    color: #64748B;
    font-size: 0.875rem;
}

.iim-contact-form .iim-form-submit {
    margin-top: 8px;
}

.iim-contact-form input[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 26px;
    border: 1px solid #2563EB;
    border-radius: 12px;
    background: #2563EB;
    color: #FFFFFF;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease,
        box-shadow 180ms ease;
}

.iim-contact-form input[type="submit"]:hover {
    background: #1D4ED8;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.22);
    transform: translateY(-1px);
}

.iim-contact-form input[type="submit"]:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.35);
    outline-offset: 4px;
}

.iim-contact-form .wpcf7-not-valid {
    border-color: #DC2626 !important;
}

.iim-contact-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 7px;
    color: #B91C1C;
    font-size: 0.875rem;
}

.wpcf7 form .wpcf7-response-output {
    margin: 24px 0 0;
    padding: 14px 16px;
    border-radius: 10px;
    line-height: 1.6;
}

.iim-contact-form .wpcf7-spinner {
    margin: 12px;
}

@media (max-width: 640px) {
    .iim-contact-form .iim-form-row {
        margin-bottom: 20px;
    }

    .iim-contact-form input[type="submit"] {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-contact-form input,
    .iim-contact-form select,
    .iim-contact-form textarea {
        transition: none;
    }

    .iim-contact-form input[type="submit"] {
        transition: none;
    }

    .iim-contact-form input[type="submit"]:hover {
        transform: none;
    }
}

/* =========================================================
   CONTACT PAGE — WHATSAPP CALL TO ACTION
   ========================================================= */

.iim-whatsapp-cta {
    margin: 0 0 36px;
    text-align: center;
}

.iim-whatsapp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    max-width: 460px;
    min-height: 64px;
    padding: 18px 26px;
    box-sizing: border-box;
    border: 1px solid #20B85A;
    border-radius: 14px;
    background: #25D366;
    color: #062B17;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(37, 211, 102, 0.22);
    transition: transform 180ms ease, box-shadow 180ms ease,
        background-color 180ms ease;
}

.iim-whatsapp-button svg {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    fill: currentColor;
}

.iim-whatsapp-button:hover {
    background: #20C45E;
    color: #062B17;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(37, 211, 102, 0.3);
}

.iim-whatsapp-button:focus-visible {
    outline: 3px solid #2563EB;
    outline-offset: 4px;
}

.iim-whatsapp-caption {
    margin: 12px 0 0;
    color: #64748B;
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 480px) {
    .iim-whatsapp-button {
        min-height: 60px;
        padding: 16px 18px;
        font-size: 0.98rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-whatsapp-button {
        transition: none;
    }

    .iim-whatsapp-button:hover {
        transform: none;
    }
}

/* =========================================================
   HERO PORTRAIT — GLASS NAMEPLATE
   Applies only to the main homepage profile photograph.
   ========================================================= */

.iim-home .iim-hero__portrait {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: inherit;
}

.iim-home .iim-hero__image {
    display: block;
    width: 100%;
    height: auto;
}

.iim-home .iim-hero__nameplate {
    position: absolute;
    z-index: 2;
    right: 12px;
    bottom: 12px;
    left: 12px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;

    padding: 13px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;

    background: rgba(8, 15, 28, 0.78);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    box-sizing: border-box;
}

.iim-home .iim-hero__name {
    display: block;
    max-width: 100%;
    color: #FFFFFF;
    font-size: clamp(0.9rem, 2vw, 1.05rem);
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.iim-home .iim-hero__subtitle {
    display: block;
    color: #60A5FA;
    font-size: clamp(0.58rem, 1.3vw, 0.72rem);
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

@media (max-width: 480px) {
    .iim-home .iim-hero__nameplate {
        right: 8px;
        bottom: 8px;
        left: 8px;
        gap: 4px;
        padding: 10px 11px;
    }

    .iim-home .iim-hero__name {
        font-size: 0.85rem;
    }

    .iim-home .iim-hero__subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.15em;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iim-home .iim-hero__nameplate {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}
