:root {
    color-scheme: light;
    font-family: Arial, Helvetica, sans-serif;
    --page: #f7f8fa;
    --navy: #003160;
    --navy-deep: #002343;
    --navy-bright: #0a4e86;
    --gold: #dbb32d;
    --ink: #061532;
    --muted: #687383;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--page);
    color: var(--ink);
}

.clock-page {
    min-height: 100svh;
    padding: 0;
}

.hero-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 500px);
    align-items: center;
    gap: clamp(32px, 5vw, 96px);
    width: 100%;
    min-height: 100svh;
    overflow: hidden;
    padding: clamp(34px, 5vw, 82px) clamp(40px, 6vw, 96px) clamp(72px, 8vh, 108px);
    border-radius: 0;
    background:
        radial-gradient(circle at 72% 16%, rgba(11, 82, 142, 0.78), transparent 36%),
        linear-gradient(135deg, var(--navy-deep), var(--navy) 52%, #002a54);
    box-shadow: 0 16px 32px rgba(6, 21, 50, 0.26);
}

.hero-panel::before,
.hero-panel::after {
    position: absolute;
    pointer-events: none;
    content: "";
}

.hero-panel::before {
    left: -4vw;
    bottom: 46px;
    z-index: 1;
    width: min(88.5vw, 1413px);
    height: clamp(41px, 6vh, 75px);
    border-radius: 58% 42% 0 0 / 100% 92% 0 0;
    background: linear-gradient(90deg, var(--gold) 0 70%, rgba(219, 179, 45, 0) 100%);
    transform: rotate(2.5deg);
    transform-origin: left bottom;
}

.hero-panel::after {
    left: -8vw;
    right: -8vw;
    bottom: -148px;
    z-index: 2;
    height: clamp(119px, 9vw, 161px);
    border-radius: 54% 46% 0 0;
    background: var(--white);
    transform: rotate(2.2deg);
    transform-origin: right bottom;
}

.brand-area,
.clock-card,
.building-image {
    position: relative;
    z-index: 3;
}

.fullscreen-actions {
    position: absolute;
    top: clamp(16px, 2.2vw, 28px);
    right: clamp(16px, 2.2vw, 28px);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.fullscreen-button {
    display: inline-grid;
    place-items: center;
    width: clamp(42px, 3.6vw, 54px);
    height: clamp(42px, 3.6vw, 54px);
    padding: 9px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 8px 20px rgba(0, 17, 43, 0.16);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.fullscreen-button:hover,
.fullscreen-button:focus-visible {
    border-color: rgba(255, 255, 255, 0.54);
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.fullscreen-button:focus-visible {
    outline: 3px solid rgba(219, 179, 45, 0.7);
    outline-offset: 3px;
}

.fullscreen-button img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fullscreen-button.is-hidden {
    display: none;
}

.building-image {
    position: absolute;
    left: 0;
    bottom: clamp(49px, 7vh, 81px);
    z-index: 0;
    width: min(43.1vw, 727px);
    max-height: 53vh;
    object-fit: contain;
    object-position: left bottom;
    opacity: 1;
    pointer-events: none;
    transform: scale(0.812, 0.812);
    transform-origin: left bottom;
}

.brand-area {
    --brand-gap: clamp(24px, 3.8vw, 48px);
    --logo-size: clamp(138px, 14vw, 230px);
    display: grid;
    grid-template-columns: var(--logo-size) minmax(0, 1fr);
    align-items: center;
    gap: var(--brand-gap);
    max-width: 900px;
    align-self: center;
    color: var(--white);
    transform: translateY(-50%);
}

.brand-logo {
    display: block;
    width: 100%;
    max-height: 230px;
    object-fit: contain;
    transform: translateY(-4%);
}

.brand-copy {
    min-width: 0;
}

.brand-title {
    margin: 0 0 14px;
    color: var(--white);
    font-size: clamp(4rem, 6vw, 7rem);
    font-weight: 800;
    line-height: 0.9;
}

.brand-subtitle {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.45rem, 2.2vw, 2.42rem);
    font-weight: 700;
    line-height: 1.25;
}

.brand-divider {
    width: min(90vw, calc((450px + var(--logo-size) + var(--brand-gap)) * 1.276));
    height: 4px;
    margin: 26px 0 0 calc((var(--logo-size) + var(--brand-gap) + 7vw) * -1);
    background: var(--gold);
}

.brand-tagline {
    margin: 16px 0 0;
    color: var(--gold);
    font-size: clamp(1.12rem, 1.8vw, 1.7rem);
    font-weight: 800;
    line-height: 1.32;
}

.clock-card {
    width: min(100%, 500px);
    align-self: center;
    justify-self: end;
    padding: clamp(30px, 4vw, 44px) clamp(28px, 4vw, 56px);
    border-radius: 30px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 17, 43, 0.18);
    text-align: center;
    transform: translateY(-30%);
}

.clock-icon {
    position: relative;
    display: inline-block;
    width: clamp(54px, 4.5vw, 68px);
    height: clamp(54px, 4.5vw, 68px);
    border: clamp(4px, 0.4vw, 6px) solid var(--navy);
    border-radius: 50%;
}

.clock-icon::before,
.clock-icon::after {
    position: absolute;
    left: 50%;
    bottom: 50%;
    width: clamp(4px, 0.35vw, 6px);
    border-radius: 999px;
    background: var(--navy);
    content: "";
    transform-origin: bottom center;
}

.clock-icon::before {
    height: 38%;
    transform: translateX(-50%);
}

.clock-icon::after {
    height: 34%;
    transform: translateX(-50%) rotate(125deg);
}

.clock-card h1 {
    margin: clamp(16px, 2vw, 22px) 0 clamp(24px, 3vw, 34px);
    color: var(--navy);
    font-size: clamp(1.45rem, 2vw, 2rem);
    font-weight: 800;
    line-height: 1.1;
}

.clock-time {
    display: block;
    margin: 0 auto;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(3.35rem, 4.9vw, 5.7rem);
    font-weight: 900;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.clock-divider {
    width: min(100%, 350px);
    height: 2px;
    margin: clamp(26px, 3vw, 34px) auto clamp(20px, 2.5vw, 26px);
    background: var(--gold);
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    min-width: 0;
}

.calendar-icon {
    position: relative;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border: 4px solid var(--navy);
    border-radius: 6px;
}

.calendar-icon::before {
    position: absolute;
    top: 7px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--navy);
    content: "";
}

.calendar-icon::after {
    position: absolute;
    inset: 16px 6px 6px;
    background:
        linear-gradient(var(--navy), var(--navy)) 0 0 / 5px 5px no-repeat,
        linear-gradient(var(--navy), var(--navy)) 50% 0 / 5px 5px no-repeat,
        linear-gradient(var(--navy), var(--navy)) 100% 0 / 5px 5px no-repeat,
        linear-gradient(var(--navy), var(--navy)) 0 100% / 5px 5px no-repeat,
        linear-gradient(var(--navy), var(--navy)) 50% 100% / 5px 5px no-repeat;
    content: "";
}

.clock-date {
    margin: 0;
    color: var(--navy);
    font-size: clamp(1.22rem, 1.8vw, 1.78rem);
    font-weight: 800;
    line-height: 1.15;
    overflow-wrap: normal;
}

.clock-weekday {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: clamp(1.16rem, 1.6vw, 1.6rem);
    font-weight: 700;
    line-height: 1.1;
}

.clock-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (min-width: 1500px) {
    .hero-panel {
        grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
        padding-inline: clamp(80px, 7vw, 132px);
    }

    .clock-card {
        width: 540px;
    }
}

.hero-panel:fullscreen .building-image {
    width: min(46.3vw, 784px);
    bottom: clamp(49px, 7vh, 81px);
    transform: scale(0.867, 0.867);
}

.hero-panel:-webkit-full-screen .building-image {
    width: min(46.3vw, 784px);
    bottom: clamp(49px, 7vh, 81px);
    transform: scale(0.867, 0.867);
}

:fullscreen .hero-panel .building-image {
    width: min(46.3vw, 784px);
    bottom: clamp(49px, 7vh, 81px);
    transform: scale(0.867, 0.867);
}

/* Stable stage: the whole design scales as one unit instead of reflowing. */
.clock-page {
    display: grid;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    place-items: center;
    overflow: hidden;
}

.clock-stage {
    position: relative;
    width: var(--stage-width, 100vw);
    height: var(--stage-height, 100svh);
    overflow: visible;
}

.clock-stage:fullscreen,
.clock-stage:-webkit-full-screen {
    display: grid;
    width: 100vw;
    height: 100svh;
    place-items: center;
    overflow: hidden;
    background: var(--page);
}

.hero-panel {
    width: 1920px;
    height: 1080px;
    min-height: 0;
    grid-template-columns: 900px 540px;
    gap: 140px;
    align-items: center;
    padding: 96px 132px 108px;
    transform: scale(var(--stage-scale, 1));
    transform-origin: top left;
}

.hero-panel::before {
    left: -77px;
    bottom: 46px;
    width: 1413px;
    height: 75px;
}

.hero-panel::after {
    left: -154px;
    right: -154px;
    bottom: -148px;
    height: 161px;
}

.fullscreen-actions {
    top: 28px;
    right: 28px;
}

.brand-area {
    --brand-gap: 48px;
    --logo-size: 230px;
    width: 900px;
    max-width: none;
    grid-template-columns: var(--logo-size) minmax(0, 1fr);
    gap: var(--brand-gap);
    transform: translateY(-50%);
}

.brand-logo {
    width: 100%;
    max-height: 230px;
    transform: translateY(-4%);
}

.brand-title {
    font-size: 112px;
}

.brand-subtitle {
    font-size: 39px;
}

.brand-divider {
    width: 1690px;
    margin: 26px 0 0 -1240px;
}

.building-image {
    bottom: 81px;
    width: 727px;
    max-height: 572px;
    transform: scale(0.812, 0.812);
}

.clock-card {
    width: 540px;
    justify-self: end;
    padding: 44px 56px;
    border-radius: 30px;
    transform: translateY(-30%);
}

.clock-icon {
    width: 68px;
    height: 68px;
}

.clock-card h1 {
    margin: 22px 0 34px;
    font-size: 32px;
}

.clock-time {
    font-size: 91px;
}

.clock-date {
    font-size: 28px;
}

.clock-weekday {
    font-size: 26px;
}

.calendar-icon {
    width: 34px;
    height: 34px;
}

.clock-stage:fullscreen .building-image,
.clock-stage:-webkit-full-screen .building-image,
.hero-panel:fullscreen .building-image,
.hero-panel:-webkit-full-screen .building-image,
:fullscreen .hero-panel .building-image {
    width: 784px;
    bottom: 81px;
    transform: scale(0.867, 0.867);
}

@media (max-width: 1160px) {
    .hero-panel {
        grid-template-columns: 1fr;
        align-content: center;
        justify-items: center;
        gap: clamp(28px, 5vw, 52px);
        min-height: 100svh;
        padding: 30px 24px 98px;
    }

    .brand-area {
        --brand-gap: clamp(22px, 3.4vw, 38px);
        --logo-size: clamp(118px, 18vw, 170px);
        justify-self: center;
        width: min(100%, 760px);
        grid-template-columns: var(--logo-size) minmax(0, 1fr);
        transform: translateY(-38%);
    }

    .brand-title {
        font-size: clamp(3.2rem, 8vw, 5rem);
    }

    .brand-subtitle {
        font-size: clamp(1.2rem, 3vw, 1.75rem);
    }

    .clock-card {
        justify-self: center;
        width: min(100%, 460px);
        transform: translateY(-18%);
    }

    .building-image {
        width: min(59.8vw, 581px);
        bottom: 61px;
        opacity: 1;
    }
}

@media (max-width: 700px) {
    .clock-page {
        padding: 0;
    }

    .hero-panel {
        gap: 28px;
        width: 100%;
        min-height: 100svh;
        border-radius: 0;
        padding: 24px 16px 86px;
    }

    .hero-panel::before {
        left: -10vw;
        bottom: 53px;
        width: 119vw;
        height: 41px;
    }

    .hero-panel::after {
        left: -18vw;
        right: -18vw;
        bottom: -122px;
        height: 113px;
    }

    .building-image {
        width: min(74vw, 392px);
        bottom: 46px;
        opacity: 1;
    }

    .brand-area {
        grid-template-columns: 1fr;
        gap: 18px;
        text-align: center;
        transform: translateY(-28%);
    }

    .brand-logo {
        width: min(38vw, 138px);
        margin: 0 auto;
        transform: translateY(0);
    }

    .brand-title {
        font-size: clamp(2.8rem, 15vw, 4.2rem);
    }

    .brand-subtitle {
        font-size: clamp(1.08rem, 5vw, 1.45rem);
    }

    .brand-divider {
        width: min(82vw, 360px);
        margin: 18px auto 0;
    }

    .brand-tagline {
        margin-top: 12px;
        font-size: 1rem;
    }

    .clock-card {
        width: min(100%, 420px);
        padding: 28px 18px 32px;
        border-radius: 22px;
        transform: translateY(-8%);
    }

    .clock-time {
        font-size: clamp(2.7rem, 14vw, 4rem);
    }

    .date-row {
        gap: 10px;
    }

    .calendar-icon {
        width: 28px;
        height: 28px;
        border-width: 3px;
    }

    .calendar-icon::before {
        top: 6px;
        height: 3px;
    }

    .calendar-icon::after {
        inset: 13px 5px 5px;
    }
}

@media (max-width: 420px) {
    .hero-panel {
        padding: 20px 12px 78px;
    }

    .brand-logo {
        width: 112px;
        transform: translateY(0);
    }

    .building-image {
        width: 84.8vw;
        bottom: 47px;
    }

    .brand-title {
        font-size: 2.85rem;
    }

    .brand-subtitle {
        font-size: 1.03rem;
    }

    .brand-tagline {
        display: none;
    }

    .clock-card {
        padding: 24px 14px 28px;
    }

    .clock-card h1 {
        font-size: 1.28rem;
    }

    .clock-time {
        font-size: clamp(2.25rem, 13vw, 3rem);
    }

    .clock-date {
        font-size: 1.05rem;
    }

    .clock-weekday {
        font-size: 1.05rem;
    }
}

@media (max-height: 760px) and (min-width: 701px) {
    .hero-panel {
        padding-top: 28px;
        padding-bottom: 70px;
    }

    .brand-area {
        --logo-size: clamp(116px, 12vw, 180px);
        grid-template-columns: var(--logo-size) minmax(0, 1fr);
        transform: translateY(-36%);
    }

    .brand-title {
        font-size: clamp(3.1rem, 5.4vw, 5.6rem);
    }

    .brand-subtitle {
        font-size: clamp(1.22rem, 2vw, 2rem);
    }

    .clock-card {
        width: min(100%, 470px);
        padding: 28px 38px;
        transform: translateY(-16%);
    }

    .clock-time {
        font-size: clamp(3rem, 4.5vw, 5rem);
    }

    .hero-panel::before {
        bottom: 46px;
        height: 49px;
    }

    .hero-panel::after {
        bottom: -156px;
        height: 143px;
    }
}

/* Final fixed-stage overrides. Keep the whole design as one scaled composition. */
body {
    background: var(--navy-deep);
}

.clock-page,
.clock-page:fullscreen,
.clock-page:-webkit-full-screen {
    position: relative;
    display: grid;
    width: 100vw;
    height: 100svh;
    min-height: 0;
    padding: 0;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 16%, rgba(11, 82, 142, 0.78), transparent 36%),
        linear-gradient(135deg, var(--navy-deep), var(--navy) 52%, #002a54);
}

.clock-stage,
.clock-stage:fullscreen,
.clock-stage:-webkit-full-screen {
    position: relative;
    display: block;
    z-index: 1;
    width: var(--stage-width, 100vw);
    height: var(--stage-height, 100svh);
    overflow: visible;
    background: transparent;
}

.hero-panel,
.clock-stage:fullscreen .hero-panel,
.clock-page:fullscreen .hero-panel {
    display: grid;
    width: var(--stage-design-width, 1920px);
    height: var(--stage-design-height, 1080px);
    min-height: 0;
    grid-template-columns: 900px 540px;
    align-items: center;
    gap: 140px;
    overflow: hidden;
    padding: 96px calc(132px + (var(--stage-design-width, 1920px) - 1920px) / 2) 108px;
    border-radius: 0;
    transform: scale(var(--stage-scale, 1));
    transform-origin: top left;
}

.hero-panel::before {
    left: -77px;
    bottom: 46px;
    width: 1413px;
    height: 75px;
}

.hero-panel::after {
    left: -154px;
    right: -154px;
    bottom: -148px;
    height: 161px;
}

.fullscreen-actions {
    top: 28px;
    right: 28px;
}

.brand-area {
    --brand-gap: 48px;
    --logo-size: 230px;
    display: grid;
    width: 900px;
    max-width: none;
    grid-template-columns: var(--logo-size) minmax(0, 1fr);
    align-items: center;
    gap: var(--brand-gap);
    justify-self: auto;
    align-self: center;
    text-align: left;
    transform: translateY(-50%);
}

.brand-logo {
    width: 100%;
    max-height: 230px;
    margin: 0;
    transform: translateY(-4%);
}

.brand-title {
    font-size: 112px;
}

.brand-subtitle {
    font-size: 39px;
}

.brand-divider {
    width: 1690px;
    margin: 26px 0 0 -1240px;
}

.brand-tagline {
    display: block;
}

.building-image {
    left: 0;
    bottom: 81px;
    width: 872px;
    max-height: 572px;
    transform: scale(0.812, 0.812);
    transform-origin: left bottom;
}

.clock-page:fullscreen .brand-divider,
.clock-page:-webkit-full-screen .brand-divider,
.clock-stage:fullscreen .brand-divider,
.clock-stage:-webkit-full-screen .brand-divider,
:fullscreen .brand-divider {
    width: 862px;
    margin: 26px 0 0 -412px;
}

.clock-card {
    width: 540px;
    justify-self: end;
    align-self: center;
    padding: 44px 56px;
    border-radius: 30px;
    transform: translateY(-30%);
}

.clock-icon {
    width: 68px;
    height: 68px;
}

.clock-card h1 {
    margin: 22px 0 34px;
    font-size: 32px;
}

.clock-time {
    font-size: 91px;
}

.clock-date {
    font-size: 28px;
}

.clock-weekday {
    font-size: 26px;
}

.calendar-icon {
    width: 34px;
    height: 34px;
}

.clock-page:fullscreen .building-image,
.clock-page:-webkit-full-screen .building-image,
.clock-stage:fullscreen .building-image,
.clock-stage:-webkit-full-screen .building-image,
.hero-panel:fullscreen .building-image,
.hero-panel:-webkit-full-screen .building-image,
:fullscreen .hero-panel .building-image {
    width: 784px;
    bottom: 81px;
    transform: scale(0.867, 0.867);
}
