/* Home page: opening doors, How it works, Six areas of growth, first steps, Meet the founder and the founding year
   buttons. Shared pieces (hero, year track, goals) stay in site.css. */

/* ---- opening ---- */
/* The gradient italic is painted only inside the em's box, so give the slanted "?" room or it is clipped. */
.hero h1 em {
    padding-right: .14em;
}

.hero .hf-positioning {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(21px, 2.4vw, 27px);
    color: #f3e6ff;
    margin: -8px 0 10px;
}

.hero .hf-mission {
    font-size: 17px;
    color: #dccfe9;
    max-width: 560px;
    line-height: 1.6;
    margin: 0;
}

.hf-doors-label {
    margin: 38px 0 14px;
    font-size: 12px;
    letter-spacing: .22em;
    font-weight: 700;
    color: #ffc37a;
}

.hf-doors {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    max-width: 1000px;
}

.hf-door {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid #ffffff26;
    background: #120d1fcc;
    backdrop-filter: blur(8px);
    transition: border-color .2s, transform .2s, box-shadow .2s;
}

.hf-door:hover,
.hf-door:focus-visible {
    border-color: var(--door);
    box-shadow: 0 0 26px color-mix(in srgb, var(--door) 35%, transparent);
    transform: translateY(-2px);
}

.hf-door .k {
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 700;
    color: var(--door);
}

.hf-door b {
    font-size: 17px;
    line-height: 1.3;
}

.hf-door small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.hf-door .go {
    margin-top: auto;
    padding-top: 8px;
    font-size: 13px;
    color: #e8dcf5;
}

.hero .hero-note a {
    color: #ffd9a8;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---- shared two-column layout and panel ---- */
.hf-how {
    background: linear-gradient(180deg, #0c0b13, #120d1b);
}

.hf-areas {
    background:
        radial-gradient(ellipse at 25% 50%, #b449ff1c, transparent 55%),
        #0e0b15;
}

.hf-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    max-width: 1150px;
}

.hf-panel {
    min-width: 0;
    padding: clamp(22px, 3vw, 34px);
    border-radius: 22px;
    border: 1px solid #ffffff22;
    background: linear-gradient(160deg, #1e1829, #171320);
}

.hf-tabpanel .k {
    font-size: 11px;
    letter-spacing: .2em;
    font-weight: 700;
    color: var(--c, #ffc37a);
}

.hf-tabpanel h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: clamp(28px, 3.4vw, 38px);
    letter-spacing: -.02em;
    margin: 8px 0 10px;
}

.hf-tabpanel p {
    color: #ddd2ea;
    line-height: 1.65;
    margin: 0 0 14px;
}

.hf-tabpanel .sub {
    display: block;
    font-size: 11px;
    letter-spacing: .18em;
    font-weight: 700;
    color: var(--muted);
    margin: 18px 0 8px;
}

.hf-eg,
.hf-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hf-eg li {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #ffffff0d;
    border: 1px solid #ffffff1f;
}

.hf-chips li {
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
    background: color-mix(in srgb, var(--c) 10%, transparent);
}

.hf-pager {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

.hf-pager button {
    color: #f9f4ff;
    background: #ffffff0b;
    border: 1px solid #ffffff2a;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 14px;
}

.hf-pager button:hover {
    border-color: #d5a0ff;
}

/* ---- How it works: the journey loop ---- */
.hf-loop,
.hf-constellation {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    margin-inline: auto;
}

.hf-loop {
    max-width: 440px;
}

.hf-loop svg,
.hf-constellation svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.hf-loop .ring {
    fill: none;
    stroke: #ffffff1c;
    stroke-width: .6;
}

.hf-loop .flow {
    fill: none;
    stroke: url(#hfFlow);
    stroke-width: .9;
    stroke-dasharray: 2 4;
    stroke-linecap: round;
    animation: hfFlow 18s linear infinite;
}

@keyframes hfFlow {
    to {
        stroke-dashoffset: -120;
    }
}

.hf-hub {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 42%;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.hf-hub b {
    display: block;
    font-family: Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: #f9f4ff;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.2;
    margin-bottom: 4px;
}

.hf-step,
.hf-area {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 4px;
    border: 0;
    background: none;
    color: #f9f4ff;
    font-weight: 700;
    font-size: 14px;
}

.hf-step span,
.hf-area span {
    white-space: nowrap;
}

.hf-step i {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-style: normal;
    font-size: 13px;
    background: #1e1829;
    border: 1px solid #ffffff40;
    transition: background .25s, box-shadow .25s, color .25s;
}

.hf-step[aria-selected="true"] i,
.hf-step:hover i {
    background: radial-gradient(circle at 35% 30%, #ffd9a8, #c75bfa 70%);
    border-color: transparent;
    color: #1a0b22;
    box-shadow: 0 0 22px #c75bfa88;
}

/* ---- Six areas: the constellation ---- */
.hf-constellation {
    max-width: 480px;
}

.hf-constellation .edge {
    fill: none;
    stroke: #ffffff12;
    stroke-width: .3;
}

.hf-constellation .spoke {
    stroke: #ffffff1f;
    stroke-width: .35;
    transition: stroke .3s;
}

.hf-constellation .spoke.on {
    stroke: var(--c);
    stroke-width: .6;
}

.hf-you {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 25%;
    aspect-ratio: 1;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: clamp(15px, 2vw, 19px);
    background: radial-gradient(circle, #ffcc8740 0%, #b449ff2e 55%, transparent 72%);
}

.hf-area i {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 18%, transparent), 0 0 18px var(--c);
    transition: transform .25s, box-shadow .25s;
}

.hf-area[aria-selected="true"] i,
.hf-area:hover i {
    transform: scale(1.25);
    box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 22%, transparent), 0 0 30px var(--c);
}

.hf-area[aria-selected="true"] span {
    color: var(--c);
}

/* ---- your first steps ---- */
.hf-steps {
    background: radial-gradient(ellipse at 50% 30%, #281337, #0c0b13 70%);
}

.hf-steplist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: 1150px;
    counter-reset: none;
}

.hf-steplist li {
    position: relative;
    min-width: 0;
    padding: 24px 22px;
    border-radius: 18px;
    border: 1px solid #ffffff1c;
    background: #17121f;
}

.hf-steplist li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 42px;
    right: -17px;
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--c), transparent);
}

.hf-steplist .n {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
    color: #1a0b22;
    background: var(--c);
    box-shadow: 0 0 18px color-mix(in srgb, var(--c) 60%, transparent);
}

.hf-steplist h3 {
    font-family: Georgia, serif;
    font-weight: 400;
    font-size: 23px;
    margin: 16px 0 8px;
}

.hf-steplist p {
    margin: 0;
    color: #cfc4dc;
    font-size: 15px;
    line-height: 1.6;
}

.hf-steps-note {
    max-width: 1150px;
    margin: 26px 0 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #f3e1c6;
    font-size: 15px;
}

.hf-steps-note .dot {
    flex: none;
}

/* ---- meet the founder ---- */
.hf-founder {
    background:
        radial-gradient(ellipse at 20% 50%, #f2a64a17, transparent 50%),
        #100c18;
}

.hf-founder-wrap {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    max-width: 1100px;
}

.hf-founder-photo {
    aspect-ratio: 317 / 451;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #e6a8ff55;
    box-shadow: 0 0 30px #b65cff40, 0 0 80px #f2a64a1f;
    background: radial-gradient(circle at 50% 40%, #2b1640, #120d1b 70%);
    display: grid;
    place-items: center;
}

.hf-founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hf-founder-copy {
    min-width: 0;
}

.hf-founder blockquote {
    font-family: Georgia, serif;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.25;
    letter-spacing: -.02em;
    margin: 16px 0 18px;
}

.hf-founder blockquote em {
    color: #d5a0ff;
}

.hf-founder-copy p {
    color: #d7cce4;
    line-height: 1.7;
    max-width: 60ch;
    margin: 0 0 14px;
}

.hf-founder .from {
    font-size: 11px;
    letter-spacing: .22em;
    color: #ffc37a;
    font-weight: 700;
}

.hf-disclaimer {
    max-width: 1100px;
    margin: 22px auto 0;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

/* ---- founding year: buttons and note ---- */
.hf-year-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 34px;
}

/* ---- small screens ---- */
@media (max-width: 900px) {
    .hf-doors {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hf-split {
        grid-template-columns: 1fr;
    }
    .hf-steplist {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hf-steplist li::after {
        display: none;
    }
}

@media (max-width: 760px) {
    .hf-founder-wrap {
        grid-template-columns: 1fr;
    }
    .hf-founder-photo {
        max-width: 300px;
    }
}

@media (max-width: 560px) {
    .hf-steplist {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hf-doors {
        grid-template-columns: 1fr;
    }
    .hf-step,
    .hf-area {
        font-size: 12px;
    }
    .hf-step i {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hf-loop .flow {
        animation: none;
    }
    .hf-door,
    .hf-step i,
    .hf-area i,
    .hf-constellation .spoke {
        transition: none;
    }
}

/* ---- one centered column: every section's content shares the same edges at any width (1100px, like the
   founding year's track and goals) ---- */
.hf-split,
.hf-steplist,
.hf-steps-note,
.hf-founder-wrap {
    max-width: 1100px;
    margin-inline: auto;
}

.hf-steps-note {
    justify-content: center;
    text-align: center;
}

.hf-steps .actions {
    justify-content: center;
}
