/* =========================================================
   FROSH SURVEY 2030
   Interactive Globe Homepage
   ========================================================= */

   :root {
    --orange: #e77500;
    --orange-dark: #c95f00;
    --ink: #171717;
    --paper: #f5f1e9;
    --paper-dark: #e8e1d5;
    --blue: #17384d;
    --muted: #77736d;
    --line: rgba(23, 23, 23, 0.18);

    /* shared with the section pages' palette */
    --yellow: #eeaf61;
    --red: #ee5d6c;
    --pink: #ce4993;
    --purple: #6a0d83;
    --tan: #f2b46f;
    --olive: #7e8e56;
    --darker-olive: #687542;
    --lighter-olive: #b7c88c;

    --serif: "adobe-caslon-pro", Georgia, serif;
    --sans: "neue-haas-grotesk-text", Arial, sans-serif;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}


/* =========================================================
   MASTHEAD
   ========================================================= */

.masthead {
    position: absolute;
    z-index: 20;

    top: 0;
    left: 0;

    width: 100%;

    padding: 26px 34px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    pointer-events: none;
}

.masthead-left {
    display: flex;
    align-items: center;
    gap: 13px;

    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.rule {
    width: 35px;
    height: 1px;
    background: var(--ink);
}

.masthead-year {
    font-family: var(--serif);
    font-size: 22px;
    font-style: italic;
}


/* =========================================================
   HERO
   ========================================================= */

.globe-page {
    position: relative;

    height: 100svh;
    min-height: 680px;

    overflow: hidden;

    border-bottom: 1px solid var(--line);
}


/* =========================================================
   INTRO
   ========================================================= */

.intro {
    position: absolute;
    z-index: 10;

    left: clamp(28px, 6vw, 100px);
    top: 50%;

    width: min(330px, 30vw);

    transform: translateY(-50%);

    pointer-events: none;
}

.kicker {
    margin: 0 0 18px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.intro h1 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(55px, 6vw, 95px);
    font-weight: 400;

    line-height: 0.83;
    letter-spacing: -0.045em;
}

.intro h1 em {
    color: var(--orange);
    font-style: italic;
}

.intro-copy {
    max-width: 265px;

    margin: 35px 0 0;

    color: #4d4a46;

    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.4;
}

.interaction-hint {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-top: 35px;

    color: var(--muted);

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mouse-icon {
    width: 17px;
    height: 25px;

    border: 1px solid var(--muted);
    border-radius: 10px;

    position: relative;
}

.mouse-icon span {
    position: absolute;

    top: 5px;
    left: 50%;

    width: 2px;
    height: 5px;

    background: var(--orange);

    transform: translateX(-50%);

    animation: scroll-hint 1.6s ease-in-out infinite;
}

@keyframes scroll-hint {
    0%, 100% { transform: translate(-50%, 0); opacity: 1; }
    50% { transform: translate(-50%, 5px); opacity: 0.4; }
}


/* =========================================================
   GLOBE
   ========================================================= */

.globe-stage {
    position: absolute;

    left: 52%;
    top: 50%;

    width: min(55vw, 700px);
    height: min(55vw, 700px);

    transform: translate(-50%, -50%);
}

#globe {
    position: absolute;

    inset: 0;

    cursor: grab;
}

#globe.is-grabbing {
    cursor: grabbing;
}

#globe svg {
    width: 100%;
    height: 100%;

    overflow: visible;
}


/* subtle shadow under the Earth */

.globe-shadow {
    position: absolute;

    left: 50%;
    bottom: 4%;

    width: 55%;
    height: 7%;

    background: rgba(0, 0, 0, 0.09);

    filter: blur(24px);

    transform: translateX(-50%);
}


/* geographic sphere */

.globe-ocean {
    fill: #f3dfc7;       /* very light warm beige */
}

.globe-land {
    fill: #d98b4a;       /* muted terracotta */
    stroke: #f3dfc7;
    stroke-width: 0.6px;
}

.globe-graticule {
    fill: none;
    stroke: rgba(170, 100, 50, 0.18);
    stroke-width: 0.45px;
}

.globe-outline {
    fill: none;
    stroke: #b96f38;
    stroke-width: 1.25px;
    stroke-opacity: 0.5;
}


/* =========================================================
   LANDMARK (Princeton)
   ========================================================= */

.landmark {
    cursor: pointer;
}

.landmark.is-hidden {
    display: none;
}

.landmark-hit {
    fill: transparent;
    pointer-events: all;
}

.landmark-dot {
    fill: var(--orange);

    stroke: var(--paper);
    stroke-width: 2px;

    transition:
        r 180ms ease,
        fill 180ms ease,
        stroke-width 180ms ease;
}

.landmark-label {
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.08em;
    text-transform: uppercase;

    fill: var(--ink);
    stroke: var(--paper);
    stroke-width: 3px;
    paint-order: stroke fill;

    pointer-events: none;
}

.landmark:hover .landmark-dot {
    fill: var(--red);
    stroke-width: 3px;
    r: 6.5;
}


/* =========================================================
   TOOLTIP
   ========================================================= */

.tooltip {
    position: fixed;
    z-index: 50;

    display: none;

    min-width: 155px;

    padding: 13px 15px;

    background: var(--ink);
    color: var(--paper);

    pointer-events: none;

    box-shadow: 0 8px 30px rgba(0,0,0,.15);
}

.tooltip-kicker {
    display: block;

    margin-bottom: 3px;

    color: var(--orange);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .15em;
    text-transform: uppercase;
}

.tooltip strong {
    display: block;

    font-family: var(--serif);
    font-size: 20px;
    font-weight: 400;
}

.tooltip-action {
    display: block;

    margin-top: 8px;

    color: #aaa;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .08em;
    text-transform: uppercase;
}


/* =========================================================
   SECTION MENU
   Opens when Princeton is clicked on the globe.
   ========================================================= */

.section-menu {
    position: fixed;
    z-index: 60;
    inset: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    visibility: hidden;

    transition: opacity 220ms ease, visibility 220ms ease;
}

.section-menu.is-open {
    opacity: 1;
    visibility: visible;
}

.section-menu-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(23, 23, 23, 0.86);
}

.section-menu-panel {
    position: relative;
    z-index: 1;

    width: min(460px, 88vw);

    padding: 46px 42px 30px;

    background: var(--paper);
    border: 1px solid var(--ink);

    transform: translateY(10px);
    transition: transform 220ms ease;
}

.section-menu.is-open .section-menu-panel {
    transform: translateY(0);
}

.section-menu-close {
    position: absolute;
    top: 14px;
    right: 14px;

    width: 30px;
    height: 30px;

    border: none;
    background: transparent;

    font-size: 22px;
    line-height: 1;
    font-family: var(--sans);

    color: var(--muted);
    cursor: pointer;
}

.section-menu-close:hover {
    color: var(--orange);
}

.section-menu-kicker {
    margin: 0 0 8px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .13em;
    text-transform: uppercase;
}

.section-menu-title {
    margin: 0 0 26px;

    font-family: var(--serif);
    font-size: 34px;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.section-menu-links {
    display: flex;
    flex-direction: column;
}


/* =========================================================
   SECTION LINKS
   Shared row style used inside the section menu.
   ========================================================= */

.section-link {
    position: relative;

    display: grid;
    grid-template-columns: 28px 1fr 18px;
    align-items: center;

    padding: 15px 0;

    border-bottom: 1px solid var(--line);

    transition:
        color 180ms ease,
        padding 180ms ease;
}

.section-link:first-child {
    border-top: 1px solid var(--line);
}

.section-number {
    color: var(--muted);

    font-size: 9px;
    font-weight: 700;

    letter-spacing: 0.08em;
}

.section-name {
    font-family: var(--serif);
    font-size: 18px;
}

.section-arrow {
    color: var(--orange-dark);

    font-size: 14px;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity 180ms ease,
        transform 180ms ease;
}

.section-link:hover {
    padding-left: 7px;
    color: var(--orange);
}

.section-link:hover .section-arrow {
    opacity: 1;
    transform: translateX(0);
}


/* =========================================================
   WELCOME SECTION
   ========================================================= */

.welcome {
    display: grid;
    grid-template-columns: minmax(230px, 32%) 1fr;
    gap: 4vw;

    min-height: 650px;

    padding: 110px clamp(28px, 6vw, 100px);

    border-bottom: 1px solid var(--line);
}

.welcome-heading {
    padding-top: 10px;
}

.welcome-label {
    margin: 0 0 22px;

    font-size: 14px;
    font-weight: 700;

    letter-spacing: .1em;
    text-transform: uppercase;

    color: var(--orange);
}

.welcome h2 {
    margin: 0;

    font-family: var(--serif);
    font-size: clamp(38px, 4vw, 58px);
    font-weight: 400;
    line-height: .95;
    letter-spacing: -.03em;
}

.welcome h2 em {
    color: var(--orange);
    font-style: italic;
}

.welcome-text {
    max-width: 620px;

    padding-top: 10px;

    font-family: var(--serif);
    font-size: 18px;
    line-height: 1.55;
}

.welcome-text p {
    margin: 0 0 22px;
}

.signature {
    margin-top: 45px !important;

    font-size: 16px;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    display: flex;
    justify-content: space-between;

    padding: 25px clamp(28px, 6vw, 100px);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: .07em;
    text-transform: uppercase;
}

footer > div {
    display: flex;
    gap: 8px;
}

footer a {
    color: var(--orange);
}

footer a:hover {
    text-decoration: underline;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 850px) {

    .masthead {
        padding: 20px;
    }

    .masthead-left .rule,
    .masthead-left .edition {
        display: none;
    }

    .globe-page {
        min-height: 780px;
        height: auto;

        display: flex;
        flex-direction: column;
    }

    .intro {
        position: relative;

        left: auto;
        top: auto;

        width: auto;

        padding: 100px 25px 0;

        transform: none;

        text-align: center;
        pointer-events: auto;
    }

    .intro-copy {
        margin-left: auto;
        margin-right: auto;
    }

    .interaction-hint {
        justify-content: center;
    }

    .globe-stage {
        position: relative;

        left: auto;
        top: auto;

        width: 115vw;
        height: 115vw;

        max-width: 650px;
        max-height: 650px;

        margin: -20px auto 0;

        transform: none;
    }

    .section-menu-panel {
        padding: 42px 26px 26px;
    }

    .welcome {
        display: block;

        padding: 75px 25px;
    }

    .welcome-label {
        margin-bottom: 45px;
    }

    .welcome h2 {
        margin-bottom: 50px;
    }

    .welcome-text {
        font-size: 17px;
    }

    footer {
        display: block;

        padding: 25px;
    }

    footer > div {
        margin-bottom: 15px;
    }
}


@media (max-width: 500px) {

    .intro h1 {
        font-size: 60px;
    }

    .globe-stage {
        width: 125vw;
        height: 125vw;

        margin-top: -10px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    .mouse-icon span {
        animation: none;
    }
}