@font-face {
    font-family: "Manrope";
    src: url("assets/fonts/Manrope-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 200 800;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/CormorantGaramond-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: normal;
    font-weight: 300 700;
}

@font-face {
    font-family: "Cormorant Garamond";
    src: url("assets/fonts/CormorantGaramond-Italic-Variable.ttf") format("truetype");
    font-display: swap;
    font-style: italic;
    font-weight: 300 700;
}

:root {
    color-scheme: dark;
    font-family: "Manrope", system-ui, sans-serif;
    background: #010504;
    color: #edf4ef;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 20rem;
    min-height: 100%;
    background: #010504;
}

body {
    min-width: 20rem;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    background: #010504;
}

button,
a {
    font: inherit;
}

.kf-skip-link {
    position: fixed;
    z-index: 20;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    transform: translateY(-180%);
    border: 1px solid rgba(125, 240, 178, .72);
    background: #03100b;
    color: #f3faf6;
    font-size: .7rem;
    letter-spacing: .12em;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform .2s ease;
}

.kf-skip-link:focus {
    transform: none;
}

.kf-signal-landing {
    --kf-emerald: 125, 240, 178;
    --kf-gold: 242, 196, 109;
    position: relative;
    isolation: isolate;
    display: grid;
    min-height: 100svh;
    grid-template-rows: 1fr auto;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 50% 30%, rgba(16, 83, 57, .15), transparent 39rem),
        radial-gradient(ellipse at 14% 18%, rgba(15, 54, 47, .12), transparent 30rem),
        radial-gradient(ellipse at 86% 80%, rgba(64, 46, 20, .09), transparent 32rem),
        linear-gradient(180deg, #020706 0%, #010504 56%, #000201 100%);
}

.kf-signal-landing::before,
.kf-signal-landing::after {
    content: "";
    position: absolute;
    z-index: -1;
    pointer-events: none;
}

.kf-signal-landing::before {
    inset: 0;
    opacity: .7;
    background:
        radial-gradient(circle at 15% 23%, rgba(var(--kf-emerald), .075) 0 1px, transparent 1.5px),
        radial-gradient(circle at 78% 18%, rgba(204, 229, 217, .07) 0 1px, transparent 1.5px),
        radial-gradient(circle at 88% 68%, rgba(var(--kf-gold), .06) 0 1px, transparent 1.5px),
        radial-gradient(circle at 26% 77%, rgba(204, 229, 217, .055) 0 1px, transparent 1.5px);
    background-size: 17rem 19rem, 23rem 21rem, 29rem 27rem, 31rem 25rem;
}

.kf-signal-landing::after {
    inset: -2px;
    background:
        linear-gradient(180deg, rgba(0, 2, 2, .42), transparent 18%, transparent 72%, rgba(0, 2, 2, .78)),
        radial-gradient(ellipse at center, transparent 48%, rgba(0, 2, 2, .56) 100%);
}

.kf-signal {
    position: relative;
    z-index: 2;
    display: grid;
    width: min(64rem, calc(100% - 2.5rem));
    align-self: center;
    justify-self: center;
    justify-items: center;
    padding: clamp(2rem, 4.5vh, 3.5rem) 0 clamp(1.75rem, 3.5vh, 2.75rem);
    text-align: center;
}

.kf-signal__visual {
    position: relative;
    display: grid;
    width: clamp(17rem, 39vh, 24rem);
    max-width: 72vw;
    aspect-ratio: 1;
    place-items: center;
}

.kf-signal__visual::before {
    content: "";
    position: absolute;
    inset: 25%;
    border: 1px solid rgba(var(--kf-emerald), .075);
    border-radius: 50%;
    box-shadow:
        0 0 2.5rem rgba(var(--kf-emerald), .055),
        inset 0 0 2rem rgba(var(--kf-gold), .025);
}

.kf-signal__ring {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42%;
    aspect-ratio: 1;
    transform: translate(-50%, -50%) scale(.72);
    transform-origin: center;
    border: 1px solid rgba(var(--kf-emerald), .34);
    border-radius: 50%;
    opacity: 0;
    box-shadow:
        0 0 1.4rem rgba(var(--kf-emerald), .06),
        inset 0 0 1rem rgba(var(--kf-gold), .025);
    animation: kf-echo-wave 15s linear infinite;
    will-change: transform, opacity;
}

.kf-signal__ring--two {
    animation-delay: -5s;
}

.kf-signal__ring--three {
    animation-delay: -10s;
}

.kf-signal__emblem {
    position: relative;
    z-index: 3;
    display: grid;
    width: 48%;
    aspect-ratio: 1;
    place-items: center;
    animation: kf-emblem-resonate 5s ease-out infinite;
    will-change: filter, opacity;
}

.kf-signal__emblem img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: .84;
    filter:
        saturate(.72)
        brightness(.96)
        drop-shadow(0 0 .8rem rgba(var(--kf-emerald), .13));
}

.kf-signal__copy {
    width: min(54rem, 100%);
    margin-top: clamp(-1.1rem, -1.8vh, -.55rem);
}

.kf-signal__brand {
    margin: 0 0 1rem;
    color: rgba(var(--kf-emerald), .78);
    font-size: clamp(.56rem, .72vw, .68rem);
    font-weight: 550;
    letter-spacing: .34em;
    text-indent: .34em;
    text-transform: uppercase;
}

.kf-signal__brand::before,
.kf-signal__brand::after {
    content: "";
    display: inline-block;
    width: clamp(1.4rem, 4vw, 3rem);
    height: 1px;
    margin: 0 .9rem .2em;
    background: linear-gradient(90deg, transparent, rgba(var(--kf-emerald), .45));
}

.kf-signal__brand::after {
    background: linear-gradient(90deg, rgba(var(--kf-emerald), .45), transparent);
}

.kf-signal__copy h1 {
    max-width: 16ch;
    margin: 0 auto;
    color: rgba(241, 247, 243, .97);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.65rem, 6.3vw, 6.9rem);
    font-weight: 400;
    letter-spacing: -.048em;
    line-height: .82;
    text-wrap: balance;
    text-shadow: 0 1rem 3.5rem rgba(0, 0, 0, .72);
}

.kf-signal__copy h1 span,
.kf-signal__copy h1 em {
    display: block;
}

.kf-signal__copy h1 em {
    margin-top: .08em;
    color: rgba(211, 231, 219, .76);
    font-weight: 400;
}

.kf-signal__lede {
    max-width: 40ch;
    margin: clamp(1.35rem, 2.6vh, 2rem) auto 0;
    color: rgba(197, 216, 205, .7);
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.05rem, 1.55vw, 1.32rem);
    font-style: italic;
    line-height: 1.55;
    text-wrap: balance;
}

.kf-signal__lede span {
    display: block;
    color: rgba(224, 205, 158, .66);
}

.kf-signal__footer {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(76rem, calc(100% - 3rem));
    justify-self: center;
    justify-content: space-between;
    padding: 1.2rem 0 1.5rem;
    border-top: 1px solid rgba(196, 226, 212, .09);
    color: rgba(161, 186, 174, .38);
    font-size: .52rem;
    letter-spacing: .22em;
    text-transform: uppercase;
}

@keyframes kf-echo-wave {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.72);
    }

    7% {
        opacity: .26;
    }

    42% {
        opacity: .12;
    }

    72% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.22);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(2.22);
    }
}

@keyframes kf-emblem-resonate {
    0%,
    100% {
        opacity: .88;
        filter: brightness(.94) drop-shadow(0 0 .55rem rgba(var(--kf-emerald), .08));
    }

    8% {
        opacity: 1;
        filter: brightness(1.08) drop-shadow(0 0 1.05rem rgba(var(--kf-emerald), .18));
    }

    22% {
        opacity: .9;
        filter: brightness(.98) drop-shadow(0 0 .65rem rgba(var(--kf-emerald), .1));
    }
}

@media (max-width: 640px) {
    .kf-signal {
        width: min(100% - 2rem, 35rem);
        padding-top: max(1.5rem, 4svh);
    }

    .kf-signal__visual {
        width: clamp(14.5rem, 37vh, 18rem);
        max-width: 82vw;
    }

    .kf-signal__copy {
        margin-top: -.5rem;
    }

    .kf-signal__brand {
        margin-bottom: .85rem;
        letter-spacing: .28em;
        text-indent: .28em;
    }

    .kf-signal__brand::before,
    .kf-signal__brand::after {
        width: 1.2rem;
        margin-right: .65rem;
        margin-left: .65rem;
    }

    .kf-signal__copy h1 {
        font-size: clamp(3.15rem, 15vw, 4.8rem);
        line-height: .84;
    }

    .kf-signal__lede {
        max-width: 34ch;
        font-size: 1.05rem;
    }

    .kf-signal__footer {
        width: calc(100% - 2rem);
        justify-content: center;
        gap: 1rem;
        padding-bottom: max(1.1rem, env(safe-area-inset-bottom));
        text-align: center;
    }
}

@media (max-height: 680px) and (min-width: 641px) {
    .kf-signal {
        grid-template-columns: minmax(15rem, 22rem) minmax(24rem, 1fr);
        gap: clamp(1rem, 4vw, 4rem);
        align-items: center;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .kf-signal__visual {
        width: min(52vh, 22rem);
        max-width: 100%;
    }

    .kf-signal__copy {
        margin-top: 0;
        text-align: left;
    }

    .kf-signal__copy h1,
    .kf-signal__lede {
        margin-right: 0;
        margin-left: 0;
    }

    .kf-signal__brand {
        text-indent: 0;
    }

    .kf-signal__brand::before {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .kf-signal__ring,
    .kf-signal__emblem {
        animation: none;
    }

    .kf-signal__ring--one {
        opacity: .14;
        transform: translate(-50%, -50%) scale(1.25);
    }
}
