/* ===========================================================================
   Samt design system — hand-rolled, no build step, no npm (brain/03, brain/04).
   RTL/LTR is achieved with CSS *logical properties only* (inline/block),
   so this single stylesheet serves both directions with no [dir] overrides.
   =========================================================================== */

/* ---- Fonts (self-hosted; drop the woff2 files in /wwwroot/fonts, see README) */
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSansArabic-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSansArabic-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans Arabic';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSansArabic-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSans-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-weight: 600;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSans-SemiBold.woff2') format('woff2');
}
@font-face {
    font-family: 'IBM Plex Sans';
    font-weight: 700;
    font-style: normal;
    font-display: swap;
    src: url('/fonts/IBMPlexSans-Bold.woff2') format('woff2');
}

/* ---- Design tokens ---- */
/* Brand palette from the Samt logo: deep navy + warm gold. */
:root {
    --navy-900: #0f1e40;
    --navy-800: #17274f;
    --navy-700: #26375f;

    --gold-600: #a97f16; /* gold text on light — meets contrast */
    --gold-500: #c9a227; /* brand gold — fills, accents */
    --gold-400: #ddbb52; /* light gold — highlight / on-dark accent */

    --ink: #1a2238;
    --muted: #5b6478;
    --bg: #ffffff;
    --surface: #f7f6f1;
    --surface-2: #f2ecdd;
    --border: #e6e4dc;
    --on-dark: #eef1fa;
    --on-dark-muted: #aeb8d4;

    --accent-gradient: linear-gradient(135deg, var(--gold-600), var(--gold-400));

    --font-ar: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
    --font-latin: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;

    --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
    --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
    --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
    --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
    --step-3: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem);
    --step-4: clamp(2.3rem, 1.7rem + 2.6vw, 3.6rem);

    --space-1: 0.5rem;
    --space-2: 1rem;
    --space-3: 1.5rem;
    --space-4: 2.5rem;
    --space-5: 4rem;
    --space-6: 6rem;

    --radius: 14px;
    --radius-sm: 9px;
    --container: 68rem;
    --shadow: 0 10px 40px -12px rgba(16, 33, 84, 0.18);
    --shadow-sm: 0 2px 10px -4px rgba(16, 33, 84, 0.14);
}

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

html {
    font-family: var(--font-ar);
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html[lang='en'] {
    font-family: var(--font-latin);
    line-height: 1.6;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-size: var(--step-0);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    line-height: 1.25;
    margin: 0 0 var(--space-2);
    color: var(--navy-900);
    font-weight: 700;
}

h1 { font-size: var(--step-4); letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); letter-spacing: -0.01em; }
h3 { font-size: var(--step-1); }

p { margin: 0 0 var(--space-2); }

a {
    color: var(--navy-700);
    text-decoration: none;
}
a:hover { text-decoration: underline; }

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

img { max-width: 100%; height: auto; }

/* ---- Layout helpers ---- */
.container {
    inline-size: 100%;
    max-inline-size: var(--container);
    margin-inline: auto;
    padding-inline: var(--space-3);
}

.section {
    padding-block: var(--space-5);
}

.section--tint { background: var(--surface); }

.stack > * + * { margin-block-start: var(--space-2); }

.lead {
    font-size: var(--step-1);
    color: var(--muted);
    max-inline-size: 44ch;
}

.eyebrow {
    display: inline-block;
    font-size: var(--step--1);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold-600);
    margin-block-end: var(--space-1);
}

/* ---- Skip link ---- */
.skip-link {
    position: absolute;
    inset-block-start: -3rem;
    inset-inline-start: var(--space-2);
    background: var(--navy-900);
    color: var(--on-dark);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    z-index: 100;
    transition: inset-block-start 0.2s ease;
}
.skip-link:focus {
    inset-block-start: var(--space-1);
    text-decoration: none;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-1);
    padding: 0.7em 1.4em;
    border-radius: var(--radius-sm);
    font: inherit;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.08s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--primary {
    background: var(--accent-gradient);
    color: var(--navy-900);
    box-shadow: var(--shadow-sm);
}
.btn--primary:hover { box-shadow: var(--shadow); }

.btn--ghost {
    background: transparent;
    color: var(--navy-900);
    border-color: var(--border);
}
.btn--ghost:hover { background: var(--surface-2); }

.btn--on-dark {
    background: #fff;
    color: var(--navy-900);
}

/* ---- Header / nav ---- */
.site-header {
    position: sticky;
    inset-block-start: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-block-end: 1px solid var(--border);
}
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding-block: var(--space-2);
    flex-wrap: wrap;
}
.brand {
    display: inline-flex;
    align-items: center;
}
.brand:hover { text-decoration: none; }
.brand__logo {
    display: block;
    block-size: clamp(2.5rem, 2.1rem + 1.6vw, 3.4rem);
    inline-size: auto;
}
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}
.main-nav__links {
    display: flex;
    gap: var(--space-3);
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav__links a {
    color: var(--ink);
    font-weight: 500;
}
.main-nav a[aria-current='page'] {
    color: var(--navy-900);
    text-decoration: none;
}

.lang-switch {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.35em 0.8em;
    color: var(--navy-900);
    font-weight: 600;
    font-size: var(--step--1);
    background: #fff;
}
.lang-switch:hover { background: var(--surface-2); text-decoration: none; }

/* ---- Hero ---- */
.hero {
    background: radial-gradient(120% 120% at 100% 0%, var(--navy-700), var(--navy-900) 60%);
    color: var(--on-dark);
    padding-block: var(--space-6) var(--space-5);
    position: relative;
    overflow: hidden;
}
.hero h1 { color: #fff; max-inline-size: 20ch; }
.hero .eyebrow { color: var(--gold-400); }
.hero__subtitle {
    font-size: var(--step-1);
    color: var(--on-dark-muted);
    max-inline-size: 48ch;
    margin-block-end: var(--space-3);
}
.hero__actions {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ---- Cards ---- */
.grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}
.card--link { transition: transform 0.12s ease, box-shadow 0.2s ease; }
.card--link:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
    text-decoration: none;
}
.card h3 { margin: 0; }
.card__meta {
    font-size: var(--step--1);
    color: var(--muted);
}

.badge {
    display: inline-block;
    font-size: var(--step--1);
    font-weight: 600;
    padding: 0.15em 0.7em;
    border-radius: 999px;
    background: var(--surface-2);
    color: var(--gold-600);
    align-self: flex-start;
}
.badge--soon { background: #fff4e5; color: #b7791f; }

/* ---- Feature list ---- */
.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--space-2);
}
.feature-list li {
    padding-inline-start: 1.8rem;
    position: relative;
}
.feature-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    inset-block-start: 0.55em;
    inline-size: 0.7rem;
    block-size: 0.7rem;
    border-radius: 3px;
    background: var(--accent-gradient);
}

/* ---- CTA band ---- */
.cta-band {
    background: radial-gradient(130% 150% at 0% 0%, var(--navy-700), var(--navy-900) 70%);
    color: #fff;
    border: 1px solid rgba(201, 162, 39, 0.35);
    border-radius: var(--radius);
    padding: var(--space-4);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 3px;
    background: var(--accent-gradient);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.9); }

/* ---- Contact form ---- */
.form-grid {
    display: grid;
    gap: var(--space-3);
    grid-template-columns: 1fr;
}
@media (min-width: 48rem) {
    .form-grid { grid-template-columns: 3fr 2fr; }
}
.field { display: flex; flex-direction: column; gap: 0.35rem; margin-block-end: var(--space-2); }
.field label { font-weight: 600; font-size: var(--step--1); }
.field .optional { color: var(--muted); font-weight: 400; }
.field input,
.field select,
.field textarea {
    font: inherit;
    color: var(--ink);
    padding: 0.7em 0.9em;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    inline-size: 100%;
}
.field textarea { resize: vertical; min-block-size: 7rem; }
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--gold-500); outline-offset: 0; }

/* Honeypot: visually and semantically hidden from real users */
.hp-field {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.validation-message { color: #d92d20; font-size: var(--step--1); }
.field input.invalid,
.field select.invalid,
.field textarea.invalid { border-color: #d92d20; }

.form-status {
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    margin-block-end: var(--space-3);
}
.form-status--ok { background: #e7f6ec; color: #1a7f45; }
.form-status--error { background: #fdecea; color: #b42318; }

.contact-info {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-3);
    align-self: start;
}
.contact-info dt { font-weight: 600; margin-block-start: var(--space-2); }
.contact-info dd { margin: 0; }

/* ---- Prose (legal pages) ---- */
.prose { max-inline-size: 60ch; }
.prose h2 { font-size: var(--step-2); margin-block-start: var(--space-3); }
.prose h3 { margin-block-start: var(--space-2); }
.prose ul { padding-inline-start: 1.4rem; }

/* ---- Footer ---- */
.site-footer {
    margin-block-start: auto;
    background: var(--navy-900);
    color: var(--on-dark-muted);
    padding-block: var(--space-4);
}
.site-footer a { color: var(--on-dark); }
.site-footer__grid {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
    justify-content: space-between;
}
.site-footer h4 {
    color: #fff;
    font-size: var(--step--1);
    letter-spacing: 0.04em;
    margin: 0 0 var(--space-2);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer__brand { max-inline-size: 22ch; }
.site-footer__bottom {
    margin-block-start: var(--space-3);
    padding-block-start: var(--space-3);
    border-block-start: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--step--1);
}

.notice {
    background: #fff8e6;
    border: 1px solid #f4e3b2;
    border-radius: var(--radius-sm);
    padding: var(--space-2) var(--space-3);
    color: #8a6d1f;
    font-size: var(--step--1);
}

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

/* ===========================================================================
   Visual layer — motion, depth and micro-interactions. Everything degrades:
   with JS off the page is fully visible, and ambient motion is gated behind
   prefers-reduced-motion: no-preference.
   =========================================================================== */

/* ---- Hero: aurora + grid + staggered entrance ---- */
.hero { isolation: isolate; }

.hero__aurora {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}
.hero__aurora span {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(64px);
}
.hero__aurora span:nth-child(1) {
    inline-size: 34rem; block-size: 34rem;
    inset-block-start: -12rem; inset-inline-end: -8rem;
    background: radial-gradient(circle, var(--gold-500), transparent 68%);
    opacity: 0.4;
}
.hero__aurora span:nth-child(2) {
    inline-size: 28rem; block-size: 28rem;
    inset-block-end: -14rem; inset-inline-start: -8rem;
    background: radial-gradient(circle, #3a5ba0, transparent 68%);
    opacity: 0.45;
}
.hero__aurora span:nth-child(3) {
    inline-size: 22rem; block-size: 22rem;
    inset-block-start: 24%; inset-inline-start: 42%;
    background: radial-gradient(circle, var(--gold-400), transparent 70%);
    opacity: 0.14;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(120% 85% at 50% 0%, #000 38%, transparent 78%);
    mask-image: radial-gradient(120% 85% at 50% 0%, #000 38%, transparent 78%);
}

.hero__cue {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-block-start: var(--space-4);
    color: var(--on-dark-muted);
    font-size: var(--step--1);
    letter-spacing: 0.03em;
}
.hero__cue i {
    inline-size: 0.55rem;
    block-size: 0.55rem;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: rotate(45deg);
}

/* ---- Marquee / value ticker ---- */
.marquee {
    border-block: 1px solid rgba(201, 162, 39, 0.22);
    background: var(--navy-800);
    padding-block: var(--space-3);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__track {
    display: flex;
    inline-size: max-content;
    gap: var(--space-4);
    align-items: center;
}
.marquee__item {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--on-dark);
    font-weight: 600;
    letter-spacing: 0.01em;
    white-space: nowrap;
}
.marquee__item::before {
    content: '';
    inline-size: 0.5rem;
    block-size: 0.5rem;
    border-radius: 1px;
    background: var(--accent-gradient);
    transform: rotate(45deg);
    box-shadow: 0 0 10px rgba(201, 162, 39, 0.5);
    flex: none;
}

/* ---- Cards: gradient edge on hover ---- */
.card {
    position: relative;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline: 0;
    block-size: 3px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.card:hover::before { transform: scaleX(1); }
.card--link:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 52px -20px rgba(15, 30, 64, 0.32);
    border-color: rgba(201, 162, 39, 0.4);
}

/* ---- Buttons: sheen + lift ---- */
.btn { position: relative; overflow: hidden; }
.btn--primary::after {
    content: '';
    position: absolute;
    inset-block: 0;
    inset-inline-start: -60%;
    inline-size: 40%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: inset-inline-start 0.55s ease;
    pointer-events: none;
}
.btn--primary:hover { transform: translateY(-1px); }
.btn--primary:hover::after { inset-inline-start: 120%; }

.btn--outline-light {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(4px);
}
.btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
}

/* ---- Header + nav polish ---- */
.site-header { transition: box-shadow 0.25s ease, background 0.25s ease; }
.site-header.is-scrolled {
    box-shadow: 0 8px 28px -16px rgba(16, 33, 84, 0.45);
    background: rgba(255, 255, 255, 0.96);
}
.main-nav__links a { position: relative; }
.main-nav__links a::after {
    content: '';
    position: absolute;
    inset-block-end: -5px;
    inset-inline: 0;
    block-size: 2px;
    border-radius: 2px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
}
.main-nav__links a:hover { text-decoration: none; }
.main-nav__links a:hover::after,
.main-nav a[aria-current='page']::after { transform: scaleX(1); }
.main-nav a[aria-current='page'] { text-decoration: none; }

/* ---- Motion (only when the user hasn't asked to reduce it) ---- */
@media (prefers-reduced-motion: no-preference) {
    .hero__aurora span { animation: samt-float 18s ease-in-out infinite; }
    .hero__aurora span:nth-child(2) { animation-duration: 24s; animation-direction: reverse; }
    .hero__aurora span:nth-child(3) { animation-duration: 30s; }

    .hero .eyebrow,
    .hero h1,
    .hero__subtitle,
    .hero__actions,
    .hero__cue {
        animation: samt-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }
    .hero h1 { animation-delay: 0.08s; }
    .hero__subtitle { animation-delay: 0.16s; }
    .hero__actions { animation-delay: 0.24s; }
    .hero__cue { animation-delay: 0.5s; }
    .hero__cue i { animation: samt-cue 1.7s ease-in-out infinite; }

    .marquee__track { animation: samt-marquee 38s linear infinite; }
    .marquee:hover .marquee__track { animation-play-state: paused; }

    .reveal-ready [data-reveal] {
        opacity: 0;
        transform: translateY(1.7rem);
        transition:
            opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
            transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
        transition-delay: var(--reveal-delay, 0s);
    }
    .reveal-ready [data-reveal].is-in {
        opacity: 1;
        transform: none;
    }
}

@keyframes samt-float {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 2rem, 0) scale(1.08); }
}
@keyframes samt-rise {
    from { opacity: 0; transform: translateY(1.4rem); }
    to { opacity: 1; transform: none; }
}
@keyframes samt-cue {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    50% { transform: rotate(45deg) translate(0.18rem, 0.18rem); }
}
@keyframes samt-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---- Pointer-driven flourishes (mouse only; skipped on touch) ---- */
@media (hover: hover) and (pointer: fine) {
    [data-tilt] {
        transform-style: preserve-3d;
        will-change: transform;
    }
    [data-tilt].is-tilting {
        transform: perspective(760px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px);
        transition: transform 0.08s ease-out;
    }
    /* A soft gold spotlight follows the cursor across the card. */
    [data-tilt]::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%),
            rgba(201, 162, 39, 0.18), transparent 55%);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
        z-index: 1;
    }
    [data-tilt].is-tilting::after { opacity: 1; }
    [data-tilt] > * { position: relative; z-index: 2; }

    /* Hero aurora drifts with the cursor (spans still float independently). */
    .hero__aurora {
        transform: translate3d(calc(var(--px, 0) * 2.6rem), calc(var(--py, 0) * 2.6rem), 0);
        transition: transform 0.4s ease-out;
    }

    /* Magnetic buttons lean toward the cursor. */
    .btn[data-magnetic] {
        transform: translate(var(--tx, 0px), var(--ty, 0px));
        transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1);
    }
}

/* ---- Custom cursor ring + button glow + hero brand diamond (mouse only) ---- */
@media (hover: hover) and (pointer: fine) {
    .cursor-ring {
        position: fixed;
        left: 0;
        top: 0;
        inline-size: 34px;
        block-size: 34px;
        border: 1.5px solid rgba(201, 162, 39, 0.8);
        border-radius: 50%;
        pointer-events: none;
        z-index: 9999;
        opacity: 0;
        transition: opacity 0.25s ease, inline-size 0.2s ease, block-size 0.2s ease,
            background 0.2s ease, border-color 0.2s ease;
    }
    .cursor-ring.is-visible { opacity: 1; }
    .cursor-ring.is-hot {
        inline-size: 54px;
        block-size: 54px;
        background: rgba(201, 162, 39, 0.12);
        border-color: rgba(201, 162, 39, 0.95);
    }
    .cursor-ring.is-down { inline-size: 26px; block-size: 26px; }

    /* Cursor-following highlight on buttons. */
    .btn::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: inherit;
        background: radial-gradient(circle at var(--bx, 50%) var(--by, 50%),
            rgba(255, 255, 255, 0.32), transparent 55%);
        opacity: 0;
        transition: opacity 0.25s ease;
        pointer-events: none;
    }
    .btn:hover::before { opacity: 1; }
}

/* Floating gold brand diamond in the hero (identity motif). */
.hero__diamond {
    position: absolute;
    inset-block-start: 50%;
    inset-inline-end: 4%;
    inline-size: clamp(5.5rem, 11vw, 10rem);
    z-index: -1;
    transform: translateY(-50%);
    pointer-events: none;
    opacity: 0.92;
}
.hero__diamond svg {
    display: block;
    inline-size: 100%;
    filter: drop-shadow(0 0 34px rgba(201, 162, 39, 0.4));
}
@media (min-width: 60rem) {
    .hero__diamond { inset-inline-end: 5%; }
}
@media (max-width: 46rem) {
    .hero__diamond { opacity: 0.35; inset-inline-end: -6%; }
}
@media (hover: hover) and (pointer: fine) {
    .hero__diamond {
        transform: translateY(-50%) translate3d(calc(var(--px, 0) * -3.5rem), calc(var(--py, 0) * -3.5rem), 0);
        transition: transform 0.4s ease-out;
    }
}
@media (prefers-reduced-motion: no-preference) {
    .hero__diamond svg { animation: samt-float 22s ease-in-out infinite; }
}

/* ---- Compact language pill (short by default, reveals the full name on hover) ---- */
.lang-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.42rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-900);
    font-weight: 700;
    font-size: var(--step--1);
    line-height: 1;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.lang-pill:hover {
    border-color: var(--gold-500);
    background: var(--navy-900);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 6px 18px -8px rgba(15, 30, 64, 0.5);
}
.lang-pill__globe {
    inline-size: 1.05rem;
    block-size: 1.05rem;
    flex: none;
    transition: transform 0.55s ease, color 0.25s ease;
}
.lang-pill:hover .lang-pill__globe {
    transform: rotate(360deg);
    color: var(--gold-400);
}
.lang-pill__code,
.lang-pill__name {
    overflow: hidden;
    white-space: nowrap;
    transition: max-inline-size 0.35s ease, opacity 0.25s ease;
}
.lang-pill__code { max-inline-size: 3rem; opacity: 1; }
.lang-pill__name { max-inline-size: 0; opacity: 0; }
.lang-pill:hover .lang-pill__code { max-inline-size: 0; opacity: 0; }
.lang-pill:hover .lang-pill__name { max-inline-size: 7rem; opacity: 1; }

/* ---- Geometric diamond texture across every section ---- */
.section { position: relative; }
.section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Cpath d='M28 3 L53 28 L28 53 L3 28 Z' fill='none' stroke='%23c9a227' stroke-opacity='0.08' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 56px;
}
.section > .container { position: relative; z-index: 1; }

/* ---- CTA band decorative diamond ---- */
.cta-band__diamond {
    position: absolute;
    inset-block-start: -3rem;
    inset-inline-end: -3rem;
    inline-size: 11rem;
    block-size: 11rem;
    border: 1.5px solid rgba(201, 162, 39, 0.4);
    border-radius: 14px;
    transform: rotate(45deg);
    pointer-events: none;
    z-index: 0;
}

/* ---- Dynamic, elastic product cards ---- */
.product-card {
    isolation: isolate;
    padding-block-end: var(--space-4);
}
/* corner diamond that springs on hover */
.product-card__shape {
    position: absolute;
    inset-block-start: -1.6rem;
    inset-inline-end: -1.6rem;
    inline-size: 4.6rem;
    block-size: 4.6rem;
    border: 1.5px solid rgba(201, 162, 39, 0.35);
    border-radius: 8px;
    transform: rotate(45deg);
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.4s ease;
}
.product-card:hover .product-card__shape {
    transform: rotate(135deg) scale(1.15);
    border-color: rgba(201, 162, 39, 0.65);
}
/* a warm wash that rises from inside on hover */
.product-card__rise {
    position: absolute;
    inset-inline: 0;
    inset-block-end: 0;
    block-size: 0;
    background: linear-gradient(to top, rgba(201, 162, 39, 0.16), transparent);
    transition: block-size 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .product-card__rise { block-size: 60%; }
/* keep decorative layers behind the content (overriding the tilt child rule) */
.product-card > .product-card__shape,
.product-card > .product-card__rise { z-index: 0; }
/* the "learn more" affordance with a direction-aware, springy chevron */
.product-card__more {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-block-start: auto;
    color: var(--gold-600);
    font-weight: 700;
}
.product-card__more i {
    inline-size: 0.45rem;
    block-size: 0.45rem;
    border-block-start: 2px solid currentColor;
    border-inline-end: 2px solid currentColor;
    transform: rotate(45deg);
    display: inline-block;
    transition: margin-inline-start 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.product-card:hover .product-card__more i { margin-inline-start: 0.5rem; }

@media (prefers-reduced-motion: no-preference) {
    .cta-band__diamond { animation: samt-spin 40s linear infinite; }
}
@keyframes samt-spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}
