/* Keep this stylesheet fingerprinted so browsers recover from stale MIME metadata. */
@property --tint-alpha {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

.site-background {
    position: fixed;
    z-index: 0;
    inset: 0;
    overflow: hidden;
    background: radial-gradient(120% 100% at 50% 0%, #12101d 0%, #0a0912 45%, #060509 100%);
    pointer-events: none;
}

.site-background__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    mix-blend-mode: screen;
    will-change: transform;
    animation: blobDrift 30s ease-in-out infinite;
}

.site-background__blob--rose {
    top: -14%;
    left: -8%;
    width: 58vw;
    height: 58vw;
    background: radial-gradient(circle, rgba(255, 110, 162, .55) 0%, rgba(0, 0, 0, 0) 68%);
    animation-duration: 26s;
}

.site-background__blob--cyan {
    top: 18%;
    left: 52%;
    width: 52vw;
    height: 52vw;
    background: radial-gradient(circle, rgba(101, 213, 255, .48) 0%, rgba(0, 0, 0, 0) 68%);
    animation-duration: 32s;
    animation-delay: -6s;
}

.site-background__blob--violet {
    top: 48%;
    left: 4%;
    width: 62vw;
    height: 62vw;
    background: radial-gradient(circle, rgba(181, 120, 255, .50) 0%, rgba(0, 0, 0, 0) 68%);
    animation-duration: 38s;
    animation-delay: -14s;
}

.site-background__blob--amber {
    top: 68%;
    left: 62%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 183, 101, .34) 0%, rgba(0, 0, 0, 0) 68%);
    animation-duration: 30s;
    animation-delay: -20s;
}

@keyframes blobDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    33% { transform: translate3d(6vw, -5vh, 0) scale(1.14); }
    66% { transform: translate3d(-5vw, 4vh, 0) scale(.92); }
    100% { transform: translate3d(0, 0, 0) scale(1); }
}

.site-background__contours {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.site-background__spot {
    position: absolute;
    top: 0;
    left: 0;
    width: 520px;
    height: 520px;
    margin: -260px 0 0 -260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(150, 200, 255, .16), rgba(150, 200, 255, 0) 66%);
    opacity: 0;
    mix-blend-mode: screen;
    will-change: transform, opacity;
}

.site-background__grain {
    position: absolute;
    inset: -50%;
    opacity: .16;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
    .site-background__blob { animation: none; }
}

@media (max-width: 767px) {
    .site-background__blob { filter: blur(52px); }
    .site-background__blob--rose { width: 108vw; height: 108vw; }
    .site-background__blob--cyan { width: 96vw; height: 96vw; }
    .site-background__blob--violet { width: 116vw; height: 116vw; }
    .site-background__blob--amber { width: 78vw; height: 78vw; }
}


/* ---------- Type & rhythm ----------
   One serif for display moments (the name, the tile titles) and the system
   sans everywhere else. Every block shares one column, so the intro, tiles,
   cards and links all start on the same left edge. */

:root {
    --serif: "Iowan Old Style", "Newsreader", Baskerville, Georgia, serif;
    --ink: rgba(255, 255, 255, .92);
    --ink-2: rgba(255, 255, 255, .68);
    --ink-3: rgba(255, 255, 255, .46);
    --hairline: rgba(255, 255, 255, .12);
    --column: 1180px;
    --gutter: clamp(16px, 3vw, 32px);
    --ease-out: cubic-bezier(.2, .7, .2, 1);
}

html {
    min-height: 100%;
    background: #0a0912;
}

body {
    height: 100%;
    background: transparent;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body > header,
body > main {
    position: relative;
    z-index: 1;
}

::selection { background: rgba(138, 220, 255, .32); }

/* Outranks the layout's Bootstrap .pt-3/.pb-3 utilities, which are !important. */
header.pt-3.pb-3 {
    padding: clamp(2.75rem, 7vw, 5rem) 0 0 !important;
    background: transparent;
}

header h1.mb-1 {
    margin: 0 !important;
    font-family: var(--serif);
    font-size: clamp(2.6rem, 6vw, 4rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -.035em;
}

header h1 a {
    color: white;
    transition: opacity .2s ease;
}

header h1 a:hover { opacity: .8; }

.home {
    max-width: var(--column);
    margin: 0 auto;
    padding: 0 var(--gutter) 2rem;
}

.home a:focus-visible,
.home-footer a:focus-visible {
    outline: 2px solid white;
    outline-offset: 3px;
    border-radius: 4px;
}

/* ---------- Intro ---------- */

.home-intro {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem 1.75rem;
    margin: 1.1rem 0 0;
    color: var(--ink-2);
    font-size: 1.125rem;
    font-weight: 300;
    text-align: center;
}

.home-intro__emoji { margin-right: .45em; }

.home-intro a,
.link-list a {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .22);
    transition: color .15s ease, background-size .3s var(--ease-out);
}

.home-intro a:hover,
.link-list a:hover {
    color: white;
    text-decoration: none;
    background-size: 100% 1px;
}

/* ---------- Feature tiles ---------- */

.feature-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: clamp(2rem, 5vw, 3.25rem) 0 0;
}

.feature-tile {
    position: relative;
    min-height: clamp(340px, 36vw, 480px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 22px;
    background: #151515;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .18),
        0 18px 52px rgba(0, 0, 0, .42);
    color: white;
    isolation: isolate;
    text-decoration: none;
    transform: translateZ(0);
    transition: transform .45s var(--ease-out), border-color .25s ease, box-shadow .45s ease;
}

.feature-tile:hover,
.feature-tile:focus {
    color: white;
    text-decoration: none;
    border-color: rgba(255, 255, 255, .38);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .26),
        0 28px 72px rgba(0, 0, 0, .6);
    transform: translateY(-6px);
}

.feature-tile:focus-visible { outline: 2px solid white; outline-offset: 4px; }

@view-transition { navigation: auto; }

::view-transition-group(tile-expand) {
    z-index: 10;
    animation-duration: 520ms;
    animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

::view-transition-old(tile-expand),
::view-transition-new(tile-expand) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation-duration: 220ms;
    animation-timing-function: ease-out;
}

.feature-tile__media,
.feature-tile__shade,
.feature-tile__photo,
.feature-tile__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.feature-tile__media { z-index: -2; overflow: hidden; }
.feature-tile__photo,
.feature-tile__video { object-fit: cover; }

/* The poster stands in until the first frame decodes, so the tile is never a
   black slab; the slow push-in keeps it alive while it waits. */
.feature-tile__video {
    transform: scale(1.025);
    transition: transform 1.2s var(--ease-out);
}

.feature-tile:hover .feature-tile__video { transform: scale(1.06); }

.feature-tile__photo {
    opacity: 0;
    will-change: opacity, transform;
    animation: photoKenBurns 18s ease-in-out infinite;
}

.feature-tile__photo:nth-child(1) { --ken-x: -2.5%; --ken-y: -1.5%; animation-delay: 0s; }
.feature-tile__photo:nth-child(2) { --ken-x: 2%; --ken-y: 1%; animation-delay: 6s; }
.feature-tile__photo:nth-child(3) { --ken-x: -1%; --ken-y: 2%; animation-delay: 12s; }

@keyframes photoKenBurns {
    0% { opacity: 0; transform: scale(1.045) translate3d(0, 0, 0); }
    5% { opacity: 1; }
    29% { opacity: 1; }
    36% { opacity: 0; transform: scale(1.14) translate3d(var(--ken-x), var(--ken-y), 0); }
    100% { opacity: 0; transform: scale(1.14) translate3d(var(--ken-x), var(--ken-y), 0); }
}

.feature-tile__shade {
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .14), transparent 30%),
        linear-gradient(0deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .02) 58%);
}

.feature-tile__copy {
    position: absolute;
    right: clamp(24px, 3.5vw, 44px);
    bottom: clamp(22px, 3.5vw, 40px);
    left: clamp(24px, 3.5vw, 44px);
}

.feature-tile__kicker {
    margin: 0 0 .7rem;
    color: rgba(255, 255, 255, .72);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    transform: translateY(4px);
    opacity: .85;
    transition: opacity .35s ease, transform .45s var(--ease-out);
}

.feature-tile:hover .feature-tile__kicker,
.feature-tile:focus .feature-tile__kicker { opacity: 1; transform: none; }

.feature-tile h2 {
    margin: 0;
    color: white;
    font-family: var(--serif);
    font-size: clamp(3.1rem, 6vw, 6rem);
    font-weight: 400;
    line-height: .86;
    letter-spacing: -.05em;
    text-align: left;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}

.feature-tile__arrow {
    position: absolute;
    top: 22px;
    right: 22px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, .36);
    border-radius: 50%;
    background: rgba(0, 0, 0, .14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 1.15rem;
    transition: background .25s ease, color .25s ease, border-color .25s ease, transform .35s var(--ease-out);
}

.feature-tile:hover .feature-tile__arrow,
.feature-tile:focus .feature-tile__arrow {
    border-color: white;
    background: white;
    color: black;
    transform: rotate(45deg);
}

/* ---------- Section labels ---------- */

.home-section { margin-top: clamp(3rem, 7vw, 4.75rem); }

.section-label {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 1.25rem;
    color: var(--ink-2);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1;
    text-transform: uppercase;
}

.section-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--hairline), transparent);
}

/* Everything under "now" is live, so the label carries a live dot. */
.section-label__live {
    position: relative;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #3ddc84;
    box-shadow: 0 0 10px rgba(61, 220, 132, .7);
}

.section-label__live::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #3ddc84;
    animation: liveDot 2.4s cubic-bezier(.22, .61, .36, 1) infinite;
}

@keyframes liveDot {
    0% { opacity: .6; transform: scale(1); }
    80%, 100% { opacity: 0; transform: scale(3.2); }
}

/* ---------- Now cards ---------- */

@property --tint-alpha {
    syntax: "<number>";
    inherits: false;
    initial-value: 0;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.info-card {
    --card-radius: 16px;
    --tint: 255, 255, 255;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .55rem;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.35rem;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: var(--card-radius);
    background:
        linear-gradient(155deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, .015) 46%),
        linear-gradient(0deg,
            rgba(var(--tint), var(--tint-alpha)),
            rgba(var(--tint), var(--tint-alpha))),
        rgba(6, 6, 12, .24);
    backdrop-filter: blur(2px) saturate(170%);
    -webkit-backdrop-filter: blur(2px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .20),
        inset 0 -1px 0 rgba(255, 255, 255, .04),
        0 6px 20px rgba(0, 0, 0, .26);
    color: var(--ink);
    text-decoration: none;
    isolation: isolate;
    transform-style: preserve-3d;
    opacity: 0;
    animation: cardRise .6s var(--ease-out) forwards;
    transition: box-shadow .18s ease-out, border-color .18s ease-out, --tint-alpha .18s ease-out;
}

@keyframes cardRise {
    from { opacity: 0; translate: 0 10px; }
    to { opacity: 1; translate: 0 0; }
}

.info-card:nth-child(1) { animation-delay: 0ms; }
.info-card:nth-child(2) { animation-delay: 70ms; }
.info-card:nth-child(3) { animation-delay: 140ms; }
.info-card:nth-child(4) { animation-delay: 210ms; }
.info-card:nth-child(5) { animation-delay: 280ms; }
.info-card:nth-child(6) { animation-delay: 350ms; }

.info-card.clickable-card { cursor: pointer; }

.info-card.clickable-card:hover,
.info-card.clickable-card:focus-visible {
    --tint-alpha: .16;
    color: white;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -1px 0 rgba(255, 255, 255, .05),
        0 12px 30px rgba(0, 0, 0, .40);
}

.info-card.clickable-card:focus-visible { outline: 2px solid white; outline-offset: 3px; }

.info-card__arrow {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 50%;
    color: var(--ink-2);
    font-size: .8rem;
    transition: background .2s ease, color .2s ease, border-color .2s ease, transform .3s var(--ease-out);
}

.info-card.clickable-card:hover .info-card__arrow {
    border-color: white;
    background: white;
    color: black;
    transform: rotate(45deg);
}

.info-card--strava { --tint: 252, 76, 2; }

.info-card.clickable-card.info-card--strava:hover {
    border-color: rgba(252, 76, 2, .58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -1px 0 rgba(255, 255, 255, .05),
        0 0 0 1px rgba(252, 76, 2, .26),
        0 0 30px rgba(252, 76, 2, .24),
        0 12px 30px rgba(0, 0, 0, .40);
}

/* The location card reads as a live GPS fix: a thin blue rim with two rings
   radiating out of it on a staggered cadence, like the iOS location dot. */
.info-card--location {
    --tint: 10, 132, 255;
    border-color: rgba(10, 132, 255, .58);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .20),
        inset 0 -1px 0 rgba(255, 255, 255, .04),
        0 0 0 1px rgba(10, 132, 255, .16),
        0 0 22px rgba(10, 132, 255, .16),
        0 10px 26px rgba(0, 0, 0, .34);
}

.info-card--location::before,
.info-card--location::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: var(--card-radius);
    pointer-events: none;
    animation: locationPulse 3.2s cubic-bezier(.22, .61, .36, 1) infinite;
}

.info-card--location::after { animation-delay: 1.6s; }

.info-card.clickable-card.info-card--location:hover {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .28),
        inset 0 -1px 0 rgba(255, 255, 255, .05),
        0 0 0 1px rgba(10, 132, 255, .26),
        0 0 30px rgba(10, 132, 255, .24),
        0 14px 34px rgba(0, 0, 0, .38);
}

@keyframes locationPulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 132, 255, .45); }
    70% { box-shadow: 0 0 0 18px rgba(10, 132, 255, 0); }
    100% { box-shadow: 0 0 0 18px rgba(10, 132, 255, 0); }
}

.card-header {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--ink-3);
    font-size: .82rem;
    font-weight: 500;
    letter-spacing: .01em;
    text-transform: lowercase;
}

/* Tabular figures, so the count-up doesn't shimmy as digits change width. */
.card-hero {
    margin-top: .15rem;
    color: rgba(255, 255, 255, .96);
    font-size: clamp(2.5rem, 3.6vw, 3.1rem);
    font-weight: 200;
    font-variant-numeric: tabular-nums;
    letter-spacing: -.025em;
    line-height: 1;
}

.card-unit {
    margin-left: .08em;
    color: var(--ink-3);
    font-size: .45em;
    font-weight: 400;
    letter-spacing: 0;
}

.card-description {
    margin-top: auto;
    color: var(--ink-3);
    font-size: .9rem;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.card-content {
    color: var(--ink);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.45;
}

.card-placeholder {
    color: var(--ink-3);
    animation: placeholderPulse 1.4s ease-in-out infinite alternate;
}

@keyframes placeholderPulse { to { opacity: .4; } }

.card-content a {
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    transition: color .15s, border-color .15s;
}

.card-content a:hover {
    text-decoration: none;
    color: #1ed760;
    border-bottom-color: rgba(30, 215, 96, .8);
}

/* ---------- Links ---------- */

.link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.link-list li {
    display: flex;
    gap: .85rem;
    margin: 0;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--hairline);
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.4;
}

.link-list__emoji {
    flex: 0 0 1.6rem;
    text-align: center;
}

.link-list__body { min-width: 0; }

.link-list small {
    display: block;
    margin-top: .3rem;
    color: var(--ink-3);
    font-size: .88rem;
    font-weight: 400;
    line-height: 1.4;
}

.link-list small:empty { display: none; }

.link-list small a {
    color: var(--ink-2);
    font-weight: 500;
}

/* ---------- Footer ---------- */

.home-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: clamp(3.5rem, 8vw, 5.5rem);
}

.btn-social-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: min(100%, 640px);
    overflow: hidden;
    border: 1px solid var(--hairline);
    border-radius: 14px;
    background: rgba(6, 6, 12, .22);
    backdrop-filter: blur(2px) saturate(160%);
    -webkit-backdrop-filter: blur(2px) saturate(160%);
}

.btn-social {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: .95rem 1.2rem;
    border-left: 1px solid var(--hairline);
    color: var(--ink-2);
    text-decoration: none;
    transition: background-color .15s, color .15s;
}

.btn-social:first-child { border-left: none; }

.btn-social:hover,
.btn-social:focus-visible {
    color: white;
    text-decoration: none;
}

.btn-social:active { transition: 0s; }

.btn-social i {
    flex: 0 0 auto;
    font-size: 1.6rem;
}

.btn-social-text {
    min-width: 0;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.1;
}

.btn-social-text small {
    display: block;
    margin-top: .25rem;
    color: inherit;
    font-size: .78rem;
    font-weight: 400;
    opacity: .72;
    white-space: nowrap;
}

.btn-x:hover { background-color: #111; }
.btn-x:active { background-color: #000; }
.btn-instagram:hover { background-color: #e4405f; }
.btn-instagram:active { background-color: #d31e40; }
.btn-strava:hover { background-color: #fc4c02; }
.btn-strava:active { background-color: #b93801; }

.home-colophon {
    margin: 0;
    color: var(--ink-3);
    font-size: .8rem;
    letter-spacing: .02em;
}

/* ---------- Responsive ---------- */

@media (max-width: 991px) {
    .cards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
    .home-intro {
        flex-direction: column;
        align-items: center;
        font-size: 1rem;
    }

    .feature-bento { grid-template-columns: 1fr; gap: 1rem; }
    .feature-tile { min-height: 0; aspect-ratio: 16 / 10; border-radius: 18px; }
    .feature-tile h2 { font-size: clamp(2.9rem, 12.5vw, 4.4rem); }
    .feature-tile__copy { right: 22px; bottom: 22px; left: 22px; }
    .feature-tile__arrow { top: 16px; right: 16px; width: 36px; height: 36px; }

    .cards-container { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .info-card { padding: 1.1rem 1.1rem 1rem; gap: .45rem; }
    .info-card--location { grid-column: 1 / -1; }
    .info-card:last-child { grid-column: 1 / -1; }
    .info-card__arrow { top: .85rem; right: .85rem; width: 24px; height: 24px; }
    .card-header { font-size: .75rem; }
    .card-hero { font-size: 2.15rem; }
    .card-description { font-size: .8rem; }
    .card-content { font-size: 1rem; }

    .link-list { grid-template-columns: 1fr; }
    .link-list li { font-size: 1.05rem; padding: .9rem 0; }
    .link-list small { font-size: .8rem; }

    .btn-social { justify-content: center; padding: .9rem .5rem; }
    .btn-social-text { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .site-background__blob,
    .info-card--location::before,
    .info-card--location::after,
    .section-label__live::after,
    .card-placeholder { animation: none; }
    .info-card { animation: none; opacity: 1; }
    .feature-tile__photo { animation: none; opacity: 0; }
    .feature-tile__photo:first-child { opacity: 1; transform: none; }
    .feature-tile,
    .feature-tile__video { transition: none; }
}
