
@font-face {
    font-family: "Calypso";
    src: url("../fonts/Calypso-NStKFn-.ttf") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "Unifix SP";
    src: url("../fonts/UnifixSP2-eFsxy2L.otf") format("opentype");
    font-display: swap;
}

.div-wrapper,
#app {
    width: 100%;
}

.hero {
    position: relative;
    min-height: 100vh; /* Fallback for browsers that do not support dvh */
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    /*padding: clamp(32px, 5vw, 72px) clamp(28px, 8vw, 96px) clamp(140px, 14vw, 200px);*/
    color: var(--brand-200);
    text-shadow: 0 0 12px rgba(0, 0, 0, 0.45);
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
}

#app.has-intro .hero__header,
#app.has-intro .hero__clock {
    opacity: 0;
    transform: translate3d(0, -52px, 0);
    pointer-events: none;
    transition-property: opacity, transform;
    transition-duration: 0.95s;
    transition-timing-function: cubic-bezier(0.19, 1, 0.22, 1);
    will-change: transform, opacity;
}

#app.has-intro .hero__header {
    transition-delay: 0.05s;
}

#app.has-intro .hero__clock {
    transition-delay: 0.18s;
}

#app.has-intro .hero__canvas {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1.05s ease 0.32s;
}

#app.has-intro.is-intro-complete .hero__header,
#app.has-intro.is-intro-complete .hero__clock {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

#app.has-intro.is-intro-complete .hero__canvas {
    opacity: 1;
    pointer-events: auto;
}

.hero__header
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 4vw, 64px);
    font-family: "Unifix SP", Helvetica, Arial, sans-serif;
    letter-spacing: 0.12em;
    margin: 0 auto 30px;
    width: 100%;
    padding-top: 30px;
    padding-left: 30px;
    padding-right: 30px;
}

.hero__orb-block {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    --slot-x: 0;
    --slot-y: -0.5;
    transform: translate(-50%, -50%) translate(calc(var(--slot-x) * var(--orb-size)), calc(var(--slot-y) * var(--orb-size)));
    z-index: 10;
}
.hero__clock
{
    justify-content: space-between;
    align-content: space-around;
    flex-direction: column;
    flex-wrap: nowrap;
    display: flex;
    align-items: center;
    gap: clamp(24px, 4vw, 64px);
    font-family: "Unifix SP", Helvetica, Arial, sans-serif;
    letter-spacing: 0.12em;
    margin: 0 auto;
    width: 100%;
}
.hero__brand {
    display: inline-flex;
    align-items: center;
    font-size: clamp(16px, 1.8vw, 20px);
    font-family: "Calypso", "Unifix SP", sans-serif;
}

.hero__brand-name {
    letter-spacing: 0.24em;
    text-transform: lowercase;
    font-family: "Unifix SP", Helvetica, Arial, sans-serif;
}

.hero__logo-mark {
    width: clamp(30px, 3.2vw, 44px);
    height: auto;
    filter: drop-shadow(0 0 12px rgba(192, 233, 255, 0.35));
}

.hero__meta {
    display: inline-flex;
    align-items: center;
    gap: clamp(18px, 3.6vw, 30px);
    font-size: clamp(18px, 3.6vw, 28px);
    text-transform: uppercase;
}

.hero__date {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    line-height: 1;
    flex-wrap: wrap;
    justify-content: center;
    height: clamp(44px, 5.5vw, 68px);
    min-width: 5ch;
}

.hero__date-day {
    font-size: clamp(44px, 5.5vw, 64px);
    line-height: 0.9;
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
}

.hero__date-month{
    font-size: clamp(12px, 1.2vw, 24px);
    letter-spacing: 0.36em;
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
    min-width: 4ch;
    text-align: center;
}

.hero__date-year {
    font-size: clamp(12px, 1.2vw, 20px);
    letter-spacing: 0.36em;
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
}

.hero__meta-divider {
    width: clamp(38px, 4.4vw, 68px);
    height: auto;
    scale: 2;
}

.hero__time {
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.28em;
    font-size: clamp(20px, 2.6vw, 36px);
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
    min-width: 230px;
    font-feature-settings: "tnum";
    text-align: center;
}

.hero__menu {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(28px, 2.8vw, 42px);
    height: clamp(28px, 2.8vw, 42px);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.hero__menu img {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.45));
}

.hero__canvas {
    position: relative;
    flex: 1;
    display: grid;
    place-items: center;
    width: 100%;
    max-width: none;
    margin: clamp(40px, 8vw, 200px) auto 0;
    touch-action: pan-y;
    --orb-size: clamp(16rem, 26vw, 28rem);
    --wheel-size: clamp(26rem, 52vw, 56rem);
    --wheel-radius: calc(var(--wheel-size) * 0.44);
    --constellation-size: clamp(8rem, calc(var(--orb-size) * 0.62), 18rem);
    align-content: space-between;
}



.hero__orb {
    position: relative;
    z-index: 3;
    width: var(--orb-size);
    height: var(--orb-size);
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    cursor: grab;
    touch-action: none;
    box-shadow: 0 32px 76px rgba(6, 16, 34, 0.45);
    isolation: isolate;
    overflow: visible;
}


.hero__orb.is-dragging {
    cursor: grabbing;
}

.hero__orb-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    border-radius: 50%;
    z-index: 1;
    filter: drop-shadow(0 0 18px rgba(72, 126, 255, 0.18));
}

.hero__orb-shell {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: screen;
}

/*.hero__orb-shell::before {
    content: "";
    position: absolute;
    inset: -1.5%;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.15),
        rgba(255, 255, 255, 0) 28%,
        rgba(255, 255, 255, 0.12) 52%,
        rgba(255, 255, 255, 0) 76%,
        rgba(255, 255, 255, 0.18)
    );
    filter: blur(6px) saturate(120%);
    opacity: 0.75;
}*/

/*.hero__orb-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: radial-gradient(120% 90% at 30% 20%, rgba(255, 255, 255, 0.36) 0%, rgba(255, 255, 255, 0) 46%);
    filter: blur(1.6px);
    opacity: 0.75;
}*/

.hero__orb-inner {
    position: absolute;
    inset: 13%;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.hero__orb-inner.is-animating {
    animation: orbFlash 1s ease-out;
}

.hero__orb-inner img {
    width: 118%;
    max-width: none;
    height: auto;
    transform: scale(1.08);
    filter: saturate(1.2);
    transition: opacity 0.3s ease;
}

.hero__orb:not(.hero__orb--fallback) .hero__orb-inner img {
    opacity: 0;
    visibility: hidden;
}

.hero__orb--fallback .hero__orb-canvas,
.hero__orb--fallback .hero__orb-shell {
    display: none;
}

.hero__orb--fallback .hero__orb-inner img {
    opacity: 1;
    visibility: visible;
}

.hero__orb--fallback.hero__orb--text-active .hero__orb-inner img {
    opacity: 0;
    visibility: hidden;
}

.hero__orb--text-active .hero__orb-inner {
    opacity: 0;
}

.hero__orb--text-active .hero__orb-inner img {
    opacity: 0;
    visibility: hidden;
}

.hero__orb-caption {
    position: absolute;
    top: 17%;
    width: 100%;
    text-align: center;
    z-index: 4;
    font-family: "Calypso", "Unifix SP", Helvetica, Arial, sans-serif;
    font-size: clamp(1.15rem, 2.2vw, 28px);
    letter-spacing: 0.16em;
    pointer-events: none;
    text-shadow: 0 4px 16px rgba(10, 16, 28, 0.4);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero__orb--text-active .hero__orb-caption {
    opacity: 0;
    transform: translateY(-0.35rem);
    visibility: hidden;
}

.hero__orb-controls {
    width: min(100%, 28rem);
    display: grid;
    gap: clamp(1rem, 2.6vw, 1.75rem);
    padding: clamp(1rem, 2.8vw, 1.8rem);
    border-radius: 20px;
    background: rgba(9, 14, 26, 0.55);
    border: 1px solid rgba(118, 163, 255, 0.18);
    backdrop-filter: blur(14px);
    color: #eaf2ff;
    font-size: 0.95rem;
    box-shadow: 0 32px 60px rgba(6, 10, 24, 0.32);

    position: absolute;
    left: 0;
    top: 0;
    z-index: 1000;
}

.hero__orb-controls-group {
    display: grid;
    gap: clamp(0.75rem, 2vw, 1.2rem);
}

.hero__orb-controls-field {
    display: grid;
    gap: 0.4rem;
}

.hero__orb-controls-field > span {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(220, 228, 255, 0.72);
}

.hero__orb-controls textarea {
    width: 100%;
    min-height: 6.5rem;
    resize: vertical;
    padding: 0.65rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(126, 162, 255, 0.2);
    background: rgba(4, 8, 18, 0.6);
    color: #fff;
    font: inherit;
    line-height: 1.4;
}

.hero__orb-controls textarea::placeholder {
    color: rgba(220, 228, 255, 0.4);
}

.hero__orb-controls select {
    width: 100%;
    padding: 0.35rem 0.6rem;
    border-radius: 10px;
    border: 1px solid rgba(126, 162, 255, 0.2);
    background: rgba(4, 8, 18, 0.55);
    color: #fff;
    font: inherit;
}

.hero__orb-controls input[type="range"] {
    width: 100%;
    accent-color: #7ca9ff;
}

.hero__orb-controls-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
}

.hero__orb-controls-field--compact {
    min-width: 10rem;
    flex: 1 1 auto;
}

.hero__orb-controls-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    cursor: pointer;
}

.hero__orb-controls-checkbox input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: #7ca9ff;
}

.hero__orb-controls-button {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(130, 170, 255, 0.4);
    background: linear-gradient(135deg, rgba(128, 178, 255, 0.45), rgba(68, 108, 194, 0.3));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__orb-controls-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(90, 140, 255, 0.35);
}

.hero__orb-controls-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero__orb-controls-field--dual .hero__orb-controls-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.hero__orb-controls input[type="range"]::-webkit-slider-thumb {
    cursor: pointer;
}

.hero__orb-controls input[type="range"]::-moz-range-thumb {
    cursor: pointer;
}

.hero__orb-controls [hidden] {
    display: none !important;
}

@media (max-width: 900px) {
    .hero__orb-controls-grid {
        grid-template-columns: 1fr;
    }
}

.hero__constellation {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.5rem, 1.2vw, 1rem);
    --slot-base-x: 0;
    --slot-base-y: 0;
    --slot-x: var(--slot-base-x);
    --slot-y: var(--slot-base-y);
    transform: translate(-50%, -50%)
        translate(calc(var(--slot-x) * var(--orb-size)), calc(var(--slot-y) * var(--orb-size)));
    text-transform: capitalize;
    letter-spacing: 0.16em;
    font-size: clamp(0.75rem, 1.4vw, 1.15rem);
    pointer-events: none;
    z-index: 1;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.hero__constellation img {
    width: min(var(--constellation-size), 22vw);
    height: auto;
    /*filter: drop-shadow(0 0 20px rgba(122, 196, 255, 0.45));
    background-size: cover;*/
    background-image: url("../images/background_icon_zodiac-Jn_uqqE.png");
    background-repeat: no-repeat;
    background-position: center;
}

.hero__constellation span {
    text-shadow: 0 0 16px rgba(0, 0, 0, 0.75);
    font-size: 24px;
    position: absolute;
    top: -25px;
}

.hero__constellation[data-slot="farPrev"] {
    --slot-base-x: -2.55;
    --slot-base-y: 1.66;
}

.hero__constellation[data-slot="prev2"] {
    --slot-base-x: -1.85;
    --slot-base-y: 0.28;
}

.hero__constellation[data-slot="prev1"] {
    --slot-base-x: -0.9;
    --slot-base-y: -0.18;
}

.hero__constellation[data-slot="active"] {
    --slot-base-x: 0;
    --slot-base-y: -0.42;
}

.hero__constellation[data-slot="next1"] {
    --slot-base-x: 0.9;
    --slot-base-y: -0.18;
}

.hero__constellation[data-slot="next2"] {
    --slot-base-x: 1.85;
    --slot-base-y: 0.28;
}

.hero__constellation[data-slot="prev2"],
.hero__constellation[data-slot="prev1"],
.hero__constellation[data-slot="next1"],
.hero__constellation[data-slot="next2"] {
    pointer-events: auto;
    cursor: pointer;
}

.hero__constellation[data-slot="farNext"] {
    --slot-base-x: 2.55;
    --slot-base-y: 1.66;
}

.hero__wheel {
    position: absolute;
    bottom: -7%;
    left: 50%;
    transform: translate(-50%, 50%);
    width: min(var(--wheel-size), 90vw);
    pointer-events: auto;
    --wheel-rotation: 0deg;
}

.hero__wheel-shadow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 0 42px rgba(18, 28, 54, 0.85));
    z-index: 0;
}

.hero__wheel-surface {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 0 36px rgba(18, 28, 54, 0.85));
    z-index: 1;
    transform-origin: 50% 50%;
    transform: rotate(var(--wheel-rotation));
    transition: transform 0.8s cubic-bezier(0.26, 0.72, 0.37, 1);
}

.hero__wheel-surface > * {
    position: absolute;
    inset: 0;
}

.hero__wheel-sector {
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
    opacity: 0.45;
    color: var(--brand-200);
}

.hero__wheel-sector path {
    fill: var(--brand-200);
    transition: fill 0.3s ease;
}

.hero__wheel-sector-overlay {
    fill: transparent;
    pointer-events: fill;
    stroke: none;
}

.hero__wheel-sector.is-active {
    opacity: 0.85;
    filter: drop-shadow(0 0 34px rgba(192, 233, 255, 0.35));
}

.hero__wheel-sector:is(:hover, :focus-visible) {
    opacity: 0.75;
    filter: drop-shadow(0 0 42px rgba(192, 233, 255, 0.4));
}

.hero__wheel-sector:focus {
    outline: none;
}

.hero__wheel-sector:focus-visible {
    outline: none;
}

.hero__wheel-surface svg {
    display: block;
    width: 100%;
    height: 100%;
}

.hero__wheel-overlay {
    pointer-events: none;
    z-index: 2;
}

.hero__wheel-nav {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.hero__wheel-nav li {
    position: absolute;
    inset: 0;
}

.hero__wheel-button {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(2.5rem, 4vw, 3.5rem);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(192, 233, 255, 0.35);
    background: rgba(6, 20, 38, 0.55);
    display: grid;
    place-items: center;
    pointer-events: auto;
    cursor: pointer;
    transform: rotate(calc(var(--angle) + var(--wheel-rotation))) translateY(calc(-1 * var(--wheel-radius))) rotate(calc(-1 * (var(--angle) + var(--wheel-rotation))));
    transition: transform 0.4s ease, box-shadow 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.hero__wheel-button img {
    width: 65%;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(192, 233, 255, 0.6));
}

.hero__wheel-button.is-active {
    border-color: rgba(192, 233, 255, 0.85);
    box-shadow: 0 0 20px rgba(96, 157, 221, 0.65);
    background: rgba(31, 77, 124, 0.8);
}

.hero__wheel-button:is(:hover, :focus-visible) {
    border-color: rgba(192, 233, 255, 0.75);
    box-shadow: 0 0 20px rgba(116, 183, 255, 0.55);
}

@keyframes orbFlash {
    0% { transform: scale(0.96); filter: drop-shadow(0 0 12px rgba(131, 194, 255, 0.3)); }
    45% { transform: scale(1.03); filter: drop-shadow(0 0 60px rgba(192, 233, 255, 0.6)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 28px rgba(131, 194, 255, 0.4)); }
}

/* ==========================================================================
   RESPONSIVE STYLES - Based on design templates from assets/images/mob_design
   
   Breakpoints based on actual design files:
   - 1920×1080: Base desktop (defined in .hero__canvas)
   - 1680×1050: Large desktop
   - 1536×864: Medium desktop  
   - 1440×900: Small desktop
   - 1366×768: Compact desktop
   - 1280×720: Minimum desktop
   - 1024×768: Tablet landscape
   - 768×1024, 768×1366: Tablet portrait (VERTICAL LAYOUT)
   - 640×960: Large phone
   - 480×800: Medium phone
   - 320×480: Small phone
   ========================================================================== */

/* --------------------------------------------------------------------------
   DESKTOP 1680×1050
   -------------------------------------------------------------------------- */
@media (max-width: 1680px) {
    .hero__header {
        padding: 25px;
        margin-bottom: 25px;
    }

    .hero__canvas {
        --orb-size: clamp(14rem, 24vw, 24rem);
        --wheel-size: clamp(28rem, 48vw, 50rem);
        --constellation-size: clamp(7rem, calc(var(--orb-size) * 0.58), 14rem);
        margin-top: clamp(20px, 4vw, 60px);
    }

    .hero__constellation span {
        font-size: 22px;
    }

    .hero__wheel {
        bottom: -6%;
    }

    .logo .group {
        width: 85px;
        height: 88px;
    }

    .logo .text-wrapper {
        font-size: 42px;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP 1536×864
   -------------------------------------------------------------------------- */
@media (max-width: 1536px) {
    .hero__header {
        padding: 22px;
        margin-bottom: 20px;
        gap: clamp(16px, 3vw, 40px);
    }

    .hero__canvas {
        --orb-size: clamp(12rem, 24vw, 22rem);
        --wheel-size: clamp(24rem, 46vw, 44rem);
        --constellation-size: clamp(6rem, calc(var(--orb-size) * 0.55), 12rem);
        margin-top: clamp(15px, 3vw, 40px);
    }

    .hero__meta {
        gap: clamp(14px, 2.5vw, 24px);
    }

    .hero__date-day {
        font-size: clamp(38px, 5vw, 54px);
    }

    .hero__time {
        font-size: clamp(18px, 2.4vw, 28px);
        min-width: 180px;
    }

    .hero__constellation span {
        font-size: 20px;
        top: -22px;
    }

    .hero__wheel {
        bottom: -7%;
    }

    .hero__wheel-button {
        width: clamp(2.4rem, 3.2vw, 3.2rem);
    }

    .logo .group {
        width: 75px;
        height: 77px;
    }

    .logo .text-wrapper {
        font-size: 38px;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP 1440×900
   -------------------------------------------------------------------------- */
@media (max-width: 1440px) {
    .hero__header {
        padding: 20px;
        margin-bottom: 18px;
        gap: clamp(14px, 2.5vw, 32px);
    }

    .hero__canvas {
        --orb-size: clamp(11rem, 22vw, 18rem);
        --wheel-size: clamp(22rem, 42vw, 38rem);
        --constellation-size: clamp(5.5rem, calc(var(--orb-size) * 0.54), 10rem);
        margin-top: clamp(12px, 2.5vw, 35px);
    }

    .hero__brand {
        font-size: clamp(14px, 1.6vw, 18px);
    }

    .hero__date-day {
        font-size: clamp(34px, 4.5vw, 48px);
    }

    .hero__time {
        font-size: clamp(16px, 2.2vw, 24px);
        min-width: 160px;
    }

    .hero__constellation span {
        font-size: 18px;
        top: -20px;
    }

    .hero__wheel {
        bottom: -8%;
    }

    .hero__wheel-button {
        width: clamp(2.2rem, 3vw, 2.8rem);
    }

    .logo .group {
        width: 68px;
        height: 70px;
    }

    .logo .text-wrapper {
        font-size: 34px;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP 1366×768
   -------------------------------------------------------------------------- */
@media (max-width: 1366px) {
    .hero__header {
        padding: 18px;
        margin-bottom: 15px;
        gap: clamp(12px, 2vw, 28px);
    }

    .hero__canvas {
        --orb-size: clamp(10rem, 22vw, 16rem);
        --wheel-size: clamp(20rem, 42vw, 34rem);
        --wheel-radius: calc(var(--wheel-size) * 0.44);
        --constellation-size: clamp(5rem, calc(var(--orb-size) * 0.52), 9rem);
        margin-top: clamp(10px, 2vw, 28px);
    }

    .hero__brand {
        font-size: clamp(13px, 1.4vw, 16px);
    }

    .hero__logo-mark {
        width: clamp(26px, 2.8vw, 36px);
    }

    .hero__date-day {
        font-size: clamp(30px, 4vw, 42px);
    }

    .hero__date-month,
    .hero__date-year {
        font-size: clamp(10px, 1.1vw, 16px);
    }

    .hero__time {
        font-size: clamp(14px, 2vw, 22px);
        min-width: 145px;
    }

    .hero__constellation span {
        font-size: 16px;
        top: -18px;
    }

    .hero__constellation[data-slot="farPrev"] { --slot-base-x: -2.45; --slot-base-y: 1.55; }
    .hero__constellation[data-slot="prev2"] { --slot-base-x: -1.75; --slot-base-y: 0.25; }
    .hero__constellation[data-slot="prev1"] { --slot-base-x: -0.88; --slot-base-y: -0.18; }
    .hero__constellation[data-slot="next1"] { --slot-base-x: 0.88; --slot-base-y: -0.18; }
    .hero__constellation[data-slot="next2"] { --slot-base-x: 1.75; --slot-base-y: 0.25; }
    .hero__constellation[data-slot="farNext"] { --slot-base-x: 2.45; --slot-base-y: 1.55; }

    .hero__wheel {
        bottom: -9%;
    }

    .hero__wheel-button {
        width: clamp(2rem, 2.8vw, 2.6rem);
    }

    .hero__menu {
        width: clamp(26px, 2.6vw, 36px);
        height: clamp(26px, 2.6vw, 36px);
    }

    .logo .group {
        width: 60px;
        height: 62px;
    }

    .logo .text-wrapper {
        font-size: 30px;
    }
}

/* --------------------------------------------------------------------------
   DESKTOP 1280×720 (Minimum Desktop)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DESKTOP 1280×720 (Minimum Desktop)
   
   From mockup analysis:
   - Orb: ~200px = 12.5rem
   - Wheel: ~420px = 26rem, bottom -10%
   - Constellations: ~90px = 5.5rem, all 7 visible
   -------------------------------------------------------------------------- */
@media (max-width: 1280px) {
    .hero__header {
        padding: 16px 20px;
        margin-bottom: 10px;
    }

    .hero__canvas {
        --orb-size: 12.5rem;
        --wheel-size: 26rem;
        --constellation-size: 5.5rem;
        margin-top: 10px;
    }

    .hero__brand {
        font-size: 14px;
    }

    .hero__logo-mark {
        width: 28px;
    }

    .hero__date-day {
        font-size: 34px;
    }

    .hero__date-month,
    .hero__date-year {
        font-size: 12px;
    }

    .hero__time {
        font-size: 20px;
        min-width: 140px;
    }

    .hero__meta-divider {
        width: 36px;
    }

    .hero__constellation span {
        font-size: 14px;
        top: -16px;
    }

    .hero__constellation[data-slot="farPrev"] { --slot-base-x: -2.3; --slot-base-y: 1.4; }
    .hero__constellation[data-slot="prev2"] { --slot-base-x: -1.6; --slot-base-y: 0.18; }
    .hero__constellation[data-slot="prev1"] { --slot-base-x: -0.8; --slot-base-y: -0.15; }
    .hero__constellation[data-slot="next1"] { --slot-base-x: 0.8; --slot-base-y: -0.15; }
    .hero__constellation[data-slot="next2"] { --slot-base-x: 1.6; --slot-base-y: 0.18; }
    .hero__constellation[data-slot="farNext"] { --slot-base-x: 2.3; --slot-base-y: 1.4; }

    .hero__wheel {
        bottom: -10%;
    }

    .hero__wheel-button {
        width: 2.2rem;
    }

    .hero__menu {
        width: 28px;
        height: 28px;
    }

    .logo .group {
        width: 55px;
        height: 57px;
    }

    .logo .text-wrapper {
        font-size: 28px;
    }
}

/* --------------------------------------------------------------------------
   TABLET LANDSCAPE 1024×768
   
   Precise measurements from mockup:
   - Header: logo 25px from top, 30px from left
   - Date block: 95px from top, "14" ~70px, month/year ~14px, time ~32px
   - Divider: ~45px
   - Orb: ~270px = 17rem, center at 47% from top
   - Pisces/Taurus: ~155px = 9.7rem, positioned close to orb sides
   - Aquarius/Gemini: ~95px = 6rem, at screen edges, lower
   - Wheel: ~750px = 47rem (73% width), ~30% visible
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero__header {
        padding: 25px 30px 0;
        margin-bottom: 0;
    }

    .hero__brand {
        font-size: 15px;
    }

    .hero__logo-mark {
        width: 30px;
    }

    .hero__clock {
        margin-top: 25px;
    }

    .hero__meta {
        gap: 24px;
    }

    .hero__date {
        gap: 2px;
    }

    .hero__date-day {
        font-size: 45px;
    }

    .hero__date-month,
    .hero__date-year {
        font-size: 20px;
        letter-spacing: 0.25em;
    }
    .hero__orb {
        --orb-size: 19rem;
    }
    .hero__constellation img {
        width: 13rem;
    }

    .hero__time {
        font-size: 32px;
        min-width: 180px;
        letter-spacing: 0.2em;
    }

    .hero__meta-divider {
        width: 45px;
    }

    .hero__canvas {
        margin-top: 25px;
        --orb-size: 17rem;
        --wheel-size: 47rem;
        --constellation-size: 9.7rem;
    }

    .hero__orb-caption {
        font-size: 1.15rem;
        top: 18%;
    }

    .hero__constellation span {
        font-size: 16px;
        top: -20px;
    }


    /* prev2/next2 (Aquarius/Gemini) - at screen edges, partially clipped */
    .hero__constellation[data-slot="prev2"] {
        --slot-base-x: -1.7;
        --slot-base-y: 0.5;
        --constellation-size: 6rem;
    }

    .hero__constellation[data-slot="prev2"] span {
        font-size: 12px;
        top: -14px;
    }

    .hero__constellation[data-slot="next2"] {
        --slot-base-x: 1.7;
        --slot-base-y: 0.5;
        --constellation-size: 6rem;
    }

    .hero__constellation[data-slot="next2"] span {
        font-size: 12px;
        top: -14px;
    }

    /* prev1/next1 (Pisces/Taurus) - close to orb, same level */
    .hero__constellation[data-slot="prev1"] {
        --slot-base-x: -1.02;
        --slot-base-y: -0.05;
    }

    .hero__constellation[data-slot="next1"] {
        --slot-base-x: 1.02;
        --slot-base-y: -0.05;
    }

    .hero__wheel {
        bottom: 15%;
        transform: translate(-50%, 70%);
    }

    .hero__wheel-button {
        width: 3.2rem;
    }

    .hero__menu {
        width: 28px;
        height: 28px;
    }

    .logo .group {
        width: 55px;
        height: 57px;
    }

    .logo .text-wrapper {
        font-size: 28px;
    }
    .hero__canvas {
        margin-top: 35px;
    }

    .hero__constellation[data-slot="farNext"] {
        --slot-base-x: 3.3;
        --slot-base-y: 2.4;
    }

    .hero__constellation[data-slot="farPrev"] {
        --slot-base-x: -3.3;
        --slot-base-y: 2.4;
    }
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT 768×1024 / 768×1366
   
   From mockup analysis:
   - Orb: ~220px = 14rem
   - Wheel: ~460px = 29rem, bottom -15%
   - Constellations: ~100px = 6rem, only prev1/active/next1 visible
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .hero__header {
        padding: 18px 22px;
        margin-bottom: 0;
    }

    .hero__brand {
        font-size: 15px;
    }

    .hero__logo-mark {
        width: 30px;
    }


    .hero__canvas {
        margin-top: 16px;
        --orb-size: 14rem;
        --wheel-size: 29rem;
        --constellation-size: 6rem;
    }

    .hero__orb-caption {
        font-size: 1.1rem;
    }

    .hero__orb {
        --orb-size: 23rem;
    }
    .hero__constellation span {
        font-size: 14px;
        top: -14px;
    }

    /* Hide far constellations */
    .hero__constellation[data-slot="farPrev"]{
        --slot-base-x: -3.25;
        --slot-base-y: 4.05;
    }
    .hero__constellation[data-slot="farNext"] {
        --slot-base-x: 3.25;
        --slot-base-y: 4.05;
    }

    .hero__constellation[data-slot="prev1"] {
        --slot-base-x: -1.25;
        --slot-base-y: -0.05;
    }

    .hero__constellation[data-slot="next1"] {
        --slot-base-x: 1.25;
        --slot-base-y: -0.05;
    }

    .hero__constellation[data-slot="prev2"] {
        --slot-base-x: -2.25;
        --slot-base-y: 0.95;
    }

    .hero__constellation[data-slot="next2"] {
        --slot-base-x: 2.25;
        --slot-base-y: 0.95;
    }

    .hero__wheel {
        bottom: 8%;
        width: 46rem;
    }

    .hero__wheel-button {
        width: 2.4rem;
    }

    .hero__menu {
        width: 28px;
        height: 28px;
    }

    .logo .group {
        width: 58px;
        height: 60px;
    }

    .logo .text-wrapper {
        font-size: 30px;
    }
}

/* --------------------------------------------------------------------------
   TABLET PORTRAIT 768×1366 (tall tablet)
   Applied only with .viewport-768x1366 class from JS
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   PHONE 640×960
   
   From mockup analysis:
   - Orb: ~190px = 12rem
   - Wheel: ~400px = 25rem, bottom -18%
   - Constellations: partially visible on edges
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
    .hero__header {
        padding: 14px 18px;
        padding-top: max(14px, env(safe-area-inset-top));
    }

    .hero__brand {
        font-size: 13px;
    }

    .hero__logo-mark {
        width: 26px;
    }


    .hero__canvas {
        margin-top: 12px;
        --orb-size: 12rem;
        --wheel-size: 25rem;
        --constellation-size: 5rem;
    }

    .hero__orb-caption {
        font-size: 1rem;
    }

    .hero__constellation span {
        font-size: 12px;
        top: -12px;
    }

    .hero__constellation[data-slot="prev1"] {
        --slot-base-x: -1.4;
        --slot-base-y: 0.1;
    }

    .hero__constellation[data-slot="next1"] {
        --slot-base-x: 1.4;
        --slot-base-y: 0.1;
    }

    .hero__wheel {
        bottom: calc(88px + env(safe-area-inset-bottom));
        width: 42rem;
    }

    .hero__wheel-button {
        width: 2.1rem;
    }

    .hero__menu {
        width: 24px;
        height: 24px;
    }

    .logo .group {
        width: 52px;
        height: 54px;
    }

    .logo .text-wrapper {
        font-size: 26px;
    }
}

/* --------------------------------------------------------------------------
   PHONE 480×800
   
   From mockup analysis:
   - Orb: ~170px = 10.5rem
   - Wheel: ~340px = 21rem, bottom -20%
   - Constellations: cropped at edges
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
    .hero__header {
        padding: 2rem 14px 1rem;
        padding-top: max(2rem, env(safe-area-inset-top));
    }

    .hero__brand {
        font-size: 15px;
    }

    .hero__logo-mark {
        width: 22px;
    }

    .hero__clock {
        padding: 0 12px;
    }

    .hero__meta {
        gap: 1rem;
    }

    .hero__date-day {
        font-size: 34px;
    }

    .hero__time,
    .hero__date {
        min-width: auto;
        width: 50%;
    }

    .hero__date-month,
    .hero__date-year {
        font-size: 15px;
    }

    .hero__meta-divider {
        width: 26px;
    }

    .hero__time {
        font-size: 25px;
    }

    .hero__canvas {
        margin-top: 10px;
        --orb-size: 10.5rem;
        --wheel-size: 21rem;
        --constellation-size: 4.5rem;
    }

    .hero__orb-caption {
        font-size: 0.9rem;
    }

    .hero__constellation span {
        font-size: 10px;
        top: -10px;
    }

    /* Constellations mostly off-screen */
    .hero__constellation[data-slot="prev1"] {
        --slot-base-x: -2;
        --slot-base-y: 0.15;
    }

    .hero__constellation[data-slot="next1"] {
        --slot-base-x: 2;
        --slot-base-y: 0.15;
    }
    .hero__orb-block  {
        --slot-y: -0.7;
    }
    .hero__wheel {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .hero__wheel-button {
        width: 1.8rem;
    }

    .hero__menu {
        width: 22px;
        height: 22px;
    }

    .logo .group {
        width: 45px;
        height: 47px;
    }

    .logo .text-wrapper {
        font-size: 22px;
    }
}

/* --------------------------------------------------------------------------
   PHONE 320×480 (Minimum Screen Size)
   
   From mockup analysis:
   - Orb: ~120px = 7.5rem
   - Wheel: ~260px = 16rem, bottom -25%
   - Constellations: not visible
   -------------------------------------------------------------------------- */
@media (max-width: 320px) {
    .hero__header {
        padding: 2rem 12px 1rem;
        padding-top: max(2rem, env(safe-area-inset-top));
    }

    .hero__brand {
        font-size: 17px;
    }

    .hero__logo-mark {
        width: 18px;
    }

    .hero__clock {
        padding: 0 10px;
        margin-top: 0px;
    }

    .hero__meta {
        gap: 8px;
    }
    .hero__date {
        height: 2rem;
    }
    .hero__time {
        height: 1rem;
    }

    .hero__date-day {
        font-size: 28px;
    }

    .hero__date-month,
    .hero__date-year {
        font-size: 14px;
    }

    .hero__meta-divider {
        width: 22px;
    }

    .hero__time {
        font-size: 20px;
    }

    .hero__canvas {
        margin-top: 8px;
        --orb-size: 7.5rem;
        --wheel-size: 16rem;
        --constellation-size: 3.5rem;
    }
    .hero__orb-block {
        --slot-y: -0.4
    }
    .hero__orb-caption {
        font-size: 0.75rem;
    }


    .hero__wheel {
        width: 17rem;
        bottom: calc(30px + env(safe-area-inset-bottom));
    }

    .hero__wheel-button {
        width: 1.4rem;
    }
    .hero__orb {
        --orb-size: 15rem;
    }
    .hero__menu {
        width: 20px;
        height: 20px;
    }

    .logo .group {
        width: 38px;
        height: 39px;
    }

    .logo .text-wrapper {
        font-size: 18px;
    }
}

/* ==========================================================================
   INTRO LOGO STYLES
   ========================================================================== */

.logo {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12.33px;
    position: relative;
}

.logo .group {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 0.97;
}

.logo .text-wrapper {
    position: relative;
    width: fit-content;
    font-family: "Unifix SP", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--brand-200);
    font-size: 50px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    margin: 0;
}

.div-wrapper .group {
    position: relative;
    width: 100%;
    height: 100%;
    aspect-ratio: 0.97;
}

.div-wrapper .text-wrapper {
    position: relative;
    width: fit-content;
    font-family: "Unifix SP", Helvetica, Arial, sans-serif;
    font-weight: 400;
    color: var(--brand-200);
    font-size: 50px;
    text-align: center;
    letter-spacing: 0;
    line-height: normal;
    white-space: nowrap;
    margin: 0;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.div-wrapper .logo:focus-within {
    outline: 2px solid var(--brand-500);
    outline-offset: 4px;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .div-wrapper {
        width: 100vw;
    }
}
html, body { height: 100%; height: 100dvh; margin: 0; background: #000; }
.wrap {
    position: fixed; inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;
}
svg { display: block; width: 100%; height: 100%; }
/* Базовые keyframes: контроллер лишь задаёт переменные */
.star {
    fill: #fff;
    opacity: 0.85;
    filter: drop-shadow(0 0 6px rgba(255,255,255,0.9));
    animation:
            twinkle var(--tw, 14s) linear infinite,
            drift var(--dr, 22s) ease-in-out infinite;
    animation-delay: var(--td, 0s), var(--dd, 0s);
    will-change: transform, opacity;
    transform-origin: center;
}
@keyframes twinkle { 0%,100%{opacity:0.25} 40%{opacity:.95} 50%{opacity:.75} 60%{opacity:1} }
@keyframes drift { 0%,100%{transform:translate(0,0)} 50%{transform:translate(var(--dx,.8px),var(--dy,-.6px))} }
@media (prefers-reduced-motion: reduce) { .star { animation: none; } }

.sky-wrap{
    position:fixed; /* на весь вьюпорт */
    inset:0;
    overflow:hidden;
    background:#000;
}
.sky-wrap svg,           /* если в include прямо <svg> */
.sky-wrap .wrap > svg {    /* если звёзды внутри .wrap */
    position:absolute;
    inset:0;         /* растянуть на весь контейнер */
    width:100%;
    height:100%;
    display:block;
}

#nebula-fog .fog {
    filter: url(#soften);
    opacity: 0.75;
    animation: fogOpacity 18s ease-in-out infinite,
    fogDrift   36s ease-in-out infinite;
    will-change: transform, opacity;
}
@keyframes fogDrift {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(8px,8px) scale(1.015); }
}
@keyframes fogOpacity {
    0%,100% { opacity: .55; }
    45%     { opacity: .8; }
    70%     { opacity: .65; }
}
@media (prefers-reduced-motion: reduce) {
    #nebula-fog .fog { animation: none; }
}
.intro{
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    place-items: center;
    pointer-events: none;
    background: transparent;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.intro .logo{
    transition: opacity var(--logo-fade) ease calc(var(--intro-duration, 0s) / 2);
    will-change: opacity;
}
.intro.is-outro .logo{ opacity: 0; }


/* при запуске анимации: облака исчезают и разъезжаются */
.intro.is-outro image {
    opacity: 0;
}
.intro.is-outro image,
.intro.is-outro rect
{
    transition:
            transform var(--intro-duration) ease-in-out calc(var(--intro-duration, 0s) / 4),
            opacity   var(--intro-duration) cubic-bezier(0.4, 0, 1, 1);
    will-change: transform, opacity;
    transform: translate(var(--tx), var(--ty)) rotate(var(--rot)) !important;
}

@media (prefers-reduced-motion: reduce){
    .cloud, .intro .logo { transition: none !important; }
}
