/* ============================================================================
   THE OBSERVATORY · rsi-circuit-vcard
   المرصد — Research & Studies Institute (SEU), the digital-first card
   ----------------------------------------------------------------------------
   World      : knowledge as a star chart set in a lacquered midnight
                instrument. The House of Wisdom's observatory, built like a
                private-bank object. Luxury first, digital second.
   Ground     : midnight lapis lacquer (#0C1830 family) with one barely-there
                radial sheen, like polished stone under a single lamp.
   Metalwork  : platinum hairlines rgba(201,212,224,.28) for every rule and
                frame; double-hairline bezels; sharp 8-12px radii.
   Star chart : a few ultra-fine polylines joining 2px star points, drawn once
                on reveal, then still. No pulses, no orbits, no particles.
   Jewel      : SEU teal #11CEC8 as one gem per section: the section marker,
                the dial tick, the active state. Never a glow, never a fill
                larger than a gem.
   Type       : IBM Plex Sans Arabic for both scripts, 300/700 contrast;
                IBM Plex Mono only for tiny instrument captions.
   Motion verb: draw once, settle 0.35s ease-out. Reduced motion: stillness.
   ========================================================================== */

:root {
    /* lacquer */
    --bg: #0C1830;
    --bg-2: #101F3C;
    --panel: #13223F;
    --panel-2: #152546;
    --well: #091223;

    /* metal */
    --hair: rgba(201, 212, 224, 0.28);
    --hair-2: rgba(201, 212, 224, 0.13);
    --plat: #C9D4E0;
    --plat-2: #93A2B8;
    --metal: linear-gradient(180deg, #F4F7FB 0%, #D9E2EC 55%, #BFCBD9 100%);
    --metal-ink: #0D1B33;

    /* ink */
    --text: #E9EEF6;
    --muted: #A7B4C7;
    --dim: #76849B;

    /* the jewel */
    --teal: #11CEC8;
    --tk-primary: #11CEC8; /* consumed by the shared PWA sheet if it ever appears */

    /* semantic, muted to the register */
    --ok: #3ECF9A;
    --warn: #D8B25C;
    --err: #E4778C;

    /* type */
    --font-display: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, sans-serif;
    --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-mono: 'IBM Plex Mono', 'IBM Plex Sans Arabic', ui-monospace, monospace;

    /* bezel geometry */
    --r-sm: 8px;
    --r: 10px;
    --r-lg: 12px;

    /* one verb: settle */
    --ease: cubic-bezier(0.33, 1, 0.68, 1);
    --dur: 0.35s;
}

/* ---------------------------------------------------------------- baseline */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg);
    /* the lacquer sheen: one light source, no texture, no dots */
    background-image:
        radial-gradient(150% 92% at 50% -14%, rgba(41, 62, 102, 0.52), transparent 62%),
        radial-gradient(130% 100% at 50% 120%, rgba(4, 9, 20, 0.72), transparent 58%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-height: 100dvh;
}

::selection { background: rgba(17, 206, 200, 0.3); color: #fff; }

a { color: var(--plat); text-decoration: none; }
img { max-width: 100%; }
button { font-family: inherit; }
.hidden { display: none !important; }

/* numerals: tabular and BiDi-isolated wherever they carry data */
.tele-num, .metric-num, .pkg-price, .pkg-price-old, .hour-time {
    unicode-bidi: isolate;
    font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------- the star chart (ambient) */
/* Fixed, aria-hidden, CSS-drawn once on load, then perfectly still. */
.fx {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: clip;
}
.fx svg { width: 100%; height: 100%; display: block; }

.fx .cst-line {
    fill: none;
    stroke: rgba(201, 212, 224, 0.12);
    stroke-width: 0.8;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: cstDraw 2s var(--ease) forwards;
}
.fx .cst-line.d2 { animation-delay: 0.5s; }
.fx .cst-line.d3 { animation-delay: 1s; }
.fx .cst-arc {
    fill: none;
    stroke: rgba(201, 212, 224, 0.09);
    stroke-width: 0.8;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: cstDraw 2.6s var(--ease) 0.3s forwards;
}
.fx .cst-star {
    fill: rgba(201, 212, 224, 0.55);
    opacity: 0;
    animation: cstStar 0.9s var(--ease) 1.1s forwards;
}
.fx .cst-star.bright { fill: rgba(230, 238, 247, 0.75); }
.fx .cst-star.jewel { fill: rgba(17, 206, 200, 0.8); animation-delay: 1.5s; }
.fx .cst-halo {
    fill: none;
    stroke: rgba(201, 212, 224, 0.22);
    stroke-width: 0.6;
    opacity: 0;
    animation: cstStar 0.9s var(--ease) 1.4s forwards;
}
@keyframes cstDraw { to { stroke-dashoffset: 0; } }
@keyframes cstStar { to { opacity: 1; } }

/* -------------------------------------------------------------- the column */
.kc-main {
    position: relative;
    z-index: 1;
    isolation: isolate;
    max-width: 620px;
    margin-inline: auto;
    padding-inline: 20px;
    padding-block-end: 132px; /* clearance for the dock */
}

/* ------------------------------------------------------------------ loader */
#loader {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--bg);
    transition: opacity 0.4s var(--ease), visibility 0.4s;
}
#loader.hidden { opacity: 0; visibility: hidden; display: grid !important; pointer-events: none; }
.spinner {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--hair-2);
    border-block-start-color: var(--teal);
    animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------------ topbar */
.topbar {
    position: sticky;
    inset-block-start: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 6px;
    margin-inline: -6px;
    background: rgba(12, 24, 48, 0.86);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-block-end: 1px solid var(--hair-2);
}
.topbar-chip {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--hair);
    box-shadow: 0 0 0 3px rgba(12, 24, 48, 0.9), 0 0 0 4px var(--hair-2);
    flex-shrink: 0;
}
.topbar-name {
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: 0.01em;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.topbar-spacer { flex: 1; }

/* ----------------------------------------------------------------- buttons */
/* Primary: polished platinum. The metal does the talking; no color noise. */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 26px;
    border: 1px solid #9FAEC1;
    border-radius: var(--r);
    background: var(--metal);
    color: var(--metal-ink);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13.5px;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 28px -16px rgba(0, 0, 0, 0.85);
    transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.btn-primary i { color: var(--metal-ink); font-size: 13px; }
.btn-primary:hover {
    filter: brightness(1.045);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 18px 30px -16px rgba(0, 0, 0, 0.9);
}
.btn-primary:active { transform: translateY(0); filter: brightness(0.99); }
.btn-primary:disabled { opacity: 0.55; cursor: default; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid var(--hair);
    border-radius: var(--r);
    background: rgba(19, 34, 63, 0.5);
    color: var(--text);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 13.5px;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-ghost i { color: var(--plat); font-size: 13.5px; }
.btn-ghost:hover { border-color: rgba(17, 206, 200, 0.5); background: rgba(17, 206, 200, 0.05); }
.btn-ghost:hover i { color: var(--teal); }

.btn-mini {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 15px;
    border: 1px solid var(--hair);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn-mini i { font-size: 11px; color: var(--plat-2); transition: color var(--dur) var(--ease); }
.btn-mini:hover { border-color: rgba(17, 206, 200, 0.5); color: var(--text); }
.btn-mini:hover i { color: var(--teal); }

/* ------------------------------------------------- hero: the observatory face */
.hero {
    position: relative;
    padding-block: 40px 10px;
    text-align: center;
}

/* chronometer bezel: platinum tick ring, hairline inner ring, one gem at 12 */
.bezel {
    position: relative;
    width: 128px;
    height: 128px;
    margin-inline: auto;
    border-radius: 50%;
}
.bezel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(201, 212, 224, 0.55) 0deg 0.7deg, transparent 0.7deg 6deg);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
    mask: radial-gradient(closest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.bezel::after {
    content: '';
    position: absolute;
    inset: 9px;
    border: 1px solid var(--hair);
    border-radius: 50%;
    pointer-events: none;
}
.bezel img {
    position: absolute;
    inset: 14px;
    width: calc(100% - 28px);
    height: calc(100% - 28px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    background: var(--panel);
    display: block;
}
.bezel-gem {
    position: absolute;
    inset-block-start: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 9px;
    border-radius: 2px;
    background: var(--teal);
}

/* the standing plaque under the bezel */
.hero-plaque {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-block-start: 18px;
    padding: 7px 16px;
    border: 1px solid var(--hair-2);
    border-radius: 999px;
    background: rgba(19, 34, 63, 0.45);
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--plat-2);
    max-width: 100%;
}
.hero-plaque .gem {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    flex-shrink: 0;
}

.hero-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(32px, 9.4vw, 46px);
    line-height: 1.22;
    letter-spacing: 0.005em;
    color: var(--text);
    margin-block: 16px 2px;
    overflow-wrap: anywhere;
}
.hero-role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14.5px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--plat-2);
    margin-block-start: 6px;
}
.hero-role::before, .hero-role::after {
    content: '';
    width: 22px;
    height: 1px;
    background: var(--hair);
    flex-shrink: 0;
}
.hero-desc {
    color: var(--muted);
    font-size: 14.5px;
    font-weight: 300;
    line-height: 1.85;
    margin-block-start: 16px;
    margin-inline: auto;
    max-width: 50ch;
}
.hero-desc p { margin-block-end: 8px; }
.hero-desc p:last-child { margin-block-end: 0; }

.hero-org {
    display: block;
    margin-block-start: 12px;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    color: var(--dim);
}
.hero-org i { margin-inline-end: 6px; color: var(--plat-2); }

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 11px;
    margin-block-start: 22px;
}

/* arrival: settle, one after another */
.hero-load { opacity: 0; transform: translateY(10px); animation: settle 0.6s var(--ease) forwards; }
.hl-1 { animation-delay: 0.05s; }
.hl-2 { animation-delay: 0.14s; }
.hl-3 { animation-delay: 0.23s; }
.hl-4 { animation-delay: 0.32s; }
.hl-5 { animation-delay: 0.41s; }
@keyframes settle { to { opacity: 1; transform: translateY(0); } }

/* ------------------------------------------------------- cover: bezel plate */
.cover-wrap { margin-block: 22px 4px; }
.cover-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
    aspect-ratio: 16 / 9;
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.06), 0 20px 40px -26px rgba(0, 0, 0, 0.9);
}
.cover-frame::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--hair-2);
    border-radius: calc(var(--r-lg) - 4px);
    pointer-events: none;
}
.cover-frame img, .cover-frame iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
    display: block;
}

/* --------------------------------------------- instrument dials (customTexts) */
.tele-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;
    gap: 26px 34px;
    margin-block: 30px 6px;
}
.tele { text-align: center; min-width: 84px; }
.tele-num, .metric-num {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 40px;
    line-height: 1.15;
    color: var(--text);
}
.tele-rule {
    position: relative;
    display: block;
    width: 58px;
    height: 1px;
    margin: 7px auto 8px;
    background: var(--hair);
}
.tele-rule::after {
    content: '';
    position: absolute;
    inset-block-start: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 3px;
    border-radius: 2px;
    background: var(--teal);
}
.tele-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--plat-2);
}

/* ------------------------------------------------- quick actions: metal chips */
.qa-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-block: 22px 4px;
}
.qa-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--hair);
    border-radius: var(--r);
    background: rgba(19, 34, 63, 0.5);
    color: var(--text);
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.05);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.qa-item i { font-size: 13.5px; color: var(--plat); transition: color var(--dur) var(--ease); }
.qa-item:hover { border-color: rgba(17, 206, 200, 0.5); transform: translateY(-2px); }
.qa-item:hover i { color: var(--teal); }

/* ------------------------------------------------------------ sections */
.sec { padding-block: 52px 0; }

/* Section head: a drawn top rule, one gem, a small constellation at the end */
.sec-head {
    position: relative;
    padding-block-start: 20px;
    margin-block-end: 20px;
}
.sec-head::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 0;
    height: 1px;
    background: var(--hair);
    transition: width 1s var(--ease) 0.1s;
}
.sec-head.in::before { width: 100%; }

/* the header's star cluster, drawn on reveal, then still */
.cst {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 2px;
    width: 58px;
    height: 18px;
    opacity: 0.9;
}
.cst svg { width: 100%; height: 100%; display: block; }
.cst .cst-line {
    fill: none;
    stroke: rgba(201, 212, 224, 0.3);
    stroke-width: 0.9;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    transition: stroke-dashoffset 1.1s var(--ease) 0.25s;
}
.cst .cst-star { fill: rgba(201, 212, 224, 0.75); opacity: 0; transition: opacity 0.6s var(--ease) 0.9s; }
.cst .cst-star.jewel { fill: var(--teal); }
.sec-head.in .cst .cst-line { stroke-dashoffset: 0; }
.sec-head.in .cst .cst-star { opacity: 1; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--plat-2);
    margin-block-end: 7px;
}
.kicker::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--teal);
    transform: rotate(45deg);
    border-radius: 1px;
    flex-shrink: 0;
}
.sec-title {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: clamp(24px, 6.4vw, 30px);
    line-height: 1.3;
    color: var(--text);
}
.sec-sub {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 300;
    margin-block-start: 8px;
    max-width: 52ch;
}

/* ---------------------------------------------- lacquer sheets (two tiers) */
/* tier 1: .panel, a quiet sheet · tier 2: .mod, a full instrument bezel */
.panel {
    background: var(--panel);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-lg);
    padding: 20px 18px;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.06);
}
.mod {
    position: relative;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 20px 19px;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.07), 0 22px 44px -30px rgba(0, 0, 0, 0.95);
}
.mod::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--hair-2);
    border-radius: calc(var(--r-lg) - 4px);
    pointer-events: none;
}

/* ---------------------------------------------------------------- services */
.svc-grid { display: flex; flex-direction: column; gap: 13px; }
.svc-card { display: flex; flex-direction: column; align-items: stretch; }
.svc-card .svc-cta { margin-block-start: auto; padding-block-start: 14px; }
.svc-head { display: flex; align-items: center; gap: 13px; }
.svc-ic {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: rgba(201, 212, 224, 0.05);
    border: 1px solid var(--hair);
    color: var(--plat);
    font-size: 14.5px;
    overflow: hidden;
}
.svc-ic img { width: 100%; height: 100%; object-fit: cover; }
.svc-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.4;
    color: var(--text);
}
.svc-desc { color: var(--muted); font-size: 13.5px; font-weight: 300; margin-block-start: 10px; }
.svc-cta { display: flex; flex-wrap: wrap; gap: 9px; margin-block-start: 14px; }

/* ---------------------------------------------------------------- programs */
.pkg-grid { display: flex; flex-direction: column; gap: 15px; }
.pkg-card { overflow: hidden; }
.pkg-card.is-featured { border-color: rgba(17, 206, 200, 0.38); }
.pkg-badge {
    position: absolute;
    inset-block-start: 13px;
    inset-inline-end: 13px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    background: rgba(12, 24, 48, 0.85);
    color: var(--plat);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.pkg-badge::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
}
.pkg-img {
    width: calc(100% + 38px);
    margin: -20px -19px 16px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}
.pkg-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16.5px;
    color: var(--text);
}
.pkg-desc { color: var(--muted); font-size: 13.5px; font-weight: 300; margin-block-start: 7px; }
.pkg-price-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-block-start: 14px;
}
.pkg-price {
    font-family: var(--font-display);
    font-weight: 300;
    font-size: 27px;
    color: var(--text);
}
.pkg-price-old {
    font-size: 13px;
    color: var(--dim);
    text-decoration: line-through;
}
.pkg-stock {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-block: 8px 14px;
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--plat-2);
}
.pkg-stock::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.pkg-stock.ok::before { background: var(--teal); }
.pkg-stock.out::before { background: var(--warn); }
.pkg-card .btn-primary { width: 100%; }

/* ------------------------------------------------------- gallery carousel */
.car { position: relative; }
.car-track {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-block-end: 4px;
}
.car-track::-webkit-scrollbar { display: none; }
.car-item {
    flex: 0 0 auto;
    width: min(72vw, 300px);
    scroll-snap-align: start;
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
    background: var(--panel);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.06);
}
.car-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}
.car-cap {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--muted);
    border-block-start: 1px solid var(--hair-2);
}
.car-nav {
    display: none; /* arrows appear at >=760px */
    position: absolute;
    inset-block-start: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--hair);
    background: rgba(12, 24, 48, 0.92);
    color: var(--plat);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.car-nav:hover { color: var(--teal); border-color: rgba(17, 206, 200, 0.5); }
.car-nav.prev { inset-inline-start: -8px; }
.car-nav.next { inset-inline-end: -8px; }
[dir='rtl'] .car-nav i { transform: scaleX(-1); }

/* ------------------------------------------------------------------ videos */
.reel { display: flex; flex-direction: column; gap: 15px; align-items: center; }
.reel-item {
    width: 100%;
    max-width: 560px;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
    background: var(--panel);
}
.reel-item iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
.reel-label {
    padding: 10px 14px;
    font-size: 12.5px;
    font-weight: 300;
    color: var(--muted);
    border-block-start: 1px solid var(--hair-2);
}

/* ------------------------------------------- testimony ledger + empty state */
.tm-track {
    display: flex;
    gap: 13px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    padding-block-end: 6px;
}
.tm-track::-webkit-scrollbar { display: none; }
.tm-card {
    flex: 0 0 auto;
    width: min(80vw, 320px);
    scroll-snap-align: start;
    position: relative;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 18px;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.07);
}
.tm-stars { color: var(--warn); font-size: 11px; display: flex; gap: 3px; }
.tm-text {
    color: var(--text);
    font-size: 13.5px;
    font-weight: 300;
    line-height: 1.8;
    margin-block: 12px 14px;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tm-who { display: flex; align-items: center; gap: 10px; }
.tm-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 1px solid var(--hair); }
.tm-name { font-weight: 700; font-size: 13px; color: var(--text); }
.tm-sub { color: var(--dim); font-size: 11.5px; }

/* the open ledger: a designed empty state, not an apology */
.tm-empty { text-align: center; padding: 26px 20px 24px; }
.tm-empty-ic {
    width: 46px;
    height: 46px;
    margin-inline: auto;
    display: grid;
    place-items: center;
    border: 1px solid var(--hair);
    border-radius: 50%;
    color: var(--plat);
    font-size: 15px;
}
.tm-empty-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    margin-block-start: 12px;
}
.tm-empty-sub { color: var(--muted); font-size: 13px; font-weight: 300; margin-block-start: 5px; }
.tm-empty-rule {
    position: relative;
    display: block;
    width: 56px;
    height: 1px;
    margin: 14px auto 0;
    background: var(--hair);
}
.tm-empty-rule::after {
    content: '';
    position: absolute;
    inset-block-start: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 3px;
    border-radius: 2px;
    background: var(--teal);
}

/* the shared review button, re-set in the observatory's metal */
.scaan-review-btn {
    background: var(--metal) !important;
    color: var(--metal-ink) !important;
    border: 1px solid #9FAEC1 !important;
    border-radius: var(--r) !important;
    font-family: var(--font-body) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 14px 28px -16px rgba(0, 0, 0, 0.85) !important;
}
.scaan-review-btn svg { fill: var(--metal-ink) !important; }
.scaan-review-submit { background: var(--metal-ink) !important; }

/* ------------------------------------------------------------------- forms */
.f-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--plat-2);
    margin-block: 14px 6px;
}
.f-input {
    width: 100%;
    padding: 12px 14px;
    background: var(--well);
    border: 1px solid var(--hair-2);
    border-radius: var(--r-sm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 14px;
    transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.f-input:focus {
    outline: none;
    border-color: rgba(17, 206, 200, 0.55);
    box-shadow: 0 0 0 3px rgba(17, 206, 200, 0.1);
}
.f-input::placeholder { color: var(--dim); font-weight: 300; }
textarea.f-input { resize: vertical; min-height: 76px; }
select.f-input {
    appearance: none;
    -webkit-appearance: none;
    padding-inline-end: 38px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%23C9D4E0' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}
[dir='rtl'] select.f-input { background-position: left 14px center; }
select.f-input option { background: var(--panel-2); color: var(--text); }

.grid-2f { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 430px) { .grid-2f { grid-template-columns: 1fr; } }

.alert-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 15px;
    margin-block: 10px;
    border-radius: var(--r-sm);
    font-size: 13px;
    text-align: center;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
}
.alert-error { background: rgba(228, 119, 140, 0.08); border: 1px solid rgba(228, 119, 140, 0.35); color: var(--err); }
.alert-success { background: rgba(62, 207, 154, 0.08); border: 1px solid rgba(62, 207, 154, 0.35); color: var(--ok); }

/* flatpickr, set in lacquer */
.flatpickr-calendar {
    background: var(--panel-2) !important;
    border: 1px solid var(--hair) !important;
    border-radius: var(--r) !important;
    box-shadow: 0 26px 60px -20px rgba(0, 0, 0, 0.9) !important;
    font-family: var(--font-body) !important;
}
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { border-bottom-color: var(--panel-2) !important; }
.flatpickr-calendar.arrowBottom::before, .flatpickr-calendar.arrowBottom::after { border-top-color: var(--panel-2) !important; }
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year { color: var(--text) !important; fill: var(--text) !important; background: transparent !important; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { color: var(--plat) !important; fill: var(--plat) !important; }
.flatpickr-months .flatpickr-prev-month svg, .flatpickr-months .flatpickr-next-month svg { fill: var(--plat) !important; }
span.flatpickr-weekday { color: var(--plat-2) !important; background: transparent !important; font-weight: 500 !important; }
.flatpickr-weekdays, .flatpickr-innerContainer, .flatpickr-rContainer, .flatpickr-days { background: transparent !important; border: 0 !important; }
.flatpickr-day { color: var(--text) !important; font-variant-numeric: tabular-nums; border-radius: 7px !important; }
.flatpickr-day.prevMonthDay, .flatpickr-day.nextMonthDay, .flatpickr-day.flatpickr-disabled,
.flatpickr-day.flatpickr-disabled:hover { color: #4E5C74 !important; background: transparent !important; }
.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected) { background: rgba(201, 212, 224, 0.09) !important; border-color: transparent !important; }
.flatpickr-day.selected, .flatpickr-day.selected:hover {
    background: var(--teal) !important;
    border-color: var(--teal) !important;
    color: #06232B !important;
    font-weight: 700;
}
.flatpickr-day.today:not(.selected) { border-color: rgba(17, 206, 200, 0.55) !important; }

/* -------------------------------------------------------- links & records */
.link-grid { display: flex; flex-direction: column; gap: 10px; }
.link-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 14px 15px;
    background: var(--panel);
    border: 1px solid var(--hair-2);
    border-radius: var(--r);
    color: var(--text);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.05);
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
    min-width: 0;
}
.link-card:hover { border-color: rgba(17, 206, 200, 0.45); transform: translateY(-1px); }
.link-ic {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: var(--r-sm);
    background: rgba(201, 212, 224, 0.05);
    border: 1px solid var(--hair);
    color: var(--plat);
    font-size: 14px;
}
.link-body { min-width: 0; flex: 1; }
.link-label { display: block; font-weight: 700; font-size: 13.5px; color: var(--text); }
.link-val {
    display: block;
    color: var(--dim);
    font-size: 12px;
    font-weight: 300;
    margin-block-start: 2px;
    overflow-wrap: anywhere;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
/* URLs: one LTR-isolated line, CSS-ellipsized, never mid-word chopped by blade */
.link-val.is-url {
    display: block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    direction: ltr;
    text-align: start;
    unicode-bidi: isolate;
}
.link-arrow {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border: 1px solid var(--hair-2);
    border-radius: 50%;
    color: var(--plat);
    font-size: 10.5px;
    transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.link-card:hover .link-arrow { color: var(--teal); border-color: rgba(17, 206, 200, 0.5); }
[dir='rtl'] .link-arrow i { transform: scaleX(-1); }

.note-card {
    padding: 15px 17px;
    background: var(--panel);
    border: 1px solid var(--hair-2);
    border-radius: var(--r);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.05);
}
.note-card .link-label { color: var(--plat); margin-block-end: 4px; }
.note-card p { color: var(--muted); font-size: 13.5px; font-weight: 300; overflow-wrap: anywhere; }

.iframe-wrap {
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
    margin-block-start: 13px;
    background: var(--panel);
}
.iframe-wrap iframe { width: 100%; min-height: 300px; border: 0; display: block; }

/* ------------------------------------------------------------------- hours */
.hour-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 4px;
    border-block-end: 1px solid var(--hair-2);
    font-size: 13.5px;
}
.hour-row:last-child { border-block-end: 0; }
.hour-day { color: var(--muted); font-weight: 500; display: inline-flex; align-items: center; }
.hour-time { font-size: 13px; color: var(--text); font-weight: 300; }
.hour-row.today .hour-day { color: var(--text); font-weight: 700; }
.hour-row.today .hour-day::after {
    content: '';
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    margin-inline-start: 8px;
}
.hour-24 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    color: var(--plat);
    font-size: 13px;
    letter-spacing: 0.03em;
}
.hour-24 i { color: var(--teal); font-size: 12px; }

/* --------------------------------------------------------------------- map */
.map-wrap {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    border: 1px solid var(--hair);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.06);
}
.map-holder { position: relative; background: var(--panel); }
.map-ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: var(--plat-2);
    font-size: 12px;
    letter-spacing: 0.05em;
}
.map-ph i { font-size: 20px; color: var(--plat); }
.map-holder iframe {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 260px;
    border: 0;
    display: block;
    filter: grayscale(0.25) saturate(0.55) contrast(1.02) brightness(0.94);
}
.map-directions { margin-block-start: 14px; display: flex; justify-content: center; }

/* ---------------------------------------------------------------- payments */
.pay-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; }
.pay-card {
    flex: 1 1 220px;
    max-width: 300px;
    padding: 16px;
    background: var(--panel);
    border: 1px solid var(--hair-2);
    border-radius: var(--r);
    text-align: center;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.05);
}
.pay-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--plat-2);
    margin-block-end: 8px;
}
.pay-label i { color: var(--plat); }
.pay-val {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text);
    overflow-wrap: anywhere;
    unicode-bidi: isolate;
}
.pay-img {
    max-width: 170px;
    border-radius: var(--r-sm);
    margin-inline: auto;
    display: block;
    background: #fff;
    padding: 6px;
}

/* ----------------------------------------------------------------- socials */
.soc-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.soc-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 18px;
    background: rgba(19, 34, 63, 0.5);
    border: 1px solid var(--hair);
    border-radius: var(--r);
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.soc-item i { color: var(--plat); font-size: 14px; transition: color var(--dur) var(--ease); }
.soc-item:hover { border-color: rgba(17, 206, 200, 0.5); transform: translateY(-2px); }
.soc-item:hover i { color: var(--teal); }

/* ------------------------------------------------------------------ wallet */
.wallet-zone { padding-block: 14px 0; display: flex; justify-content: center; }
.wallet-zone .scaanme-wallet-buttons,
.wallet-zone #scaanmeWalletBtns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

/* ------------------------------------------------------------------ footer */
.footer {
    text-align: center;
    padding-block: 34px 10px;
    color: var(--dim);
    font-size: 12px;
    font-weight: 300;
    letter-spacing: 0.03em;
}
.footer a { color: var(--plat-2); }
.footer a:hover { color: var(--teal); }
/* closing mark: one hairline, one gem. The instrument is signed. */
.footer-seal {
    position: relative;
    width: 56px;
    height: 1px;
    margin: 0 auto 16px;
    background: var(--hair);
}
.footer-seal::after {
    content: '';
    position: absolute;
    inset-block-start: -2.5px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-radius: 1px;
    background: var(--teal);
}

/* -------------------------------------------------------------------- dock */
.dock {
    position: fixed;
    inset-inline: 0;
    inset-block-end: calc(12px + env(safe-area-inset-bottom));
    z-index: 60;
    display: flex;
    justify-content: center;
    padding-inline: 14px;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.dock.dock-hide { transform: translateY(130%); opacity: 0; }
.dock-inner {
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px;
    background: rgba(14, 27, 51, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.08), 0 22px 48px -18px rgba(0, 0, 0, 0.95);
    max-width: 100%;
}
.dock-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    min-width: 56px;
    padding: 8px 10px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--plat-2);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: color var(--dur) var(--ease);
}
.dock-btn i { font-size: 15px; }
.dock-btn:hover { color: var(--teal); }
.dock-main {
    background: var(--metal);
    color: var(--metal-ink);
    border: 1px solid #9FAEC1;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 22px -12px rgba(0, 0, 0, 0.8);
    margin-inline: 3px;
}
.dock-main:hover { color: var(--metal-ink); filter: brightness(1.04); }

/* ------------------------------------------------------------------ modals */
.pm-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(4, 9, 20, 0.78);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.pm-overlay.show { opacity: 1; }
.pm-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-height: calc(100dvh - 60px);
    overflow-y: auto;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    padding: 22px 20px;
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.08), 0 34px 80px -24px rgba(0, 0, 0, 0.95);
    transform: translateY(12px);
    transition: transform 0.3s var(--ease);
}
.pm-overlay.show .pm-box { transform: translateY(0); }
.pm-head { padding-inline-end: 42px; margin-block-end: 6px; }
.pm-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
}
.pm-sub { color: var(--muted); font-size: 13px; font-weight: 300; margin-block-start: 4px; }
.pm-close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hair);
    border-radius: 50%;
    background: rgba(12, 24, 48, 0.6);
    color: var(--plat);
    font-size: 13px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.pm-close:hover { color: var(--teal); border-color: rgba(17, 206, 200, 0.5); }
.pm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-block-start: 18px; }

/* modal medallion: a small instrument face, not a colored box */
.pm-medal {
    position: relative;
    width: 56px;
    height: 56px;
    margin: 4px auto 16px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hair);
    border-radius: 50%;
    color: var(--plat);
    font-size: 19px;
    background: rgba(201, 212, 224, 0.04);
}
.pm-medal::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid var(--hair-2);
    border-radius: 50%;
    pointer-events: none;
}

.qr-wrap {
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--hair);
    border-radius: var(--r);
    padding: 14px;
    margin-block: 14px;
}
.qr-wrap canvas { display: block; max-width: 100%; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block: 12px; }
.share-row a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--hair);
    background: rgba(19, 34, 63, 0.5);
    color: var(--plat);
    font-size: 15px;
    transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.share-row a:hover { border-color: rgba(17, 206, 200, 0.5); color: var(--teal); }

/* --------------------------------------------------------- language switch */
.lang-wrap { position: relative; }
.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid var(--hair);
    border-radius: 999px;
    background: rgba(19, 34, 63, 0.5);
    color: var(--text);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.06em;
    cursor: pointer;
}
.lang-btn i { color: var(--plat); font-size: 12px; }
.lang-menu {
    position: absolute;
    inset-inline-end: 0;
    inset-block-start: calc(100% + 8px);
    min-width: 150px;
    max-height: 270px;
    overflow-y: auto;
    background: var(--panel-2);
    border: 1px solid var(--hair);
    border-radius: var(--r);
    padding: 6px;
    z-index: 80;
    box-shadow: 0 22px 54px -14px rgba(0, 0, 0, 0.85);
}
.lang-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 7px;
    font-size: 13px;
    color: var(--muted);
}
.lang-item:hover { background: rgba(201, 212, 224, 0.07); color: var(--text); }
.lang-item.active { color: var(--teal); }

/* ------------------------------------------------------- reveals: settle */
.rv {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rv.in { opacity: 1; transform: translateY(0); }
.rv-d1 { transition-delay: 0.08s; }

/* --------------------------------------- PWA install sheet: the night plaque */
/* Lapis lacquer sheet, double platinum hairline, metal action. Own element ids
   (obsPwa*); it silences the shared default sheet via its session flag. */
.obs-pwa {
    position: fixed;
    inset-inline: 14px;
    inset-block-end: calc(86px + env(safe-area-inset-bottom));
    z-index: 85;
    max-width: 430px;
    margin-inline: auto;
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--hair);
    border-radius: var(--r-lg);
    box-shadow: inset 0 1px 0 rgba(236, 242, 250, 0.08), 0 30px 64px -22px rgba(0, 0, 0, 0.95);
    padding: 15px 16px 14px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(22px);
    transition: transform 0.45s var(--ease), opacity 0.4s var(--ease), visibility 0s linear 0.45s;
}
.obs-pwa::after {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px solid var(--hair-2);
    border-radius: calc(var(--r-lg) - 4px);
    pointer-events: none;
}
.obs-pwa.on {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: transform 0.45s var(--ease), opacity 0.4s var(--ease), visibility 0s;
}
.obs-pwa-x {
    position: absolute;
    inset-block-start: 8px;
    inset-inline-end: 8px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--hair);
    background: rgba(12, 24, 48, 0.6);
    color: var(--plat);
    display: grid;
    place-items: center;
    font-size: 13px;
    z-index: 2;
    padding: 0;
    cursor: pointer;
}
.obs-pwa-x:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.obs-pwa-row { display: flex; align-items: center; gap: 12px; padding-inline-end: 40px; }
.obs-pwa-seal {
    position: relative;
    flex: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
}
.obs-pwa-seal::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(201, 212, 224, 0.5) 0deg 1deg, transparent 1deg 9deg);
    -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(closest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
}
.obs-pwa-seal img {
    position: absolute;
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
    border-radius: 50%;
    object-fit: cover;
    background: var(--panel);
    display: block;
}
.obs-pwa-txt { min-width: 0; }
.obs-pwa-txt strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.45;
}
.obs-pwa-txt span {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: var(--muted);
    line-height: 1.6;
    margin-block-start: 3px;
}
.obs-pwa-btn {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-block-start: 12px;
    padding: 12px 16px;
    border: 1px solid #9FAEC1;
    border-radius: var(--r);
    background: var(--metal);
    color: var(--metal-ink);
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 12px 24px -14px rgba(0, 0, 0, 0.85);
    transition: filter 0.2s var(--ease), transform 0.2s var(--ease);
}
.obs-pwa-btn i { color: var(--metal-ink); font-size: 12.5px; }
.obs-pwa-btn:hover { filter: brightness(1.045); }
.obs-pwa-btn:active { transform: scale(0.985); }

/* if the shared default sheet ever materializes, dress it in lacquer */
#scmPwaSheet {
    background: linear-gradient(180deg, #152546, #13223F) !important;
    border: 1px solid var(--hair) !important;
    box-shadow: 0 24px 56px -18px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(236, 242, 250, 0.08) !important;
}

/* ----------------------------------------------------------- desktop layer */
@media (min-width: 760px) {
    body { font-size: 15.5px; }
    .kc-main { max-width: 700px; padding-inline: 26px; }
    .hero { padding-block: 58px 14px; }
    .bezel { width: 148px; height: 148px; }
    .bezel img { inset: 16px; width: calc(100% - 32px); height: calc(100% - 32px); }
    .sec { padding-block: 68px 0; }
    .tele-num, .metric-num { font-size: 46px; }
    .tele-row { gap: 30px 52px; }
    .svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
    .pkg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
    .car-nav { display: flex; }
    .car-item { width: 300px; }
    .map-holder iframe { height: 320px; }
    .dock-btn { min-width: 64px; }
    .cst { width: 72px; height: 20px; }
    /* the ambient chart scales up with the slice viewBox: quiet it and
       re-fine the star points (SVG2 geometry properties) */
    .fx { opacity: 0.7; }
    .fx .cst-star { r: 1; }
    .fx .cst-star.bright { r: 1.2; }
    .fx .cst-star.jewel { r: 1.1; }
    .fx .cst-halo { r: 3.4; }
}

/* -------------------------------------------- reduced motion: pure stillness */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    /* the chart stands fully drawn; nothing draws, settles or spins */
    .fx .cst-line, .fx .cst-arc { animation: none; stroke-dashoffset: 0; }
    .fx .cst-star, .fx .cst-halo { animation: none; opacity: 1; }
    .cst .cst-line { transition: none; stroke-dashoffset: 0; }
    .cst .cst-star { transition: none; opacity: 1; }
    .sec-head::before { transition: none; width: 100%; }
    .hero-load { animation: none; opacity: 1; transform: none; }
    .rv { opacity: 1; transform: none; transition: none; }
    .spinner { animation: none; border-block-start-color: var(--hair); }
    .obs-pwa { transition: opacity 0.2s linear, visibility 0s; transform: none; }
    .btn-primary, .btn-ghost, .btn-mini, .qa-item, .link-card, .link-arrow, .soc-item,
    .car-nav, .dock, .dock-btn, .pm-overlay, .pm-box, .f-input, .share-row a,
    .obs-pwa-btn, .scaan-review-btn { transition: none; }
    .btn-primary:hover, .qa-item:hover, .soc-item:hover, .link-card:hover { transform: none; }
}
