/* The site's own palette (main.css). Category colors c0-c6 are the live drips-multicolor.svg colors. */
.home-page {
    --hh-navy: #04477A;
    --hh-blue: #0E65AD;
    --hh-ink: #161112;
    --hh-shadow: #111F2F;
    --hh-muted: #D1D3D4;
    --hh-mint: #77EDC6;
    --hh-green: #02C689;
    --hh-c0: #02C689; --hh-c1: #059ECE; --hh-c2: #F97DC7; --hh-c3: #6B62E8; --hh-c4: #C13EDD; --hh-c5: #77EDC6; --hh-c6: #77DBF2;
    --hh-pixel: 'Unibody 8 Pro', sans-serif;
}
.home-hero,
.home-globe {
    color: #fff;
    font-family: degular, sans-serif;
}
.home-hero *,
.home-globe * {
    box-sizing: border-box;
}

/* ---------- header (home page only) ---------- */
/* z-index sits under the menu overlay (25) and slide-out menu (30) */
.home-page .site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 24;
    padding: 18px clamp(16px, 4vw, 48px);
    background: linear-gradient(rgba(22, 17, 18, .9), rgba(22, 17, 18, 0));
    transition: background .25s, box-shadow .25s;
}
.home-page .site-header.is-scrolled {
    background: rgba(22, 17, 18, .94);
    box-shadow: 0 1px 0 #ffffff14;
}
.home-page .site-header .container {
    max-width: none;
}
.home-page .header-logo {
    width: 73px;
}
/* the open menu's "MENU x" button sits exactly where the hamburger is: the header's side padding plus
   the hamburger's 8px margin, centred on the header's 31px midline */
.home-page {
    --hh-header-inset: calc(clamp(16px, 4vw, 48px) + 8px);
}
.home-page .nav-menu-contents {
    max-width: none;
}
.home-page .mobile-nav__close {
    top: 31px;
    right: var(--hh-header-inset);
    margin: 0;
    transform: translateY(-50%);
}
.home-page .nav-menu {
    padding-right: var(--hh-header-inset);
}

/* ---------- hero ---------- */
.home-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
    padding: 96px clamp(16px, 6vw, 96px) 40px;
    background: radial-gradient(120% 90% at 85% 40%, var(--hh-navy) 0%, var(--hh-shadow) 60%, var(--hh-ink) 100%);
    overflow: hidden;
}
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    /* cover + right top: the artwork is cropped on its left, right and bottom edges, and this keeps
       those cut edges outside the hero at every viewport size */
    background: url('/assets/images/paint-spatter_thin.png') no-repeat right top / cover;
    opacity: .18;
    /* quieter still behind the copy on the left */
    -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, .45), #000 65%);
    mask-image: linear-gradient(90deg, rgba(0, 0, 0, .45), #000 65%);
    pointer-events: none;
}
.home-hero__copy {
    position: relative;
}
.home-hero__heading {
    margin: 0;
    max-width: 11ch;
    font-size: clamp(40px, 7.2vw, 104px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.035em;
}
.home-hero__heading em {
    font-style: normal;
    color: var(--hh-mint);
}
.home-hero__sub {
    margin: 22px 0 0;
    max-width: 34ch;
    font-size: clamp(17px, 1.6vw, 21px);
    line-height: 1.45;
    color: var(--hh-muted);
}
.home-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}
/* the live .button-primary look (green pill, red/mint offset edges); dark text because white on
   #02C689 is only 2.2:1 contrast, under the WCAG AA minimum of 4.5:1 */
.home-hero__btn,
.home-hero__btn:hover,
.home-hero__btn:focus {
    display: inline-flex;
    align-items: center;
    padding: 13px 26px;
    border: 2px solid var(--hh-green);
    border-radius: 50px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}
.home-hero__btn--primary,
.home-hero__btn--primary:hover,
.home-hero__btn--primary:focus {
    background: var(--hh-green);
    color: var(--hh-ink);
    box-shadow: -3px 0 0 #CB401C80, 3px 0 0 var(--hh-mint);
}
.home-hero__btn:hover {
    transform: translateY(-1px);
}
/* an SVG, not the \2197 character, which iOS draws as an emoji */
.home-hero__external {
    width: .75em;
    height: .75em;
    margin-left: 7px;
    flex: none;
}
.hh-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}
/* sections focused by in-page links show no outline (they aren't controls) */
.home-page section[tabindex="-1"]:focus,
.home-page ul[tabindex="-1"]:focus {
    outline: none;
}
.home-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, auto);
    justify-content: start;
    gap: 8px clamp(18px, 3vw, 44px);
    margin-top: 48px;
}
.home-hero__stats b {
    display: block;
    font-size: clamp(24px, 2.6vw, 36px);
    font-weight: 700;
    letter-spacing: -.02em;
}
.home-hero__stats span {
    font-family: var(--hh-pixel);
    font-size: 13px;
    color: var(--hh-muted);
}
.home-hero__letters {
    position: relative;
    width: clamp(170px, 20vw, 280px);
    height: min(76vh, 640px);
    height: min(76svh, 640px);
    margin-right: 40px;
}
.home-hero__letters canvas {
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
}
.home-hero__letters-fallback {
    position: absolute;
    inset: 0;
    width: 80%;
    margin: auto;
}
/* scroll hint: desktop mouse users only */
.home-hero__scroll {
    position: absolute;
    left: 50%;
    bottom: 28px;
    display: none;
    transform: translateX(-50%);
    color: var(--hh-mint);
    text-decoration: none;
    animation: home-hero-scroll-pulse 2.4s ease-in-out infinite;
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
    .home-hero__scroll {
        display: flex;
    }
}
.home-hero__scroll:hover,
.home-hero__scroll:focus {
    color: var(--hh-mint);
    text-decoration: none;
}
.home-hero__mouse {
    position: relative;
    width: 24px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 12px;
}
.home-hero__wheel {
    position: absolute;
    left: 50%;
    top: 7px;
    width: 4px;
    height: 8px;
    margin-left: -2px;
    border-radius: 2px;
    background: currentColor;
    animation: home-hero-scroll-wheel 1.6s ease-in-out infinite;
}
@keyframes home-hero-scroll-wheel {
    0% { opacity: 0; transform: translateY(0); }
    30% { opacity: 1; }
    100% { opacity: 0; transform: translateY(12px); }
}
@keyframes home-hero-scroll-pulse {
    0%, 100% { opacity: .55; }
    50% { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
    .home-hero__scroll,
    .home-hero__wheel {
        animation: none;
    }
}

/* small screens keep the previous layout: a narrow column of letters beside the copy */
@media (max-width: 760px) {
    .home-hero {
        align-content: center;
        align-items: start;
        gap: 12px;
        padding-top: 88px;
    }
    .home-hero__letters {
        width: 100px;
        height: 300px;
        margin-right: 0;
    }
    .home-hero__stats {
        grid-template-columns: repeat(2, auto);
    }
}
@media (max-width: 399px) {
    .home-hero__letters {
        width: 75px;
        height: 225px;
    }
}

/* ---------- globe ---------- */
/* above the domains section (z-index 10), whose drips hang 100px above it on narrow screens;
   the section this replaced covered them the same way */
.home-globe {
    position: relative;
    z-index: 11;
    height: 950vh;
    background: radial-gradient(140% 70% at 50% 30%, var(--hh-navy) 0%, var(--hh-shadow) 50%, var(--hh-ink) 100%);
}
.home-globe__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    /* dvh follows iOS Safari's toolbar as it collapses, so the stage always fills the screen */
    height: 100dvh;
    overflow: hidden;
    touch-action: pan-y;
}
.home-globe__stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.home-globe__tiles {
    position: absolute;
    inset: 0;
}
.home-globe__tile,
.home-globe__badge,
.home-globe__sld {
    position: absolute;
    left: 0;
    top: 0;
    transform-origin: 0 0;
    will-change: transform, opacity;
}
.home-globe__tile {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 9px;
    background: var(--hh-blue);
    box-shadow: 0 0 0 1.5px var(--cc, transparent) inset, 0 6px 18px #111F2F80;
}
.home-globe__tile:hover {
    filter: brightness(1.15);
}
.home-globe__sld {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px #111F2F99;
    opacity: 0;
}
.home-globe__tile img,
.home-globe__sld img {
    display: block;
    flex: none;
    max-width: none;
}
.home-globe__badge {
    width: 300px;
}
.home-globe__badge img {
    display: block;
    width: 100%;
    height: auto;
}
.home-globe__cap {
    position: absolute;
    left: clamp(16px, 6vw, 96px);
    top: 50%;
    width: min(30vw, 380px);
    transform: translateY(-50%);
    pointer-events: none;
}
.home-globe__cap > div {
    position: absolute;
    left: 0;
    top: 0;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity .35s, transform .35s;
}
.home-globe__cap > div.on {
    opacity: 1;
    pointer-events: auto;
}
.home-globe__kicker {
    margin: 0;
    font-family: var(--hh-pixel);
    font-size: 14px;
    color: var(--hh-muted);
}
.home-globe__cap h3 {
    margin: 8px 0 10px;
    font-size: clamp(30px, 4vw, 56px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -.03em;
}
.home-globe__cap h3 i {
    font-style: normal;
    color: var(--cc);
}
.home-globe__cap p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--hh-muted);
}
.home-globe__cap p.home-globe__names {
    font-family: var(--hh-pixel);
    font-size: 15px;
    line-height: 1.7;
    color: #fff;
}
.home-globe__cap p.home-globe__disc {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
    opacity: .85;
}
@media (min-width: 761px) and (max-width: 1200px) {
    .home-globe__cap--side > div {
        margin-left: -18px;
        padding: 16px 18px;
        border-radius: 16px;
        /* no backdrop blur: it would re-blur the globe on every frame; the panel is just more opaque instead */
        background: linear-gradient(90deg, rgba(22, 17, 18, .94), rgba(22, 17, 18, .86));
    }
}
.home-globe__cap--intro {
    left: 0;
    right: 0;
    top: 12vh;
    width: auto;
    transform: none;
    text-align: center;
}
.home-globe__cap--intro > div {
    left: 0;
    right: 0;
    transform: none;
}
.home-globe__dots {
    position: absolute;
    right: clamp(14px, 3vw, 36px);
    top: 50%;
    display: grid;
    transform: translateY(-50%);
}
/* 24px tap target (WCAG 2.5.8) around a 12px dot */
.home-globe__dots button {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
}
.home-globe__dots button::before {
    content: "";
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid var(--cc);
    border-radius: 50%;
    /* the light outer ring keeps every dot at 3:1+ contrast (WCAG 1.4.11), whatever its category color */
    box-shadow: 0 0 0 1px var(--hh-muted);
}
.home-globe__dots button.on::before {
    background: var(--cc);
    transform: scale(1.25);
}
.home-globe__skip,
.home-globe__skip:hover,
.home-globe__skip:focus {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--hh-pixel);
    font-size: 13px;
    color: var(--hh-muted);
    text-decoration: none;
    opacity: .8;
}
.home-globe__skip:hover {
    color: var(--hh-mint);
}
.home-globe__play {
    position: absolute;
    left: clamp(16px, 6vw, 96px);
    bottom: 16px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid var(--hh-mint);
    border-radius: 50%;
    background: rgba(22, 17, 18, .8);
    color: var(--hh-mint);
    cursor: pointer;
    transition: background .15s, color .15s;
}
.home-globe__play:hover,
.home-globe__play[aria-pressed="true"] {
    background: var(--hh-mint);
    color: var(--hh-ink);
}
/* above the globe's moving links (inline z-index up to 400), so a passing logo can't take their taps */
.home-globe__dots,
.home-globe__skip,
.home-globe__play {
    z-index: 500;
}
.home-globe__play svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.home-globe__play .home-globe__pause-icon,
.home-globe__play[aria-pressed="true"] .home-globe__play-icon {
    display: none;
}
.home-globe__play[aria-pressed="true"] .home-globe__pause-icon {
    display: block;
}
@media (max-width: 760px) {
    .home-globe__cap {
        left: 16px;
        right: 16px;
        top: 76px;
        width: auto;
        transform: none;
        text-align: center;
    }
    .home-globe__cap > div {
        left: 0;
        right: 0;
        transform: none;
    }
    .home-globe__cap h3 {
        margin: 4px 0 6px;
        font-size: 30px;
    }
    .home-globe__cap p {
        font-size: 15px;
    }
    .home-globe__cap p.home-globe__disc {
        margin-top: 8px;
        font-size: 10.5px;
        line-height: 1.35;
    }
    .home-globe__cap--intro {
        top: 76px;
    }
    .home-globe__dots {
        right: 4px;
    }
}

/* ---------- "Country domains" row in the live domains grid ---------- */
.country-domains__body {
    width: 100%;
}
/* every tile is the same size; each logo is fitted into the same box inside it */
.our-domains__group--country .our-domains__list--item {
    width: min(170px, calc(50% - 10px));
}
.our-domains__list--link.country-domain-link {
    justify-content: center;
    width: 100%;
    padding: 0 14px;
    background-color: #fff;
}
.our-domains__list img.country-domain-logo {
    width: 100%;
    height: 28px;
    max-width: none;
    max-height: none;
    object-fit: contain;
}
.country-domains__disclaimer {
    margin: 4px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: var(--hh-muted);
}
@media (min-width: 1000px) {
    .our-domains__group--country .our-domains__list--item {
        width: 210px;
    }
    .our-domains__list--link.country-domain-link {
        padding: 0 22px;
    }
    .our-domains__list img.country-domain-logo {
        height: 40px;
    }
    .country-domains__disclaimer {
        max-width: 72ch;
        margin-top: -10px;
        padding-left: 30px;
    }
}

/* ---------- founder quote, press, why XYZ ---------- */
.home-proof {
    position: relative;
    padding: 110px clamp(16px, 6vw, 96px);
    background: var(--hh-ink);
    color: #fff;
    font-family: degular, sans-serif;
}
.home-proof * {
    box-sizing: border-box;
}
.home-proof__quote {
    max-width: 980px;
    margin: 0 auto 70px;
    text-align: center;
}
.home-proof__quote q {
    display: block;
    font-family: var(--hh-pixel);
    font-size: clamp(22px, 3vw, 38px);
    line-height: 1.35;
    quotes: none;
}
.home-proof__quote cite {
    display: block;
    margin-top: 18px;
    font-size: 17px;
    font-style: normal;
    color: var(--hh-muted);
}
.home-proof__quote cite a {
    color: var(--hh-mint);
}
.home-proof__press,
.home-proof__why {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    max-width: 1180px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}
.home-proof__press {
    gap: 18px;
}
.home-proof__press a,
.home-proof__press a:hover,
.home-proof__press a:focus {
    display: block;
    height: 100%;
    padding: 24px 26px;
    border: 1.5px solid var(--hh-blue);
    border-radius: 14px;
    color: #fff;
    text-decoration: none;
    transition: border-color .15s;
}
.home-proof__press a:hover {
    border-color: var(--hh-mint);
}
.home-proof__src {
    font-family: var(--hh-pixel);
    font-size: 13px;
    color: var(--hh-mint);
}
.home-proof__ttl {
    margin-top: 10px;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.3;
}
.home-proof__why {
    gap: 36px;
    margin-top: 90px;
}
.home-proof__why h3 {
    margin: 0 0 8px;
    font-size: 21px;
    font-weight: 700;
}
.home-proof__why p {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: var(--hh-muted);
}
.home-proof__why a {
    color: var(--hh-mint);
}
.home-proof__bar {
    width: 36px;
    height: 4px;
    margin-bottom: 16px;
    border-radius: 2px;
    background: var(--cc);
}
@media (max-width: 760px) {
    .home-proof__press,
    .home-proof__why {
        grid-template-columns: 1fr;
    }
}

/* keeps in-page anchors clear of the fixed header */
.home-page #our-domains,
.home-page #why-xyz,
.home-page #join-the-movement,
.home-page #locations {
    scroll-margin-top: 80px;
}

/* ---------- spatter behind "Join the movement" and "Locations" ---------- */
/* One layer for both sections, sized with cover so the artwork's cut-off
   edges stay outside the section. Overrides main.css on the homepage only. */
.home-page .homepage__lower:before {
    background-image: url('/assets/images/paint-spatter_larger.png');
    background-size: cover;
    background-position: center top;
    opacity: .45;
}
.home-page .section__locations:before {
    background-image: none;
}

/* ---------- 3D canvases (hero letters, "Join the movement" icons) ---------- */
.three {
    opacity: 0;
}
.three.three--loaded {
    opacity: 1;
    transition: opacity 1s;
}
.three-icon {
    position: absolute;
    top: -5%;
    left: 50%;
    width: 120px;
    height: 120px;
    transform: translate(-50%, -50%);
}
@media (min-width: 1000px) {
    .three-icon {
        width: 165px;
        height: 165px;
    }
}
