@import './fonts.css';
@import 'tailwindcss';

@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php';
@source '../../storage/framework/views/*.php';
@source '../views/**/*.blade.php';

/*
|--------------------------------------------------------------------------
| Aisha Steel — "Polished Light" design system
|--------------------------------------------------------------------------
| Light corporate-industrial system: white / pearl / silver surfaces, graphite ink,
| brand-derived deep navy + cobalt accents, brushed-steel gradients used as thin washes,
| frosted white glass for floating surfaces, and a hairline geometry language of rings,
| arcs, chamfers and technical grids. Motion animates transform / opacity / clip-path only.
*/
@theme {
    /* Compatibility tokens (utilities used across shared templates) */
    --color-bg: #ffffff;
    --color-surface-1: #f6f7f9;
    --color-surface-2: #edf0f4;
    --color-light: #0e1c2e;
    --color-ink: #0e1c2e;
    --color-muted: #56626f;
    --color-steel: #8994a1;
    --color-border: #dfe4e9;
    --color-accent: #13335a;
    --color-accent-hover: #0b2442;
    --color-accent-soft: #2c62a6;
    --color-metal: #9fb0c3;
    --color-metal-soft: #c9d5e2;
    --color-on-dark: #f2f5f8;
    --color-on-accent: #ffffff;
    --color-overlay: rgb(19 51 90 / 0.08);

    --font-sans: 'Archivo', 'Archivo Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'Archivo', 'Archivo Display Fallback', 'Archivo Fallback', ui-sans-serif, system-ui, sans-serif;
    /* Archivo's @font-face is limited to Latin, so Latin runs (ASML, digits, email) use it and Urdu script falls through to Nastaliq. */
    --font-urdu: 'Archivo', 'Noto Nastaliq Urdu', serif;

    --text-fluid-sm: clamp(0.875rem, 0.84rem + 0.18vw, 0.9375rem);
    --text-fluid-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
    --text-fluid-xl: clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem);
    --text-fluid-2xl: clamp(2rem, 1.35rem + 2.6vw, 3.75rem);
    --text-fluid-3xl: clamp(3rem, 1.6rem + 5.6vw, 7rem);

    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-reveal: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-fast: 180ms;
    --motion-standard: 280ms;
    --motion-slow: 640ms;
}

:root {
    /* Surfaces */
    --paper: #ffffff;
    --pearl: #ffffff;
    --mist: #f4f4f4;
    --silver: #dde3e9;
    --night: #0b1726;
    --graphite: #12161b;

    /* Ink — editorial black on white */
    --ink: #111111;
    --ink-2: #333333;
    --ink-3: #555555;
    --steel: #8a8a8a;

    /* Lines */
    --line: #dfe4e9;
    --line-strong: #c9d1d9;
    --line-dark: rgb(255 255 255 / 0.1);

    /* Brand accents */
    --navy: #13335a;
    --navy-deep: #0b2442;
    --cobalt: #2c62a6;
    --cobalt-light: #9cc0ea;
    --ice: #e9f0f8;
    --ice-2: #d6e2f1;

    /* Header — light black shade over the hero; the denser tint keeps white nav legible over white sections */
    --header-tint: linear-gradient(to bottom, rgb(0 0 0 / 0.45), rgb(0 0 0 / 0.15));
    --header-tint-solid: rgb(12 12 12 / 0.78);

    /* Gradients — brushed steel, reflected daylight, cool corporate blue */
    --grad-steel: linear-gradient(135deg, #fbfcfd 0%, #e6ebf0 38%, #f4f6f8 58%, #d8dfe6 100%);
    --grad-ice: linear-gradient(180deg, #ffffff 0%, #eef3f9 100%);
    --grad-navy: linear-gradient(135deg, #13335a 0%, #2c62a6 100%);
    --grad-hairline: linear-gradient(90deg, transparent, var(--line-strong) 18%, var(--line-strong) 82%, transparent);
    --grad-hairline-dark: linear-gradient(90deg, transparent, rgb(255 255 255 / 0.18) 18%, rgb(255 255 255 / 0.18) 82%, transparent);

    /* Glass */
    --glass-bg: rgb(255 255 255 / 0.68);
    --glass-bg-strong: rgb(255 255 255 / 0.82);
    --glass-border: rgb(255 255 255 / 0.85);
    --glass-blur: 14px;
    --shadow-soft: 0 24px 60px -36px rgb(14 28 46 / 0.32);
    --shadow-lift: 0 30px 70px -40px rgb(14 28 46 / 0.4);
    --shadow-glass: 0 1px 0 rgb(14 28 46 / 0.04), 0 18px 44px -30px rgb(14 28 46 / 0.35);

    /* Radii — pills and soft editorial blobs */
    --r-1: 12px;
    --r-2: 24px;
    --r-3: 40px;
    --r-blob: clamp(2.75rem, 1.4rem + 4vw, 5.5rem);
    --r-pill: 999px;

    /* Layout */
    --container: 82rem;
    --gutter: clamp(1rem, 0.35rem + 2.8vw, 3rem);
    --gap: clamp(1rem, 0.6rem + 1.4vw, 2rem);
    /* Vertical rhythm scales with screen HEIGHT, not width: one padding for every section. */
    --fit-pad-y: clamp(2.5rem, 1.25rem + 3.2svh, 3.75rem);
    --section-y: var(--fit-pad-y);
    /* Header logo: one size scale + clear space drives the bar height, so the mark never touches an edge. */
    --logo-h: clamp(5rem, 4.4rem + 1.5vw, 5.75rem);
    --logo-h-compact: 3.75rem;
    --logo-clear: clamp(0.75rem, 0.5rem + 0.6vw, 1rem);
    /* The stacked mark fills 80% of its PNG's height (the rest is transparent padding). */
    --header-h: calc(var(--logo-h) * 0.8 + var(--logo-clear) * 2);
    --header-h-compact: calc(var(--logo-h-compact) * 0.8 + var(--logo-clear) * 2);
    /* Screen height the always-visible compact bar covers (its 0.6rem top offset + its height). */
    --header-occupied: calc(0.6rem + var(--header-h-compact));
    /* Space visible under the header bar. */
    --fit-h: calc(100svh - var(--header-occupied) - 0.5rem);
    --chamfer: clamp(1.25rem, 0.75rem + 1.6vw, 2.5rem);
    /* Distance from the content column edge to the viewport edge (for full-bleed rails / frames). */
    --edge: max(var(--gutter), calc((100% - var(--container)) / 2));

    /* Type */
    --fs-hero: clamp(3.25rem, 1.2rem + 7.2vw, 8.5rem);
    --fs-h2: clamp(2rem, 1.45rem + 2vw, 2.875rem);
    --fs-h3: clamp(1.2rem, 1.05rem + 0.6vw, 1.625rem);
    --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem);
    --fs-stat: clamp(4rem, 2.2rem + 6.2vw, 8.5rem);
    --wdth-display: 116%;
    --wdth-title: 108%;

    /* Motion tokens */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-premium: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --dur-micro: 180ms;
    --dur-hover: 280ms;
    --dur-reveal: 640ms;
    --dur-hero: 900ms;
    --dur-ambient: 28s;

    /* Direction helpers (mirrored for RTL) */
    --origin-start: left;
    --origin-end: right;
    --dir: 1;
}

[dir='rtl'] {
    --origin-start: right;
    --origin-end: left;
    --dir: -1;
}

@layer base {
    html {
        scroll-behavior: smooth;
        scroll-padding-top: calc(var(--header-occupied) + 0.5rem);
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    body {
        background-color: var(--paper);
        color: var(--ink);
        font-family: var(--font-sans);
        font-size: 1rem;
        line-height: 1.6;
        overflow-x: clip;
        text-rendering: optimizeLegibility;
        font-kerning: normal;
    }

    body.is-urdu,
    [lang='ur'] body {
        --font-sans: var(--font-urdu);
        --font-display: var(--font-urdu);
        font-family: var(--font-urdu);
        line-height: 1.95;
    }

    h1,
    h2,
    h3,
    h4 {
        text-wrap: balance;
    }

    p {
        text-wrap: pretty;
    }

    :where(a, button, [tabindex]):focus-visible {
        outline: 2px solid var(--cobalt);
        outline-offset: 3px;
        border-radius: 2px;
    }

    ::selection {
        background: color-mix(in srgb, var(--navy) 22%, transparent);
        color: var(--ink);
    }

    [x-cloak] {
        display: none !important;
    }

    @media (prefers-reduced-motion: reduce) {
        html {
            scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
            transition-delay: 0ms !important;
            scroll-behavior: auto !important;
        }

        /* Partner marquee keeps moving by request; must sit in this layer to outrank the reset above. */
        .partners__track {
            animation-duration: 32s !important;
            animation-iteration-count: infinite !important;
        }
    }
}

@layer components {
    /* ------------------------------------------------------------------ */
    /* Layout primitives                                                   */
    /* ------------------------------------------------------------------ */
    .container-shell {
        width: 100%;
        max-width: calc(var(--container) + 2 * var(--gutter));
        margin-inline: auto;
        padding-inline: var(--gutter);
    }

    .section-shell {
        position: relative;
    }

    .section-pad {
        padding-block: var(--section-y);
    }

    .skip-link {
        position: fixed;
        inset-inline-start: 1rem;
        top: -4rem;
        z-index: 100;
        padding: 0.75rem 1.1rem;
        background: var(--navy);
        color: #fff;
        font-weight: 600;
        font-size: 0.9375rem;
        border-radius: var(--r-1);
        transition: top var(--dur-hover) var(--ease-out);
    }

    .skip-link:focus {
        top: 1rem;
    }

    /* Section head: eyebrow / title / side action, with a drawn hairline below. */
    .section-head {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.25rem 2rem;
        padding-bottom: clamp(1.25rem, 1rem + 1vw, 2rem);
    }

    .section-head::after {
        content: '';
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        height: 1px;
        background: var(--line-strong);
        transform-origin: var(--origin-start) center;
    }

    .section-head--bare {
        padding-bottom: 0;
    }

    .section-head--bare::after {
        display: none;
    }

    .section-head__side {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 1rem 1.5rem;
    }

    .eyebrow,
    .section-eyebrow {
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--navy);
    }

    .eyebrow::before,
    .section-eyebrow::before {
        content: '';
        width: 1.75rem;
        height: 1px;
        background: currentColor;
    }

    .section-title {
        font-family: var(--font-display);
        font-stretch: var(--wdth-title);
        font-size: var(--fs-h2);
        font-weight: 800;
        line-height: 1.05;
        letter-spacing: -0.048em;
        color: var(--ink);
    }

    .eyebrow + .section-title,
    .section-eyebrow + .section-title {
        margin-top: 1rem;
    }

    .lead {
        font-size: var(--fs-lead);
        line-height: 1.62;
        color: var(--ink-2);
    }

    /*
     * Masked word reveal (used by hero + section titles). Each mask is a 1.2em line box so glyph
     * ascenders/descenders are never clipped; negative block margins restore the title's own leading.
     */
    .word {
        --word-lh: 1.02;
        display: inline-block;
        overflow: hidden;
        vertical-align: top;
        line-height: 1.2;
        margin-block: calc((1.2 - var(--word-lh)) * -0.5em);
        padding-inline: 0.04em;
        margin-inline: -0.04em;
    }

    .word__inner {
        display: inline-block;
        line-height: inherit;
        will-change: transform;
    }

    /* ------------------------------------------------------------------ */
    /* Geometry language: rings, arcs, orbit dots, technical grid          */
    /* ------------------------------------------------------------------ */
    .ring {
        position: absolute;
        border-radius: 50%;
        border: 1px solid var(--ring-color, var(--line-strong));
        pointer-events: none;
    }

    .ring--dashed {
        border-style: dashed;
    }

    .ring--arc {
        mask: conic-gradient(from var(--arc-from, 0deg), #000 0 var(--arc, 240deg), transparent var(--arc, 240deg));
    }

    .ring--spin {
        animation: ring-spin var(--spin, 60s) linear infinite;
    }

    .ring--spin-reverse {
        animation: ring-spin var(--spin, 60s) linear infinite reverse;
    }

    .ring__dot {
        position: absolute;
        top: -0.22rem;
        left: calc(50% - 0.22rem);
        width: 0.44rem;
        height: 0.44rem;
        border-radius: 50%;
        background: var(--dot-color, var(--navy));
        box-shadow: 0 0 0 4px rgb(255 255 255 / 0.9);
    }

    .ring__dot--2 {
        top: auto;
        bottom: -0.22rem;
        left: calc(50% - 0.22rem);
        background: var(--cobalt);
    }

    @keyframes ring-spin {
        to {
            transform: rotate(360deg);
        }
    }

    /* Faint engineering grid, masked so it never reads as graph paper. */
    .tech-grid {
        position: absolute;
        inset: 0;
        pointer-events: none;
        background-image:
            linear-gradient(to right, rgb(14 28 46 / 0.055) 1px, transparent 1px),
            linear-gradient(to bottom, rgb(14 28 46 / 0.055) 1px, transparent 1px);
        background-size: 88px 88px;
        mask-image: var(--grid-mask, radial-gradient(70% 70% at 70% 30%, #000 0%, transparent 100%));
    }

    /* Radial daylight highlight. */
    .glow {
        position: absolute;
        pointer-events: none;
        background: radial-gradient(closest-side, rgb(214 226 241 / var(--glow-a, 0.6)), transparent);
    }

    /* Frosted white glass surface. */
    .glass {
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        box-shadow: var(--shadow-glass);
        backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
        -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.4);
    }

    /* Technical divider: hairline with staggered segments + diamond marker. */
    .divider-tech {
        position: relative;
        display: flex;
        align-items: center;
        gap: 1rem;
        height: 1px;
    }

    .divider-tech::before,
    .divider-tech::after {
        content: '';
        height: 1px;
        background: var(--line-strong);
        transform-origin: var(--origin-start) center;
    }

    .divider-tech::before {
        flex: 1;
    }

    .divider-tech::after {
        flex: 0 0 clamp(4rem, 12vw, 12rem);
        transform-origin: var(--origin-end) center;
    }

    .divider-tech__mark {
        position: relative;
        display: grid;
        grid-auto-flow: column;
        align-items: center;
        gap: 0.5rem;
    }

    .divider-tech__mark i {
        display: block;
        width: 0.4rem;
        height: 0.4rem;
        border: 1px solid var(--navy);
        transform: rotate(45deg);
    }

    .divider-tech__mark i:nth-child(2) {
        background: var(--navy);
    }

    /* ------------------------------------------------------------------ */
    /* Buttons & links                                                     */
    /* ------------------------------------------------------------------ */
    .btn-primary,
    .btn-secondary,
    .btn-outline,
    .btn-ghost-light {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.7rem;
        min-height: 2.75rem;
        padding: 0.5rem 1.25rem;
        border: 1px solid transparent;
        border-radius: var(--r-pill);
        font-size: 0.875rem;
        font-weight: 500;
        line-height: 1.2;
        letter-spacing: 0.005em;
        white-space: nowrap;
        cursor: pointer;
        isolation: isolate;
        overflow: hidden;
        transition:
            background-color var(--dur-hover) var(--ease-out),
            border-color var(--dur-hover) var(--ease-out),
            color var(--dur-hover) var(--ease-out),
            box-shadow var(--dur-hover) var(--ease-out),
            translate var(--dur-hover) var(--ease-out);
    }

    .btn-primary {
        background: var(--navy);
        color: #fff;
        box-shadow: 0 12px 28px -18px rgb(19 51 90 / 0.7);
    }

    /* Accent surface expands from the arrow side across the button. */
    .btn-primary::before {
        content: '';
        position: absolute;
        z-index: -1;
        inset-block: -50%;
        inset-inline-end: -25%;
        width: 60%;
        border-radius: 50%;
        background: var(--cobalt);
        transform: scale(0);
        transform-origin: center;
        transition: transform 0.55s var(--ease-premium);
    }

    .btn-primary:hover::before,
    .btn-primary:focus-visible::before {
        transform: scale(4);
    }

    .btn-primary:hover {
        box-shadow: 0 16px 34px -18px rgb(44 98 166 / 0.75);
    }

    .btn-secondary {
        background: var(--glass-bg-strong);
        border-color: var(--line-strong);
        color: var(--ink);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .btn-secondary:hover {
        border-color: var(--navy);
        color: var(--navy);
        background: #fff;
    }

    .btn-outline {
        background: transparent;
        border-color: color-mix(in srgb, var(--ink) 28%, transparent);
        color: var(--ink);
    }

    .btn-outline:hover {
        border-color: var(--ink);
    }

    .btn-ghost-light {
        background: rgb(255 255 255 / 0.06);
        border-color: rgb(255 255 255 / 0.36);
        color: #fff;
    }

    .btn-ghost-light:hover {
        background: rgb(255 255 255 / 0.14);
        border-color: rgb(255 255 255 / 0.7);
    }

    .btn-ghost {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        min-height: 2.75rem;
        padding: 0.5rem 0.25rem;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--ink);
        transition: color var(--dur-hover) var(--ease-out);
    }

    .btn-ghost:hover {
        color: var(--navy);
    }

    .btn-icon {
        display: inline-grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: var(--paper);
        color: var(--ink);
        transition:
            border-color var(--dur-hover) var(--ease-out),
            color var(--dur-hover) var(--ease-out),
            background-color var(--dur-hover) var(--ease-out),
            transform var(--dur-hover) var(--ease-out);
    }

    .btn-icon:hover {
        border-color: var(--navy);
        color: #fff;
        background: var(--navy);
    }

    .btn-icon:disabled,
    .btn-icon[aria-disabled='true'] {
        opacity: 0.35;
        cursor: default;
        border-color: var(--line-strong);
        color: var(--ink);
        background: var(--paper);
    }

    .btn-icon--on-dark {
        background: rgb(11 23 38 / 0.55);
        border-color: rgb(255 255 255 / 0.28);
        color: #fff;
    }

    .btn-icon--on-dark:hover {
        border-color: #fff;
        background: #fff;
        color: var(--ink);
    }

    /* Arrow micro-interaction shared by buttons and text links */
    .btn-arrow {
        width: 1.05rem;
        height: 1.05rem;
        flex-shrink: 0;
        transition: translate var(--dur-hover) var(--ease-out);
    }

    :is(a, button):hover > .btn-arrow,
    :is(a, button):focus-visible > .btn-arrow,
    .group-arrow:hover .btn-arrow {
        translate: calc(var(--dir) * 0.3rem) 0;
    }

    /* Text link with a circular arrow container that fills on hover. */
    .link-arrow {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 2.75rem;
        font-size: 0.9375rem;
        font-weight: 600;
        color: var(--navy);
    }

    .link-arrow__disc {
        display: inline-grid;
        place-items: center;
        width: 2.25rem;
        height: 2.25rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        color: var(--navy);
        transition:
            background-color var(--dur-hover) var(--ease-out),
            border-color var(--dur-hover) var(--ease-out),
            color var(--dur-hover) var(--ease-out),
            transform 0.45s var(--ease-premium);
    }

    .link-arrow__disc .btn-arrow {
        width: 0.95rem;
        height: 0.95rem;
    }

    .link-arrow:hover .link-arrow__disc,
    .link-arrow:focus-visible .link-arrow__disc {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
        transform: scale(1.08) rotate(calc(var(--dir) * -12deg));
    }

    .link-arrow__label {
        position: relative;
    }

    .link-arrow__label::after {
        content: '';
        position: absolute;
        inset-inline: 0;
        bottom: -0.2rem;
        height: 1px;
        background: currentColor;
        transform: scaleX(0.3);
        transform-origin: var(--origin-start) center;
        transition: transform 0.6s var(--ease-premium);
    }

    .link-arrow:hover .link-arrow__label::after,
    .link-arrow:focus-visible .link-arrow__label::after {
        transform: scaleX(1);
    }

    /* Magnetic targets move via `translate` so other transforms stay intact. */
    [data-magnetic] {
        translate: var(--mag-x, 0) var(--mag-y, 0);
        transition: translate 0.5s var(--ease-premium);
    }

    /* Perspective tilt (fine pointers only; max angle set per element). */
    [data-tilt] {
        transform: perspective(1200px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
        transition: transform 0.6s var(--ease-premium);
        transform-style: preserve-3d;
    }

    [data-tilt].is-tilting {
        transition-duration: 0.18s;
    }

    /* ------------------------------------------------------------------ */
    /* Header — integrated at the top, floating glass bar once scrolled     */
    /* ------------------------------------------------------------------ */
    .site-header__progress {
        position: absolute;
        inset-inline: 0;
        bottom: 0;
        z-index: 2;
        height: 2px;
        background: var(--grad-navy);
        transform: scaleX(var(--page-progress, 0));
        transform-origin: var(--origin-start) center;
        pointer-events: none;
    }

    .site-header {
        position: fixed;
        inset-inline: 0;
        top: 0;
        z-index: 50;
        height: var(--header-h);
        padding-top: 0;
        background: var(--header-tint);
        color: #fff;
        transition: padding 0.4s var(--ease-out);
    }

    .site-header__bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: 100%;
        border: 1px solid transparent;
        border-radius: 0;
        background: transparent;
        transition:
            background-color 0.4s ease,
            border-color 0.4s ease,
            box-shadow 0.4s ease,
            border-radius 0.4s ease,
            height 0.4s var(--ease-out);
    }

    .site-header[data-scrolled='true'] {
        padding-top: 0.6rem;
        background: transparent;
    }

    /* Pages without a hero start on white, so the bar carries the darker tint from the top. */
    body:not(.has-hero) .site-header:not([data-scrolled='true']) {
        background: var(--header-tint-solid);
    }

    .site-header[data-scrolled='true'] .site-header__bar {
        height: var(--header-h-compact);
        border-radius: var(--r-3);
        border-color: rgb(255 255 255 / 0.12);
        background: var(--header-tint-solid);
        box-shadow:
            0 1px 0 rgb(14 28 46 / 0.05),
            0 20px 48px -30px rgb(14 28 46 / 0.4);
        /* Prefixed first: with the unprefixed line first, the build keeps only the -webkit- form, which Chrome ignores. */
        -webkit-backdrop-filter: blur(6px);
        backdrop-filter: blur(6px);
    }

    .site-header__brand {
        display: inline-flex;
        align-items: center;
        flex-shrink: 0;
    }

    /*
     * Official WP mark (stacked symbol + wordmark), shared by header, drawer and footer.
     * The PNG has ~11% transparent padding at the start edge, so the mark itself lines up with the content gutter.
     */
    /* Explicit width (the PNG is square): with width:auto, flex and grid parents shrink it by the negative margin. */
    .brand-logo {
        flex-shrink: 0;
        width: var(--logo-h);
        height: var(--logo-h);
        margin-inline-start: calc(var(--logo-h) * -0.11);
    }

    /* In a bar, the ~10% padding above and below is absorbed so --header-h fits the mark plus --logo-clear. */
    .site-header__logo,
    .mobile-nav__logo {
        margin-block: calc(var(--logo-h) * -0.1);
    }

    .site-header__logo {
        transition: height 0.4s var(--ease-out);
    }

    .site-header[data-scrolled='true'] .site-header__logo {
        --logo-h: var(--logo-h-compact);
    }

    .site-nav {
        display: none;
    }

    /* The full nav needs ~1260px next to the logo and tools; below that it collapses into the menu. */
    @media (min-width: 1280px) {
        .site-nav {
            display: block;
        }
    }

    .site-nav__list {
        display: flex;
        align-items: center;
        gap: 0.1rem;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        height: 2.75rem;
        padding-inline: 0.7rem;
        font-size: 0.9375rem;
        font-weight: 500;
        color: var(--ink-2);
        white-space: nowrap;
        border-radius: var(--r-1);
        transition: color var(--dur-hover) var(--ease-out);
    }

    .nav-link::after {
        content: '';
        position: absolute;
        inset-inline: 0.7rem;
        bottom: 0.4rem;
        height: 2px;
        border-radius: 2px;
        background: var(--navy);
        transform: scaleX(0);
        transform-origin: var(--origin-start) center;
        transition: transform 0.45s var(--ease-premium);
    }

    .nav-link:hover,
    .nav-link[aria-expanded='true'] {
        color: var(--ink);
    }

    .nav-link:hover::after,
    .nav-link[aria-expanded='true']::after {
        transform: scaleX(1);
    }

    .nav-link__chevron {
        width: 0.8rem;
        height: 0.8rem;
        transition: transform var(--dur-hover) var(--ease-out);
    }

    .nav-link[aria-expanded='true'] .nav-link__chevron {
        transform: rotate(180deg);
    }

    .nav-panel {
        position: absolute;
        top: 100%;
        inset-inline-start: -0.25rem;
        z-index: 60;
        padding-top: 0.7rem;
        visibility: hidden;
        opacity: 0;
        transform: translateY(0.5rem) scale(0.98);
        transform-origin: top var(--origin-start);
        transition:
            opacity 0.22s ease,
            transform 0.4s var(--ease-premium),
            visibility 0.4s;
    }

    .nav-item.is-open > .nav-panel {
        visibility: visible;
        opacity: 1;
        transform: none;
    }

    .nav-panel__inner {
        min-width: 17.5rem;
        padding: 0.5rem;
        background: rgb(255 255 255 / 0.9);
        border: 1px solid rgb(255 255 255 / 0.9);
        border-radius: var(--r-2);
        box-shadow:
            0 1px 0 rgb(14 28 46 / 0.05),
            0 30px 64px -30px rgb(14 28 46 / 0.4);
        backdrop-filter: blur(18px) saturate(1.5);
        -webkit-backdrop-filter: blur(18px) saturate(1.5);
    }

    .nav-panel__inner::before {
        content: '';
        position: absolute;
        top: 0.7rem;
        inset-inline-start: 1rem;
        width: 2.25rem;
        height: 2px;
        border-radius: 2px;
        background: var(--grad-navy);
    }

    .nav-panel--wide .nav-panel__inner {
        display: grid;
        grid-template-columns: repeat(2, minmax(15rem, 1fr));
        column-gap: 0.25rem;
    }

    .mega-link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 2.75rem;
        padding: 0.6rem 0.8rem;
        border-radius: var(--r-1);
        font-size: 0.9rem;
        line-height: 1.35;
        color: var(--ink-2);
        transition:
            background-color var(--dur-micro) ease,
            color var(--dur-micro) ease,
            padding-inline-start var(--dur-hover) var(--ease-out);
    }

    .mega-link:hover,
    .mega-link:focus-visible {
        background: var(--ice);
        color: var(--navy);
        padding-inline-start: 1.05rem;
    }

    .mega-link__icon {
        width: 0.85rem;
        height: 0.85rem;
        flex-shrink: 0;
        opacity: 0.45;
    }

    .site-header__tools {
        display: flex;
        align-items: center;
        gap: 0.75rem;
    }

    /* Official Arif Habib Group mark: never shrinks (a squeezed flex item distorts it); phones show it in the menu instead. */
    .header-group-logo {
        display: none;
        flex-shrink: 0;
        align-items: center;
        padding-inline-end: 0.9rem;
        border-inline-end: 1px solid var(--line-strong);
        opacity: 0.9;
        transition: opacity var(--dur-hover) ease;
    }

    /* Light plate matching the footer's affiliation plate, so the navy mark reads on the dark header. */
    .header-group-logo__plate {
        display: inline-grid;
        flex-shrink: 0;
        place-items: center;
        height: 2.35rem;
        padding: 0.35rem 0.6rem;
        border-radius: 0.6rem;
        background: rgb(214 226 241 / 0.92);
    }

    .header-group-logo img {
        flex-shrink: 0;
        width: auto;
        height: 1.4rem;
    }

    .header-group-logo:hover {
        opacity: 1;
    }

    @media (min-width: 768px) {
        .header-group-logo {
            display: inline-flex;
        }
    }

    /* 1280–1365px: the nav already lists Contact Us, so the duplicate button gives its room to the group mark. */
    @media (min-width: 1280px) and (max-width: 1365.98px) {
        .site-header .site-header__cta {
            display: none;
        }
    }

    .mobile-nav__group {
        display: flex;
        justify-content: center;
        padding-block: 0.25rem 1rem;
    }

    .mobile-nav__group img {
        width: auto;
        height: 1.5rem;
    }

    @media (min-width: 768px) {
        .mobile-nav__group {
            display: none;
        }
    }

    @media (min-width: 1280px) and (max-width: 1439px) {
        .nav-link {
            padding-inline: 0.55rem;
        }

        .nav-link::after {
            inset-inline: 0.55rem;
        }
    }

    .lang-switch {
        display: inline-flex;
        align-items: center;
        padding: 0.2rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: rgb(255 255 255 / 0.72);
        font-size: 0.8125rem;
        font-weight: 600;
    }

    .lang-pill {
        display: inline-grid;
        place-items: center;
        min-width: 2.6rem;
        height: 2.1rem;
        padding-inline: 0.6rem;
        border-radius: 999px;
        color: var(--ink-3);
        transition:
            background-color var(--dur-hover) ease,
            color var(--dur-hover) ease;
    }

    .lang-pill:hover {
        color: var(--ink);
    }

    .lang-pill.is-active {
        background: var(--navy);
        color: #fff;
    }

    .site-header__cta {
        display: none;
        min-height: 2.75rem;
        padding-block: 0.5rem;
    }

    @media (min-width: 640px) {
        .site-header__cta {
            display: inline-flex;
        }
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        height: 2.75rem;
        padding-inline: 0.95rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: rgb(255 255 255 / 0.72);
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--ink);
        transition: border-color var(--dur-hover) ease;
    }

    .menu-toggle:hover {
        border-color: var(--navy);
    }

    @media (min-width: 1280px) {
        .menu-toggle {
            display: none;
        }
    }

    /* Mobile drawer */
    .mobile-nav {
        position: fixed;
        inset: 0;
        z-index: 70;
    }

    .mobile-nav__backdrop {
        position: absolute;
        inset: 0;
        background: rgb(11 23 38 / 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
    }

    .mobile-nav__panel {
        position: absolute;
        inset-block: 0;
        inset-inline-end: 0;
        display: flex;
        flex-direction: column;
        width: min(100%, 28rem);
        background: rgb(255 255 255 / 0.94);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: -24px 0 60px -30px rgb(11 23 38 / 0.5);
    }

    .mobile-nav__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        height: var(--header-h);
        padding-inline: var(--gutter);
        border-bottom: 1px solid var(--line);
        background: var(--paper); /* opaque: the black header bar sits directly behind this row */
    }

    .mobile-nav__body {
        flex: 1;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.5rem var(--gutter) 1.5rem;
    }

    .mobile-group {
        border-bottom: 1px solid var(--line);
    }

    .mobile-group__toggle,
    .mobile-group__link {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        width: 100%;
        min-height: 3.5rem;
        font-family: var(--font-display);
        font-stretch: 104%;
        font-size: 1.125rem;
        font-weight: 600;
        color: var(--ink);
        text-align: start;
    }

    .mobile-group__icon {
        width: 1.1rem;
        height: 1.1rem;
        transition: transform var(--dur-hover) var(--ease-out);
    }

    .mobile-group__toggle[aria-expanded='true'] .mobile-group__icon {
        transform: rotate(45deg);
    }

    .mobile-group__panel {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.4s var(--ease-out);
    }

    .mobile-group__panel.is-open {
        grid-template-rows: 1fr;
    }

    .mobile-group__panel > ul {
        min-height: 0;
        overflow: hidden;
    }

    .mobile-link {
        display: flex;
        align-items: center;
        min-height: 2.75rem;
        padding: 0.4rem 0.9rem;
        border-inline-start: 1px solid var(--line-strong);
        font-size: 0.9375rem;
        color: var(--ink-2);
        transition:
            color var(--dur-micro) ease,
            border-color var(--dur-micro) ease;
    }

    .mobile-link:hover,
    .mobile-link:focus-visible {
        color: var(--navy);
        border-color: var(--navy);
    }

    /* Padding lives inside the clipped list so a collapsed panel is truly 0px tall. */
    .mobile-group__panel li:last-child {
        padding-bottom: 0.75rem;
    }

    .mobile-nav__foot {
        display: grid;
        gap: 0.75rem;
        padding: 1rem var(--gutter) calc(1rem + env(safe-area-inset-bottom));
        border-top: 1px solid var(--line);
    }

    /* ------------------------------------------------------------------ */
    /* Hero — editorial type overlapping a circular steel well             */
    /* ------------------------------------------------------------------ */
    .hero {
        --hero-overlap: 0px;
        --hero-scroll: 0;
        position: relative;
        z-index: 2;
        isolation: isolate;
        padding-top: calc(var(--header-h) + 0.5rem);
        overflow-x: clip;
        background:
            radial-gradient(80% 70% at 88% 18%, rgb(233 240 248 / 0.95), transparent 58%),
            var(--paper);
    }

    .hero__bg {
        position: absolute;
        inset: 0;
        z-index: -1;
        overflow: hidden;
        pointer-events: none;
    }

    .hero__bg .glow {
        inset-inline-end: -8vw;
        top: -16vh;
        width: 72vw;
        height: 88vh;
        --glow-a: 0.82;
    }

    .hero__ring {
        --ring-color: rgb(19 51 90 / 0.2);
        inset-inline-end: 2vw;
        top: -10vmin;
        width: 78vmin;
        height: 78vmin;
        --arc: 300deg;
        --arc-from: 200deg;
        --spin: 96s;
    }

    .hero__ring--inner {
        --ring-color: rgb(19 51 90 / 0.12);
        inset-inline-end: 16vw;
        top: 4vmin;
        width: 48vmin;
        height: 48vmin;
        --arc: 220deg;
        --arc-from: 20deg;
        --spin: 72s;
        border-style: solid;
    }

    .hero__ring--orbit {
        --ring-color: rgb(19 51 90 / 0.1);
        inset-inline-end: -6vw;
        bottom: -18vmin;
        top: auto;
        width: 42vmin;
        height: 42vmin;
        --arc: 200deg;
        --arc-from: 80deg;
        --spin: 54s;
    }

    .hero__stage {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        row-gap: clamp(1.75rem, 1rem + 2.4vw, 3rem);
        padding-inline: var(--gutter);
    }

    .hero__copy {
        position: relative;
        z-index: 4;
        padding-top: clamp(0.75rem, 3svh, 2.25rem);
    }

    .hero__title {
        font-family: var(--font-display);
        font-stretch: var(--wdth-display);
        font-size: var(--fs-hero);
        font-weight: 800;
        line-height: 0.9;
        letter-spacing: -0.05em;
        color: var(--ink);
        max-width: 8ch;
    }

    .hero__title .word {
        --word-lh: 0.9;
    }

    .hero__play-icon {
        display: inline-grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        margin-inline-start: -0.4rem;
        border-radius: 999px;
        background: var(--navy);
        color: #fff;
        transition: transform 0.45s var(--ease-premium);
    }

    .hero__play-icon svg {
        width: 0.7rem;
        height: 0.7rem;
        margin-inline-start: 0.1rem;
    }

    .btn-secondary:hover .hero__play-icon {
        transform: scale(1.12) rotate(calc(var(--dir) * 90deg));
    }

    /* Circular media well — the permanent geometry, not a leftover clip. */
    .hero__media {
        --well: min(100%, 34rem);
        position: relative;
        z-index: 2;
        width: var(--well);
        margin-inline: auto;
        margin-bottom: calc(-1 * var(--hero-overlap));
        transform: scale(calc(1 - var(--hero-scroll) * 0.04)) translateY(calc(var(--hero-scroll) * 1.25rem));
        transform-origin: center center;
    }

    .hero__well-ring {
        --ring-color: rgb(19 51 90 / 0.28);
        inset: -7%;
        width: auto;
        height: auto;
        --arc: 280deg;
        --arc-from: 240deg;
        --spin: 48s;
        z-index: 0;
    }

    .hero__well-ring--2 {
        --ring-color: rgb(19 51 90 / 0.14);
        inset: -14%;
        --arc: 320deg;
        --arc-from: 40deg;
        --spin: 72s;
    }

    .hero__well {
        position: relative;
        z-index: 1;
        aspect-ratio: 1;
        overflow: hidden;
        border-radius: 50%;
        background: #c5ced6;
        clip-path: circle(100% at 50% 50%);
        box-shadow:
            0 0 0 1px rgb(255 255 255 / 0.8),
            0 36px 70px -36px rgb(14 28 46 / 0.45);
    }

    .hero__frame-inner {
        position: absolute;
        inset: 0;
    }

    .hero__poster,
    .hero__poster img,
    .hero__video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 50% 58%;
    }

    .hero__poster {
        display: block;
    }

    .hero__video {
        opacity: 0;
        transition: opacity 1.4s var(--ease-out);
    }

    .hero__video.is-playing {
        opacity: 1;
    }

    .hero__scrim {
        position: absolute;
        inset: 0;
        background:
            radial-gradient(circle at 50% 42%, transparent 42%, rgb(11 23 38 / 0.22) 100%),
            linear-gradient(to top, rgb(11 23 38 / 0.28), transparent 42%);
        pointer-events: none;
    }

    .hero__scroll {
        position: relative;
        display: inline-flex;
        align-items: center;
        gap: 0.85rem;
        margin-block: 0.25rem 1.25rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--ink-3);
        transition: color var(--dur-hover) ease;
    }

    .hero__scroll:hover {
        color: var(--navy);
    }

    .hero__scroll-disc {
        position: relative;
        display: grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        overflow: hidden;
    }

    .hero__scroll-disc::after {
        content: '';
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        border: 1px solid var(--navy);
        mask: conic-gradient(#000 0 90deg, transparent 90deg);
        animation: ring-spin 4s linear infinite;
    }

    .hero__scroll-disc svg {
        width: 0.95rem;
        height: 0.95rem;
        animation: scroll-nudge 2.4s var(--ease-in-out) infinite;
    }

    @keyframes scroll-nudge {
        0%,
        100% {
            transform: translateY(-0.15rem);
        }

        50% {
            transform: translateY(0.2rem);
        }
    }

    @media (min-width: 1024px) {
        .hero {
            --hero-overlap: 6.5rem;
            min-height: 100svh;
        }

        .hero__stage {
            min-height: calc(100svh - var(--header-h) - 0.5rem);
            padding-inline: var(--edge) clamp(1rem, 3vw, 3.5rem);
            align-content: center;
        }

        .hero__copy {
            max-width: 18ch;
            padding-block: clamp(2rem, 8svh, 6rem) 8rem;
        }

        .hero__media {
            --well: min(52vw, 44rem);
            position: absolute;
            inset-inline-end: clamp(0.5rem, 3vw, 3.5rem);
            top: 52%;
            margin: 0;
            translate: 0 -50%;
        }

        .hero__scroll {
            position: absolute;
            inset-inline-start: var(--edge);
            bottom: clamp(1.5rem, 1rem + 2vw, 2.75rem);
            margin: 0;
        }
    }

    @media (max-width: 767px) {
        .hero__title {
            font-size: clamp(2.9rem, 13.2vw, 4.4rem);
        }

        .hero__media {
            --well: min(100%, 22.5rem);
        }

        .hero__ring {
            inset-inline-end: -18vw;
            top: -4vmin;
            width: 64vmin;
            height: 64vmin;
        }

        .hero__ring--inner,
        .hero__ring--orbit,
        .hero__well-ring--2 {
            display: none;
        }
    }

    /* Hero entrance choreography (motion-gated). The well is already circular, so the
       mask opens to 100% and is never left at a partial clip. */
    .reveal-on .hero__well {
        animation: circle-open 1.05s var(--ease-premium) both;
    }

    .reveal-on .hero__poster img {
        animation: hero-settle 2.2s var(--ease-out) both;
    }

    .reveal-on .hero__title .word__inner {
        animation: word-rise 0.95s var(--ease-premium) both;
        animation-delay: calc(0.22s + var(--i, 0) * 90ms);
    }

    .reveal-on .hero__scroll {
        animation: hero-rise 1s var(--ease-out) both;
        animation-delay: 0.55s;
    }

    .reveal-on .hero__well-ring {
        animation:
            ring-in 1.4s var(--ease-premium) both,
            ring-spin var(--spin) linear infinite;
    }

    .reveal-on .hero__ring {
        animation:
            ring-in 1.6s var(--ease-premium) both,
            ring-spin var(--spin) linear infinite;
    }

    .reveal-on .hero__ring--inner {
        animation:
            ring-in 1.6s 0.15s var(--ease-premium) both,
            ring-spin var(--spin) linear infinite reverse;
    }

    .reveal-on .hero__bg .tech-grid,
    .reveal-on .hero__bg .glow {
        animation: fade-in 1.6s ease both;
    }

    @keyframes circle-open {
        from {
            clip-path: circle(0% at 50% 50%);
        }

        to {
            clip-path: circle(100% at 50% 50%);
        }
    }

    @keyframes hero-settle {
        from {
            transform: scale(1.08);
        }

        to {
            transform: scale(1);
        }
    }

    @keyframes hero-rise {
        from {
            opacity: 0;
            transform: translateY(1.1rem);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes word-rise {
        from {
            transform: translateY(118%);
        }

        to {
            transform: none;
        }
    }

    @keyframes frame-in {
        from {
            opacity: 0;
            transform: translate(-0.75rem, -0.75rem);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }

    @keyframes ring-in {
        from {
            opacity: 0;
            scale: 0.92;
        }

        to {
            opacity: 1;
            scale: 1;
        }
    }

    @keyframes fade-in {
        from {
            opacity: 0;
        }
    }

    /* Scroll-linked transformation: JS sets --hero-scroll; supporting browsers can also drift rings. */
    @supports (animation-timeline: scroll()) {

        .reveal-on .about__frame > picture,
        .reveal-on .about__frame > img {
            animation: parallax-drift linear both;
            animation-timeline: view();
            animation-range: entry 0% exit 100%;
        }

        .reveal-on .investors__ring,
        .reveal-on .contact__ring {
            animation-name: ring-spin, ring-drift;
            animation-duration: var(--spin), 1s;
            animation-timing-function: linear, linear;
            animation-iteration-count: infinite, 1;
            animation-fill-mode: none, both;
            animation-timeline: auto, view();
            animation-range: normal, entry 0% exit 100%;
        }
    }

    @keyframes hero-media-scroll {
        to {
            transform: scale(0.96) translateY(1.5rem);
        }
    }

    @keyframes parallax-drift {
        from {
            transform: translateY(4%);
        }

        to {
            transform: translateY(-4%);
        }
    }

    @keyframes ring-drift {
        from {
            translate: 0 3rem;
        }

        to {
            translate: 0 -3rem;
        }
    }

    /* ------------------------------------------------------------------ */
    /* Process — white canvas, film in the diagram slot, floating nodes    */
    /* ------------------------------------------------------------------ */
    .process {
        position: relative;
        padding-block: clamp(3rem, 1.8rem + 4vw, 6rem);
        background: var(--paper);
        overflow: clip;
    }

    .process__head {
        max-width: 46rem;
        margin-inline: auto;
        margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem);
        text-align: center;
    }

    .process__title-link {
        color: inherit;
    }

    .process__title-link:hover {
        color: var(--navy);
    }

    .process__stage {
        margin: 0;
    }

    .process__frame {
        position: relative;
        overflow: hidden;
        border-radius: var(--r-blob);
        background: var(--mist);
    }

    .process__video {
        display: block;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s var(--ease-out);
    }

    .process__video.is-playing {
        opacity: 1;
    }

    .process__nodes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(1.25rem, 0.8rem + 1.6vw, 2.25rem) 1rem;
        list-style: none;
        margin: clamp(2.25rem, 1.4rem + 2.4vw, 3.5rem) 0 0;
        padding: 0;
        position: relative;
    }

    .process__nodes::before {
        content: '';
        position: absolute;
        inset-inline: 8%;
        top: 1.7rem;
        height: 1px;
        background-image: linear-gradient(90deg, var(--line-strong) 1px, transparent 3px);
        background-size: 8px 1px;
        pointer-events: none;
    }

    .process-node {
        position: relative;
        z-index: 1;
        text-align: center;
    }

    .process-node__link {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.7rem;
        color: var(--ink-2);
    }

    .process-node__chip {
        display: grid;
        place-items: center;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: var(--r-pill);
        background: #f6f6f6;
        color: var(--ink);
        box-shadow: 0 0 0 1px rgb(17 17 17 / 0.04);
        transition:
            transform 0.45s var(--ease-premium),
            background-color var(--dur-hover) var(--ease-out),
            color var(--dur-hover) var(--ease-out);
    }

    .process-node__link:hover .process-node__chip,
    .process-node__link:focus-visible .process-node__chip {
        background: var(--ink);
        color: #fff;
        transform: translateY(-0.2rem) scale(1.06);
    }

    .process-node__label {
        max-width: 9.5rem;
        font-size: 0.75rem;
        line-height: 1.35;
        color: var(--ink-3);
    }

    @media (max-width: 767px) {
        .process__nodes::before {
            display: none;
        }
    }

    @media (min-width: 768px) {
        .process__nodes {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (min-width: 1100px) {
        .process__nodes {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }

        .process__nodes::before {
            inset-inline: 4%;
        }
    }

    /* ------------------------------------------------------------------ */
    /* Products — section shell (stacking cards: unlayered block at end)   */
    /* ------------------------------------------------------------------ */
    .products {
        position: relative;
        padding-block: var(--section-y);
        background: var(--paper);
    }

    /* Pointer-following radial highlight */

    /*
     * The official renders sit on solid black, so the whole (tilting) stage is blended with `lighten`
     * against the graphite backdrop — blending the <img> alone would fail inside the stage's own
     * stacking context.
     */

    /* Soft studio floor reflection */

    /* ------------------------------------------------------------------ */
    /* Horizontal rails (news) — native scroll-snap                        */
    /* ------------------------------------------------------------------ */
    .rail {
        --rail-pad: var(--edge);
        position: relative;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--rail-pad);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding-block: 0.5rem;
    }

    .rail::-webkit-scrollbar {
        display: none;
    }

    .rail__list {
        display: flex;
        gap: var(--rail-gap, var(--gap));
        width: max-content;
        min-width: 100%;
        padding-inline: var(--rail-pad);
        list-style: none;
        margin: 0;
    }

    .rail__list > li {
        flex: 0 0 var(--rail-item, 18rem);
        scroll-snap-align: start;
    }

    .rail-controls {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }

    .rail-controls[hidden] {
        display: none;
    }

    .rail-progress {
        position: relative;
        height: 2px;
        overflow: hidden;
        border-radius: 2px;
        background: var(--line);
    }

    .rail-progress__bar {
        position: absolute;
        inset-block: 0;
        inset-inline-start: 0;
        width: 100%;
        background: var(--grad-navy);
        transform: scaleX(var(--rail-progress, 0.2));
        transform-origin: var(--origin-start) center;
        transition: transform 0.25s linear;
    }

    .rail-progress[hidden] {
        display: none;
    }

    .rail-counter {
        display: inline-flex;
        align-items: baseline;
        gap: 0.3rem;
        font-size: 0.8125rem;
        font-weight: 600;
        letter-spacing: 0.12em;
        color: var(--ink-3);
        font-variant-numeric: tabular-nums;
    }

    .rail-counter[hidden] {
        display: none;
    }

    .rail-counter b {
        font-weight: 600;
        color: var(--navy);
    }

    /* ------------------------------------------------------------------ */
    /* Investors — frosted panels floating on a brushed-steel strip        */
    /* ------------------------------------------------------------------ */
    .investors {
        position: relative;
        padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem);
        background: var(--grad-steel);
        overflow: clip;
        isolation: isolate;
    }

    .investors::before,
    .investors::after {
        content: '';
        position: absolute;
        inset-inline: 0;
        height: clamp(3rem, 8vw, 6rem);
        z-index: 0;
        pointer-events: none;
    }

    .investors::before {
        top: 0;
        background: linear-gradient(to bottom, var(--paper), transparent);
    }

    .investors::after {
        bottom: 0;
        background: linear-gradient(to top, var(--paper), transparent);
    }

    .investors__ring {
        --ring-color: rgb(19 51 90 / 0.16);
        inset-inline-end: -8vw;
        top: -60%;
        width: 60vw;
        max-width: 56rem;
        aspect-ratio: 1;
        height: auto;
        --arc: 260deg;
        --arc-from: 160deg;
        --spin: 110s;
    }

    .ir-grid {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        list-style: none;
    }

    @media (min-width: 640px) {
        .ir-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (min-width: 1024px) {
        .ir-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: clamp(1rem, 0.6rem + 1vw, 1.5rem);
        }
    }

    .ir-link {
        --mx: 50%;
        --my: 50%;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 0.85rem;
        height: 100%;
        min-height: clamp(8.5rem, 7rem + 3vw, 11.5rem);
        padding: clamp(1.1rem, 0.9rem + 0.8vw, 1.45rem);
        border-radius: var(--r-2);
        isolation: isolate;
        overflow: hidden;
        color: var(--ink);
        transition:
            transform 0.55s var(--ease-premium),
            border-color 0.4s ease,
            box-shadow 0.4s ease;
    }

    .ir-link:hover,
    .ir-link:focus-visible {
        transform: translateY(-0.35rem);
        border-color: rgb(19 51 90 / 0.28);
        box-shadow:
            0 1px 0 rgb(14 28 46 / 0.05),
            0 32px 60px -34px rgb(14 28 46 / 0.45);
    }

    /* Pointer-following light + top line sweep */
    .ir-link::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: -1;
        background: radial-gradient(18rem circle at var(--mx) var(--my), rgb(214 226 241 / 0.75), transparent 60%);
        opacity: 0;
        transition: opacity 0.5s ease;
        pointer-events: none;
    }

    .ir-link:hover::before,
    .ir-link:focus-visible::before {
        opacity: 1;
    }

    .ir-link::after {
        content: '';
        position: absolute;
        inset-inline: 0;
        top: 0;
        height: 2px;
        background: var(--grad-navy);
        transform: scaleX(0);
        transform-origin: var(--origin-start) center;
        transition: transform 0.7s var(--ease-premium);
    }

    .ir-link:hover::after,
    .ir-link:focus-visible::after {
        transform: scaleX(1);
    }

    .ir-link:focus-visible {
        outline-offset: -4px;
    }

    .ir-link__top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ir-link__index {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        color: var(--ink-3);
        font-variant-numeric: tabular-nums;
    }

    .ir-link__icon {
        display: inline-grid;
        place-items: center;
        width: 2.9rem;
        height: 2.9rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        background: rgb(255 255 255 / 0.7);
        color: var(--navy);
        transition:
            border-color 0.45s ease,
            color 0.45s ease,
            background-color 0.45s ease,
            transform 0.6s var(--ease-premium);
    }

    .ir-link:hover .ir-link__icon,
    .ir-link:focus-visible .ir-link__icon {
        background: var(--navy);
        border-color: var(--navy);
        color: #fff;
        transform: rotate(calc(var(--dir) * -8deg)) scale(1.05);
    }

    .ir-link__title {
        margin-top: auto;
        font-family: var(--font-display);
        font-stretch: 106%;
        font-size: clamp(1.15rem, 1.02rem + 0.5vw, 1.45rem);
        font-weight: 600;
        line-height: 1.15;
        letter-spacing: -0.012em;
    }

    .ir-link__blurb {
        font-size: 0.9375rem;
        color: var(--ink-3);
    }

    .ir-link__cta {
        display: inline-flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--navy);
    }

    .ir-link:hover .btn-arrow,
    .ir-link:focus-visible .btn-arrow {
        translate: calc(var(--dir) * 0.3rem) 0;
    }

    /* Phones: compact rows — icon beside the title, "Read More" beneath it. */
    @media (max-width: 639px) {
        .ir-link {
            display: grid;
            grid-template-columns: auto minmax(0, 1fr);
            grid-template-areas:
                'icon title'
                'icon cta';
            align-items: center;
            gap: 0.3rem 1rem;
            min-height: 5.75rem;
        }

        .ir-link__top {
            display: contents;
        }

        .ir-link__icon {
            grid-area: icon;
        }

        .ir-link__index {
            display: none;
        }

        .ir-link__title {
            grid-area: title;
            margin-top: 0;
        }

        .ir-link__blurb {
            grid-column: 2;
        }

        .ir-link__cta {
            grid-area: cta;
        }
    }

    /* ------------------------------------------------------------------ */
    /* Stats — section shell (presence + tiles: unlayered block at end)    */
    /* ------------------------------------------------------------------ */
    .stats {
        position: relative;
        padding-block: clamp(3rem, 2rem + 3vw, 5.5rem);
        background: var(--paper);
        border-block: 1px solid var(--line);
        overflow: clip;
        isolation: isolate;
    }

    .stats::before {
        content: '';
        position: absolute;
        inset-inline: 0;
        top: 0;
        height: clamp(2.5rem, 6vw, 5rem);
        background: linear-gradient(to bottom, var(--paper), transparent);
        pointer-events: none;
    }

    /* ------------------------------------------------------------------ */
    /* News — compact editorial slider (all nine stories in one rail)      */
    /* ------------------------------------------------------------------ */
    .news {
        position: relative;
        padding-block: clamp(2.5rem, 1.75rem + 2.2vw, 4.25rem);
        background: var(--pearl);
        overflow: clip;
    }

    .news__rail {
        --rail-item: clamp(13rem, 54vw, 16rem);
        --rail-gap: clamp(0.85rem, 0.5rem + 0.8vw, 1.15rem);
    }

    .news .rail {
        margin-top: clamp(1.1rem, 0.7rem + 1.2vw, 1.75rem);
    }

    .news__tools {
        display: flex;
        align-items: center;
        gap: 1.25rem;
        flex: 1 1 22rem;
        min-width: min(100%, 22rem);
    }

    .news__tools .rail-progress {
        flex: 1;
    }

    .news-card {
        height: 100%;
    }

    .news-card__link {
        display: flex;
        flex-direction: column;
        gap: 0.7rem;
        height: 100%;
        color: var(--ink);
    }

    .news-media {
        position: relative;
        display: block;
        aspect-ratio: 16 / 9;
        overflow: hidden;
        border-radius: var(--r-3);
        background: var(--mist);
        --curtain: var(--pearl);
        transition:
            transform 0.8s var(--ease-premium),
            border-radius 0.55s var(--ease-premium);
    }

    .news-card__link:hover .news-media,
    .news-card__link:focus-visible .news-media,
    .is-active .news-media {
        border-radius: 1.75rem;
    }

    .news-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 1.1s var(--ease-premium);
    }

    .news-media::after {
        content: '';
        position: absolute;
        inset: 0;
        background: rgb(246 247 249 / 0.32);
        transition: opacity 0.7s ease;
        pointer-events: none;
    }

    .is-active .news-media::after,
    .news-card__link:hover .news-media::after,
    .news-card__link:focus-visible .news-media::after {
        opacity: 0;
    }

    .news-card__link:hover .news-media img,
    .news-card__link:focus-visible .news-media img {
        transform: scale(1.05);
    }

    .news-index {
        position: absolute;
        z-index: 2;
        top: 0.85rem;
        inset-inline-start: 0.85rem;
        display: inline-grid;
        place-items: center;
        min-width: 2.25rem;
        height: 1.75rem;
        padding-inline: 0.5rem;
        border-radius: 999px;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        color: var(--navy);
        font-variant-numeric: tabular-nums;
    }

    .news-card__body {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 0.9rem;
        padding-inline-end: 0.25rem;
    }

    .news-card__title {
        font-size: 0.9375rem;
        font-weight: 600;
        line-height: 1.3;
        transition: color var(--dur-hover) ease;
    }

    .news-card__link:hover .news-card__title {
        color: var(--navy);
    }

    .news-card__arrow {
        flex-shrink: 0;
        width: 1.1rem;
        height: 1.1rem;
        margin-top: 0.2rem;
        color: var(--navy);
        opacity: 0;
        translate: calc(var(--dir) * -0.4rem) 0;
        transition:
            opacity var(--dur-hover) ease,
            translate 0.45s var(--ease-premium);
    }

    .news-card__link:hover .news-card__arrow,
    .news-card__link:focus-visible .news-card__arrow,
    .is-active .news-card__arrow {
        opacity: 1;
        translate: 0 0;
    }

    /* ------------------------------------------------------------------ */
    /* Partners — six supplier marks on a metallic strip                   */
    /* ------------------------------------------------------------------ */
    .partners {
        position: relative;
        padding-block: clamp(3.5rem, 2.5rem + 3vw, 6rem);
        background: var(--paper);
    }

    .partners__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2rem, 1.2rem + 3vw, 3.5rem);
    }

    @media (min-width: 1024px) {
        .partners__grid {
            grid-template-columns: minmax(0, 3fr) minmax(0, 9fr);
            align-items: center;
        }
    }

    .partners__logos {
        position: relative;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        padding: 0.35rem 0.5rem;
        border-radius: var(--r-3);
        background: var(--grad-steel);
        border: 1px solid rgb(255 255 255 / 0.7);
        list-style: none;
    }

    @media (min-width: 640px) {
        .partners__logos {
            grid-template-columns: repeat(3, minmax(0, 1fr));
        }
    }

    @media (min-width: 1024px) {
        .partners__logos {
            grid-template-columns: repeat(6, minmax(0, 1fr));
        }
    }

    .partner {
        position: relative;
        display: grid;
        place-items: center;
        min-height: 6.5rem;
        padding: 1.1rem 0.85rem;
        background: transparent;
        border: 0;
        border-inline-end: 1px solid rgb(14 28 46 / 0.08);
        overflow: hidden;
        transition:
            transform 0.5s var(--ease-premium),
            background-color 0.4s ease;
    }

    .partner:nth-child(2n) {
        border-inline-end: 0;
    }

    @media (min-width: 640px) {
        .partner:nth-child(2n) {
            border-inline-end: 1px solid rgb(14 28 46 / 0.08);
        }

        .partner:nth-child(3n) {
            border-inline-end: 0;
        }
    }

    @media (min-width: 1024px) {
        .partner:nth-child(3n) {
            border-inline-end: 1px solid rgb(14 28 46 / 0.08);
        }

        .partner:last-child {
            border-inline-end: 0;
        }
    }

    .partner::before {
        content: '';
        position: absolute;
        inset-inline: 0;
        top: 0;
        height: 2px;
        background: var(--grad-navy);
        transform: scaleX(0);
        transform-origin: var(--origin-start) center;
        transition: transform 0.6s var(--ease-premium);
    }

    .partner:hover {
        background: rgb(255 255 255 / 0.45);
        transform: translateY(-0.15rem);
    }

    .partner:hover::before {
        transform: scaleX(1);
    }

    .partner img {
        width: min(84%, 10.5rem);
        height: auto;
        filter: grayscale(1) contrast(1.05);
        opacity: 0.8;
        transition:
            filter 0.45s ease,
            opacity 0.45s ease,
            transform 0.7s var(--ease-premium);
    }

    .partner:hover img {
        filter: none;
        opacity: 1;
        transform: scale(1.05);
    }

    /* ------------------------------------------------------------------ */
    /* Contact — asymmetric split with a layered map card                  */
    /* ------------------------------------------------------------------ */
    .contact {
        position: relative;
        padding-block: var(--section-y);
        background: var(--paper);
        overflow: clip;
        isolation: isolate;
    }

    .contact .tech-grid {
        --grid-mask: radial-gradient(60% 80% at 20% 60%, #000 0%, transparent 100%);
        z-index: 0;
    }

    .contact__ring {
        --ring-color: rgb(19 51 90 / 0.14);
        inset-inline-end: -10vw;
        bottom: -30%;
        width: 44vw;
        max-width: 40rem;
        aspect-ratio: 1;
        height: auto;
        --arc: 280deg;
        --arc-from: 220deg;
        --spin: 100s;
        z-index: 0;
    }

    .contact__grid {
        position: relative;
        z-index: 1;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(2.5rem, 1.5rem + 4vw, 5rem);
    }

    @media (min-width: 1024px) {
        .contact__grid {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            align-items: start;
        }
    }

    .contact__lead {
        margin-top: 1.25rem;
        max-width: 30rem;
    }

    .contact__list {
        margin-top: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
        border-top: 1px solid var(--line-strong);
    }

    .contact-row {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        gap: 1rem 1.1rem;
        align-items: start;
        padding-block: 1.1rem;
        border-bottom: 1px solid var(--line-strong);
    }

    .contact-row dt {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 8.5rem;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--ink-3);
    }

    .contact-row__icon {
        display: inline-grid;
        place-items: center;
        width: 2.5rem;
        height: 2.5rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        color: var(--navy);
        background: var(--paper);
    }

    .contact-row__icon svg {
        width: 1rem;
        height: 1rem;
    }

    .contact-row dd {
        padding-top: 0.55rem;
        font-size: 1rem;
        line-height: 1.6;
        color: var(--ink);
    }

    .contact-row dd a {
        background-image: linear-gradient(currentColor, currentColor);
        background-size: 0% 1px;
        background-repeat: no-repeat;
        background-position: 0 100%;
        transition:
            background-size var(--dur-reveal) var(--ease-out),
            color var(--dur-hover) ease;
    }

    [dir='rtl'] .contact-row dd a {
        background-position: 100% 100%;
    }

    .contact-row dd a:hover,
    .contact-row dd a:focus-visible {
        color: var(--navy);
        background-size: 100% 1px;
    }

    .contact__cta {
        margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
    }

    .map-card {
        position: relative;
    }

    .map-card__coords,
    .map-card__chips span {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        height: 1.9rem;
        padding-inline: 0.75rem;
        border-radius: 999px;
        color: var(--ink);
        font-size: 0.6875rem;
        font-weight: 600;
        letter-spacing: 0.08em;
        font-variant-numeric: tabular-nums;
    }

    .map-card__coords-dot {
        width: 0.3rem;
        height: 0.3rem;
        background: var(--navy);
        transform: rotate(45deg);
    }

    .map-card__chips span {
        text-transform: uppercase;
        letter-spacing: 0.12em;
    }

    .map-card__label {
        font-family: var(--font-display);
        font-stretch: 104%;
        font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem);
        font-weight: 600;
        line-height: 1.3;
        color: var(--ink);
    }

    .map-card__note {
        font-size: 0.875rem;
        line-height: 1.55;
        color: var(--ink-3);
    }

    .map-card__actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 1.25rem;
        margin-top: 0.6rem;
    }

    /* ------------------------------------------------------------------ */
    /* Social icons (footer)                                               */
    /* ------------------------------------------------------------------ */

    .social-icon {
        display: inline-grid;
        place-items: center;
        width: 2.75rem;
        height: 2.75rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        color: var(--ink-3);
        transition:
            border-color var(--dur-hover) ease,
            color var(--dur-hover) ease,
            background-color var(--dur-hover) ease,
            transform 0.45s var(--ease-premium);
    }

    .social-icon:hover {
        border-color: var(--navy);
        color: var(--navy);
        transform: translateY(-0.15rem);
    }

    .social-icon--on-dark {
        border-color: rgb(255 255 255 / 0.18);
        color: rgb(242 245 248 / 0.78);
    }

    .social-icon--on-dark:hover {
        border-color: #fff;
        background: #fff;
        color: var(--navy);
    }

    /* Mid steel tone: the only surface where both navy and white parts of these marks read. */

    [dir='rtl'] .ui-icon--directional {
        transform: scaleX(-1);
    }

    /* ------------------------------------------------------------------ */
    /* Back to top                                                         */
    /* ------------------------------------------------------------------ */
    .back-to-top {
        position: fixed;
        inset-inline-end: clamp(1rem, 2vw, 1.75rem);
        bottom: clamp(1rem, 2vw, 1.75rem);
        z-index: 40;
        display: grid;
        place-items: center;
        width: 3rem;
        height: 3rem;
        border-radius: 999px;
        background: rgb(255 255 255 / 0.82);
        color: var(--navy);
        box-shadow:
            0 12px 30px -14px rgb(11 23 38 / 0.45),
            0 0 0 1px var(--line);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        opacity: 0;
        pointer-events: none;
        transform: translateY(0.5rem);
        transition:
            opacity 0.3s ease,
            transform 0.4s var(--ease-out);
    }

    .back-to-top.is-visible {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .back-to-top svg.progress-ring {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        transform: rotate(-90deg);
    }

    .back-to-top .progress-ring__circle {
        fill: none;
        stroke: var(--navy);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-dasharray: 113;
        stroke-dashoffset: 113;
        transition: stroke-dashoffset 0.15s linear;
    }

    /* ------------------------------------------------------------------ */
    /* Compatibility atoms (shared UI components)                          */
    /* ------------------------------------------------------------------ */
    .ui-badge {
        display: inline-flex;
        align-items: center;
        padding: 0.4rem 0.8rem;
        border: 1px solid var(--line-strong);
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--ink-3);
    }

    .ui-badge--accent {
        border-color: var(--navy);
        color: var(--navy);
    }

    .link-card {
        position: relative;
        display: flex;
        min-height: 9rem;
        flex-direction: column;
        justify-content: space-between;
        gap: 1rem;
        padding: 1.5rem;
        border: 1px solid var(--line-strong);
        border-radius: var(--r-2);
        background: var(--paper);
        transition: border-color var(--dur-hover) ease;
    }

    .link-card:hover {
        border-color: var(--navy);
    }

    .link-card__title {
        font-weight: 600;
        color: var(--ink);
    }

    .link-card__body {
        font-size: 0.875rem;
        color: var(--ink-3);
    }

    .link-card__arrow {
        color: var(--navy);
    }

    .stat-block__label {
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.16em;
        color: var(--navy);
    }

    .stat-block__value {
        font-family: var(--font-display);
        font-size: var(--text-fluid-3xl);
        font-weight: 500;
        color: var(--navy);
        font-variant-numeric: tabular-nums;
    }

    .stat-block__desc {
        font-size: 0.875rem;
        color: var(--ink-3);
    }

    /* ------------------------------------------------------------------ */
    /* Reveal system — only active when JS confirms motion is welcome      */
    /* ------------------------------------------------------------------ */
    .reveal-on [data-reveal] {
        opacity: 0;
        transform: translate3d(0, 1.25rem, 0);
        transition:
            opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
            transform 0.9s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='fade'] {
        transform: none;
    }

    .reveal-on [data-reveal='scale'] {
        transform: scale(0.94);
    }

    .reveal-on [data-reveal].is-inview {
        opacity: 1;
        transform: none;
    }

    /*
     * Clip reveals animate a child (.reveal-target), never the observed element itself: Chrome
     * reports a zero-area intersection for an element whose clip-path has no area.
     */
    .reveal-on [data-reveal='circle'],
    .reveal-on [data-reveal='clip-up'] {
        opacity: 1;
        transform: none;
    }

    /* Circle: media opens from its centre. */
    .reveal-on [data-reveal='circle'] > .reveal-target {
        clip-path: circle(0% at 50% 50%);
        transition: clip-path 1.2s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='circle'].is-inview > .reveal-target {
        clip-path: circle(75% at 50% 50%);
    }

    .reveal-on [data-reveal='circle'] img {
        transform: scale(1.12);
        transition: transform 1.8s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='circle'].is-inview img {
        transform: none;
    }

    /* Clip-up: media is uncovered from the bottom edge. */
    .reveal-on [data-reveal='clip-up'] > .reveal-target {
        clip-path: inset(100% 0 0 0);
        transition: clip-path 1s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='clip-up'].is-inview > .reveal-target {
        clip-path: inset(0 0 0 0);
    }

    /* Curtain: a surface-coloured panel retracts to the end edge while the picture settles. */
    .reveal-on [data-reveal='curtain'] {
        opacity: 1;
        transform: none;
    }

    .reveal-on [data-reveal='curtain']::after {
        content: '';
        position: absolute;
        inset: -1px;
        z-index: 2;
        background: var(--curtain, var(--paper));
        transform-origin: var(--origin-end) center;
        transition: transform 1.1s var(--ease-in-out) var(--reveal-delay, 0ms);
        pointer-events: none;
    }

    .reveal-on [data-reveal='curtain'].is-inview::after {
        transform: scaleX(0);
    }

    .reveal-on [data-reveal='curtain'] > picture,
    .reveal-on [data-reveal='curtain'] > img {
        transform: scale(1.1);
        transition: transform 1.7s var(--ease-out) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='curtain'].is-inview > picture,
    .reveal-on [data-reveal='curtain'].is-inview > img {
        transform: none;
    }

    /* Rule: hairlines draw in from the start edge. */
    .reveal-on [data-reveal='rule'] {
        opacity: 1;
        transform: none;
    }

    .reveal-on [data-reveal='rule']::before,
    .reveal-on [data-reveal='rule']::after {
        transform: scaleX(0);
        transition: transform 1.3s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='rule'].is-inview::before,
    .reveal-on [data-reveal='rule'].is-inview::after {
        transform: scaleX(1);
    }

    /* Words: each word rises out of its own mask. */
    .reveal-on [data-reveal='words'] {
        opacity: 1;
        transform: none;
    }

    .reveal-on [data-reveal='words'] .word__inner {
        transform: translateY(118%);
        transition: transform 0.9s var(--ease-premium) calc(var(--reveal-delay, 0ms) + var(--i, 0) * 80ms);
    }

    .reveal-on [data-reveal='words'].is-inview .word__inner {
        transform: none;
    }

    /* Ring: decorative circles scale and settle. */
    .reveal-on [data-reveal='ring'] {
        opacity: 0;
        transform: none;
        scale: 0.9;
        transition:
            opacity 1.2s ease var(--reveal-delay, 0ms),
            scale 1.6s var(--ease-premium) var(--reveal-delay, 0ms);
    }

    .reveal-on [data-reveal='ring'].is-inview {
        opacity: 1;
        scale: 1;
    }

    .text-fluid-sm {
        font-size: var(--text-fluid-sm);
    }

    .text-fluid-base {
        font-size: var(--text-fluid-base);
    }

    .text-fluid-xl {
        font-size: var(--text-fluid-xl);
    }

    .text-fluid-2xl {
        font-size: var(--text-fluid-2xl);
    }

    .text-fluid-3xl {
        font-size: var(--text-fluid-3xl);
    }

    @keyframes icon-bob {
        0%,
        100% {
            translate: 0 0;
        }

        50% {
            translate: 0 -0.42rem;
        }
    }

    .icon-bob,
    .process-node__chip,
    .ir-link__icon,
    .hero__play-icon,
    .contact-row__icon {
        animation: icon-bob 5.2s var(--ease-in-out) infinite;
        animation-delay: var(--bob-delay, 0s);
    }

    .process-node:nth-child(2) .process-node__chip,
    .ir-cell:nth-child(2) .ir-link__icon {
        --bob-delay: 0.4s;
    }

    .process-node:nth-child(3) .process-node__chip,
    .ir-cell:nth-child(3) .ir-link__icon {
        --bob-delay: 0.8s;
    }

    .process-node:nth-child(4) .process-node__chip,
    .ir-cell:nth-child(4) .ir-link__icon {
        --bob-delay: 1.2s;
    }

    .process-node:nth-child(5) .process-node__chip {
        --bob-delay: 1.6s;
    }

    .process-node:nth-child(6) .process-node__chip {
        --bob-delay: 2s;
    }

    /* Reduced motion: no ambient rotation, drift, pulses or scroll-linked transforms. */
    @media (prefers-reduced-motion: reduce) {
        .ring--spin,
        .ring--spin-reverse,
        .hero__ring,
        .hero__ring--inner,
        .hero__ring--orbit,
        .hero__well-ring,
        .hero__media,
        .about__frame > picture,
        .investors__ring,
        .contact__ring,
        .hero__scroll-disc::after,
        .hero__scroll-disc svg,
        .icon-bob,
        .process-node__chip,
        .ir-link__icon,
        .hero__play-icon,
        .contact-row__icon {
            animation: none !important;
        }

        .hero__media {
            transform: none !important;
        }

        [data-magnetic] {
            translate: 0 0 !important;
        }
    }
}

/* Editorial presentation — white canvas, gray shells, pill frames, inset media. */
.hero {
    background: #fff;
    padding-top: 0;
}

.hero__stage {
    display: block;
    padding-inline: 0;
}

.hero__media {
    position: relative;
    inset: auto;
    top: auto;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: none;
    translate: none;
}

.hero__copy {
    max-width: none;
    padding-block: 0;
}

@media (min-width: 1024px) {
    .hero {
        min-height: 0;
    }

    .hero__stage {
        min-height: 0;
    }

    .hero__media {
        position: relative;
        inset-inline-end: auto;
        top: auto;
        --well: 100%;
        translate: none;
    }
}

.hero__well,
.reveal-on .hero__well {
    aspect-ratio: 16 / 8;
    border-radius: 30px;
    clip-path: none;
    animation: none;
    background: #d8d8d8;
    box-shadow: none;
}

.hero__copy {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    padding: clamp(1.25rem, 4vw, 3rem);
    text-align: center;
    pointer-events: none;
}

.hero__copy::before {
    content: "";
    position: absolute;
    inset: 12% 8%;
    z-index: -1;
    background: radial-gradient(ellipse at center, rgb(0 0 0 / 0.42), rgb(0 0 0 / 0.08) 62%, transparent 76%);
    pointer-events: none;
}

.hero__title {
    max-width: none;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-shadow: 0 10px 30px rgb(0 0 0 / 0.25);
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    min-height: 2.4rem;
    padding: 0.4rem 1.15rem;
    border: 1px solid #fff;
    border-radius: 30px;
    color: #fff;
    font-size: 0.875rem;
    white-space: nowrap;
    background: transparent;
    transition: background-color 0.35s ease, color 0.35s ease;
}

.hero-pill:hover,
.hero-pill:focus-visible {
    background: #fff;
    color: #111;
}

.hero__scrim {
    background: linear-gradient(to top, rgb(0 0 0 / 0.55), rgb(0 0 0 / 0.12) 42%, rgb(0 0 0 / 0.28));
}

.hero__dashes {
    display: flex;
    justify-content: center;
    gap: 0.65rem;
    margin-top: 0.9rem;
}

.hero__dashes span {
    width: 3.25rem;
    height: 3px;
    border-radius: 3px;
    background: #e4e4e4;
}

.hero__dashes .is-active {
    background: #fff;
    box-shadow: inset 0 0 0 1px #111;
}

.hero__scroll {
    margin-inline: auto;
}

.investors,
.news,
.partners,
.stats,
.contact {
    background: #fff;
}

.news .rail__list {
    gap: 1rem;
    align-items: flex-start;
}

.news .rail__list > li {
    flex: 0 0 auto;
    width: 16rem;
}

.news .news-media {
    height: calc(11rem + (var(--emphasis, 0) * 13rem));
    aspect-ratio: auto;
    border-radius: calc(1.15rem + (var(--emphasis, 0) * 0.85rem));
}

.news .news-media::after {
    background: rgb(255 255 255 / 0.14);
}

/* Weight follows --emphasis too (Archivo is variable), so the lead title thickens smoothly instead of flipping mid-slide. */
.news .news-card__title {
    font-size: calc(0.98rem + (var(--emphasis, 0) * 1.35rem));
    font-weight: calc(650 + var(--emphasis, 0) * 150);
    letter-spacing: -0.03em;
    line-height: 1.05;
}

/*
 * Featured carousel (>= 768px, see rail.js). --emphasis is registered so it can transition: card width, photo height,
 * radius and title all ease with the row's transform on one curve. The row keeps the height of the tallest featured
 * card, so the section below never moves while cards grow and shrink.
 */
@property --emphasis {
    syntax: '<number>';
    inherits: true;
    initial-value: 0;
}

.news .rail.is-featured {
    --news-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

.news .rail.is-featured .rail__list {
    min-height: var(--news-row-h, auto);
    transition: transform var(--news-dur, 700ms) var(--news-ease);
}

.news .rail.is-featured .rail__list > li {
    --emphasis: 0;
    width: calc(var(--news-w-small) + var(--emphasis) * (var(--news-w-big) - var(--news-w-small)));
    /* The scroll-reveal fade lives on the same element, so it is restated here. */
    transition:
        --emphasis var(--news-dur, 700ms) var(--news-ease),
        opacity 0.7s var(--ease-out) var(--reveal-delay, 0ms),
        transform 0.9s var(--ease-premium) var(--reveal-delay, 0ms);
}

.news .rail.is-featured .rail__list > li.is-active {
    --emphasis: 1;
}

.news .rail.is-settling .rail__list,
.news .rail.is-settling .rail__list > li {
    transition: none;
}

/* Below 768px: native scroll-snap rail, one card plus a peek of the next, every photo at the same ratio. */
@media (max-width: 767px) {
    .news .rail__list > li {
        /* --gutter, not --edge: --edge holds a percentage, which a card would resolve against the rail. */
        width: calc((100vw - 2 * var(--gutter)) * 0.86);
    }

    .news .news-media {
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

/* Mouse drag on the native rail: snapping waits until the pointer is released. */
.news .rail.is-dragging {
    scroll-snap-type: none;
    cursor: grabbing;
}

.ir-link {
    background: #f0f0f0;
    border-radius: 20px;
    box-shadow: none;
    backdrop-filter: none;
}

.ir-link__icon,
.process-node__chip {
    background: #fff;
    border-radius: 50%;
    animation: hotspot-beat 2.8s ease-in-out infinite alternate;
}

/* The layered hover rules turn the glyph white; their dark disc must live here too, or the unlayered #fff above wins and the icon vanishes. */
.ir-link:is(:hover, :focus-visible, :active) .ir-link__icon {
    background: var(--navy);
    color: #fff;
}

.process-node__link:is(:hover, :focus-visible, :active) .process-node__chip {
    background: var(--ink);
    color: #fff;
}

.process__frame {
    border-radius: 30px;
}

.partners {
    overflow: hidden;
}

@keyframes hotspot-beat {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.is-urdu .nav-link {
    text-transform: none;
    letter-spacing: 0;
}

.nav-link {
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgb(255 255 255 / 0.82);
}

.nav-link:hover,
.nav-link[aria-expanded='true'] {
    color: #fff;
}

.nav-link::after {
    background: #fff;
}

.site-header__cta,
.btn-primary {
    background: #111;
    border-radius: 30px;
    box-shadow: none;
}

/* On the black header the CTA inverts to white so it stays visible. */
.site-header .site-header__cta {
    background: #fff;
    color: #111;
}

.site-header .site-header__cta:hover,
.site-header .site-header__cta:focus-visible {
    color: #fff;
}

.site-header .header-group-logo {
    border-inline-end-color: rgb(255 255 255 / 0.18);
}

.site-header :is(.lang-switch, .menu-toggle) {
    border-color: rgb(255 255 255 / 0.22);
    background: rgb(255 255 255 / 0.06);
    color: #fff;
}

.site-header .menu-toggle:hover {
    border-color: #fff;
}

.site-header .lang-pill:not(.is-active) {
    color: rgb(255 255 255 / 0.72);
}

.site-header .lang-pill:not(.is-active):hover {
    color: #fff;
}

/* Touch layouts (mobile menu showing): language pills meet the 44px target. */
@media (max-width: 1279.98px) {
    .site-header .lang-pill {
        min-width: 2.75rem;
        height: 2.75rem;
    }

    .site-header .header-group-logo {
        min-height: 2.75rem;
    }
}

@media (max-width: 767px) {
    .hero__well {
        aspect-ratio: 4 / 5;
        border-radius: 22px;
    }

    .hero__copy {
        padding-bottom: 3.2rem;
    }

    .hero__title {
        font-size: clamp(2.4rem, 12vw, 3.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ir-link__icon,
    .process-node__chip {
        animation: none;
    }
}

@layer utilities {
    .border-surface-2 {
        border-color: var(--color-border);
    }

    /* Urdu (Nastaliq) — no tracking or case transforms on Arabic script, taller line boxes. */
    .is-urdu :is(.eyebrow, .section-eyebrow, .news-index, .ir-link__index, .contact-row dt, .map-card__chips span, .hero__scroll, .process-node__label, .nav-link, .mega-link, .mobile-link, .btn-primary, .btn-secondary, .lang-pill, .rail-counter) {
        letter-spacing: 0;
        text-transform: none;
    }

    .is-urdu :is(.section-title, .hero__title, .ir-link__title, .map-card__label, .mobile-group__toggle, .mobile-group__link) {
        font-stretch: normal;
        letter-spacing: 0;
    }

    /* Nastaliq ascenders/descenders must not be clipped by word masks. */
    .is-urdu .word {
        overflow: visible;
        padding-bottom: 0;
        margin-bottom: 0;
    }

    .is-urdu .hero__title {
        font-size: clamp(2.1rem, 1.1rem + 3.6vw, 4.4rem);
        line-height: 1.75;
        font-weight: 600;
        max-width: 16ch;
    }

    .is-urdu .section-title {
        font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.9rem);
        line-height: 1.7;
    }

    .is-urdu :is(.ir-link__title, .map-card__label) {
        font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.3rem);
        line-height: 1.9;
    }

    .is-urdu :is(.lead, .news-card__title) {
        line-height: 2;
    }
}

/* Gul Ahmed-matched frames: full-bleed hero, partners marquee. */
.hero__well,
.reveal-on .hero__well {
    width: 100%;
    aspect-ratio: auto;
    min-height: 100svh;
    border-radius: 0;
}

.hero__copy {
    justify-content: center;
    max-width: 52rem;
    margin-inline: auto;
}

.hero__wordmark {
    max-width: none;
    font-weight: 650;
    font-stretch: 118%;
    font-size: clamp(2.35rem, 0.9rem + 3vw, 4.35rem);
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: none;
    text-align: center;
    color: #fff;
    background: none;
    -webkit-text-fill-color: #fff;
    text-shadow: none;
}

.hero__title.hero__bold {
    max-width: 11em;
    margin: 0 auto;
    font-weight: 800;
    font-stretch: 104%;
    font-size: clamp(2.8rem, 1rem + 5.2vw, 5.75rem);
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-align: center;
    text-transform: uppercase;
    background-image: linear-gradient(180deg, #fff 0%, #fff 28%, #b5b5b5 100%);
    background-size: 100% 1lh;
    background-repeat: repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero__lede {
    max-width: 40rem;
    margin-top: 0.35rem;
    color: rgb(255 255 255 / 0.92);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.55;
    text-align: center;
}

.partners__grid {
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

/*
 * Continuous marquee that never pauses (no hover/focus/touch pause, and it keeps running under reduced motion by request).
 * Each set carries its trailing gap as padding, so sliding by exactly one set (-25% of four) loops with no jump.
 * Three sets (~3.7k px) always cover the container, which is capped at 82rem.
 */
.partners__marquee {
    --logo-gap: clamp(1.5rem, 1rem + 1.5vw, 2.5rem);
    overflow: hidden;
    direction: ltr;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.partners__track {
    display: flex;
    width: max-content;
    animation: partner-marquee 32s linear infinite;
    will-change: transform;
}

.partners__logos {
    display: flex;
    align-items: center;
    gap: var(--logo-gap);
    padding: 0 var(--logo-gap) 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.partners__logos .partner {
    flex: none;
    width: 10.5rem;
    padding-inline: 0;
    border: 0;
    background: transparent;
}

.partners__logos .partner img { width: 100%; }

@keyframes partner-marquee {
    to { transform: translateX(-25%); }
}

.is-urdu .hero__title.hero__bold {
    font-size: clamp(2.4rem, 1.1rem + 3.4vw, 4.4rem);
    line-height: 1.85;
    font-weight: 700;
}

.is-urdu .hero__title,
.is-urdu .hero__bold {
    text-transform: none;
    letter-spacing: 0;
    max-width: none;
    line-height: 1.7;
    white-space: normal;
    font-stretch: 100%;
    background: none;
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.rail.is-auto {
    overflow: hidden;
    scroll-snap-type: none;
}

.rail.is-auto .rail__list {
    will-change: transform;
}

@media (max-width: 767px) {
    .hero__well,
    .reveal-on .hero__well {
        min-height: 100svh;
        border-radius: 0;
    }

    .hero__wordmark {
        font-size: clamp(1.85rem, 8vw, 2.6rem);
    }

    .hero__title.hero__bold {
        font-size: clamp(2.15rem, 9vw, 3.1rem);
    }

    .hero__lede {
        font-size: 0.875rem;
    }
}

/* ==================================================================== */
/* About — Gul-Ahmed-style notched media (single source of truth)        */
/* Shape geometry: resources/js/modules/about-shape.js                   */
/* ==================================================================== */

/* Registered so getComputedStyle() returns resolved px for the JS path builder. */
@property --shape-r { syntax: '<length>'; inherits: true; initial-value: 28px; }
@property --shape-f { syntax: '<length>'; inherits: true; initial-value: 22px; }
@property --shape-band-r { syntax: '<length>'; inherits: true; initial-value: 56px; }

.about {
    --shape-r: clamp(1.25rem, 0.8rem + 1.1vw, 1.9rem);
    --shape-f: clamp(1rem, 0.6rem + 0.9vw, 1.5rem);
    --shape-band-r: 3.5rem;
    --band-h: clamp(5.5rem, 3rem + 4.2vw, 7.25rem);
    --badge-size: clamp(4.25rem, 2.6rem + 3vw, 6.25rem);
    --badge-pad: clamp(0.85rem, 0.5rem + 0.8vw, 1.35rem);
    --badge-box: calc(var(--badge-size) + var(--badge-pad) * 2);

    position: relative;
    padding-block: var(--section-y, 6rem);
    background: #fff;
    overflow: clip;
}

/* Underlines grow from the inline-start edge in both directions. */
[dir='rtl'] .about { --tab-origin: right; }

.about__stage {
    --about-shape: none;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        'tabs'
        'media'
        'marks'
        'copy';
    row-gap: 1rem;
}

/* ---------- Tabs (Vision / Mission / Values pattern) ---------- */
.about__tabs {
    grid-area: tabs;
    justify-self: start;
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem clamp(1.1rem, 0.6rem + 1.2vw, 2rem);
}

.about__tab {
    position: relative;
    min-height: 2.75rem;
    padding: 0.35rem 0;
    border: 0;
    background: none;
    color: #6b6b6b;
    font: inherit;
    font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.2rem);
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: color 0.3s var(--ease-premium, ease);
}

.about__tab::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0.3rem;
    height: 1.5px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: var(--tab-origin, left);
    transition: transform 0.45s var(--ease-premium, ease);
}

.about__tab:hover,
.about__tab:focus-visible { color: #111; }

.about__tab:hover::after,
.about__tab:focus-visible::after { transform: scaleX(1); }

.about__tab.is-on {
    color: #111;
    font-weight: 650;
}

.about__tab:focus-visible {
    outline: 2px solid var(--navy, #13335a);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ---------- Media: one continuous photo, clipped to the outline ---------- */
.about__frames {
    grid-area: media;
    position: relative;
    z-index: 1;
    margin: 0;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--mist, #f4f4f4);
    border-radius: var(--shape-r);
    clip-path: var(--about-clip, none);
    transform: translateZ(0);
}

.about__frame {
    position: absolute;
    inset: 0;
}

.about__frame picture {
    position: absolute;
    inset: 0;
    display: block;
}

.about__frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 45%;
    transform: scale(1.001);
    transition: transform 1.4s var(--ease-premium, cubic-bezier(0.22, 1, 0.36, 1));
    will-change: transform;
}

@media (hover: hover) and (pointer: fine) {
    .about__frames:hover .about__frame img { transform: scale(1.035); }
}

/* ---------- Badge (Aisha Steel mark in the bottom-start notch) ---------- */
.about__badge { display: none; }

.about__badge-disc {
    display: grid;
    place-items: center;
    width: var(--badge-size);
    aspect-ratio: 1;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 2px #111;
    animation: about-badge-float 7s ease-in-out infinite;
}

.about__badge-disc img {
    width: 68%;
    height: auto;
}

@keyframes about-badge-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

/* ---------- Marks (Weaving Legacy / Future of Innovation pattern) ---------- */
.about__marks {
    grid-area: marks;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem clamp(1.5rem, 1rem + 2.4vw, 4.25rem);
    color: #111;
    font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.2rem);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ---------- Copy ---------- */
.about__copy {
    grid-area: copy;
    position: relative;
    z-index: 2;
    padding: 0.5rem 0 0;
}

.about__copy .eyebrow { margin-bottom: 0.6rem; }

.about__copy .section-title {
    margin: 0;
    color: #111;
    font-size: clamp(2rem, 1.3rem + 1.9vw, 3.1rem);
    font-weight: 300;
    font-stretch: 100%;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.about__copy .about__lead {
    max-width: 44rem;
    margin-top: clamp(1rem, 0.7rem + 0.9vw, 1.75rem);
    color: #1d1d1d;
    font-size: clamp(1rem, 0.86rem + 0.5vw, 1.4rem);
    font-weight: 300;
    line-height: 1.55;
    letter-spacing: -0.01em;
}

.about__kicker {
    color: #111;
    font-weight: 700;
}

.about__cta { margin-top: clamp(1.5rem, 1rem + 1.6vw, 2.75rem); }

/* “> (More about us)” pattern: chevron + label + solid underline bar */
.about__more {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding-block: 0.4rem 0.9rem;
    padding-inline: 0.2rem 1.6rem;
    color: #111;
    font-size: clamp(0.95rem, 0.88rem + 0.25vw, 1.1rem);
    font-weight: 400;
    text-decoration: none;
}

.about__more::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 2.5px;
    background: #111;
    transform-origin: var(--tab-origin, left);
    transition: transform 0.5s var(--ease-premium, ease), background-color 0.3s ease;
}

.about__more-icon {
    width: 1rem;
    height: 1rem;
    stroke-width: 2.6;
    transition: transform 0.35s var(--ease-premium, ease);
}

[dir='rtl'] .about__more-icon { transform: scaleX(-1); }

.about__more:hover .about__more-icon,
.about__more:focus-visible .about__more-icon { transform: translateX(4px); }

[dir='rtl'] .about__more:hover .about__more-icon,
[dir='rtl'] .about__more:focus-visible .about__more-icon { transform: scaleX(-1) translateX(4px); }

.about__more:hover::after,
.about__more:focus-visible::after {
    background: var(--navy, #13335a);
    animation: about-bar-sweep 0.7s var(--ease-premium, ease);
}

@keyframes about-bar-sweep {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.about__more:focus-visible {
    outline: 2px solid var(--navy, #13335a);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Tab switch: the newly shown copy panel fades up (animation restarts on display change). */
.about__panel { animation: about-panel-in 0.5s var(--ease-premium, ease) both; }

@keyframes about-panel-in {
    from { opacity: 0; transform: translateY(8px); }
}

/* Urdu (Nastaliq): no light weight exists and the script needs taller lines. */
.is-urdu .about__copy .section-title { font-weight: 400; line-height: 1.6; }
.is-urdu .about__copy .about__lead { font-weight: 400; line-height: 2.1; }
.is-urdu .about__tab,
.is-urdu .about__marks { line-height: 1.9; }

/* ---------- Compact shape: 640–1023px (tabs + badge + marks notches) ---------- */
@media (min-width: 640px) {
    .about__stage {
        --about-shape: compact;

        grid-template-areas:
            'tabs'
            'media'
            'foot'
            'copy';
        grid-template-rows: auto minmax(clamp(18rem, 12rem + 20vw, 28rem), auto) auto auto;
        row-gap: 0;
    }

    .about__frames {
        grid-row: 1 / 4;
        grid-column: 1 / -1;
        aspect-ratio: auto;
        border-radius: 0;
    }

    .about__tabs {
        grid-area: tabs;
        padding-block: 0 0.95rem;
        padding-inline: 0 clamp(1rem, 0.5rem + 1vw, 1.5rem);
    }

    .about__badge {
        grid-area: foot;
        justify-self: start;
        align-self: end;
        display: block;
        position: relative;
        z-index: 3;
        padding-block: var(--badge-pad) 0;
        padding-inline: 0 var(--badge-pad);
    }

    .about__marks {
        grid-area: foot;
        justify-self: end;
        align-self: end;
        position: relative;
        z-index: 3;
        flex-wrap: nowrap;
        padding-block: 1.1rem 0;
        padding-inline: clamp(2rem, 1rem + 3vw, 5rem) 0;
    }

    .about__copy {
        grid-area: copy;
        padding-top: clamp(2rem, 1.5rem + 2vw, 3rem);
    }
}

/* ---------- Full shape: ≥1024px (the screenshot-2 composition) ---------- */
@media (min-width: 1024px) {
    .about__stage {
        --about-shape: full;

        grid-template-columns: minmax(0, 43fr) minmax(0, 57fr);
        grid-template-areas:
            'tabs copy'
            '.    copy'
            '.    .'
            'foot foot';
        grid-template-rows: auto minmax(clamp(20rem, 8rem + 20vw, 27rem), 1fr) var(--band-h) auto;
    }

    .about__frames { grid-row: 1 / -1; }

    .about__copy {
        grid-area: copy;
        align-self: stretch;
        padding-block: 0.4rem clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
        padding-inline: clamp(1.75rem, 1rem + 1.6vw, 2.5rem) 0;
    }

    .about__badge { grid-row: 3 / 5; grid-column: 1 / -1; }
    .about__marks { grid-row: 4; grid-column: 1 / -1; }

    .about__marks { padding-block-start: 1.3rem; }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    /* Three tab labels need a wider start column before 1280px. */
    .about__stage { grid-template-columns: minmax(0, 48fr) minmax(0, 52fr); }
}

/* Existing view-timeline parallax: add scale so the drift never exposes the clip edge. */
@supports (animation-timeline: view()) {
    .reveal-on .about__frame > picture { animation-name: about-drift; }
}

@keyframes about-drift {
    from { transform: translateY(3%) scale(1.08); }
    to { transform: translateY(-3%) scale(1.08); }
}

/* Before JS measures (and with JS off) keep text and badge off the photo on wide screens. */
@media (min-width: 640px) {
    .about__stage:not(.is-shaped) .about__frames { clip-path: inset(3.5rem 0 var(--badge-box) 0 round var(--shape-r)); }
}

@media (min-width: 1024px) {
    .about__stage:not(.is-shaped) .about__frames { clip-path: inset(3.5rem 57% var(--badge-box) 0 round var(--shape-r)); }
    [dir='rtl'] .about__stage:not(.is-shaped) .about__frames { clip-path: inset(3.5rem 0 var(--badge-box) 57% round var(--shape-r)); }
}

@media (prefers-reduced-motion: reduce) {
    .about__badge-disc,
    .about__panel { animation: none; }
    .about__frame img,
    .about__tab::after,
    .about__more::after,
    .about__more-icon { transition: none; }
    .about__more:hover::after,
    .about__more:focus-visible::after { animation: none; }
}

/* ==================================================================== */
/* Products — Gul Ahmed stacking cards (Products → Manufacturing)        */
/* JS: resources/js/modules/coil-scroll.js                               */
/* ==================================================================== */
.products {
    position: relative;
    padding-block: var(--section-y, 6rem);
    background: #fff;
}

.products__title {
    margin: 0 0 clamp(1.25rem, 0.8rem + 1.5vw, 2.25rem);
    color: #111;
    font-weight: 300;
    letter-spacing: -0.03em;
}

.coil-stack {
    display: grid;
    row-gap: clamp(1.5rem, 5vh, 3.5rem);
}

/* Dwell: keeps the last card pinned a moment after it fully covers the previous one. */
.coil-stack::after {
    content: '';
    height: 16vh;
}

.coil-card {
    --pin: calc(var(--header-occupied) + 0.75rem + var(--i, 0) * 1.25rem);

    position: sticky;
    top: var(--pin);
    z-index: calc(1 + var(--i, 0));
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    height: min(calc(100svh - var(--pin) - 1.25rem), 40rem);
    padding: clamp(0.9rem, 0.5rem + 1.2vw, 1.5rem);
    padding-block-start: clamp(1.1rem, 0.6rem + 1.4vw, 2rem);
    border-radius: clamp(1.75rem, 1rem + 2.4vw, 3rem);
    background: var(--card-bg, #f7f7f7);
    box-shadow: 0 -24px 60px -44px rgb(0 0 0 / 0.55);
    transform: scale(var(--stack-scale, 1));
    transform-origin: 50% 0;
    will-change: transform;
}

.coil-card:nth-child(even) { --card-bg: #efefef; }

.coil-card__title {
    margin: 0 0 clamp(0.75rem, 0.4rem + 1vw, 1.25rem);
    padding-inline: clamp(0.4rem, 0.2rem + 0.8vw, 1rem);
    color: #111;
    font-size: clamp(2rem, 1.1rem + 3vw, 4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.035em;
    opacity: calc(0.35 + var(--stack-rise, 1) * 0.65);
    transform: translateY(calc((1 - var(--stack-rise, 1)) * 1.25rem));
}

.coil-card__media {
    position: relative;
    overflow: hidden;
    border-radius: clamp(1.25rem, 0.7rem + 1.8vw, 2.5rem);
    background: #111;
    isolation: isolate;
}

.coil-card__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: 50% 50%;
    transform: scale(var(--stack-zoom, 1));
    will-change: transform;
}

.coil-card__veil {
    position: absolute;
    inset: 0;
    z-index: 3;
    border-radius: inherit;
    background: #000;
    opacity: var(--stack-veil, 0);
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .coil-card { position: relative; top: auto; transform: none; }
    .coil-card__media img,
    .coil-card__title { transform: none; opacity: 1; }
    .coil-card__veil { display: none; }
}

/* ==================================================================== */
/* Global presence — Gul Ahmed "Sustainability" composition              */
/* ==================================================================== */
.stats {
    position: relative;
    padding-block: var(--section-y, 6rem);
    background: #fff;
}

.presence {
    --split: 51.5%;
    --photo-r: clamp(1.5rem, 0.9rem + 1.8vw, 2.75rem);
    --word: 7.05cqi;

    position: relative;
    container-type: inline-size;
    display: grid;
    grid-template-areas: 'stage';
}

.presence__stage {
    grid-area: stage;
    position: relative;
    min-height: clamp(24rem, 14rem + 30vw, 42rem);
    overflow: clip;
    isolation: isolate;
}

.presence__photo {
    position: absolute;
    z-index: 1;
    inset-block: 0;
    inset-inline: var(--split) 0;
    overflow: hidden;
    border-radius: var(--photo-r);
    background: var(--mist, #f4f4f4);
}

.presence__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.001);
    transition: transform 1.6s var(--ease-premium, ease);
}

@media (hover: hover) and (pointer: fine) {
    .presence:hover .presence__photo img { transform: scale(1.04); }
}

.presence__copy {
    grid-area: stage;
    position: relative;
    z-index: 3;
    align-self: end;
    width: var(--split);
    margin-block-end: calc(var(--word) * 1.25);
    padding-inline-end: clamp(1.25rem, 0.5rem + 2.4vw, 3.25rem);
    text-align: end;
}

.presence__lede,
.presence__more {
    max-width: 30rem;
    margin-block: 0;
    margin-inline: auto 0;
    color: #111;
    font-size: clamp(1rem, 0.85rem + 0.55vw, 1.45rem);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.presence__more { margin-block-start: 0.65rem; }

/* Two identical words stacked on the same box: dark under the photo, light clipped to the photo. */
.presence__word {
    position: absolute;
    z-index: 0;
    inset-inline-start: 0;
    bottom: calc(var(--word) * -0.12);
    margin: 0;
    color: #111;
    font-size: var(--word);
    font-weight: 800;
    font-stretch: 100%;
    line-height: 1;
    letter-spacing: -0.045em;
    white-space: nowrap;
    text-transform: none;
    pointer-events: none;
}

.presence__ink {
    position: absolute;
    z-index: 2;
    inset: 0;
    clip-path: inset(0 0 0 var(--split) round var(--photo-r));
    pointer-events: none;
}

[dir='rtl'] .presence__ink { clip-path: inset(0 var(--split) 0 0 round var(--photo-r)); }

.presence__ink .presence__word { color: #fff; }

/* Stat cards — the Environment / Social / Governance tiles */
.stats__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: clamp(0.75rem, 0.4rem + 1vw, 1.5rem);
    margin: clamp(1.25rem, 0.8rem + 1.2vw, 2rem) 0 0;
}

.stat {
    position: relative;
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-height: 10.5rem;
    padding: clamp(1.25rem, 0.9rem + 1vw, 2rem) clamp(1.25rem, 0.9rem + 1.2vw, 2.25rem);
    border-radius: clamp(1.25rem, 0.9rem + 1vw, 1.9rem);
    background: #f0f0f0;
    color: #111;
    transition: background-color 0.45s var(--ease-premium, ease), color 0.45s ease, transform 0.45s var(--ease-premium, ease);
}

.stat__label {
    padding-inline-end: 4.5rem;
    font-size: clamp(1.05rem, 0.9rem + 0.5vw, 1.5rem);
    font-weight: 500;
    letter-spacing: 0.01em;
}

.stat__icon {
    position: absolute;
    top: clamp(1.1rem, 0.8rem + 1vw, 1.8rem);
    inset-inline-end: clamp(1.1rem, 0.8rem + 1.2vw, 2rem);
    width: clamp(2.5rem, 2rem + 1.6vw, 3.6rem);
    height: auto;
    stroke-width: 1;
    color: currentColor;
}

.stat__value {
    margin: 0.35rem 0 0;
    font-size: clamp(2.4rem, 1.6rem + 2.4vw, 4rem);
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.04em;
}

.stat__desc {
    margin: 0.4rem 0 0;
    color: #555;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: color 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
    .stat:hover { background: #111; color: #fff; transform: translateY(-4px); }
    .stat:hover .stat__desc { color: rgb(255 255 255 / 0.72); }
}

/* Tablet: photo narrows, copy sits above the stage. */
@media (max-width: 1023.98px) {
    .presence { --split: 34%; --word: 7.05cqi; grid-template-areas: 'copy' 'stage'; }
    .presence__copy { grid-area: copy; width: auto; margin: 0 0 1.5rem; padding: 0; text-align: start; }
    .presence__lede,
    .presence__more { margin-inline: 0; max-width: 40rem; }
    .presence__more { margin-block-start: 0.65rem; }
    .presence__stage { min-height: clamp(18rem, 10rem + 30vw, 26rem); }
}

@media (max-width: 639.98px) {
    /* Phones: the word wraps to two big lines; both copies wrap identically. */
    .presence { --split: 16%; --word: 13cqi; }
    .presence__word { max-width: 100%; white-space: normal; line-height: 0.92; bottom: calc(var(--word) * -0.1); }
    .presence__stage { min-height: 21rem; }
}

.is-urdu .presence__word { letter-spacing: 0; line-height: 1.5; bottom: calc(var(--word) * -0.35); }
.is-urdu .presence__lede,
.is-urdu .presence__more { line-height: 2; font-weight: 400; }

/* ==================================================================== */
/* Latest News — carousel (touch + drag)                                 */
/* ==================================================================== */
.rail.is-auto { touch-action: pan-y; user-select: none; }
.rail.is-auto img { -webkit-user-drag: none; }

/* ==================================================================== */
/* Footer — compact (same content, ~60% less height)                     */
/* ==================================================================== */
.site-footer--compact {
    --f-line: rgb(255 255 255 / 0.1);
    --f-muted: rgb(242 245 248 / 0.66);

    position: relative;
    overflow: clip;
    isolation: isolate;
    background: #111;
    color: #f2f5f8;
    font-size: 0.9rem;
}

.site-footer--compact .site-footer__ring {
    position: absolute;
    z-index: -1;
    top: -60%;
    inset-inline-end: -8%;
    width: min(38rem, 60vw);
    aspect-ratio: 1;
    opacity: 0.5;
    pointer-events: none;
}

.site-footer--compact .site-footer__inner {
    /* Top padding follows the section rhythm, so Contact → footer matches every other section gap. */
    padding-block: var(--fit-pad-y) 0;
}

/* 1. Brand bar */
.site-footer--compact .site-footer__brand {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(1rem, 0.6rem + 1.6vw, 2.5rem);
    padding-block-end: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
    border-block-end: 1px solid var(--f-line);
}

.site-footer--compact .site-footer__logo {
    --logo-h: clamp(3.25rem, 2.8rem + 1.2vw, 4.25rem);
}

.site-footer--compact .site-footer__blurb {
    max-width: 62ch;
    margin: 0;
    color: #f2f5f8;
    font-size: clamp(0.92rem, 0.86rem + 0.2vw, 1.02rem);
    line-height: 1.55;
}

.site-footer--compact .site-footer__updated {
    margin: 0.35rem 0 0;
    color: var(--f-muted);
    font-size: 0.8125rem;
}

.site-footer--compact .site-footer__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    background: #fff;
    color: #111;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.35s var(--ease-premium, ease), background-color 0.3s ease;
}

.site-footer--compact .site-footer__cta:hover,
.site-footer--compact .site-footer__cta:focus-visible { background: var(--ice, #e9f0f8); transform: translateY(-2px); }

.site-footer--compact .site-footer__cta-icon { width: 1rem; height: 1rem; }

/* Shared heading */
.site-footer--compact .site-footer__heading {
    margin: 0 0 0.7rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.3;
    text-transform: uppercase;
}

.site-footer--compact .site-footer__heading::after { display: none; }

/* 2. Navigation */
.site-footer--compact .site-footer__nav-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
    padding-block: clamp(1.5rem, 1.1rem + 1vw, 2.1rem);
    border-block-end: 1px solid var(--f-line);
}

.site-footer--compact .site-footer__links {
    display: grid;
    gap: 0.42rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer--compact .site-footer__links a {
    color: var(--f-muted);
    font-size: 0.86rem;
    line-height: 1.35;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-footer--compact .site-footer__links a:hover,
.site-footer--compact .site-footer__links a:focus-visible { color: #fff; }

.site-footer--compact .site-footer__ext {
    display: inline;
    width: 0.7rem;
    height: 0.7rem;
    margin-inline-start: 0.2rem;
    opacity: 0.6;
}

@media (min-width: 768px) {
    .site-footer--compact .site-footer__nav-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
    .site-footer--compact .site-footer__nav-grid {
        grid-template-columns: 1fr 1fr 2.1fr 0.7fr 1fr 0.8fr;
    }

    /* Investor Relations (9 links) flows into two short columns instead of one tall one. */
    .site-footer--compact .site-footer__col--investors .site-footer__links {
        display: block;
        columns: 2;
        column-gap: 1.75rem;
    }

    .site-footer--compact .site-footer__col--investors .site-footer__links li {
        break-inside: avoid;
        margin-block-end: 0.42rem;
    }
}

/* 3. Contact strip */
.site-footer--compact .site-footer__contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr));
    gap: 1.25rem clamp(1rem, 0.5rem + 1.6vw, 2.25rem);
    padding-block: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
    border-block-end: 1px solid var(--f-line);
}

.site-footer--compact .site-footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.site-footer--compact .site-footer__contact-icon {
    flex: none;
    width: 1.1rem;
    height: 1.1rem;
    margin-block-start: 0.05rem;
    color: var(--cobalt-light, #9cc0ea);
}

.site-footer--compact .site-footer__meta {
    margin: 0;
    color: var(--f-muted);
    font-size: 0.86rem;
    line-height: 1.5;
}

.site-footer--compact .site-footer__meta a { color: inherit; text-decoration: none; }
.site-footer--compact .site-footer__meta a:hover { color: #fff; }

.site-footer--compact .site-footer__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.9rem;
    padding: 0;
    list-style: none;
}

.site-footer--compact .site-footer__socials {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer--compact .social-icon {
    width: 2.35rem;
    height: 2.35rem;
}

.site-footer--compact .social-icon svg { width: 0.95rem; height: 0.95rem; }

/* 4. Bottom bar */
.site-footer--compact .site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem 1.5rem;
    padding-block: 1rem 1.15rem;
    /* Keeps Sitemap clear of the fixed back-to-top button. */
    padding-inline-end: clamp(3.75rem, 3rem + 2vw, 4.75rem);
}

.site-footer--compact .site-footer__affil-marks { display: flex; gap: 0.6rem; }

.site-footer--compact .site-footer__affil-plate {
    display: inline-grid;
    place-items: center;
    height: 2.35rem;
    padding: 0.35rem 0.8rem;
    border-radius: 0.6rem;
    background: rgb(214 226 241 / 0.92);
}

.site-footer--compact .site-footer__affil-img { width: auto; height: 1.3rem; }

.site-footer--compact .site-footer__copyright {
    flex: 1 1 22rem;
    margin: 0;
    color: var(--f-muted);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.site-footer--compact .site-footer__legal-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-footer--compact .site-footer__secp,
.site-footer--compact .site-footer__sitemap {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
}

.site-footer--compact .site-footer__sitemap {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.site-footer--compact .site-footer__secp:hover,
.site-footer--compact .site-footer__sitemap:hover { color: var(--cobalt-light, #9cc0ea); }

@media (max-width: 767.98px) {
    .site-footer--compact .site-footer__brand { grid-template-columns: auto minmax(0, 1fr); }
    .site-footer--compact .site-footer__cta { grid-column: 1 / -1; justify-self: start; }
    .site-footer--compact .site-footer__col--investors { grid-column: 1 / -1; }
    .site-footer--compact .site-footer__col--investors .site-footer__links { display: block; columns: 2; column-gap: 1.25rem; }
    .site-footer--compact .site-footer__col--investors .site-footer__links li { break-inside: avoid; margin-block-end: 0.42rem; }
}

.is-urdu .site-footer--compact :is(.site-footer__heading, .site-footer__secp, .site-footer__sitemap) { letter-spacing: 0; }
.is-urdu .site-footer--compact :is(.site-footer__links a, .site-footer__meta, .site-footer__blurb) { line-height: 1.9; }

/* ==================================================================== */
/* Viewport fit — each homepage section fits the screen under the header */
/* Height-driven tokens live in :root (--fit-h, --fit-pad-y, --section-y) */
/* ==================================================================== */

/* Anchor jumps land just below the always-visible compact bar. Set here (not as a section
   scroll-margin-top) because scroll-padding and scroll-margin add up. */
html { scroll-padding-top: calc(var(--header-occupied) + 0.5rem); }

/* Legibility floor: captions and meta text are at least 13px (0.8125rem). */
.about__copy .eyebrow,
.process-node__label,
.contact-row dt { font-size: 0.8125rem; }

/* Touch layouts (mobile menu showing): standalone controls meet the 44px target. */
@media (max-width: 1099.98px) {
    .hero-pill,
    .site-footer--compact .site-footer__secp,
    .site-footer--compact .site-footer__sitemap { min-height: 2.75rem; }
    .site-footer--compact .social-icon { width: 2.75rem; height: 2.75rem; }
    .site-footer--compact .site-footer__affil-plate { height: 2.75rem; }
}

/* ---------- About ---------- */
.about { padding-block: var(--fit-pad-y); }

@media (min-width: 1024px) {
    .about {
        --band-h: clamp(3.5rem, 9.5svh, 7.25rem);
        --badge-size: clamp(3.5rem, 8svh, 6.25rem);
        --badge-pad: clamp(0.6rem, 1.6svh, 1.35rem);
    }

    .about__stage {
        height: calc(var(--fit-h) - var(--fit-pad-y) * 2);
        max-height: 50rem;
        grid-template-rows: auto minmax(0, 1fr) var(--band-h) auto;
    }

    .about__copy .eyebrow { margin-bottom: clamp(0.25rem, 1svh, 0.6rem); }
    .about__copy .section-title { font-size: clamp(1.75rem, min(1.3rem + 1.9vw, 7svh), 3.1rem); }

    .about__copy .about__lead {
        margin-top: clamp(0.5rem, 1.8svh, 1.75rem);
        font-size: clamp(0.95rem, min(0.86rem + 0.5vw, 2.9svh), 1.4rem);
        line-height: 1.5;
    }

    .about__cta { margin-top: clamp(0.6rem, 2.4svh, 2.75rem); }
    .about__more { padding-block: 0.3rem 0.6rem; }
    .about__tab { min-height: 2.5rem; }
}

@media (min-width: 1280px) {
    .about__stage { grid-template-columns: minmax(0, 40fr) minmax(0, 60fr); }
    .about__stage:not(.is-shaped) .about__frames { clip-path: inset(3.5rem 60% var(--badge-box) 0 round var(--shape-r)); }
    [dir='rtl'] .about__stage:not(.is-shaped) .about__frames { clip-path: inset(3.5rem 0 var(--badge-box) 60% round var(--shape-r)); }
}

/* ---------- Products (judged per pinned card) ---------- */
.products { padding-block: var(--fit-pad-y); }

.products__title {
    font-size: clamp(1.75rem, min(1.45rem + 2vw, 6svh), 2.875rem);
}

.coil-card { min-height: 0; }
.coil-card__title { font-size: clamp(1.6rem, min(1.1rem + 3vw, 7svh), 4rem); }

/* ---------- Investor cards ---------- */
.investors { padding-block: var(--fit-pad-y); }

@media (min-width: 1024px) {
    .investors .section-title { font-size: clamp(1.75rem, min(1.45rem + 2vw, 6svh), 2.875rem); }
    .ir-link { min-height: clamp(8rem, 26svh, 16rem); padding-block: clamp(1rem, 3svh, 2rem); }
}

/* ---------- Global presence ---------- */
.stats { padding-block: var(--fit-pad-y); }

@media (min-width: 1024px) {
    .stats > .container-shell {
        display: grid;
        grid-template-rows: minmax(0, 1fr) auto;
        /* 2px = the section's hairline borders (border-block: 1px). */
        height: calc(var(--fit-h) - var(--fit-pad-y) * 2 - 2px);
        max-height: 58rem;
    }

    .presence { --word: min(7.05cqi, 15svh); min-height: 0; }
    .presence__stage { min-height: 0; height: 100%; }
    .presence__copy { margin-block-end: calc(var(--word) * 1.15); }

    .presence__lede,
    .presence__more { font-size: clamp(0.95rem, min(0.85rem + 0.55vw, 2.5svh), 1.45rem); }

    .presence__more { margin-block-start: clamp(0.3rem, 1svh, 0.65rem); }
    .stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(0.75rem, 2svh, 2rem); }
    .stat { min-height: 0; padding-block: clamp(0.8rem, 2.2svh, 2rem); }
    .stat__label { font-size: clamp(0.9rem, min(0.8rem + 0.5vw, 2.4svh), 1.5rem); padding-inline-end: clamp(2.5rem, 6svh, 4.5rem); }
    .stat__value { font-size: clamp(1.8rem, min(1.6rem + 2.4vw, 6.5svh), 4rem); margin-top: clamp(0.1rem, 0.6svh, 0.35rem); }
    .stat__desc { font-size: clamp(0.82rem, 1.9svh, 0.9rem); margin-top: clamp(0.2rem, 0.8svh, 0.4rem); }
    .stat__icon { width: clamp(2rem, 5.5svh, 3.6rem); }
}

/* ---------- Latest News ---------- */
.news { padding-block: var(--fit-pad-y); }

@media (min-width: 1024px) {
    .news {
        --news-small: clamp(7rem, 17svh, 11rem);
        --news-big: clamp(13rem, 40svh, 24rem);
    }

    .news .news-media { height: calc(var(--news-small) + var(--emphasis, 0) * (var(--news-big) - var(--news-small))); }
    .news .news-card__title { font-size: calc(0.98rem + var(--emphasis, 0) * min(1.35rem, 2.2svh)); }
    .news .section-title { font-size: clamp(1.75rem, min(1.45rem + 2vw, 6svh), 2.875rem); }
}

/* ---------- Partners (naturally short) ---------- */
.partners { padding-block: var(--fit-pad-y); }

/* ---------- Contact ---------- */
.contact { padding-block: var(--fit-pad-y); }

@media (min-width: 1024px) {
    .contact .section-title { font-size: clamp(1.75rem, min(1.45rem + 2vw, 6svh), 2.875rem); }
}

/* ---------- Footer ---------- */
@media (min-width: 1024px) and (max-height: 760px) {
    .site-footer--compact .site-footer__brand { padding-block-end: 0.9rem; }
    .site-footer--compact .site-footer__nav-grid { padding-block: 1.1rem; gap: 1rem 1.5rem; }
    .site-footer--compact .site-footer__links { gap: 0.3rem; }
    .site-footer--compact .site-footer__col--investors .site-footer__links li { margin-block-end: 0.3rem; }
    .site-footer--compact .site-footer__contact { padding-block: 0.9rem; }
    .site-footer--compact .site-footer__bottom { padding-block: 0.75rem; }
}

/* ---------- Fit refinements (measured) ---------- */
@media (min-width: 1024px) {
    /* Urdu Nastaliq: tighter leading and a height-capped lead keep the longest panel inside its notch. */
    .is-urdu .about__copy .section-title { line-height: 1.45; }
    .is-urdu .about__copy .about__lead { font-size: clamp(0.95rem, min(0.86rem + 0.5vw, 2.6svh), 1.3rem); line-height: 1.85; }

    /* Contact: spacing follows screen height so heading, rows and CTA fit beside the map. */
    .contact__lead { margin-top: clamp(0.5rem, 1.6svh, 1.25rem); font-size: clamp(1rem, min(1rem + 0.35vw, 2.8svh), 1.3125rem); }
    .contact__list { margin-top: clamp(0.75rem, 2.4svh, 2.75rem); }
    .contact-row { padding-block: clamp(0.45rem, 1.5svh, 1.1rem); }
    .contact__cta { margin-top: clamp(0.75rem, 2.4svh, 2.5rem); }
}

@media (min-width: 1024px) and (max-height: 760px) {
    .site-footer--compact .site-footer__blurb { max-width: 80ch; }
}

@media (min-width: 1024px) {
    /* Urdu footer: 1.75 leading on the short link and meta lines keeps all six columns within one screen. */
    .is-urdu .site-footer--compact :is(.site-footer__links a, .site-footer__meta) { line-height: 1.75; }
}

/* ===== Pass 5 — process film fully visible ===== */
.process { padding-block: var(--fit-pad-y); }
.process__stage { margin: 0; }
/*
 * Largest 16:9 box that fits the screen below the compact header, leaving --process-chrome for the
 * section padding and heading (capped at 20% of the screen so short screens still show the whole film).
 */
.process {
    --process-chrome: min(calc(var(--fit-pad-y) + 6rem), 20vh);
    --process-chrome: min(calc(var(--fit-pad-y) + 6rem), 20dvh);
}
.process__frame {
    position: relative;
    width: min(100%, calc((100vh - var(--header-occupied) - var(--process-chrome)) * 16 / 9));
    width: min(100%, calc((100dvh - var(--header-occupied) - var(--process-chrome)) * 16 / 9));
    aspect-ratio: 16 / 9;          /* process-scene.mp4 is 1280×720 */
    margin-inline: auto;
    overflow: hidden;
    border-radius: clamp(1.25rem, 0.8rem + 1.6vw, 2.5rem);
    background: #e9e9e9;
}
.process__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;           /* frame matches the film's 16:9, so there are no bars */
}
@media (min-width: 1024px) {
    .process__nodes { margin-block: clamp(0.75rem, 2svh, 1.5rem) 0; }
    /* One-line heading on desktop. */
    .process__head { max-width: none; }
    .process__head .section-title { font-size: clamp(1.75rem, min(1.45rem + 2vw, 6svh), 2.875rem); }
}

/* ===== Pass 5 — coil cards: no pills, description, whole photo visible ===== */
.coil-card__media { background: #000; }
.coil-card__media img {
    object-fit: contain;           /* both coil photos have pure-black edges, so contain is seamless on #000 */
    transform: scale(var(--stack-zoom, 1));
}
.coil-card__foot { opacity: var(--stack-rise, 1); }
.coil-card__desc {
    max-width: 38ch;
    margin: 0 0 clamp(0.9rem, 2.4svh, 1.5rem);
    color: rgb(255 255 255 / 0.86);
    font-size: clamp(0.95rem, min(0.85rem + 0.4vw, 2.5svh), 1.2rem);
    font-weight: 300;
    line-height: 1.6;
}
/* Nastaliq needs taller lines; a wider measure keeps the line count (and card height) in check. */
.is-urdu .coil-card__desc { max-width: 46ch; line-height: 2.05; }
@media (max-width: 639.98px) { .is-urdu .coil-card__desc { line-height: 1.9; } }
@media (min-width: 1024px) {
    /* Split card: copy on the start side, photo on the end side — nothing overlaps the coil. */
    .coil-card__media { display: grid; grid-template-columns: minmax(0, 42fr) minmax(0, 58fr); grid-template-rows: minmax(0, 1fr); align-items: center; }
    .coil-card__media img { position: static; grid-column: 2; grid-row: 1; width: 100%; height: 100%; min-height: 0; object-position: 50% 50%; }
    .coil-card__foot { position: static; grid-column: 1; grid-row: 1; align-self: center; padding: clamp(1.25rem, 3svh, 2.5rem) clamp(1.5rem, 3.5vw, 4rem); }
}
@media (max-width: 1023.98px) {
    .coil-card { height: auto; }
    .coil-card__media { display: grid; }
    .coil-card__media img { position: static; width: 100%; height: auto; aspect-ratio: 800 / 653; max-height: 48svh; } /* 48svh keeps the pinned card inside a 768×1024 tablet */
    .coil-card__foot { position: static; padding: 1.25rem 1.25rem 1.5rem; }
}
@media (max-width: 1023.98px) and (max-height: 760px) {
    /* Short phones: a smaller (still whole) coil keeps the pinned card on screen. */
    .coil-card__media img { max-height: 30svh; }
}

/* ===== Pass 6 — breathing room: one secondary scale inside sections ===== */
:root { --head-gap: clamp(1.25rem, 0.75rem + 1.6svh, 2rem); }
/* A divider sits exactly between two section paddings; it never adds to the gap. */
.container-shell:has(> .divider-tech) { margin-block: 0; }
.process__head,
.products__title,
.investors .section-head,
.news .section-head { margin-block-end: var(--head-gap); }
.partners__marquee { margin-top: var(--head-gap); }

/* ===== Pass 6 — live Google map, details plate below it ===== */
.map-card--live {
    display: grid;
    gap: clamp(1rem, 0.6rem + 1.2svh, 1.5rem);
}

.map-card--live .map-card__frame {
    position: relative;
    overflow: hidden;
    height: clamp(16rem, 48svh, 30rem);
    /* Small bottom radius: Google's attribution, Terms and controls sit in the bottom corners and must not be clipped. */
    border-radius: clamp(1.25rem, 0.8rem + 1.4vw, 2rem) clamp(1.25rem, 0.8rem + 1.4vw, 2rem) 0.5rem 0.5rem;
    background: #e8eaed;                 /* Google's map tile grey while it loads */
    box-shadow: 0 30px 60px -40px rgb(14 28 46 / 0.45);
}

.map-card--live .map-card__iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.map-card--live .map-card__body {
    position: static;
    margin: 0;
    padding: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
    border-radius: clamp(1.25rem, 0.8rem + 1.4vw, 2rem);
    background: #f5f6f8;                 /* --pearl is pure white here, which would hide the plate on the white section */
    backdrop-filter: none;
}

.map-card--live .map-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem 1rem;
    margin-block-end: 0.9rem;
}

.map-card--live .map-card__coords,
.map-card--live .map-card__chips > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgb(14 28 46 / 0.12);
    border-radius: 999px;
    background: #fff;
    color: var(--ink, #111);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.map-card--live .map-card__chips { display: inline-flex; flex-wrap: wrap; gap: 0.5rem; }
.map-card--live .map-card__label { margin: 0; font-size: clamp(1.05rem, 0.9rem + 0.6vw, 1.45rem); font-weight: 600; }
.map-card--live .map-card__note { margin: 0.35rem 0 0; color: var(--graphite, #4a5260); }
.map-card--live .map-card__actions { margin-top: clamp(0.75rem, 1.6svh, 1.25rem); }

.is-urdu .map-card--live :is(.map-card__coords, .map-card__chips > span) { letter-spacing: 0; }

/* ===== Pass 6 — coil photos: breathing room inside the black frame (both cards) ===== */
.coil-card__media img {
    box-sizing: border-box;
    padding: clamp(1.25rem, 0.5rem + 4.5svh, 3.25rem) clamp(1.25rem, 0.5rem + 3vw, 3.5rem);
}
@media (min-width: 1024px) {
    /* The map card never outgrows the screen: the frame gives up height, the plate below keeps its size. */
    .map-card--live { display: flex; flex-direction: column; max-height: calc(var(--fit-h) - var(--fit-pad-y) * 2); }
    .map-card--live .map-card__frame { flex: 0 1 auto; min-height: 12rem; }
    .map-card--live .map-card__body { flex: none; }
}
@media (min-width: 1024px) and (max-height: 640px) {
    /* Short laptops: slimmer contact rows keep the (taller, Nastaliq) copy column inside the screen. */
    .contact-row { padding-block: 0.35rem; }
}
@media (min-width: 1024px) and (max-height: 640px) {
    /* The footer keeps the full rhythm above it; its inner bands give up a few pixels instead. */
    .site-footer--compact .site-footer__brand { padding-block-end: 0.6rem; }
    .site-footer--compact .site-footer__nav-grid { padding-block: 0.8rem; }
    .site-footer--compact .site-footer__contact { padding-block: 0.7rem; }
    .site-footer--compact .site-footer__bottom { padding-block: 0.6rem; }
}
