/* ==========================================================================
   V — Home
   The arrival chapter: hero + live rail, selected work, crafts, about, CTA.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Hero — asymmetric: statement left, living systems right.
   -------------------------------------------------------------------------- */
.hero-section {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
    min-height: 92svh;
    padding-top: 7.5rem;
    padding-bottom: 4rem;
}

.hero-copy .badge-status {
    margin-bottom: 2rem;
}

.hero-title {
    font-size: var(--size-hero);
    margin-bottom: 1.6rem;
}

.hero-title em {
    font-style: normal;
}

.hero-subtitle {
    font-size: 1.08rem;
    color: var(--text-secondary);
    max-width: 46ch;
    margin-bottom: 2.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

/* --------------------------------------------------------------------------
   Live rail — Discord, Spotify, local time. Quietly awake.
   -------------------------------------------------------------------------- */
.live-rail {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.widget-card {
    padding: 1.15rem 1.3rem;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.95rem;
}

.widget-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--size-micro);
    font-family: var(--font-mono);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
}

.widget-body {
    display: flex;
    align-items: center;
    gap: 0.95rem;
}

.widget-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    background:
        radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 70%),
        var(--surface-solid);
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-subtle);
}

.widget-lines {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.widget-lines strong {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-lines span {
    font-size: var(--size-small);
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.widget-lines .track-state {
    margin-top: 0.3rem;
    letter-spacing: 0.12em;
}

/* Spotify record — spins while music plays */
.widget-art {
    position: relative;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 50%, var(--bg-deep) 18%, transparent 19%),
        conic-gradient(from 120deg, var(--accent), var(--accent-warm), var(--accent));
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.art-groove {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.widget-art.is-spinning {
    animation: record-spin 6s linear infinite;
}

@keyframes record-spin {
    to { transform: rotate(360deg); }
}

.track-progress {
    margin-top: 1rem;
    height: 3px;
    border-radius: var(--radius-pill);
    background: var(--border-subtle);
    overflow: hidden;
}

.track-progress-fill {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-warm));
    transition: width 1s linear;
}

/* Clock card */
.clock-face {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.clock-time {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.clock-note {
    font-size: var(--size-micro);
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   01 / Selected work — large alternating panels with crafted scenes.
   -------------------------------------------------------------------------- */
.work-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.work-panel {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 0;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 320px;
}

.work-panel--reverse {
    grid-template-columns: 0.95fr 1.05fr;
}

.work-panel--reverse .work-scene { order: 2; }
.work-panel--reverse .work-info { order: 1; }

.work-info {
    padding: clamp(1.6rem, 4vw, 2.8rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.85rem;
}

.work-kicker { color: var(--accent); }

.work-info h3 {
    font-size: clamp(1.5rem, 2.6vw, 2rem);
}

.work-info p {
    color: var(--text-secondary);
    max-width: 42ch;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.work-more {
    margin-top: 2rem;
    text-align: right;
}

/* Project cover scenes are shared with the projects page — see scenes.css */

/* --------------------------------------------------------------------------
   02 / Crafts
   -------------------------------------------------------------------------- */
.craft-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem;
}

.craft-card {
    padding: clamp(1.6rem, 3.5vw, 2.4rem);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.craft-glyph {
    font-size: 1.5rem;
    color: var(--accent);
    line-height: 1;
}

.craft-card h3 { font-size: var(--size-h3); }

.craft-card > p {
    color: var(--text-secondary);
    font-size: var(--size-small);
}

.craft-list {
    list-style: none;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
}

.craft-list li {
    padding: 0.7rem 0;
    border-top: 1px solid var(--border-subtle);
    font-size: var(--size-small);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: color var(--dur-quick) ease, padding-left var(--dur-quick) var(--ease-physical);
}

.craft-list li::before {
    content: "—";
    color: var(--accent);
}

.craft-card:hover .craft-list li:hover {
    color: var(--text-primary);
    padding-left: 0.4rem;
}

.craft-cta {
    margin-top: 2.4rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   03 / About
   -------------------------------------------------------------------------- */
.about-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
}

.about-grid .section-head { margin-bottom: 0; }

.about-copy {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 56ch;
}

.about-copy p:first-child {
    color: var(--text-primary);
}

.value-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.6rem;
}

/* CTA band styles are shared — see base.css */

/* --------------------------------------------------------------------------
   Responsive — designed for small screens, not shrunk to them.
   -------------------------------------------------------------------------- */
@media (max-width: 960px) {
    .hero-section {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 7rem;
        gap: 3rem;
    }

    .live-rail {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.9rem;
    }

    .live-rail .widget-clock { grid-column: 1 / -1; }

    .work-panel,
    .work-panel--reverse {
        grid-template-columns: 1fr;
    }

    .work-panel--reverse .work-scene { order: 1; }
    .work-panel--reverse .work-info { order: 2; }

    .work-scene { min-height: 210px; }

    .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
    .craft-grid { grid-template-columns: 1fr; }
    .live-rail { grid-template-columns: 1fr; }
    .work-more { text-align: center; }
}
