/* ===========================================================================
   Rahyaft Sanat — design system & public site styles

   Direction handling: this sheet uses CSS logical properties throughout
   (margin-inline, padding-block, inset-inline, border-start-*) so a single
   stylesheet serves both the RTL (fa, ar) and LTR (en) layouts. There is no
   separate rtl.css to keep in sync.

   Palette is derived from the company's own materials: the indigo and pale
   cyan come from the printed product banner, the crimson from the Persian
   logo lockup.
   =========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */
/* Vazirmatn (SIL OFL 1.1) covers Persian, Arabic and Latin in one family, so
   headings keep the same voice across all three languages. */
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Vazirmatn';
    src: url('../fonts/Vazirmatn-ExtraBold.woff2') format('woff2');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

/* --- Design tokens -------------------------------------------------------- */
:root {
    /* Brand */
    --brand-50:  #f2f4fd;
    --brand-100: #e3e7f9;
    --brand-200: #c7cff2;
    --brand-300: #a0abe6;
    --brand-400: #7480d4;
    --brand-500: #4f59bd;
    --brand-600: #353a96;   /* primary — from the product banner */
    --brand-700: #2c2f7a;
    --brand-800: #232764;
    --brand-900: #1a1c4a;
    --brand-950: #101230;

    /* Accent — the crimson of the Persian logo lockup */
    --accent-50:  #fdf3f4;
    --accent-100: #fbe4e6;
    --accent-500: #d93a46;
    --accent-600: #c0202c;
    --accent-700: #9c1823;

    /* Cool secondary — the pale cyan field of the banner */
    --cyan-50:  #f4fbfd;
    --cyan-100: #d1eef4;
    --cyan-200: #b0e2ec;
    --cyan-600: #1a7f97;

    /* Neutrals */
    --ink-900: #12151f;
    --ink-800: #1d2130;
    --ink-700: #2f3545;
    --ink-600: #4a5163;
    --ink-500: #6b7385;
    --ink-400: #939aab;
    --ink-300: #c3c8d4;
    --ink-200: #e0e3ea;
    --ink-100: #eef0f5;
    --ink-50:  #f7f8fb;
    --white:   #ffffff;

    /* Semantic */
    --bg:          var(--white);
    --bg-subtle:   var(--ink-50);
    --bg-muted:    var(--ink-100);
    --text:        var(--ink-800);
    --text-muted:  var(--ink-500);
    --text-invert: var(--white);
    --border:      var(--ink-200);
    --border-soft: var(--ink-100);

    /* Typography scale (fluid, clamped for 320px → 1440px) */
    --font-sans: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --step--1: clamp(0.82rem, 0.79rem + 0.13vw, 0.88rem);
    --step-0:  clamp(0.94rem, 0.90rem + 0.18vw, 1.03rem);
    --step-1:  clamp(1.09rem, 1.02rem + 0.32vw, 1.28rem);
    --step-2:  clamp(1.27rem, 1.15rem + 0.55vw, 1.60rem);
    --step-3:  clamp(1.48rem, 1.29rem + 0.88vw, 2.00rem);
    --step-4:  clamp(1.73rem, 1.43rem + 1.36vw, 2.50rem);
    --step-5:  clamp(2.01rem, 1.56rem + 2.05vw, 3.13rem);
    --step-6:  clamp(2.34rem, 1.66rem + 3.05vw, 3.91rem);

    /* Spacing scale */
    --space-1:  0.25rem;
    --space-2:  0.5rem;
    --space-3:  0.75rem;
    --space-4:  1rem;
    --space-5:  1.5rem;
    --space-6:  2rem;
    --space-7:  2.5rem;
    --space-8:  3rem;
    --space-9:  4rem;
    --space-10: 5rem;
    --space-11: 6.5rem;

    /* Radii */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 26px;
    --radius-pill: 999px;

    /* Shadows — tinted with the brand hue rather than neutral black */
    --shadow-xs: 0 1px 2px rgba(26, 28, 74, 0.06);
    --shadow-sm: 0 2px 6px rgba(26, 28, 74, 0.07), 0 1px 2px rgba(26, 28, 74, 0.05);
    --shadow-md: 0 8px 20px -6px rgba(26, 28, 74, 0.14), 0 2px 6px rgba(26, 28, 74, 0.06);
    --shadow-lg: 0 20px 44px -12px rgba(26, 28, 74, 0.22), 0 6px 14px rgba(26, 28, 74, 0.08);
    --shadow-xl: 0 34px 70px -18px rgba(26, 28, 74, 0.30);

    /* Motion */
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-out-back: cubic-bezier(0.34, 1.3, 0.64, 1);
    --dur-fast: 140ms;
    --dur: 240ms;
    --dur-slow: 420ms;

    /* Layout */
    --container: 1240px;
    --container-narrow: 860px;
    --header-h: 76px;
}

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

* { margin: 0; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

@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;
    }
}

body {
    font-family: var(--font-sans);
    font-size: var(--step-0);
    /* Persian and Arabic need more leading than Latin to stay readable. */
    line-height: 1.85;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: 'ss02' 1;
    /* Nothing may cause a horizontal scrollbar, in either direction. */
    overflow-x: hidden;
}

/* Latin locales read better a little tighter. */
html[lang='en'] body { line-height: 1.68; }

img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

input, button, textarea, select { font: inherit; color: inherit; }

button { background: none; border: 0; cursor: pointer; }

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }

ul, ol { padding-inline-start: 0; list-style: none; }

table { border-collapse: collapse; width: 100%; }

h1, h2, h3, h4, h5, h6 {
    line-height: 1.35;
    font-weight: 700;
    color: var(--ink-900);
    text-wrap: balance;
}

h1 { font-size: var(--step-5); letter-spacing: -0.01em; }
h2 { font-size: var(--step-4); letter-spacing: -0.008em; }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }

p { text-wrap: pretty; }

/* Numbers stay legible in RTL copy. */
.num, td.num, .spec-value {
    font-variant-numeric: tabular-nums;
    font-feature-settings: 'tnum' 1;
}

::selection { background: var(--brand-200); color: var(--brand-900); }

/* --- Focus ---------------------------------------------------------------- */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
    border-radius: var(--radius-xs);
}
:focus:not(:focus-visible) { outline: none; }

.skip-link {
    position: absolute;
    inset-inline-start: var(--space-4);
    inset-block-start: -100px;
    z-index: 200;
    padding: var(--space-3) var(--space-5);
    background: var(--brand-700);
    color: var(--white);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-weight: 600;
    transition: inset-block-start var(--dur) var(--ease);
}
.skip-link:focus { inset-block-start: 0; color: var(--white); }

/* --- Layout --------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-5);
}
@media (max-width: 560px) { .container { padding-inline: var(--space-4); } }

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

.section { padding-block: var(--space-10); }
.section--tight { padding-block: var(--space-8); }
.section--loose { padding-block: var(--space-11); }
.section--subtle { background: var(--bg-subtle); }
.section--muted  { background: var(--bg-muted); }
.section--brand {
    background: linear-gradient(155deg, var(--brand-800), var(--brand-950));
    color: var(--brand-100);
}
.section--brand h2, .section--brand h3 { color: var(--white); }

@media (max-width: 768px) {
    .section { padding-block: var(--space-8); }
    .section--loose { padding-block: var(--space-9); }
}

.stack > * + * { margin-block-start: var(--space-4); }
.grid { display: grid; gap: var(--space-5); }

/* --- Section heading ------------------------------------------------------ */
.section-head {
    max-width: 62ch;
    margin-block-end: var(--space-7);
}
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-600);
    margin-block-end: var(--space-3);
}
.eyebrow::before {
    content: '';
    inline-size: 26px;
    block-size: 2px;
    background: currentColor;
    border-radius: 2px;
}
.section--brand .eyebrow { color: var(--cyan-200); }

.section-head p {
    margin-block-start: var(--space-3);
    color: var(--text-muted);
    font-size: var(--step-1);
}
.section--brand .section-head p { color: var(--brand-200); }

/* --- Buttons -------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.72em 1.5em;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--step-0);
    line-height: 1.4;
    text-align: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color var(--dur) var(--ease),
                border-color var(--dur) var(--ease),
                color var(--dur) var(--ease),
                transform var(--dur-fast) var(--ease),
                box-shadow var(--dur) var(--ease);
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn svg { inline-size: 1.1em; block-size: 1.1em; flex: none; }
/* Directional arrows flip with the writing direction. */
[dir='rtl'] .btn .icon-arrow { transform: scaleX(-1); }

.btn--primary {
    background: var(--brand-600);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
    background: var(--brand-700);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn--accent {
    background: var(--accent-600);
    color: var(--white);
    box-shadow: var(--shadow-sm);
}
.btn--accent:hover { background: var(--accent-700); color: var(--white); box-shadow: var(--shadow-md); }

.btn--outline {
    border-color: var(--border);
    color: var(--ink-700);
    background: var(--white);
}
.btn--outline:hover {
    border-color: var(--brand-600);
    color: var(--brand-700);
    background: var(--brand-50);
}

.btn--ghost { color: var(--brand-600); padding-inline: 0.85em; }
.btn--ghost:hover { background: var(--brand-50); color: var(--brand-700); }

.btn--on-dark {
    background: var(--white);
    color: var(--brand-800);
}
.btn--on-dark:hover { background: var(--brand-100); color: var(--brand-900); }

.btn--on-dark-outline {
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}
.btn--on-dark-outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
}

.btn--lg { padding: 0.9em 1.9em; font-size: var(--step-1); }
.btn--sm { padding: 0.5em 1.1em; font-size: var(--step--1); }
.btn--block { display: flex; inline-size: 100%; }

.btn[disabled], .btn[aria-disabled='true'] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* --- Header --------------------------------------------------------------- */
.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-block-end: 1px solid var(--border-soft);
    transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.site-header.is-scrolled {
    box-shadow: var(--shadow-sm);
    border-block-end-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    min-block-size: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    /* Must be allowed to shrink: a long company name plus the language switcher
       would otherwise force the header wider than a small viewport, which in RTL
       pushes the whole page sideways. */
    flex: 0 1 auto;
    min-inline-size: 0;
    color: var(--ink-900);
}
.brand:hover { color: var(--ink-900); }

.brand__mark {
    inline-size: 42px;
    block-size: 42px;
    border-radius: var(--radius-sm);
    flex: none;
    transition: transform var(--dur) var(--ease-out-back);
}
.brand:hover .brand__mark { transform: rotate(-4deg) scale(1.05); }

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-inline-size: 0;
}
.brand__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.brand__name {
    font-weight: 800;
    font-size: var(--step-1);
    letter-spacing: -0.01em;
    color: var(--brand-800);
}
@media (max-width: 560px) {
    /* Ease the name down a step so it fits beside the menu button. */
    .brand__name { font-size: var(--step-0); }
    .brand__mark { inline-size: 36px; block-size: 36px; }
}

/* Primary navigation */
.nav {
    flex: 1 1 auto;
    min-inline-size: 0;
    display: flex;
    justify-content: flex-end;
}
.nav__list { display: flex; align-items: center; gap: var(--space-1); }

/* English labels are much longer than the Persian ones, so the row is
   compacted well before the drawer breakpoint. */


.nav__link {
    display: block;
    white-space: nowrap;
    /* Compact by default: English labels are long, and this keeps the brand
       from being squeezed at any width above the drawer breakpoint. */
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--step--1);
    color: var(--ink-700);
    position: relative;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.nav__link:hover { color: var(--brand-700); background: var(--brand-50); }

.nav__link.is-active { color: var(--brand-700); }
.nav__link.is-active::after {
    content: '';
    position: absolute;
    inset-inline: 38%;
    inset-block-end: 2px;
    block-size: 3px;
    border-radius: 3px;
    background: var(--accent-600);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex: 0 0 auto;
}

/* Below this width the navigation drawer already exposes Contact, so the
   duplicate header button is hidden rather than squeezed. */
@media (max-width: 620px) {
    .header-actions .btn { display: none; }
}
@media (max-width: 420px) {
    .lang-switch__toggle span:not(.lang-switch__code) { display: none; }
    .lang-switch__toggle { padding-inline: var(--space-2); }
}

/* Language switcher */
.lang-switch { position: relative; }
.lang-switch__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--step--1);
    color: var(--ink-700);
    background: var(--white);
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang-switch__toggle:hover { border-color: var(--brand-400); color: var(--brand-700); }
.lang-switch__toggle svg { inline-size: 16px; block-size: 16px; }
.lang-switch__caret { transition: transform var(--dur) var(--ease); }
.lang-switch__toggle[aria-expanded='true'] .lang-switch__caret { transform: rotate(180deg); }

.lang-switch__menu {
    position: absolute;
    inset-block-start: calc(100% + 8px);
    inset-inline-end: 0;
    min-inline-size: 168px;
    padding: var(--space-2);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    z-index: 20;
}
.lang-switch.is-open .lang-switch__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-switch__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    font-weight: 500;
    color: var(--ink-700);
    transition: background-color var(--dur-fast) var(--ease);
}
.lang-switch__item:hover { background: var(--brand-50); color: var(--brand-700); }
.lang-switch__item[aria-current='true'] { background: var(--brand-50); color: var(--brand-700); font-weight: 700; }
.lang-switch__code {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    inline-size: 44px;
    block-size: 44px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--ink-700);
}
.nav-toggle:hover { border-color: var(--brand-400); color: var(--brand-700); }
.nav-toggle__bars { inline-size: 20px; block-size: 14px; position: relative; }
.nav-toggle__bars span {
    position: absolute;
    inset-inline: 0;
    block-size: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--dur) var(--ease), opacity var(--dur-fast) var(--ease);
}
.nav-toggle__bars span:nth-child(1) { inset-block-start: 0; }
.nav-toggle__bars span:nth-child(2) { inset-block-start: 6px; }
.nav-toggle__bars span:nth-child(3) { inset-block-start: 12px; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1280px) {
    .nav-toggle { display: inline-flex; }
    /* The drawer carries the nav, so it no longer needs row space. */
    .nav { flex: none; }
    .nav {
        position: fixed;
        inset-block-start: var(--header-h);
        inset-inline: 0;
        inset-block-end: 0;
        margin: 0;
        padding: var(--space-5);
        background: var(--white);
        border-block-start: 1px solid var(--border-soft);
        overflow-y: auto;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
    }
    .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: var(--space-1); }
    .nav__link {
        padding: var(--space-4);
        border-radius: var(--radius-md);
        font-size: var(--step-1);
    }
    .nav__link.is-active { background: var(--brand-50); }
    .nav__link.is-active::after { display: none; }
    body.nav-open { overflow: hidden; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: center;
    min-block-size: clamp(460px, 74vh, 680px);
    padding-block: var(--space-10);
    color: var(--white);
    overflow: hidden;
    background: var(--brand-900);
}
.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
}
.hero__media img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    object-position: center;
}
/* Two-layer scrim: a directional wash for text contrast plus a brand tint. */
.hero__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to inline-end, rgba(16, 18, 48, 0.95) 0%, rgba(16, 18, 48, 0.86) 46%, rgba(16, 18, 48, 0.52) 100%),
        linear-gradient(200deg, rgba(53, 58, 150, 0.45), rgba(16, 18, 48, 0.35));
}
.hero__content { position: relative; max-width: 44rem; }
.hero h1 {
    color: var(--white);
    font-size: var(--step-6);
    font-weight: 800;
    letter-spacing: -0.015em;
}
.hero__lead {
    margin-block-start: var(--space-5);
    font-size: var(--step-2);
    color: rgba(255, 255, 255, 0.88);
    max-width: 40rem;
    line-height: 1.75;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-block-start: var(--space-7);
}
.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.13);
    border: 1px solid rgba(255, 255, 255, 0.22);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--cyan-100);
    margin-block-end: var(--space-5);
    backdrop-filter: blur(6px);
}
.hero__eyebrow::before {
    content: '';
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: var(--cyan-200);
    box-shadow: 0 0 0 4px rgba(176, 226, 236, 0.24);
}

/* Page hero for interior pages — shorter, still branded. */
.page-hero {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-9) var(--space-8);
    background: linear-gradient(150deg, var(--brand-800), var(--brand-950) 70%);
    color: var(--white);
    overflow: hidden;
}
.page-hero::before {
    /* Subtle engineered grid, echoing a CAD backdrop. */
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 40%, transparent 100%);
}
.page-hero h1 { color: var(--white); }
.page-hero__lead {
    margin-block-start: var(--space-4);
    max-width: 58ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--step-1);
}

/* --- Breadcrumbs ---------------------------------------------------------- */
.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--step--1);
    margin-block-end: var(--space-4);
    color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs a { color: rgba(255, 255, 255, 0.85); }
.breadcrumbs a:hover { color: var(--white); text-decoration: underline; }
.breadcrumbs li { display: flex; align-items: center; gap: var(--space-2); }
.breadcrumbs li + li::before {
    content: '';
    inline-size: 5px;
    block-size: 5px;
    border-block-start: 1.5px solid currentColor;
    border-inline-end: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.6;
}
[dir='rtl'] .breadcrumbs li + li::before { transform: rotate(-135deg); }
.breadcrumbs [aria-current='page'] { color: var(--white); font-weight: 600; }

/* Light variant, for pages without a dark hero. */
.breadcrumbs--light { color: var(--text-muted); }
.breadcrumbs--light a { color: var(--ink-600); }
.breadcrumbs--light a:hover { color: var(--brand-700); }
.breadcrumbs--light [aria-current='page'] { color: var(--ink-800); }

/* --- Cards ---------------------------------------------------------------- */
.card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--dur) var(--ease),
                box-shadow var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

.card__media {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, var(--ink-50), var(--ink-100));
    overflow: hidden;
}
.card__media img {
    inline-size: 100%;
    block-size: 100%;
    /* contain, so machine renders are never cropped or distorted */
    object-fit: contain;
    padding: var(--space-4);
    transition: transform var(--dur-slow) var(--ease);
}
.card:hover .card__media img { transform: scale(1.045); }

.card__media--cover img { object-fit: cover; padding: 0; }

.card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-5);
    gap: var(--space-2);
}
.card__eyebrow {
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--accent-600);
}
.card__title {
    font-size: var(--step-1);
    font-weight: 700;
    line-height: 1.45;
}
.card__title a { color: var(--ink-900); }
.card__title a:hover { color: var(--brand-700); }
/* The whole card is clickable, while the link text stays the a11y target. */
.card__title a::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.card { position: relative; }

.card__text {
    color: var(--text-muted);
    font-size: var(--step-0);
    line-height: 1.75;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.card__foot {
    margin-block-start: auto;
    padding-block-start: var(--space-4);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    color: var(--brand-600);
    font-weight: 600;
    font-size: var(--step-0);
}
.card__foot svg { transition: transform var(--dur) var(--ease); }
[dir='rtl'] .card__foot svg { transform: scaleX(-1); }
.card:hover .card__foot svg { transform: translateX(4px); }
[dir='rtl'] .card:hover .card__foot svg { transform: scaleX(-1) translateX(4px); }

.card__badge {
    position: absolute;
    inset-block-start: var(--space-3);
    inset-inline-start: var(--space-3);
    z-index: 2;
    padding: 0.25em 0.8em;
    border-radius: var(--radius-pill);
    background: var(--accent-600);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Product grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: var(--space-5);
}

/* Category cards */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: var(--space-5);
}
.category-card {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-block-size: 300px;
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    overflow: hidden;
    color: var(--white);
    background: var(--brand-800);
    transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--white); }
.category-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    inline-size: 100%;
    block-size: 100%;
    object-fit: cover;
    transition: transform var(--dur-slow) var(--ease);
}
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to top, rgba(16, 18, 48, 0.94) 8%, rgba(16, 18, 48, 0.55) 48%, rgba(16, 18, 48, 0.2) 100%);
}
.category-card__title { font-size: var(--step-2); font-weight: 700; color: var(--white); }
.category-card__meta {
    margin-block-start: var(--space-2);
    font-size: var(--step--1);
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}
.category-card__cta {
    margin-block-start: var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--cyan-200);
}
[dir='rtl'] .category-card__cta svg { transform: scaleX(-1); }

/* --- Feature list --------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--space-5);
}
.feature {
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border-soft);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { border-color: var(--brand-200); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.feature__icon {
    display: grid;
    place-items: center;
    inline-size: 52px;
    block-size: 52px;
    border-radius: var(--radius-md);
    background: var(--brand-50);
    color: var(--brand-600);
    margin-block-end: var(--space-4);
}
.feature__icon svg { inline-size: 26px; block-size: 26px; }
.feature h3 { font-size: var(--step-1); margin-block-end: var(--space-2); }
.feature p { color: var(--text-muted); }

.section--brand .feature {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}
.section--brand .feature:hover { border-color: rgba(255, 255, 255, 0.3); }
.section--brand .feature__icon { background: rgba(255, 255, 255, 0.1); color: var(--cyan-200); }
.section--brand .feature p { color: var(--brand-200); }

/* Checklist */
.checklist { display: grid; gap: var(--space-3); }
.checklist li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    line-height: 1.75;
}
.checklist li::before {
    content: '';
    flex: none;
    inline-size: 22px;
    block-size: 22px;
    margin-block-start: 0.35em;
    border-radius: 50%;
    background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23353a96' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 13px no-repeat;
}

/* --- Stats ---------------------------------------------------------------- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: var(--space-5);
}
.stat { text-align: center; padding: var(--space-4); }
.stat__value {
    font-size: var(--step-5);
    font-weight: 800;
    line-height: 1.1;
    color: var(--brand-600);
    font-variant-numeric: tabular-nums;
}
.section--brand .stat__value { color: var(--cyan-200); }
.stat__label {
    margin-block-start: var(--space-2);
    color: var(--text-muted);
    font-size: var(--step-0);
    font-weight: 500;
}
.section--brand .stat__label { color: var(--brand-200); }

/* --- Media + text split --------------------------------------------------- */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: var(--space-8);
    align-items: center;
}
.split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink-100);
}
.split__media img { inline-size: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media--contain img { object-fit: contain; background: var(--white); padding: var(--space-5); }
.split--reverse .split__media { order: 2; }
@media (max-width: 720px) { .split--reverse .split__media { order: 0; } }

.prose { max-width: 68ch; }
.prose > * + * { margin-block-start: var(--space-4); }
.prose p { color: var(--ink-700); line-height: 1.9; }
.prose h2 { margin-block-start: var(--space-7); }
.prose h3 { margin-block-start: var(--space-6); font-size: var(--step-1); }
.prose ul { display: grid; gap: var(--space-2); }
.prose ul li { position: relative; padding-inline-start: var(--space-5); color: var(--ink-700); }
.prose ul li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.72em;
    inline-size: 7px;
    block-size: 7px;
    border-radius: 50%;
    background: var(--accent-600);
}
.prose ol { display: grid; gap: var(--space-2); counter-reset: item; }
.prose ol li { position: relative; padding-inline-start: var(--space-6); counter-increment: item; }
.prose ol li::before {
    content: counter(item);
    position: absolute;
    inset-inline-start: 0;
    inline-size: 1.5rem;
    text-align: center;
    font-weight: 700;
    color: var(--brand-600);
}
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose strong { font-weight: 700; color: var(--ink-900); }
.prose blockquote {
    padding-inline-start: var(--space-5);
    border-inline-start: 3px solid var(--accent-600);
    color: var(--ink-600);
    font-size: var(--step-1);
}

/* --- Quote / motto -------------------------------------------------------- */
.quote {
    position: relative;
    max-width: 46rem;
    margin-inline: auto;
    text-align: center;
    padding: var(--space-7) var(--space-5);
}
.quote__text {
    font-size: var(--step-3);
    font-weight: 600;
    line-height: 2;
    color: var(--brand-800);
}
.section--brand .quote__text { color: var(--white); }
.quote__cite {
    display: block;
    margin-block-start: var(--space-4);
    font-size: var(--step-0);
    font-weight: 500;
    color: var(--text-muted);
}
.section--brand .quote__cite { color: var(--brand-200); }
.quote::before {
    content: '”';
    display: block;
    font-size: 4rem;
    line-height: 0.6;
    color: var(--accent-600);
    opacity: 0.35;
    margin-block-end: var(--space-3);
}

/* --- Product detail ------------------------------------------------------- */
.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 900px) { .product-layout { grid-template-columns: 1fr; gap: var(--space-6); } }

.gallery { position: sticky; inset-block-start: calc(var(--header-h) + var(--space-4)); }
@media (max-width: 900px) { .gallery { position: static; } }

.gallery__main {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    background: linear-gradient(160deg, var(--white), var(--ink-50));
    overflow: hidden;
}
.gallery__main img {
    inline-size: 100%;
    block-size: 100%;
    object-fit: contain;
    padding: var(--space-5);
}
.gallery__thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: var(--space-3);
    margin-block-start: var(--space-3);
}
.gallery__thumb {
    aspect-ratio: 1;
    border-radius: var(--radius-sm);
    border: 2px solid var(--border);
    background: var(--white);
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease);
}
.gallery__thumb img { inline-size: 100%; block-size: 100%; object-fit: contain; padding: 5px; }
.gallery__thumb:hover { border-color: var(--brand-400); transform: translateY(-2px); }
.gallery__thumb[aria-current='true'] { border-color: var(--brand-600); }

.product-summary__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--accent-600);
}
.product-summary h1 { margin-block-start: var(--space-3); font-size: var(--step-4); }
.product-summary__model {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-block-start: var(--space-3);
    padding: 0.3em 0.9em;
    border-radius: var(--radius-pill);
    background: var(--brand-50);
    color: var(--brand-700);
    font-weight: 600;
    font-size: var(--step--1);
    font-variant-numeric: tabular-nums;
}
.product-summary__lead {
    margin-block-start: var(--space-4);
    font-size: var(--step-1);
    color: var(--ink-600);
    line-height: 1.8;
}
.product-summary__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-block-start: var(--space-6);
}

/* Spec tables — the most demanding RTL/LTR surface on the site. */
.spec-group + .spec-group { margin-block-start: var(--space-6); }
.spec-group__title {
    font-size: var(--step-0);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-700);
    margin-block-end: var(--space-3);
    padding-block-end: var(--space-2);
    border-block-end: 2px solid var(--brand-100);
}
.spec-table-wrap {
    /* Wide spec tables scroll inside their own box, never the page. */
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    -webkit-overflow-scrolling: touch;
}
.spec-table { min-inline-size: 100%; font-size: var(--step-0); }
.spec-table th, .spec-table td {
    padding: var(--space-3) var(--space-4);
    text-align: start;
    vertical-align: top;
    border-block-end: 1px solid var(--border-soft);
    line-height: 1.6;
}
.spec-table tr:last-child th, .spec-table tr:last-child td { border-block-end: 0; }
.spec-table tbody tr:nth-child(odd) { background: var(--ink-50); }
.spec-table tbody tr { transition: background-color var(--dur-fast) var(--ease); }
.spec-table tbody tr:hover { background: var(--brand-50); }
.spec-table th {
    inline-size: 42%;
    font-weight: 600;
    color: var(--ink-700);
    white-space: normal;
}
.spec-table td {
    color: var(--ink-900);
    font-weight: 500;
    /* Latin values inside Persian tables must stay LTR to read correctly. */
    unicode-bidi: plaintext;
    font-variant-numeric: tabular-nums;
}
@media (max-width: 520px) {
    .spec-table th { inline-size: 48%; }
    .spec-table th, .spec-table td { padding: var(--space-3); font-size: var(--step--1); }
}

.spec-note {
    margin-block-start: var(--space-3);
    font-size: var(--step--1);
    color: var(--text-muted);
}

/* Downloads */
.download-list { display: grid; gap: var(--space-3); }
.download {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.download:hover { border-color: var(--brand-400); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.download__icon {
    display: grid;
    place-items: center;
    inline-size: 42px;
    block-size: 42px;
    flex: none;
    border-radius: var(--radius-sm);
    background: var(--accent-50);
    color: var(--accent-600);
}
.download__text { flex: 1; min-inline-size: 0; }
.download__title { font-weight: 600; color: var(--ink-900); }
.download__meta { font-size: var(--step--1); color: var(--text-muted); }

/* Tabs / anchored sections on product detail */
.detail-section + .detail-section { margin-block-start: var(--space-8); }
.detail-section__title {
    font-size: var(--step-2);
    margin-block-end: var(--space-4);
    padding-block-end: var(--space-3);
    border-block-end: 1px solid var(--border);
}

/* --- Toolbar / filters ---------------------------------------------------- */
.toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-block-end: var(--space-6);
}
.toolbar__count { color: var(--text-muted); font-size: var(--step-0); }
.toolbar__spacer { margin-inline-start: auto; }

.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.45em 1.1em;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--ink-700);
    font-weight: 600;
    font-size: var(--step--1);
    transition: all var(--dur) var(--ease);
}
.chip:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.chip[aria-current='true'] {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--white);
}
.chip__count {
    font-size: 0.7rem;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
}

/* --- Forms ---------------------------------------------------------------- */
.form { display: grid; gap: var(--space-5); }
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: var(--space-5);
}
.field { display: grid; gap: var(--space-2); }
.field__label {
    font-weight: 600;
    font-size: var(--step-0);
    color: var(--ink-800);
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}
.field__hint { font-weight: 400; font-size: var(--step--1); color: var(--text-muted); }
.field__required { color: var(--accent-600); }

.input, .textarea, .select {
    inline-size: 100%;
    padding: 0.78em 1em;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--ink-900);
    font-size: var(--step-0);
    line-height: 1.6;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-400); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink-300); }
.input:focus, .textarea:focus, .select:focus {
    outline: none;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px var(--brand-100);
}
.textarea { min-block-size: 150px; resize: vertical; }

.select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7385' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 17px;
    background-position: right 0.9em center;
    padding-inline-end: 2.6em;
}
[dir='rtl'] .select { background-position: left 0.9em center; padding-inline-end: 1em; padding-inline-start: 2.6em; }

.field--error .input, .field--error .textarea, .field--error .select { border-color: var(--accent-600); }
.field--error .input:focus, .field--error .textarea:focus {
    box-shadow: 0 0 0 4px var(--accent-100);
}
.field__error {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--step--1);
    color: var(--accent-700);
    font-weight: 500;
}

/* Honeypot — visually and programmatically hidden from real users. */
.hp-field {
    position: absolute !important;
    inline-size: 1px;
    block-size: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* --- Alerts --------------------------------------------------------------- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: var(--step-0);
    line-height: 1.7;
}
.alert svg { flex: none; inline-size: 20px; block-size: 20px; margin-block-start: 0.2em; }
.alert--success { background: #ecfdf3; border-color: #a6e9c2; color: #14532d; }
.alert--error   { background: var(--accent-50); border-color: #f3bfc4; color: #7f1420; }
.alert--info    { background: var(--brand-50); border-color: var(--brand-200); color: var(--brand-800); }
.alert--warning { background: #fffaeb; border-color: #fbe08a; color: #7a4c07; }

/* --- Contact info cards --------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: var(--space-8);
    align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); } }

.info-card {
    display: flex;
    gap: var(--space-4);
    padding: var(--space-5);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    background: var(--white);
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.info-card:hover { border-color: var(--brand-200); box-shadow: var(--shadow-sm); }
.info-card__icon {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    flex: none;
    border-radius: var(--radius-md);
    background: var(--brand-50);
    color: var(--brand-600);
}
.info-card__icon svg { inline-size: 22px; block-size: 22px; }
.info-card__label {
    font-size: var(--step--1);
    font-weight: 600;
    color: var(--text-muted);
    margin-block-end: var(--space-1);
}
.info-card__value { color: var(--ink-900); font-weight: 500; line-height: 1.8; }
.info-card__value a { color: var(--ink-900); }
.info-card__value a:hover { color: var(--brand-700); }
/* Phone numbers and postcodes must render LTR even inside RTL text. */
.ltr-num {
    display: inline-block;
    direction: ltr;
    unicode-bidi: embed;
    font-variant-numeric: tabular-nums;
}

.form-panel {
    padding: var(--space-7);
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
}
@media (max-width: 560px) { .form-panel { padding: var(--space-5); } }

.map-embed {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--ink-100);
    aspect-ratio: 16 / 8;
}
.map-embed iframe { inline-size: 100%; block-size: 100%; border: 0; display: block; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band {
    position: relative;
    isolation: isolate;
    padding-block: var(--space-9);
    background: linear-gradient(135deg, var(--brand-700), var(--brand-900));
    color: var(--white);
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.cta-band::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset-block-start: -40%;
    inset-inline-end: -10%;
    inline-size: 460px;
    block-size: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(209, 238, 244, 0.18), transparent 68%);
}
.cta-band__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}
.cta-band h2 { color: var(--white); font-size: var(--step-3); }
.cta-band p { margin-block-start: var(--space-3); color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* --- Affiliation strip ---------------------------------------------------- */
.affiliations {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-6) var(--space-8);
}
.affiliation {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--step--1);
    font-weight: 500;
    max-width: 22rem;
}
.affiliation img {
    inline-size: 54px;
    block-size: 54px;
    object-fit: contain;
    flex: none;
    opacity: 0.85;
}

/* --- Pagination ----------------------------------------------------------- */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    margin-block-start: var(--space-8);
}
.pagination__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-inline-size: 42px;
    block-size: 42px;
    padding-inline: var(--space-3);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--ink-700);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: all var(--dur) var(--ease);
}
.pagination__link:hover { border-color: var(--brand-400); color: var(--brand-700); background: var(--brand-50); }
.pagination__link[aria-current='page'] {
    background: var(--brand-600);
    border-color: var(--brand-600);
    color: var(--white);
}
.pagination__link[aria-disabled='true'] { opacity: 0.4; pointer-events: none; }
[dir='rtl'] .pagination__link svg { transform: scaleX(-1); }

/* --- Empty state ---------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: var(--space-10) var(--space-5);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-subtle);
}
.empty-state__icon {
    display: grid;
    place-items: center;
    inline-size: 66px;
    block-size: 66px;
    margin-inline: auto;
    margin-block-end: var(--space-4);
    border-radius: 50%;
    background: var(--white);
    color: var(--ink-400);
    box-shadow: var(--shadow-xs);
}
.empty-state h3 { margin-block-end: var(--space-2); }
.empty-state p { color: var(--text-muted); }
.empty-state .btn { margin-block-start: var(--space-5); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    position: relative;
    background: var(--brand-950);
    color: var(--brand-200);
    padding-block-start: var(--space-9);
    margin-block-start: var(--space-10);
}
.site-footer__skyline {
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 90px;
    object-fit: cover;
    object-position: bottom;
    opacity: 0.16;
    pointer-events: none;
    filter: grayscale(1) brightness(2.4);
}
.footer-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(auto-fit, minmax(min(100%, 165px), 1fr));
    gap: var(--space-7);
    padding-block-end: var(--space-8);
}
.footer-brand__mark { inline-size: 46px; block-size: 46px; border-radius: var(--radius-sm); }
.footer-brand__name {
    margin-block-start: var(--space-3);
    font-size: var(--step-1);
    font-weight: 700;
    color: var(--white);
}
.footer-brand p {
    margin-block-start: var(--space-3);
    font-size: var(--step-0);
    line-height: 1.85;
    color: var(--brand-200);
    max-width: 40ch;
}
.footer-col__title {
    font-size: var(--step-0);
    font-weight: 700;
    color: var(--white);
    margin-block-end: var(--space-4);
}
.footer-col ul { display: grid; gap: var(--space-2); }
.footer-col a {
    color: var(--brand-200);
    font-size: var(--step-0);
    transition: color var(--dur) var(--ease), padding-inline-start var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--white); padding-inline-start: var(--space-2); }

.footer-contact li {
    display: flex;
    gap: var(--space-3);
    font-size: var(--step-0);
    line-height: 1.8;
    color: var(--brand-200);
}
.footer-contact svg { flex: none; inline-size: 17px; block-size: 17px; margin-block-start: 0.4em; opacity: 0.7; }
.footer-contact a { color: var(--brand-200); }
.footer-contact a:hover { color: var(--white); }

.social-row { display: flex; gap: var(--space-2); margin-block-start: var(--space-5); }
.social-link {
    display: grid;
    place-items: center;
    inline-size: 40px;
    block-size: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.08);
    color: var(--brand-100);
    transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.social-link:hover { background: var(--accent-600); color: var(--white); transform: translateY(-3px); }
.social-link svg { inline-size: 19px; block-size: 19px; }

.footer-bottom {
    position: relative;
    border-block-start: 1px solid rgba(255, 255, 255, 0.1);
    padding-block: var(--space-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    font-size: var(--step--1);
    color: var(--brand-300);
}
.footer-bottom__made {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

/* --- Utilities ------------------------------------------------------------ */
.visually-hidden {
    position: absolute !important;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.mt-0 { margin-block-start: 0; }
.mt-4 { margin-block-start: var(--space-4); }
.mt-5 { margin-block-start: var(--space-5); }
.mt-6 { margin-block-start: var(--space-6); }
.mt-8 { margin-block-start: var(--space-8); }

/* Scroll-triggered reveal; JS adds .is-visible. Content is always present in
   the DOM, so it remains readable with JavaScript disabled. */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* --- Print ---------------------------------------------------------------- */
@media print {
    .site-header, .site-footer, .nav, .hero__actions, .cta-band, .btn { display: none !important; }
    body { color: #000; background: #fff; }
    .spec-table-wrap { overflow: visible; border: 1px solid #999; }
    a[href]::after { content: ' (' attr(href) ')'; font-size: 0.8em; color: #555; }
}

/* --- Research gallery figures --------------------------------------------- */
.research-figure {
    inline-size: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
