:root {
    --page-bg: #0a0c0d;
    --ink: #f4f5f1;
    --ink-strong: #ffffff;
    --muted: rgba(244, 245, 241, 0.74);
    --muted-soft: rgba(244, 245, 241, 0.56);
    --line: rgba(244, 245, 241, 0.14);
    --line-strong: rgba(244, 245, 241, 0.27);
    --surface: rgba(244, 245, 241, 0.06);
    --surface-strong: rgba(244, 245, 241, 0.1);
    --cyan: #09a4c8;
    --cyan-soft: rgba(9, 164, 200, 0.16);
    --sand: #d8c48c;
    --map-paper: #e6e7e8;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--page-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--ink);
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.62;
    background:
        linear-gradient(180deg, rgba(244, 245, 241, 0.06), transparent 260px),
        radial-gradient(circle at 18% 0%, rgba(9, 164, 200, 0.16), transparent 32vw),
        linear-gradient(135deg, #111311 0%, #070908 52%, #10120f 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(to right, rgba(244, 245, 241, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(244, 245, 241, 0.028) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.62), transparent 78%);
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
}

.site-header,
.content-wrap,
.site-footer {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 12px 0 8px;
    backdrop-filter: blur(18px);
}

.site-header-inner,
.site-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-header-inner {
    min-height: 68px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(8, 10, 10, 0.78);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    text-decoration: none;
}

.site-brand-logo {
    display: block;
    width: auto;
    max-width: min(330px, 30vw);
    height: clamp(46px, 4vw, 58px);
    object-fit: contain;
    filter: invert(1) grayscale(1) contrast(1.08) brightness(1.08);
}

.site-nav,
.footer-links,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-nav {
    justify-content: center;
}

.site-nav a,
.header-cta,
.button-primary,
.button-secondary,
.button-tertiary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 245, 241, 0.055);
    color: var(--ink);
    font-size: 0.84rem;
    font-weight: 720;
    line-height: 1.2;
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.header-cta,
.button-primary {
    background: var(--ink);
    border-color: var(--ink);
    color: #080a0a;
}

.button-secondary {
    border-color: rgba(9, 164, 200, 0.48);
    background: var(--cyan-soft);
}

.button-tertiary {
    background: transparent;
}

.site-nav a:hover,
.header-cta:hover,
.button-primary:hover,
.button-secondary:hover,
.button-tertiary:hover,
.text-link:hover,
.footer-links a:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong);
    background: rgba(244, 245, 241, 0.1);
}

.header-cta:hover,
.button-primary:hover {
    background: #ffffff;
    color: #050606;
}

.content-wrap {
    padding-bottom: 34px;
}

.hero {
    display: grid;
    gap: 12px;
    padding: clamp(10px, 1.8vw, 18px) 0 clamp(24px, 3vw, 34px);
    border-bottom: 1px solid var(--line);
}

.hero-heading {
    display: grid;
    gap: 6px;
    justify-items: center;
    text-align: center;
}

.hero-intro {
    max-width: 58ch;
    margin: 10px auto 0;
    color: rgba(244, 245, 241, 0.8);
    font-size: clamp(1rem, 1.45vw, 1.14rem);
    line-height: 1.72;
}

.eyebrow,
.card-label,
.section-heading span {
    margin: 0 0 7px;
    color: var(--sand);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2 {
    color: var(--ink-strong);
    font-family: 'Newsreader', Georgia, serif;
    font-weight: 600;
    letter-spacing: 0;
}

h1 {
    max-width: 26ch;
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3vw, 3rem);
    line-height: 1.04;
}

h2 {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3.8vw, 3.4rem);
    line-height: 1;
}

h3 {
    margin-bottom: 9px;
    color: var(--ink-strong);
    font-size: 1.05rem;
    font-weight: 720;
    line-height: 1.25;
}

p {
    margin-bottom: 12px;
    color: var(--muted);
}

p:last-child {
    margin-bottom: 0;
}

.map-stage {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: clamp(8px, 1.2vw, 12px);
    border: 1px solid rgba(244, 245, 241, 0.2);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(244, 245, 241, 0.12), rgba(244, 245, 241, 0.045)),
        rgba(244, 245, 241, 0.035);
    box-shadow: var(--shadow);
}

.hero-stage {
    width: min(1000px, 100%);
    margin: 0 auto;
    padding: clamp(14px, 2vw, 18px);
    border: 1px solid rgba(244, 245, 241, 0.2);
    border-radius: 16px;
    background:
        radial-gradient(circle at 14% 18%, rgba(9, 164, 200, 0.12), transparent 32%),
        radial-gradient(circle at 84% 16%, rgba(216, 196, 140, 0.09), transparent 30%),
        linear-gradient(180deg, rgba(244, 245, 241, 0.11), rgba(244, 245, 241, 0.04));
    box-shadow: var(--shadow);
}

.hero-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.hero-pillar {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 20px;
    border: 1px solid rgba(244, 245, 241, 0.12);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(244, 245, 241, 0.07), rgba(244, 245, 241, 0.03));
}

.hero-pillar::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent 62%);
    opacity: 0.72;
}

.hero-pillar h3 {
    max-width: 16ch;
    margin-bottom: 10px;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.5rem, 2.4vw, 2.15rem);
    font-weight: 600;
    line-height: 1.02;
}

.hero-pillar p:not(.card-label) {
    max-width: 34ch;
}

.hero-pillar-wide {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, rgba(9, 164, 200, 0.12), rgba(244, 245, 241, 0.04));
}

.map-canvas {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 6px;
    background: var(--map-paper);
}

.map-canvas img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-base {
    z-index: 1;
}

.map-greenland {
    z-index: 2;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
    animation: greenlandFade 4.4s ease-in-out infinite;
}

.map-note {
    padding: 9px 2px 0;
    color: rgba(244, 245, 241, 0.66);
    font-size: 0.86rem;
    line-height: 1.42;
}

.hero-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: min(1000px, 100%);
    margin: 0 auto;
}

.hero-facts p {
    min-height: 100%;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(244, 245, 241, 0.045);
    color: rgba(244, 245, 241, 0.78);
    font-size: 0.95rem;
    line-height: 1.5;
}

.section-block {
    padding: clamp(38px, 5.6vw, 70px) 0;
    border-bottom: 1px solid var(--line);
}

.compact-section {
    padding-top: clamp(34px, 5vw, 58px);
}

.section-heading {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 22px;
}

.section-heading span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 26px;
    margin: 0;
    border: 1px solid rgba(216, 196, 140, 0.28);
    border-radius: 8px;
    background: rgba(216, 196, 140, 0.1);
}

.fact-grid,
.link-grid,
.source-grid {
    display: grid;
    gap: 14px;
}

.fact-grid,
.link-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.source-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.7fr);
}

.fact-card,
.link-card,
.source-card {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(244, 245, 241, 0.09), rgba(244, 245, 241, 0.045));
}

.fact-card::before,
.link-card::before,
.source-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cyan), transparent 56%);
    opacity: 0.66;
}

.work-list {
    display: grid;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(244, 245, 241, 0.04);
}

.work-list article {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    gap: 18px;
    padding: 20px;
    border-top: 1px solid var(--line);
}

.work-list article:first-child {
    border-top: none;
}

.work-list h3 {
    margin-bottom: 0;
}

.text-link,
.footer-links a {
    color: var(--ink);
    font-size: 0.92rem;
    font-weight: 720;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: transform 180ms ease, color 180ms ease;
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
}

.primary-source h3 {
    max-width: 18ch;
    font-family: 'Newsreader', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 600;
}

.button-row {
    margin-top: 18px;
}

.contact-section {
    border-bottom: none;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(90deg, rgba(9, 164, 200, 0.12), rgba(244, 245, 241, 0.045));
}

.contact-layout p {
    max-width: 780px;
}

.site-footer {
    padding: 24px 0 34px;
}

.site-footer p {
    margin: 0;
    color: var(--muted-soft);
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(244, 245, 241, 0.72);
}

@keyframes greenlandFade {

    0%,
    18%,
    100% {
        opacity: 0;
    }

    44%,
    60% {
        opacity: 1;
    }

    82% {
        opacity: 0;
    }
}

@media (max-width: 1020px) {

    .site-header-inner,
    .site-footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-brand-logo {
        max-width: min(330px, 72vw);
    }

    .hero-heading,
    .source-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .fact-grid,
    .link-grid,
    .hero-pillars {
        grid-template-columns: 1fr;
    }

    .map-stage,
    .hero-stage {
        width: 100%;
    }
}

@media (min-width: 900px) and (max-height: 820px) {
    .site-header {
        padding: 8px 0 6px;
    }

    .site-header-inner {
        min-height: 58px;
    }

    .site-brand-logo {
        height: 48px;
    }

    .hero {
        gap: 9px;
        padding-top: 8px;
    }

    .eyebrow {
        margin-bottom: 2px;
    }

    h1 {
        max-width: 28ch;
        font-size: 2.45rem;
    }

    .map-stage,
    .hero-stage,
    .hero-facts {
        width: min(900px, 100%);
    }

    .map-stage,
    .hero-stage {
        padding: 8px;
    }

    .map-note {
        padding-top: 6px;
        font-size: 0.82rem;
    }

    .hero-facts p {
        padding: 10px 12px;
        font-size: 0.86rem;
        line-height: 1.36;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 15.5px;
    }

    .site-header,
    .content-wrap,
    .site-footer {
        width: min(100% - 20px, 1180px);
    }

    .site-header {
        position: relative;
        padding-top: 10px;
    }

    .site-header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        min-height: 0;
        padding: 9px;
    }

    .site-brand {
        grid-column: 1;
    }

    .site-brand-logo {
        max-width: min(235px, 54vw);
        height: 50px;
    }

    .header-cta {
        grid-column: 2;
        min-height: 38px;
        padding: 8px 11px;
    }

    .site-nav {
        grid-column: 1 / -1;
        justify-content: flex-start;
        gap: 6px;
        width: 100%;
    }

    .site-nav a {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 0.8rem;
    }

    .hero {
        gap: 12px;
        padding-top: 20px;
    }

    .hero-intro {
        max-width: none;
        text-align: left;
    }

    h1 {
        max-width: 13ch;
        font-size: clamp(2.25rem, 10vw, 3.35rem);
    }

    h2 {
        font-size: 2.1rem;
    }

    .map-stage {
        margin-inline: -10px;
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .hero-stage {
        padding: 12px;
        border-radius: 14px;
    }

    .hero-pillar {
        padding: 18px;
    }

    .hero-pillar h3 {
        max-width: none;
        font-size: clamp(1.42rem, 7vw, 1.92rem);
    }

    .map-canvas {
        aspect-ratio: 16 / 9;
        border-radius: 4px;
    }

    .map-note {
        padding-inline: 2px;
        font-size: 0.84rem;
    }

    .hero-facts {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
        gap: 8px;
    }

    .fact-card,
    .link-card,
    .source-card,
    .contact-layout {
        padding: 18px;
    }

    .work-list article {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 18px;
    }

    .button-row,
    .button-primary,
    .button-secondary,
    .button-tertiary {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .site-brand-logo {
        max-width: min(205px, 50vw);
        height: 46px;
    }

    .site-nav a {
        padding-inline: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}