/*
 * Our History template styles.
 * Everything is scoped under .our-history-page so it does not leak into
 * Hello Elementor, Elementor widgets, the header, footer, or other pages.
 */

.our-history-page {
    --oh-red: #ff5d5b;
    --oh-ink: #f5f8ff;
    --oh-muted: #aebbd0;
    --oh-border: #254063;
    --oh-bg-deep: #020b1d;
    --oh-bg-blue: #03142f;
    color: var(--oh-ink);
    font-family: "DM Sans", Arial, sans-serif;
}

.our-history-page,
.our-history-page *,
.our-history-page *::before,
.our-history-page *::after {
    box-sizing: border-box;
}

.our-history-page [hidden] {
    display: none !important;
}

.our-history-page .our-history-experience {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
    background:
        radial-gradient(circle at 20% 70%, #083d85, transparent 44%),
        linear-gradient(115deg, var(--oh-bg-blue), var(--oh-bg-deep));
}

.our-history-page .our-history-dial-panel {
    min-height: 100vh;
    position: relative;
    padding: 36px clamp(28px, 5vw, 80px) 42px;
    border-right: 1px solid var(--oh-border);
    overflow: hidden;
}

.our-history-page .our-history-heading {
    text-align: center;
}

.our-history-page .our-history-heading h1,
.our-history-page .our-history-dial-core h2,
.our-history-page .our-history-detail-panel h2,
.our-history-page .our-history-node-label b {
    font-family: "Space Grotesk", "DM Sans", Arial, sans-serif;
    letter-spacing: -0.04em;
}

.our-history-page .our-history-heading h1 {
    margin: 0;
    color: var(--oh-ink);
    font-size: clamp(30px, 3.1vw, 58px);
    line-height: 1.06;
}

.our-history-page .our-history-heading p {
    margin: 8px 0 0;
    color: #a9b5c8;
    font-size: clamp(14px, 1.4vw, 23px);
}

.our-history-page .our-history-dial-stage {
    min-height: 600px;
    height: min(68vw, 800px);
    display: grid;
    place-items: center;
}

.our-history-page .our-history-dial {
    position: relative;
    width: min(39vw, 650px);
    aspect-ratio: 1;
    cursor: grab;
    touch-action: none;
    outline: none;
}

.our-history-page .our-history-dial:focus-visible {
    outline: 2px solid #7db3ff;
    outline-offset: 10px;
    border-radius: 50%;
}

.our-history-page .our-history-dial.is-dragging {
    cursor: grabbing;
}

.our-history-page .our-history-ticks {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(rgba(110, 160, 235, 0.26) 0 0.5deg, transparent 0.5deg 3deg);
    -webkit-mask: radial-gradient(transparent 0 81%, #000 81.2% 84%, transparent 84.3%);
    mask: radial-gradient(transparent 0 81%, #000 81.2% 84%, transparent 84.3%);
}

.our-history-page .our-history-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.our-history-page .our-history-ring--outer {
    inset: 12%;
    border: 19px solid #c4cbd7;
    box-shadow: 0 0 0 6px #071120, 0 0 0 9px #4280db;
}

.our-history-page .our-history-ring--glow {
    inset: 17%;
    border: 2px solid #438af2;
    box-shadow: 0 0 13px #1673ff;
}

.our-history-page .our-history-ring--inner {
    inset: 21%;
    border: 1px solid #3465a9;
    background: radial-gradient(circle at 45% 25%, #09295f, #03112a 72%);
}

.our-history-page .our-history-dial-core {
    position: absolute;
    z-index: 2;
    inset: 28%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.our-history-page .our-history-dial-core p,
.our-history-page .our-history-core-copy {
    margin: 0;
    color: var(--oh-muted);
    font-size: clamp(12px, 1vw, 17px);
    line-height: 1.45;
}

.our-history-page .our-history-dial-core .our-history-core-date {
    margin: 18px 0 6px;
    color: var(--oh-red);
    font-size: clamp(22px, 2.1vw, 35px);
    font-weight: 700;
}

.our-history-page .our-history-dial-core h2 {
    margin: 0 0 10px;
    color: var(--oh-ink);
    font-size: clamp(19px, 2vw, 30px);
    line-height: 1.08;
}

.our-history-page .our-history-core-copy p,
.our-history-page .our-history-detail-copy p {
    margin: 0;
}

.our-history-page .our-history-nodes {
    position: absolute;
    inset: 0;
    z-index: 6;
}

.our-history-page .our-history-node {
    position: absolute;
    z-index: 6;
    left: var(--x);
    top: var(--y);
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #dce6f5;
    font: inherit;
    cursor: pointer;
    transform: translate(-50%, -50%);
    touch-action: manipulation;
}

.our-history-page .our-history-node-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 1px #91afdb, 0 0 12px #fff;
    transition: width 0.2s ease, height 0.2s ease, box-shadow 0.2s ease, border 0.2s ease;
}

.our-history-page .our-history-node-label {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: 145px;
    pointer-events: none;
    transform: translate(calc(-50% + var(--label-dx)), calc(-50% + var(--label-dy)));
    text-align: center;
    font-size: 12px;
    line-height: 1.25;
}

.our-history-page .our-history-node-label b {
    display: block;
    color: inherit;
    font-size: clamp(16px, 1.55vw, 25px);
}

.our-history-page .our-history-node-label small {
    display: block;
    margin-top: 5px;
    color: #c1cde0;
    font-size: 12px;
    line-height: 1.38;
}

.our-history-page .our-history-node.is-active .our-history-node-dot {
    width: 22px;
    height: 22px;
    border: 5px solid var(--oh-red);
    box-shadow: 0 0 0 4px #e3a1ab, 0 0 20px 8px #ff5964;
}

.our-history-page .our-history-node.is-active .our-history-node-label b {
    color: var(--oh-red);
}

.our-history-page .our-history-node:focus-visible .our-history-node-dot {
    outline: 2px solid #fff;
    outline-offset: 5px;
}

.our-history-page .our-history-tip {
    position: absolute;
    left: clamp(28px, 5vw, 80px);
    right: clamp(28px, 5vw, 80px);
    bottom: 12px;
    margin: 0;
    color: #a9b5c8;
    font-size: 13px;
}

.our-history-page .our-history-detail-panel {
    padding: 44px clamp(28px, 5vw, 70px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 19px;
}

.our-history-page .our-history-detail-date {
    margin: 0;
    color: var(--oh-red);
    font-size: 20px;
    font-weight: 700;
}

.our-history-page .our-history-detail-panel h2 {
    margin: 0;
    color: var(--oh-ink);
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.06;
}

.our-history-page .our-history-detail-copy {
    color: #c4cedd;
    font-size: clamp(14px, 1.25vw, 19px);
    line-height: 1.55;
}

.our-history-page .our-history-images {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 20px;
}

.our-history-page .our-history-images img {
    display: block;
    width: 100%;
    object-fit: cover;
    border: 1px solid #31578b;
    border-radius: 15px;
}

.our-history-page .our-history-images img:first-child {
    grid-column: 1 / -1;
    height: min(26vw, 405px);
}

.our-history-page .our-history-images img:not(:first-child) {
    height: min(15vw, 240px);
}

.our-history-page .our-history-admin-notice,
.our-history-page .our-history-empty {
    margin: 0;
    padding: 16px 20px;
    background: #fff8d8;
    color: #4d3d00;
    border: 1px solid #ead27a;
}

@media (max-width: 1000px) {
    .our-history-page .our-history-experience {
        grid-template-columns: 1fr;
    }

    .our-history-page .our-history-dial-panel {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--oh-border);
    }

    .our-history-page .our-history-dial {
        width: min(72vw, 650px);
    }

    .our-history-page .our-history-detail-panel {
        padding-top: 60px;
    }
}

@media (max-width: 620px) {
    .our-history-page .our-history-dial-panel {
        overflow: visible;
        padding: 28px 10px 58px;
    }

    .our-history-page .our-history-dial-stage {
        min-height: 0;
        height: 470px;
    }

    .our-history-page .our-history-dial {
        width: 76vw;
    }

    .our-history-page .our-history-node-label {
        width: 104px;
    }

    .our-history-page .our-history-node-label b {
        font-size: 14px;
    }

    .our-history-page .our-history-node-label small {
        font-size: 9px;
        line-height: 1.3;
    }

    .our-history-page .our-history-tip {
        left: 18px;
        right: 18px;
        font-size: 12px;
    }

    .our-history-page .our-history-detail-panel {
        padding: 38px 20px;
    }

    .our-history-page .our-history-images img:first-child {
        height: 250px;
    }

    .our-history-page .our-history-images img:not(:first-child) {
        height: 155px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .our-history-page .our-history-node-dot {
        transition: none;
    }
}
