/* ------------------------------------------------------------------ fonts
   Vazirmatn is served from this domain: Iranian CDN access is unreliable and a
   third-party font request would delay first paint. Licence: fonts/OFL.txt. */
@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/fonts/Vazirmatn-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("/fonts/Vazirmatn-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Vazirmatn";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/fonts/Vazirmatn-Bold.woff2") format("woff2");
}

/* ============================================================================
   ParsSky — Deep Space design system
   Tokens, layout primitives and components for the public portal.
   No build step: modern CSS only, RTL-first, dark-only.
   ========================================================================== */

:root {
    --space-950: #05060D;
    --space-900: #080A14;
    --space-800: #0B0D17;
    --space-700: #11142A;
    --space-600: #1B1F3B;
    --space-500: #262B4D;

    --cyan: #22D3EE;
    --cyan-soft: rgba(34, 211, 238, .14);
    --indigo: #6366F1;
    --gold: #F5C451;
    --rose: #F87171;
    --mint: #34D399;

    --text: #E8EAF6;
    --text-dim: #B6BCDA;
    --muted: #8C92B3;

    --glass: rgba(255, 255, 255, .045);
    --glass-strong: rgba(255, 255, 255, .075);
    --stroke: rgba(255, 255, 255, .09);
    --stroke-strong: rgba(255, 255, 255, .16);

    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;

    --shadow-soft: 0 18px 50px -24px rgba(0, 0, 0, .85);
    --shadow-glow: 0 0 0 1px rgba(34, 211, 238, .25), 0 22px 60px -30px rgba(34, 211, 238, .5);

    --font-body: "Vazirmatn", "IRANSans", "Segoe UI", Tahoma, system-ui, sans-serif;
    --font-display: "Space Grotesk", "Vazirmatn", "Segoe UI", Tahoma, sans-serif;

    --container: 1220px;
    --header-h: 76px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--text);
    background:
        radial-gradient(1100px 600px at 85% -10%, rgba(99, 102, 241, .22), transparent 60%),
        radial-gradient(900px 520px at 5% 0%, rgba(34, 211, 238, .12), transparent 55%),
        linear-gradient(180deg, var(--space-900) 0%, var(--space-800) 45%, var(--space-950) 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    margin: 0 0 .5em;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.01em;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
    color: var(--text);
    text-decoration: none;
    transition: color .18s ease;
}

a:hover { color: var(--cyan); }

img { max-width: 100%; display: block; }

ul { margin: 0; padding: 0; list-style: none; }

::selection {
    background: rgba(34, 211, 238, .3);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

.skip-link {
    position: absolute;
    inset-inline-start: -999px;
    top: 12px;
    z-index: 999;
    padding: .6rem 1rem;
    background: var(--cyan);
    color: #04121a;
    border-radius: 8px;
    font-weight: 700;
}

.skip-link:focus { inset-inline-start: 12px; }

.container {
    width: min(100% - 2.5rem, var(--container));
    margin-inline: auto;
}

/* ------------------------------------------------------------------ starfield */

.starfield {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: "";
    position: absolute;
    inset: -40%;
    background-image:
        radial-gradient(1.6px 1.6px at 20% 30%, rgba(255, 255, 255, .8), transparent 60%),
        radial-gradient(1.4px 1.4px at 70% 15%, rgba(255, 255, 255, .6), transparent 60%),
        radial-gradient(1.2px 1.2px at 45% 65%, rgba(255, 255, 255, .7), transparent 60%),
        radial-gradient(1.8px 1.8px at 85% 75%, rgba(255, 255, 255, .55), transparent 60%),
        radial-gradient(1.1px 1.1px at 15% 85%, rgba(255, 255, 255, .5), transparent 60%),
        radial-gradient(1.5px 1.5px at 60% 45%, rgba(255, 255, 255, .45), transparent 60%);
    background-size: 480px 480px, 620px 620px, 540px 540px, 700px 700px, 580px 580px, 660px 660px;
    opacity: .55;
    animation: drift 180s linear infinite;
}

.starfield::after {
    background-size: 320px 320px, 420px 420px, 380px 380px, 460px 460px, 360px 360px, 440px 440px;
    opacity: .35;
    animation-duration: 260s;
    animation-direction: reverse;
}

.starfield__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.starfield__glow--one {
    width: 520px;
    height: 520px;
    top: -160px;
    inset-inline-start: -120px;
    background: rgba(99, 102, 241, .28);
}

.starfield__glow--two {
    width: 460px;
    height: 460px;
    bottom: -180px;
    inset-inline-end: -140px;
    background: rgba(34, 211, 238, .16);
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-120px, 90px, 0); }
}

/* --------------------------------------------------------------------- header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(8, 10, 20, .55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-bottom: 1px solid transparent;
    transition: background .2s ease, border-color .2s ease;
}

.site-header.is-scrolled {
    background: rgba(8, 10, 20, .86);
    border-bottom-color: var(--stroke);
}

.site-header__inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: var(--header-h);
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex: 0 0 auto;
}

.brand__mark {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 12px rgba(34, 211, 238, .35));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.brand__text strong {
    font-size: 1.08rem;
    letter-spacing: .02em;
}

.brand__text small {
    color: var(--muted);
    font-size: .7rem;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.main-nav__list {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.main-nav__item {
    position: relative;
}

.main-nav__item > a {
    display: inline-block;
    padding: .55rem .75rem;
    border-radius: 10px;
    font-size: .92rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.main-nav__item > a:hover,
.main-nav__item:focus-within > a {
    color: var(--text);
    background: var(--glass);
}

.mega {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 50%;
    transform: translateX(50%) translateY(6px);
    display: flex;
    gap: 2rem;
    min-width: 420px;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius);
    background: rgba(12, 15, 30, .96);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.main-nav__item:hover > .mega,
.main-nav__item:focus-within > .mega {
    opacity: 1;
    visibility: visible;
    transform: translateX(50%) translateY(0);
}

.mega__col {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    min-width: 170px;
}

.mega__title {
    font-size: .72rem;
    letter-spacing: .06em;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: .25rem;
}

.mega__col a {
    font-size: .88rem;
    color: var(--text-dim);
    padding: .2rem 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex: 0 0 auto;
}

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    color: var(--text-dim);
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--stroke-strong);
    background: var(--glass-strong);
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-toggle { display: none; }

/* -------------------------------------------------------------- moon widget */

.moon-widget {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .35rem .7rem .35rem .55rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(99, 102, 241, .12));
    font-size: .78rem;
    color: var(--text-dim);
    white-space: nowrap;
}

.moon-widget__emoji {
    font-size: 1.15rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(245, 196, 81, .35));
}

.moon-widget__name { color: var(--text); font-weight: 600; }

.moon-widget__pct { color: var(--cyan); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .72rem 1.25rem;
    border-radius: 12px;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
    background: linear-gradient(135deg, var(--cyan), #0EA5C6);
    color: #04121a;
    box-shadow: 0 14px 34px -18px rgba(34, 211, 238, .9);
}

.btn--primary:hover {
    color: #04121a;
    box-shadow: 0 18px 42px -16px rgba(34, 211, 238, .95);
}

.btn--gold {
    background: linear-gradient(135deg, var(--gold), #E0A63A);
    color: #23180a;
}

.btn--gold:hover { color: #23180a; }

.btn--ghost {
    background: var(--glass);
    border-color: var(--stroke);
    color: var(--text);
}

.btn--ghost:hover {
    border-color: var(--stroke-strong);
    background: var(--glass-strong);
    color: var(--text);
}

.btn--sm {
    padding: .45rem .8rem;
    font-size: .82rem;
    border-radius: 10px;
}

/* ------------------------------------------------------------------------ hero */

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(58vh, 540px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--stroke);
}

/* Decorative orbit used when no APOD image is available. */
.hero__orbit {
    position: absolute;
    z-index: -1;
    top: -18%;
    inset-inline-end: -8%;
    width: min(560px, 62vw);
    aspect-ratio: 1;
    opacity: .55;
    pointer-events: none;
}

.hero__orbit::before,
.hero__orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.hero__orbit::before {
    inset: 0;
    border: 1px solid rgba(99, 102, 241, .28);
}

.hero__orbit::after {
    inset: 16%;
    border: 1px dashed rgba(34, 211, 238, .22);
}

.hero__orbit-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 22px 4px rgba(245, 196, 81, .55);
    top: 12%;
    inset-inline-start: 24%;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(1200px 600px at 70% 10%, rgba(99, 102, 241, .45), transparent 60%),
        radial-gradient(800px 500px at 20% 80%, rgba(34, 211, 238, .28), transparent 60%),
        linear-gradient(160deg, #0d1230, #05060d 70%);
}

.hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .78;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(5, 6, 13, .35) 0%, rgba(5, 6, 13, .55) 45%, rgba(5, 6, 13, .96) 100%),
        linear-gradient(90deg, rgba(5, 6, 13, .2) 0%, rgba(5, 6, 13, .85) 75%);
}

.hero__inner {
    padding: 5rem 0 4.2rem;
    max-width: 780px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .85rem;
    border-radius: 999px;
    border: 1px solid rgba(245, 196, 81, .35);
    background: rgba(245, 196, 81, .1);
    color: var(--gold);
    font-size: .78rem;
    letter-spacing: .01em;
    margin-bottom: 1.2rem;
}

.hero h1 {
    margin-bottom: .6rem;
    text-shadow: 0 8px 40px rgba(0, 0, 0, .65);
}

.hero__lead {
    color: var(--text-dim);
    font-size: 1.02rem;
    max-width: 62ch;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.4rem;
    margin: 1.4rem 0 1.9rem;
    color: var(--muted);
    font-size: .85rem;
}

.hero__meta strong { color: var(--text); font-weight: 600; }

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

/* --------------------------------------------------------------------- sections */

.section { padding: 4rem 0; position: relative; }

/* ---------------------------------------------------------- divisions strip */

.divisions {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: .8rem;
    margin-top: -2.6rem;
    position: relative;
    z-index: 5;
}

.division {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    align-items: flex-start;
    padding: 1rem 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(11, 13, 23, .82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.division:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, .4);
    background: rgba(17, 20, 42, .92);
}

.division__icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--cyan-soft);
    color: var(--cyan);
    font-size: 1rem;
}

.division strong { font-size: .9rem; }

.division span { font-size: .74rem; color: var(--muted); line-height: 1.5; }

.section--tight { padding: 2.2rem 0; }

.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.section-head h2 { margin: 0; display: flex; align-items: center; gap: .6rem; }

.section-head h2::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 14px 2px rgba(34, 211, 238, .7);
}

.link-more {
    font-size: .85rem;
    color: var(--cyan);
    white-space: nowrap;
}

.section-sub {
    color: var(--muted);
    font-size: .9rem;
    margin: -.6rem 0 1.6rem;
}

/* ------------------------------------------------------------------------ cards */

.card {
    position: relative;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02));
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 211, 238, .35);
    box-shadow: var(--shadow-glow);
}

.media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(150deg, #141a3a, #0a0d1c);
    overflow: hidden;
}

.media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.card:hover .media img { transform: scale(1.04); }

.media--placeholder::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(2px 2px at 25% 30%, rgba(255, 255, 255, .9), transparent 60%),
        radial-gradient(1.6px 1.6px at 70% 55%, rgba(255, 255, 255, .7), transparent 60%),
        radial-gradient(1.4px 1.4px at 45% 80%, rgba(255, 255, 255, .6), transparent 60%),
        radial-gradient(2.2px 2.2px at 82% 22%, rgba(245, 196, 81, .75), transparent 60%),
        radial-gradient(600px 300px at 50% 120%, rgba(99, 102, 241, .35), transparent 70%);
}

.card__body { padding: 1.1rem 1.2rem 1.3rem; }

.card__title {
    font-size: 1.02rem;
    margin: 0 0 .45rem;
    line-height: 1.55;
}

.card__title a { color: var(--text); }

.card__excerpt {
    color: var(--muted);
    font-size: .85rem;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card__meta {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-top: .9rem;
    font-size: .76rem;
    color: var(--muted);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .18rem .6rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    font-size: .72rem;
    color: var(--text-dim);
}

.chip--cyan { border-color: rgba(34, 211, 238, .35); color: var(--cyan); background: rgba(34, 211, 238, .1); }
.chip--gold { border-color: rgba(245, 196, 81, .35); color: var(--gold); background: rgba(245, 196, 81, .1); }
.chip--mint { border-color: rgba(52, 211, 153, .35); color: var(--mint); background: rgba(52, 211, 153, .1); }
.chip--rose { border-color: rgba(248, 113, 113, .35); color: var(--rose); background: rgba(248, 113, 113, .1); }

/* ------------------------------------------------------------------- news grid */

.news-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.2rem;
}

.news-grid__feature .media { aspect-ratio: 16 / 9; }

.news-grid__feature .card__title { font-size: 1.35rem; }

.news-list {
    display: grid;
    gap: .8rem;
    align-content: start;
}

.news-mini {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: .9rem;
    align-items: center;
    padding: .7rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: background .16s ease, border-color .16s ease;
}

.news-mini:hover {
    background: var(--glass);
    border-color: var(--stroke);
}

.news-mini .media {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
}

.news-mini h3 {
    font-size: .93rem;
    margin: 0 0 .3rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-mini .card__meta { margin-top: .35rem; }

/* --------------------------------------------------------------- generic duo */

.duo {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 1.2rem;
    align-items: stretch;
}

.panel {
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    padding: 1.6rem;
    position: relative;
    overflow: hidden;
}

.panel--glow::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -160px;
    inset-inline-end: -120px;
    background: radial-gradient(circle, rgba(34, 211, 238, .25), transparent 65%);
    pointer-events: none;
}

.sky-tonight__head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.sky-tonight__emoji {
    font-size: 2.6rem;
    line-height: 1;
    filter: drop-shadow(0 0 18px rgba(245, 196, 81, .4));
}

.sky-tonight__label { color: var(--muted); font-size: .78rem; }

.sky-tonight__value { font-size: 1.15rem; font-weight: 700; }

.sky-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .9rem;
    margin-top: 1rem;
}

.sky-fact {
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .22);
    padding: .7rem .85rem;
}

.sky-fact span { display: block; font-size: .72rem; color: var(--muted); }

.sky-fact strong { font-size: .95rem; }

/* --------------------------------------------------------------- dark sky list */

.spot-list { display: grid; gap: .7rem; }

.spot {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: .8rem .9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .18);
    transition: border-color .16s ease, background .16s ease;
}

.spot:hover { border-color: rgba(34, 211, 238, .3); background: rgba(0, 0, 0, .3); }

.bortle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-weight: 800;
    font-size: .82rem;
    flex: 0 0 auto;
    font-variant-numeric: tabular-nums;
}

.bortle--dark { background: rgba(52, 211, 153, .16); color: var(--mint); border: 1px solid rgba(52, 211, 153, .35); }
.bortle--mid { background: rgba(245, 196, 81, .14); color: var(--gold); border: 1px solid rgba(245, 196, 81, .35); }
.bortle--bright { background: rgba(248, 113, 113, .14); color: var(--rose); border: 1px solid rgba(248, 113, 113, .35); }

.spot__body { min-width: 0; flex: 1 1 auto; }
.spot__name { font-weight: 600; font-size: .95rem; }
.spot__meta { color: var(--muted); font-size: .75rem; }

/* --------------------------------------------------------------------- products */

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.product .media { aspect-ratio: 4 / 3; }

.product__body { padding: 1rem 1.05rem 1.15rem; }

.product__name {
    font-size: .95rem;
    font-weight: 600;
    margin: 0 0 .5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.9em;
}

.price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
}

.price__now { font-weight: 800; color: var(--gold); font-size: 1rem; }

.price__was {
    color: var(--muted);
    font-size: .78rem;
    text-decoration: line-through;
}

.stock { font-size: .74rem; color: var(--mint); }
.stock--out { color: var(--rose); }

/* ----------------------------------------------------------------------- camps */

.camp-list { display: grid; gap: 1rem; }

.camp {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .03);
    overflow: hidden;
    transition: border-color .18s ease, transform .18s ease;
}

.camp:hover { border-color: rgba(245, 196, 81, .35); transform: translateY(-2px); }

.camp .media { aspect-ratio: auto; height: 100%; min-height: 130px; }

.camp__body { padding: .9rem 1rem 1rem; }

.camp__name { font-size: 1rem; margin: 0 0 .3rem; }

.camp__summary {
    color: var(--muted);
    font-size: .82rem;
    margin: 0 0 .6rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --------------------------------------------------------------------- CTA band */

.cta-band {
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(245, 196, 81, .28);
    background:
        radial-gradient(700px 260px at 15% 0%, rgba(245, 196, 81, .18), transparent 60%),
        linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(99, 102, 241, .12));
    padding: 2rem 2.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    overflow: hidden;
}

.cta-band h2 { margin: 0 0 .35rem; }

.cta-band p { margin: 0; color: var(--text-dim); font-size: .9rem; }

.countdown {
    display: flex;
    gap: .6rem;
    font-variant-numeric: tabular-nums;
}

.countdown__cell {
    min-width: 62px;
    text-align: center;
    padding: .55rem .4rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
}

.countdown__cell strong { display: block; font-size: 1.25rem; color: var(--gold); }

.countdown__cell span { font-size: .66rem; color: var(--muted); }

/* ----------------------------------------------------------------- empty state */

.empty {
    border: 1px dashed var(--stroke-strong);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    color: var(--muted);
    font-size: .9rem;
    background: rgba(255, 255, 255, .015);
}

/* ---------------------------------------------------------------------- footer */

.site-footer {
    margin-top: 4rem;
    border-top: 1px solid var(--stroke);
    background: rgba(5, 6, 13, .72);
    backdrop-filter: blur(10px);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 2rem;
    padding-bottom: 2.5rem;
}

.footer-brand p {
    color: var(--muted);
    font-size: .85rem;
    margin-top: .9rem;
    max-width: 42ch;
}

.footer-col h3 {
    font-size: .82rem;
    letter-spacing: .04em;
    color: var(--text-dim);
    margin-bottom: .9rem;
    text-transform: uppercase;
}

.footer-col a,
.footer-col p {
    display: block;
    color: var(--muted);
    font-size: .85rem;
    padding: .22rem 0;
}

.footer-col a:hover { color: var(--cyan); }

.footer-note { font-size: .78rem; }

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.1rem 0 1.4rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    color: var(--muted);
    font-size: .78rem;
}

/* ------------------------------------------------------------------- utilities */

.stack    { display: grid; gap: 1rem; }
.muted    { color: var(--muted); }
.center   { text-align: center; }
.mt-2     { margin-top: 2rem; }
.sr-only  { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s ease, transform .5s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* -------------------------------------------------------------------- responsive */

@media (max-width: 1360px) {
    .moon-widget__name { display: none; }
}

@media (max-width: 1320px) {
    .main-nav { display: none; }
    .nav-toggle { display: inline-flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .divisions { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .news-grid { grid-template-columns: 1fr; }
    .duo { grid-template-columns: 1fr; }
    .hero { min-height: 70vh; }
    .hero__inner { padding: 4rem 0 3rem; }
}

@media (max-width: 640px) {
    .container { width: calc(100% - 1.6rem); }
    .moon-widget { display: none; }
    .product-grid { grid-template-columns: 1fr; }
    .news-mini { grid-template-columns: 92px 1fr; }
    .camp { grid-template-columns: 1fr; }
    .camp .media { min-height: 150px; }
    .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 2.8rem 0; }
    .header-actions .btn--primary { display: none; }
    .divisions { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -1.4rem; }
}

/* ------------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal { opacity: 1; transform: none; }
}

/* ============================================================================
   Phase 2 — magazine, comments, camps and time-lapse
   ========================================================================== */

/* --------------------------------------------------------------- page header */

.page-head {
    padding: 2.6rem 0 1.6rem;
    border-bottom: 1px solid var(--stroke);
    background: linear-gradient(180deg, rgba(99, 102, 241, .08), transparent 70%);
}

.page-head h1 { margin: .6rem 0 .4rem; }

.breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    font-size: .78rem;
    color: var(--muted);
}

.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--cyan); }

.breadcrumb--bar {
    border-bottom: 1px solid var(--stroke);
    padding: .9rem 0;
}

.breadcrumb--bar .container { display: flex; gap: .5rem; align-items: center; }

/* ------------------------------------------------------------------- filters */

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.2rem;
}

.news-search {
    display: flex;
    gap: .5rem;
    margin-top: 1.2rem;
    max-width: 420px;
}

.news-search input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .6rem .9rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
}

.news-search input::placeholder { color: var(--muted); }

/* ---------------------------------------------------------------- news layout */

.news-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
    align-items: start;
}

.news-side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }

.panel--flat {
    background: rgba(255, 255, 255, .025);
    border-radius: var(--radius);
    padding: 1.1rem 1.15rem;
}

.side-title {
    font-size: .85rem;
    letter-spacing: .02em;
    color: var(--text-dim);
    margin: 0 0 .8rem;
    padding-bottom: .55rem;
    border-bottom: 1px solid var(--stroke);
}

.side-list li { border-bottom: 1px dashed rgba(255, 255, 255, .06); }
.side-list li:last-child { border-bottom: 0; }

.side-list a {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    padding: .5rem 0;
    font-size: .88rem;
    color: var(--text-dim);
}

.side-list a:hover, .side-list a.is-active { color: var(--cyan); }

.side-count { color: var(--muted); font-size: .74rem; }

.side-sublist {
    padding-inline-start: .9rem;
    border-inline-start: 1px solid var(--stroke);
    margin-bottom: .4rem;
}

.side-sublist a { font-size: .82rem; padding: .35rem 0; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }

.news-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.1rem;
    font-size: .82rem;
}

.sort-links { display: flex; gap: .9rem; }
.sort-links a { color: var(--muted); }
.sort-links a:hover, .sort-links a.is-active { color: var(--cyan); }

.news-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
}

.news-card .media { aspect-ratio: 16 / 9; }
.news-card .card__title { font-size: 1rem; }

.news-card .card__meta { flex-wrap: wrap; }

/* ---------------------------------------------------------------------- pager */

.pager {
    display: flex;
    gap: .4rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.pager__link {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 .8rem;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    color: var(--text-dim);
    font-size: .85rem;
}

.pager__link:hover { border-color: var(--stroke-strong); color: var(--text); }

.pager__link.is-active {
    background: rgba(34, 211, 238, .15);
    border-color: rgba(34, 211, 238, .45);
    color: var(--cyan);
}

/* -------------------------------------------------------------------- article */

.article { padding-bottom: 3rem; }

.article__head { padding-top: 2.4rem; max-width: 820px; }

.article__chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }

.article__head h1 { margin-bottom: .7rem; }

.article__lead {
    font-size: 1.05rem;
    color: var(--text-dim);
    max-width: 70ch;
}

.article__byline {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.2rem;
    font-size: .85rem;
}

.article__byline strong { display: block; font-size: .9rem; }

.avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, .25), rgba(99, 102, 241, .3));
    border: 1px solid var(--stroke-strong);
    font-weight: 700;
}

.avatar--sm { width: 30px; height: 30px; font-size: .8rem; }

.article__cover {
    margin-top: 1.8rem;
    max-width: 1000px;
}

.article__cover img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
}

.article__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 2.2rem;
    margin-top: 2.2rem;
    align-items: start;
}

.article__side { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }

.prose {
    font-size: 1rem;
    line-height: 2;
    color: var(--text-dim);
}

.prose h2, .prose h3 { color: var(--text); margin-top: 2rem; }

.prose p { margin: 0 0 1.15rem; }

.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }

.prose img { border-radius: var(--radius); margin: 1.4rem 0; }

.prose blockquote {
    margin: 1.5rem 0;
    padding: .9rem 1.2rem;
    border-inline-start: 3px solid var(--cyan);
    background: rgba(34, 211, 238, .06);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text);
}

.prose ul, .prose ol { padding-inline-start: 1.4rem; margin: 0 0 1.2rem; list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: .4rem; }

.prose code {
    background: rgba(0, 0, 0, .35);
    padding: .1rem .4rem;
    border-radius: 6px;
    font-size: .9em;
    direction: ltr;
    display: inline-block;
}

.article__gallery, .article__videos, .article__amenities { margin-top: 2rem; }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: .8rem;
}

.gallery-item {
    margin: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .25);
}

.gallery-item img { width: 100%; height: 150px; object-fit: cover; }

.gallery-item figcaption { padding: .5rem .7rem; font-size: .75rem; color: var(--muted); }

.video-frame { margin-bottom: 1.2rem; }

.video-frame iframe,
.video-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    border-radius: var(--radius);
    background: #000;
}

.article__actions {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin: 2rem 0 1.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--stroke);
    flex-wrap: wrap;
}

.article__tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------------------------------------------------------------- like button */

.like-btn {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--glass);
    color: var(--text-dim);
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    transition: transform .15s ease, border-color .15s ease, color .15s ease, background .15s ease;
}

.like-btn:hover { border-color: rgba(248, 113, 113, .5); color: #fff; }

.like-btn__icon { font-size: 1rem; transition: transform .18s ease; }

.like-btn.is-liked {
    border-color: rgba(248, 113, 113, .55);
    background: rgba(248, 113, 113, .14);
    color: #FCA5A5;
}

.like-btn.is-liked .like-btn__icon { transform: scale(1.15); }

/* ------------------------------------------------------------------- comments */

.comments { margin-top: 2.4rem; }

.comment-form {
    display: grid;
    gap: .6rem;
    padding: 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .025);
    margin-bottom: 1.6rem;
}

.comment-form textarea {
    width: 100%;
    resize: vertical;
    min-height: 96px;
    padding: .8rem .9rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    font-size: .92rem;
    line-height: 1.8;
}

.comment-form textarea:focus { border-color: rgba(34, 211, 238, .5); outline: none; }

.comment-form__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.form-status { font-size: .8rem; color: var(--muted); }
.form-status[data-kind="error"] { color: var(--rose); }
.form-status[data-kind="success"] { color: var(--mint); }

.form-hint { font-size: .74rem; color: var(--muted); margin: 0; }
.form-hint--error { color: var(--rose); }

.reply-note {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .78rem;
    color: var(--cyan);
    padding: .35rem .6rem;
    border-radius: 8px;
    background: rgba(34, 211, 238, .08);
}

.link-btn {
    background: none;
    border: 0;
    color: var(--cyan);
    font-family: inherit;
    font-size: .78rem;
    cursor: pointer;
    padding: 0;
}

.comment-login {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px dashed var(--stroke-strong);
    margin-bottom: 1.6rem;
    font-size: .88rem;
    color: var(--text-dim);
}

.comment-list { display: grid; gap: 1rem; list-style: none; }

.comment {
    padding: 1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .02);
}

.comment__head {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
    font-size: .82rem;
    margin-bottom: .5rem;
}

.comment__head time { font-size: .74rem; }

.comment__body { margin: 0; font-size: .9rem; color: var(--text-dim); white-space: pre-line; }

.comment-replies {
    margin-top: .9rem;
    padding-inline-start: 1rem;
    border-inline-start: 2px solid rgba(34, 211, 238, .2);
    display: grid;
    gap: .7rem;
}

.comment--reply { background: rgba(0, 0, 0, .18); }

.related-list { display: grid; gap: .8rem; }

.related-list a { display: block; }

.related-list__title { display: block; font-size: .86rem; line-height: 1.6; color: var(--text-dim); }

.related-list a:hover .related-list__title { color: var(--cyan); }

.related-list__meta { font-size: .72rem; color: var(--muted); }

/* ---------------------------------------------------------------------- camps */

.camp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem;
}

.camp-card .media { aspect-ratio: 16 / 10; }

.badge {
    position: absolute;
    top: .7rem;
    inset-inline-start: .7rem;
    padding: .2rem .6rem;
    border-radius: 999px;
    font-size: .7rem;
    font-weight: 700;
    backdrop-filter: blur(6px);
}

.badge--gold { background: rgba(245, 196, 81, .9); color: #2b1d05; }

.amenities { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .7rem; }

.camp-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1rem;
    padding-top: .8rem;
    border-top: 1px solid var(--stroke);
}

.price__now small { font-weight: 400; font-size: .72rem; }

.booking { display: grid; gap: .6rem; }

.booking__price strong { display: block; font-size: 1.2rem; color: var(--gold); }

.booking__price span { display: block; font-size: .75rem; }

.booking__geo {
    display: flex;
    justify-content: space-between;
    gap: .6rem;
    font-size: .78rem;
    padding-top: .6rem;
    border-top: 1px solid var(--stroke);
}

/* ------------------------------------------------------------------ timelapse */

.timelapse-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.timelapse-card__media { position: relative; aspect-ratio: 16 / 9; display: block; }

.play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(5, 6, 13, .6);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff;
    font-size: 1.1rem;
    backdrop-filter: blur(4px);
    transition: transform .2s ease, background .2s ease;
}

.timelapse-card:hover .play { transform: scale(1.08); background: rgba(34, 211, 238, .35); }

/* ----------------------------------------------------------------------- forms */

.form { display: grid; gap: .5rem; }

.form label { font-size: .82rem; color: var(--text-dim); }

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="number"],
.form input[type="url"],
.form input[type="search"],
.form select,
.form textarea {
    width: 100%;
    padding: .65rem .85rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    font-size: .9rem;
}

.form textarea { min-height: 110px; resize: vertical; line-height: 1.8; }

.form input:focus, .form select:focus, .form textarea:focus {
    outline: none;
    border-color: rgba(34, 211, 238, .5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, .12);
}

.form .checkbox {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    margin: .4rem 0;
}

.form .checkbox input { width: 16px; height: 16px; accent-color: var(--cyan); }

.inline-form { display: inline-flex; margin: 0; }

/* ------------------------------------------------------------------ responsive */

@media (max-width: 1100px) {
    .news-layout { grid-template-columns: 1fr; }
    .news-side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article__layout { grid-template-columns: 1fr; }
    .article__side { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .camp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .news-cards, .timelapse-grid, .camp-grid, .news-side, .article__side { grid-template-columns: 1fr; }
    .article__head { padding-top: 1.6rem; }
    .article__cover img { border-radius: var(--radius); }
    .comment-form__foot { flex-direction: column; align-items: stretch; }
}

/* Narrow screens: the sidebar becomes a wrapping row of cards instead of a stretched pane. */
@media (max-width: 1100px) {
    .news-side {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .news-side .panel--flat {
        flex: 1 1 260px;
        max-width: 380px;
    }
}

/* ============================================================================
   Phase 3 — storefront, cart, checkout and orders
   ========================================================================== */

.cart-badge {
    position: absolute;
    top: -5px;
    inset-inline-end: -5px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: #23180a;
    font-size: .66rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.icon-btn--cart { position: relative; }

/* --------------------------------------------------------------------- shop */

.shop-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
}

.product-card .media { aspect-ratio: 4 / 3; }

.shop-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px solid var(--stroke);
    flex-wrap: wrap;
}

.product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.product-gallery {
    display: grid;
    gap: .7rem;
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: start;
}

.product-gallery__thumbs {
    display: grid;
    gap: .5rem;
}

.product-gallery__thumbs img {
    width: 74px;
    height: 74px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    cursor: pointer;
    transition: border-color .15s ease;
}

.product-gallery__thumbs img:hover { border-color: rgba(34, 211, 238, .5); }

.product-gallery__main {
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    overflow: hidden;
    background: linear-gradient(150deg, #141a3a, #0a0d1c);
    aspect-ratio: 4 / 3;
}

.product-gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.product-info h1 { margin-bottom: .5rem; }

.product-buy {
    margin-top: 1.2rem;
    padding: 1.1rem 1.2rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .03);
    display: grid;
    gap: .8rem;
}

.product-buy__price { font-size: 1.45rem; }

.product-buy__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    flex-wrap: wrap;
}

.qty { display: inline-flex; align-items: center; gap: .45rem; }

.qty input {
    width: 72px;
    padding: .5rem .6rem;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    text-align: center;
}

.product-buy__notes {
    list-style: none;
    display: grid;
    gap: .3rem;
    font-size: .78rem;
    color: var(--muted);
    border-top: 1px solid var(--stroke);
    padding-top: .8rem;
}

.product-buy__notes li::before { content: "✓ "; color: var(--mint); }

.spec-sheet { margin-top: 1.6rem; }

.spec-sheet__group {
    font-size: .82rem;
    color: var(--cyan);
    margin: 1rem 0 .4rem;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: .85rem; }

.spec-table th {
    text-align: start;
    font-weight: 500;
    color: var(--muted);
    width: 40%;
    padding: .5rem .7rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.spec-table td {
    padding: .5rem .7rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    color: var(--text-dim);
}

/* --------------------------------------------------------------------- cart */

.steps {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
    list-style: none;
}

.steps__item {
    flex: 1 1 180px;
    padding: .7rem .9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .02);
    font-size: .8rem;
    color: var(--muted);
}

.steps__item strong { display: block; color: var(--text-dim); font-size: .84rem; }

.steps__item.is-active {
    border-color: rgba(34, 211, 238, .4);
    background: rgba(34, 211, 238, .08);
}

.steps__item.is-active strong { color: var(--cyan); }

.cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.cart-lines { display: grid; gap: .8rem; }

.cart-line {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: .9rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .025);
}

.cart-line--unavailable { opacity: .72; border-color: rgba(248, 113, 113, .3); }

.cart-line__media {
    width: 96px;
    height: 96px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(150deg, #141a3a, #0a0d1c);
    border: 1px solid var(--stroke);
}

.cart-line__media img { width: 100%; height: 100%; object-fit: cover; }

.cart-line__name { font-size: .95rem; margin: 0 0 .3rem; }

.cart-line__meta { display: grid; gap: .2rem; font-size: .78rem; color: var(--muted); }

.cart-line__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: .6rem;
    flex-wrap: wrap;
}

.cart-line__total { font-weight: 700; color: var(--gold); white-space: nowrap; }

.cart-summary { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    font-size: .86rem;
    padding: .4rem 0;
    color: var(--text-dim);
}

.summary-row--discount { color: var(--mint); }

.summary-row--total {
    border-top: 1px solid var(--stroke);
    margin-top: .5rem;
    padding-top: .8rem;
    font-size: .95rem;
    color: var(--text);
}

.summary-row--total strong { color: var(--gold); font-size: 1.05rem; }

.coupon-box { margin-top: .8rem; border-top: 1px solid var(--stroke); padding-top: .8rem; }

.coupon-form { display: flex; gap: .4rem; }

.coupon-form input {
    flex: 1 1 auto;
    min-width: 0;
    padding: .45rem .7rem;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    font-size: .82rem;
}

.coupon-applied {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
}

/* ----------------------------------------------------------------- checkout */

.checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
    gap: 1.4rem;
    align-items: start;
}

.checkout-form .form-card:last-child { margin-bottom: 0; }

.checkout-items {
    list-style: none;
    display: grid;
    gap: .5rem;
    font-size: .82rem;
    color: var(--text-dim);
    margin-bottom: .8rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--stroke);
}

.checkout-items li { display: flex; justify-content: space-between; gap: .8rem; }

.gateway-options { display: grid; gap: .6rem; }

.gateway {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: .2rem .7rem;
    align-items: center;
    padding: .8rem .9rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .2);
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.gateway:hover { border-color: rgba(34, 211, 238, .35); }

.gateway input { accent-color: var(--cyan); width: 16px; height: 16px; }

.gateway__name { font-weight: 600; font-size: .9rem; }

.gateway__hint { grid-column: 2; font-size: .74rem; color: var(--muted); }

/* ----------------------------------------------------------------- timeline */

.timeline { list-style: none; display: grid; gap: .1rem; position: relative; margin: 0; padding-inline-start: 1rem; }

.timeline::before {
    content: "";
    position: absolute;
    inset-block: 6px;
    inset-inline-start: 3px;
    width: 1px;
    background: var(--stroke);
}

.timeline li {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    font-size: .82rem;
    color: var(--muted);
    padding: .35rem 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    inset-inline-start: -1rem;
    top: .75rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--space-500);
    border: 1px solid var(--stroke-strong);
}

.timeline li.is-done { color: var(--text-dim); }

.timeline li.is-done::before {
    background: var(--mint);
    border-color: var(--mint);
    box-shadow: 0 0 10px rgba(52, 211, 153, .6);
}

.timeline small { color: var(--muted); font-size: .72rem; }

/* -------------------------------------------------------------------- toast */

.toast {
    position: fixed;
    inset-inline-start: 50%;
    bottom: 1.6rem;
    transform: translateX(-50%) translateY(12px);
    z-index: 200;
    padding: .7rem 1.1rem;
    border-radius: 12px;
    border: 1px solid var(--stroke-strong);
    background: rgba(10, 13, 26, .96);
    color: var(--text);
    font-size: .85rem;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: none;
}

.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

.toast--error { border-color: rgba(248, 113, 113, .45); color: #FCA5A5; }

/* ------------------------------------------------------------ spec editor */

.spec-editor { display: grid; gap: .4rem; }

.spec-editor__row {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr 1.4fr auto;
    gap: .4rem;
    align-items: center;
}

.spec-editor__row input {
    padding: .45rem .6rem;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    font-size: .82rem;
}

@media (max-width: 1100px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-layout { grid-template-columns: 1fr; }
    .cart-layout, .checkout-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
}

@media (max-width: 640px) {
    .shop-grid { grid-template-columns: 1fr; }
    .cart-line { grid-template-columns: 72px 1fr; }
    .cart-line__total { grid-column: 2; text-align: start; }
    .spec-editor__row { grid-template-columns: 1fr; }
}

/* ============================================================================
   Phase 4 — contests, submissions, APOD archive
   ========================================================================== */

.contest-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.contest-card .media { aspect-ratio: 16 / 9; max-height: 240px; }

.contest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: .6rem;
}

.contest-head h1 { margin: .5rem 0 .4rem; }

.contest-head__actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.contest-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .7rem;
    margin-top: 1.4rem;
}

.winner-list { display: grid; gap: .6rem; margin-top: .8rem; }

.winner {
    display: grid;
    grid-template-columns: 68px 1fr;
    gap: .8rem;
    align-items: center;
    padding: .5rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .22);
}

.winner img { width: 68px; height: 52px; object-fit: cover; border-radius: 8px; }

.winner strong { display: block; font-size: .84rem; color: var(--gold); }

.winner span span { font-size: .78rem; color: var(--muted); }

.submission-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.submission-card .media { aspect-ratio: 4 / 3; max-height: 320px; }

.exif-chips { display: flex; flex-wrap: wrap; gap: .3rem; }

.exif-chips .chip { font-size: .68rem; padding: .12rem .5rem; }

.submission-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: .8rem;
    padding-top: .7rem;
    border-top: 1px solid var(--stroke);
}

.vote-count { font-size: .82rem; color: var(--text-dim); }

/* ------------------------------------------------------------- APOD archive */

.apod-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: linear-gradient(150deg, rgba(34, 211, 238, .08), rgba(99, 102, 241, .12));
    overflow: hidden;
}

.apod-hero__media { min-height: 320px; background: linear-gradient(150deg, #141a3a, #0a0d1c); }

.apod-hero__media img { width: 100%; height: 100%; object-fit: cover; }

.apod-hero__body { padding: 1.4rem 1.6rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }

.apod-hero__body h2 { margin: .7rem 0 .6rem; }

.apod-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
}

.apod-card { margin: 0; }

.apod-card .media { aspect-ratio: 1 / 1; border-radius: var(--radius-sm); border: 1px solid var(--stroke); }

.apod-card figcaption { padding: .5rem .2rem 0; display: grid; gap: .15rem; }

.apod-card figcaption strong { font-size: .8rem; line-height: 1.6; }

.apod-card figcaption span { font-size: .7rem; color: var(--muted); }

/* ------------------------------------------------------------- admin: jury */

.category-row {
    display: grid;
    grid-template-columns: 1.1fr 1.4fr 90px auto;
    gap: .4rem;
    align-items: center;
}

.category-row input {
    padding: .45rem .6rem;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    font-size: .82rem;
}

.jury-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.jury-card {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: .9rem;
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .025);
    padding: .8rem;
}

.jury-card__media img { width: 160px; height: 120px; object-fit: cover; border-radius: 10px; }

.jury-card__body { display: grid; gap: .35rem; align-content: start; }

.jury-stats { display: flex; gap: .35rem; flex-wrap: wrap; }

.jury-form summary { font-size: .78rem; cursor: pointer; }

.score-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .35rem; }

.score-row label { font-size: .72rem; color: var(--muted); display: grid; gap: .2rem; }

.score-row input {
    padding: .35rem .5rem;
    border-radius: 8px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .3);
    color: var(--text);
    font-family: inherit;
    width: 100%;
}

/* ------------------------------------------------------- dark sky map (Phase 5) */

.filter-form { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; margin-top: 1.1rem; }

.filter-form__field { min-width: 160px; }

.filter-form__field--grow { flex: 1 1 260px; min-width: 220px; }

.filter-form select,
.filter-form input {
    width: 100%;
    padding: .55rem .75rem;
    border-radius: 10px;
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .35);
    color: var(--text);
    font-family: inherit;
    font-size: .85rem;
}

.darksky-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }

.darksky-card .media { aspect-ratio: 16 / 10; max-height: 220px; }

.darksky-card__bortle {
    position: absolute;
    top: .7rem;
    inset-inline-start: .7rem;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: .82rem;
    z-index: 2;
}

.darksky-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-top: .9rem; }

.map-panel { padding: 1.1rem; }

.darksky-map {
    position: relative;
    isolation: isolate;
    height: 420px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: #070a16;
    overflow: hidden;
}

.darksky-map--single { height: 340px; }

.leaflet-container { background: #070a16; font-family: inherit; color: var(--text); }

.leaflet-popup-content { direction: rtl; text-align: right; font-family: inherit; font-size: .82rem; line-height: 1.8; }

.leaflet-popup-content-wrapper,
.leaflet-popup-tip { background: #11142A; color: var(--text); }

.leaflet-control-attribution { background: rgba(11, 13, 23, .85) !important; color: var(--muted) !important; font-size: .62rem; }

.leaflet-control-attribution a { color: var(--cyan); }

.darksky-pin {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, .85);
    font-size: .7rem;
    font-weight: 700;
    color: #06121a;
    box-shadow: 0 0 0 6px rgba(34, 211, 238, .12);
}

.darksky-pin--dark { background: var(--mint); }

.darksky-pin--mid { background: var(--gold); }

.darksky-pin--bright { background: var(--rose); }

.darksky-legend { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; margin-top: .85rem; font-size: .73rem; color: var(--text-dim); }

.legend-item { display: inline-flex; align-items: center; gap: .35rem; }

.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }

.legend-dot--dark { background: var(--mint); }

.legend-dot--mid { background: var(--gold); }

.legend-dot--bright { background: var(--rose); }

.accommodation-list { display: grid; gap: .8rem; }

.accommodation {
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr);
    gap: .9rem;
    padding: .7rem;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-sm);
    background: rgba(0, 0, 0, .22);
}

.accommodation__media { border-radius: 10px; overflow: hidden; background: linear-gradient(150deg, #141a3a, #0a0d1c); min-height: 96px; }

.accommodation__media img { width: 100%; height: 100%; object-fit: cover; }

.accommodation__body { min-width: 0; }

.accommodation__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------- alerts */

.alert {
    display: block;
    padding: .8rem 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--stroke);
    background: rgba(0, 0, 0, .25);
    font-size: .86rem;
    margin-bottom: .8rem;
}

.alert--success { border-color: rgba(52, 211, 153, .35); background: rgba(52, 211, 153, .1); color: var(--mint); }

.alert--error { border-color: rgba(248, 113, 113, .35); background: rgba(248, 113, 113, .1); color: #FCA5A5; }

.alert--warning { border-color: rgba(245, 196, 81, .35); background: rgba(245, 196, 81, .1); color: var(--gold); }

.alert a { color: inherit; text-decoration: underline; word-break: break-all; }

@media (max-width: 1100px) {
    .contest-grid { grid-template-columns: 1fr; }
    .submission-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .apod-hero { grid-template-columns: 1fr; }
    .apod-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .contest-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jury-grid { grid-template-columns: 1fr; }
    .darksky-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .submission-grid { grid-template-columns: 1fr; }
    .apod-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jury-card { grid-template-columns: 1fr; }
    .category-row { grid-template-columns: 1fr; }
    .darksky-grid { grid-template-columns: 1fr; }
    .accommodation { grid-template-columns: 1fr; }
    .darksky-map { height: 320px; }
    .darksky-map--single { height: 280px; }
}

/* ------------------------------------------------ very narrow phones (<= 480px) */
/* 360 px is the acceptance floor: header, hero, cards and forms must fit without
   horizontal scrolling or clipped content. */
@media (max-width: 480px) {
    .container { width: calc(100% - 1.4rem); }
    .site-header__inner { gap: .5rem; }
    .brand { gap: .45rem; }
    .brand__mark { width: 34px; height: 34px; }
    .brand__text strong { font-size: .98rem; }
    .brand__text small { display: none; }
    .header-actions { gap: .3rem; }
    .header-actions .icon-btn { width: 36px; height: 36px; border-radius: 10px; }
    .header-actions .btn { padding: .45rem .6rem; font-size: .78rem; }
    .hero { min-height: 0; }
    .hero__inner { padding: 3rem 0 2.4rem; }
    .hero h1 { font-size: clamp(1.55rem, 7.4vw, 2.1rem); }
    .hero__lead { font-size: .94rem; -webkit-line-clamp: 4; }
    .hero__meta { gap: .7rem 1rem; font-size: .8rem; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .section { padding: 2.4rem 0; }
    .section-head { flex-direction: column; align-items: flex-start; gap: .6rem; }
    .divisions { grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: -1rem; }
    .panel, .form-card, .panel-block__body { padding: 1rem; }
    .prose, .article__body, .panel-block, .form-card, .checkout-summary { overflow-wrap: anywhere; }
    .footer-bottom { flex-direction: column; align-items: center; gap: .35rem; text-align: center; }
    .btn { min-height: 42px; }
    .pager { flex-wrap: wrap; }
    .search-bar, .filter-form { flex-direction: column; align-items: stretch; }
    .filter-form__field, .filter-form__field--grow { flex: 0 0 auto; min-width: 0; width: 100%; }
}

/* Long Persian page titles need a smaller floor than the desktop clamp. */
@media (max-width: 480px) {
    .page-head { padding: 1.9rem 0 1.2rem; }
    .page-head h1,
    .article__head h1 { font-size: clamp(1.45rem, 6.6vw, 1.95rem); }
}

/* Camp directory: the only call to action is the camp's own website. */
.camp-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.1rem; }

/* ================================================================ mobile nav overlay */
/* Full-height sheet over a blurred backdrop. The panel is only mounted for the
   viewport widths where the hamburger is visible; JS handles focus and scroll lock. */
body.nav-open { overflow: hidden; }

.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: flex;
    justify-content: flex-start;
    opacity: 0;
    pointer-events: none;
    transition: opacity .28s ease;
}

.nav-overlay.is-open { opacity: 1; pointer-events: auto; }

.nav-overlay__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(3, 5, 12, .72);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
}

.nav-overlay__panel {
    position: relative;
    z-index: 1;
    width: min(88vw, 420px);
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background:
        radial-gradient(120% 60% at 100% 0%, rgba(34, 211, 238, .13), transparent 55%),
        radial-gradient(100% 60% at 0% 100%, rgba(99, 102, 241, .17), transparent 62%),
        linear-gradient(165deg, #0D1022 0%, #070912 100%);
    border-inline-start: 1px solid var(--stroke);
    box-shadow: -32px 0 80px rgba(0, 0, 0, .65);
    transform: translateX(100%);
    transition: transform .34s cubic-bezier(.22, .8, .2, 1);
}

.nav-overlay.is-open .nav-overlay__panel { transform: translateX(0); }

.nav-overlay__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--stroke);
    background: rgba(8, 10, 20, .35);
}

.nav-overlay__brand {
    display: flex;
    align-items: center;
    gap: .65rem;
    min-width: 0;
    color: var(--text);
}

.nav-overlay__logo {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(34, 211, 238, .2), rgba(245, 196, 81, .18));
    color: var(--gold);
    font-size: 1.05rem;
}

.nav-overlay__brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.nav-overlay__brand-text strong { font-size: 1rem; }
.nav-overlay__brand-text small { color: var(--muted); font-size: .68rem; }

.nav-overlay__close { flex: 0 0 auto; }
.nav-overlay__close svg { transition: transform .2s ease; }
.nav-overlay__close:hover svg { transform: rotate(90deg); }

.nav-overlay__body {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 1rem 1.1rem 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .18) transparent;
}

.nav-overlay__body::-webkit-scrollbar { width: 6px; }
.nav-overlay__body::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(255, 255, 255, .18);
}

.nav-overlay__eyebrow {
    display: inline-block;
    margin: 0 .25rem .55rem;
    color: var(--muted);
    font-size: .68rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-overlay__list { display: grid; gap: .3rem; }

.nav-overlay__link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .65rem .6rem;
    border-radius: 14px;
    border: 1px solid transparent;
    color: var(--text-dim);
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}

.nav-overlay__link:hover,
.nav-overlay__link:focus-visible {
    background: rgba(255, 255, 255, .055);
    border-color: var(--stroke);
    transform: translateX(-3px);
}

.nav-overlay__link:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

.nav-overlay__icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: linear-gradient(135deg, rgba(34, 211, 238, .12), rgba(99, 102, 241, .12));
    color: var(--cyan);
}

.nav-overlay__icon svg,
.nav-overlay__quick svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-overlay__text { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.nav-overlay__text strong { color: var(--text); font-size: .93rem; font-weight: 600; }
.nav-overlay__text small { color: var(--muted); font-size: .71rem; }

.nav-overlay__chevron {
    margin-inline-start: auto;
    color: rgba(255, 255, 255, .38);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform .18s ease, color .18s ease;
}

.nav-overlay__link:hover .nav-overlay__chevron { color: var(--cyan); transform: translateX(-3px); }

.nav-overlay__quick {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .55rem;
    margin: 1rem 0 .2rem;
}

.nav-overlay__quick a {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .65rem .7rem;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: rgba(255, 255, 255, .03);
    color: var(--text-dim);
    font-size: .78rem;
    transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.nav-overlay__quick a:hover {
    border-color: var(--stroke-strong);
    background: rgba(255, 255, 255, .06);
    color: var(--text);
}

.nav-overlay__quick svg { width: 17px; height: 17px; }

.nav-overlay__auth { display: flex; gap: .55rem; margin-top: 1rem; }
.nav-overlay__auth .btn { flex: 1; justify-content: center; }

.nav-overlay__account {
    display: grid;
    gap: .45rem;
    margin-top: 1rem;
    padding: .9rem;
    border: 1px solid var(--stroke);
    border-radius: 14px;
    background: rgba(255, 255, 255, .035);
}

.nav-overlay__account strong { font-size: .9rem; }

.nav-overlay__account-link {
    padding: .35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    color: var(--text-dim);
    font-size: .85rem;
}

.nav-overlay__account-link:hover { color: var(--cyan); }
.nav-overlay__logout { margin-top: .35rem; }
.nav-overlay__logout .btn { width: 100%; }

.nav-overlay__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .6rem;
    padding: .85rem 1.1rem calc(.9rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--stroke);
    background: rgba(5, 6, 13, .5);
    color: var(--muted);
    font-size: .68rem;
}

.nav-overlay__foot a { color: var(--text-dim); }
.nav-overlay__foot a:hover { color: var(--cyan); }

@media (max-width: 480px) {
    .nav-overlay__panel { width: 100%; border-inline-start: 0; }
    .nav-overlay__head { padding: .9rem 1rem; }
    .nav-overlay__body { padding: .8rem .9rem 1rem; }
    .nav-overlay__link { padding: .6rem .5rem; }
    .nav-overlay__icon { flex-basis: 38px; width: 38px; height: 38px; }
}

.nav-overlay__link.is-active {
    background: rgba(34, 211, 238, .08);
    border-color: rgba(34, 211, 238, .28);
}

.nav-overlay__link.is-active .nav-overlay__icon {
    color: var(--gold);
    border-color: rgba(245, 196, 81, .35);
    background: rgba(245, 196, 81, .1);
}

.nav-overlay__link.is-active .nav-overlay__chevron { color: var(--cyan); }

@media (min-width: 1321px) {
    .nav-overlay { display: none; }
}

/* ================================================================== robocam */
/* RoboCam is a division introduction, not a video gallery: hardware, software,
   large projects and a custom-order service all live on one editorial page. */
.robocam-hero {
    padding: 3rem 0 2.6rem;
    background:
        radial-gradient(70% 90% at 85% 0%, rgba(34, 211, 238, .14), transparent 60%),
        radial-gradient(60% 80% at 10% 100%, rgba(245, 196, 81, .08), transparent 65%),
        linear-gradient(180deg, rgba(99, 102, 241, .07), transparent 75%);
}

.robocam-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 3rem;
    align-items: center;
}

.robocam-hero__text { min-width: 0; }
.robocam-hero h1 { margin: .7rem 0 .8rem; }

.robocam-hero__lead {
    max-width: 60ch;
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.95;
}

.robocam-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.4rem;
}

.robocam-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: 1.3rem;
}

.robocam-badges span {
    padding: .35rem .7rem;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: rgba(255, 255, 255, .03);
    color: var(--muted);
    font-size: .74rem;
}

.robocam-hero__cover {
    position: relative;
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    background: linear-gradient(145deg, rgba(34, 211, 238, .12), rgba(99, 102, 241, .12));
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4 / 3;
}

.robocam-hero__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.robocam-intro { padding-bottom: 2rem; }

.robocam-intro__body {
    max-width: 78ch;
    margin-inline: auto;
    font-size: 1.02rem;
}

.robocam-services-section { padding-top: 2.2rem; }

.robocam-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.robocam-service {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    padding: 1.35rem;
    min-height: 210px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background:
        linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015)),
        rgba(8, 10, 20, .55);
    color: var(--text-dim);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.robocam-service:hover,
.robocam-service:focus-visible {
    transform: translateY(-4px);
    border-color: rgba(34, 211, 238, .35);
    box-shadow: var(--shadow-glow);
    outline: none;
}

.robocam-service strong {
    color: var(--text);
    font-size: 1.02rem;
}

.robocam-service > span:not(.robocam-service__number):not(.robocam-service__more) {
    font-size: .84rem;
    line-height: 1.9;
}

.robocam-service__number {
    color: var(--cyan);
    font-family: "Space Grotesk", var(--font-body);
    font-size: .78rem;
    letter-spacing: .16em;
}

.robocam-service__more {
    margin-top: auto;
    color: var(--cyan);
    font-size: .76rem;
}

.robocam-section { padding-top: 3rem; }

.robocam-split {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 3rem;
    align-items: center;
}

.robocam-split--text { grid-template-columns: minmax(0, 1fr); }
.robocam-split--text .robocam-split__text { max-width: 82ch; margin-inline: auto; }

.robocam-split--reverse .robocam-split__text { order: 2; }
.robocam-split--reverse .robocam-split__media { order: 1; }

.robocam-split__text h2 { margin: .55rem 0 .7rem; }

.robocam-split__lead {
    color: var(--text-dim);
    font-size: .96rem;
    line-height: 1.9;
    margin-bottom: 1.2rem;
}

.robocam-split__media {
    margin: 0;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    overflow: hidden;
    background: rgba(255, 255, 255, .03);
    aspect-ratio: 4 / 3;
}

.robocam-split__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.robocam-projects__body { max-width: 82ch; }

.robocam-gallery { margin-top: 1.6rem; }

.robocam-video-section { padding-top: 2.4rem; }

.robocam-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    border: 1px solid var(--stroke);
    overflow: hidden;
    background: #05060D;
    box-shadow: var(--shadow-soft);
}

.robocam-video iframe,
.robocam-video video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    object-fit: cover;
}

.robocam-cta {
    padding: clamp(1.4rem, 3vw, 2.4rem);
    background:
        radial-gradient(60% 90% at 100% 0%, rgba(245, 196, 81, .13), transparent 60%),
        radial-gradient(60% 90% at 0% 100%, rgba(34, 211, 238, .12), transparent 65%),
        rgba(11, 13, 23, .8);
}

.robocam-cta h2 { margin: .8rem 0 .6rem; }

.robocam-cta__lead {
    color: var(--text-dim);
    max-width: 75ch;
    line-height: 1.9;
}

.robocam-cta .prose { max-width: 78ch; }

@media (max-width: 1100px) {
    .robocam-hero__grid,
    .robocam-split { grid-template-columns: 1fr; gap: 2rem; }

    .robocam-split--reverse .robocam-split__text,
    .robocam-split--reverse .robocam-split__media { order: initial; }

    .robocam-services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
    .robocam-services { grid-template-columns: 1fr; }
    .robocam-service { min-height: 0; }
    .robocam-hero { padding: 2.2rem 0 2rem; }
    .robocam-hero__cover { aspect-ratio: 16 / 10; }
}

@media (max-width: 480px) {
    .robocam-actions { flex-direction: column; align-items: stretch; }
    .robocam-actions .btn { width: 100%; }
    .robocam-badges span { font-size: .7rem; }
}

.robocam-hero__visual {
    position: relative;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background:
        radial-gradient(60% 60% at 50% 45%, rgba(34, 211, 238, .13), transparent 70%),
        linear-gradient(145deg, rgba(99, 102, 241, .12), rgba(8, 10, 20, .6));
    box-shadow: var(--shadow-soft);
}

.robocam-orbit {
    position: absolute;
    border: 1px solid rgba(34, 211, 238, .18);
    border-radius: 50%;
}

.robocam-orbit--one { width: 76%; aspect-ratio: 1; }
.robocam-orbit--two { width: 50%; aspect-ratio: 1; border-color: rgba(245, 196, 81, .2); }

.robocam-visual__camera {
    position: relative;
    z-index: 1;
    width: 92px;
    height: 92px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    border: 1px solid rgba(34, 211, 238, .3);
    background: rgba(34, 211, 238, .1);
    color: var(--cyan);
    box-shadow: 0 0 70px rgba(34, 211, 238, .2);
}

.robocam-visual__camera svg {
    width: 46px;
    height: 46px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.robocam-visual__label {
    position: absolute;
    bottom: 1.55rem;
    color: var(--text-dim);
    font-family: "Space Grotesk", var(--font-body);
    font-size: .78rem;
    letter-spacing: .34em;
}

.robocam-visual__caption {
    position: absolute;
    bottom: 1.1rem;
    color: var(--muted);
    font-size: .58rem;
    letter-spacing: .2em;
    text-transform: uppercase;
}

@media (max-width: 760px) {
    .robocam-hero__visual { aspect-ratio: 16 / 10; }
}

.robocam-video-placeholder {
    display: grid;
    justify-items: center;
    gap: .9rem;
    padding: clamp(2rem, 5vw, 3.5rem) 1.4rem;
    text-align: center;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(50% 80% at 50% 0%, rgba(34, 211, 238, .1), transparent 65%),
        rgba(8, 10, 20, .65);
}

.robocam-video-placeholder h2 { margin: 0; }
.robocam-video-placeholder p { max-width: 62ch; margin: 0; color: var(--text-dim); line-height: 1.9; }

.robocam-video-placeholder__play {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(245, 196, 81, .45);
    background: rgba(245, 196, 81, .12);
    color: var(--gold);
    font-size: 1.4rem;
    padding-inline-start: .25rem;
    box-shadow: 0 0 45px rgba(245, 196, 81, .18);
}
