/* home/about page, hero split, tagline, about column, gear animation, see-my-projects cta */

.home-hero-split {
    max-width: 1120px;
    margin: 0 auto;
    min-height: calc(100vh - 72px - 4rem);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding:
        clamp(2rem, 5vw, 4rem)
        max(1.25rem, env(safe-area-inset-right))
        max(2rem, env(safe-area-inset-bottom))
        max(1.25rem, env(safe-area-inset-left));
    scroll-margin-top: 80px;
}

.home-hero-left {
    padding-right: clamp(0.5rem, 3vw, 2rem);
    min-width: 0;
}

.home-hero-heading {
    font-size: clamp(2.75rem, 8vw, 4.75rem);
    font-weight: 500;
    color: var(--color-text);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1rem;
}

.home-hero-accent {
    color: var(--color-highlight);
    display: inline-block;
}

.home-hero-tagline {
    font-size: clamp(1rem, 1.8vw, 1.15rem);
    color: var(--color-text-secondary);
    line-height: 1.65;
    max-width: 28ch;
    margin-bottom: 0;
}

.home-hero-cmu {
    color: var(--color-highlight);
    font-weight: 500;
}

/* two meshed gears below tagline */
.home-hero-gear-train-wrap {
    margin-top: 1.35rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

.home-hero-gear-train {
    width: min(100%, 240px);
    max-width: 100%;
    touch-action: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 12px;
}

.home-hero-gear-train.is-dragging {
    cursor: grabbing;
}

.home-hero-gear-train:focus {
    outline: none;
}

.home-hero-gear-train:focus-visible {
    outline: 2px solid var(--color-accent-border);
    outline-offset: 4px;
}

.home-hero-gear-svg {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 106 / 63;
    overflow: visible;
}

.home-hero-gear-train.home-hero-gear-train--reduced {
    cursor: default;
    touch-action: manipulation;
}

.home-hero-gear-hint {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
    max-width: 32ch;
}

@media (hover: none) {
    .home-hero-gear-hint {
        color: var(--color-text-muted);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero-gear-train {
        cursor: default;
        touch-action: manipulation;
    }

    .home-hero-gear-hint {
        display: none;
    }
}

.home-hero-right {
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--color-border);
    padding-left: clamp(1.5rem, 4vw, 3rem);
    scroll-margin-top: 88px;
}

.home-about-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.home-about-text {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    line-height: 1.85;
    margin-bottom: 1.75rem;
}

.home-hero-right .home-hero-actions {
    align-self: flex-start;
}

/* paired CTAs: see projects (primary) + learn more about me (secondary) sitting side by side */
.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: center;
}

/* ghost button: matches bg, dark text + border at rest, just darkens on hover */
.btn-see-projects {
    appearance: none;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-see-projects:hover {
    background: var(--color-hover-darken);
    border-color: #000000;
    color: #000000;
    box-shadow: 0 6px 22px var(--color-shadow);
    transform: translateY(-1px);
}

.btn-see-projects:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}

/* secondary cta: matches the see projects ghost shape exactly so the two read as a pair */
.btn-learn-more {
    appearance: none;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 999px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 8px var(--color-shadow);
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-learn-more:hover {
    background: var(--color-hover-darken);
    border-color: #000000;
    color: #000000;
    box-shadow: 0 6px 22px var(--color-shadow);
    transform: translateY(-1px);
}

.btn-learn-more:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 3px;
}
