/* ==========================================================================
   home.css — Homepage (dark art direction)
   ========================================================================== */

main { display: block; }

/* ---- Hero: "who is michael rossi?" ---- */
.hero-intro {
    min-height: calc(100vh - var(--nav-h));
    min-height: calc(100svh - var(--nav-h));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; gap: clamp(2rem, 5vw, 3.5rem);
    padding: 3rem 1.5rem clamp(3rem, 6vw, 5rem);
}
.hero-intro__name { font-family: var(--serif); color: var(--ink); line-height: 0.92; }
.hero-intro__pre {
    display: block; text-transform: lowercase; font-style: normal;
    font-size: clamp(1.1rem, 2.2vw, 1.7rem); color: var(--muted);
    letter-spacing: 0.01em; margin-bottom: clamp(0.4rem, 1.2vw, 1rem);
}
.hero-intro__you {
    display: block; font-style: italic; text-transform: lowercase;
    font-size: clamp(3.3rem, 13.5vw, 12rem); letter-spacing: -0.025em; color: var(--ink);
}

/* Liquid distortion canvas (built by liquid.js): overlays the name and warps the
   letters near the cursor with a chromatic-aberration ripple. Fine pointers + motion
   only; the real text stays in the DOM for a11y/SEO and no-JS. */
.hero-intro__name { position: relative; }
.hero-liquid { position: absolute; top: 0; left: 0; pointer-events: none; z-index: 2; opacity: 0; }
.hero-liquid.is-ready { opacity: 1; }
.hero-intro__name.is-liquid .hero-intro__you { opacity: 0; }
.hero-intro__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.25rem 2.75rem; font-family: var(--serif); font-size: clamp(1.15rem, 1.9vw, 1.6rem); }
.hero-intro__link { color: var(--muted); transition: color 0.2s ease; display: inline-flex; align-items: baseline; gap: 0.5rem; }
.hero-intro__link:hover { color: var(--ink); }

/* Arrow "conveyor": on hover the visible arrow slides off the way it points and
   an identical arrow follows in from behind. Two arrows on a track, clipped to one. */
.arrowtrack { display: inline-block; overflow: hidden; vertical-align: -0.1em; }
.arrowtrack__set { display: flex; transition: transform 0.5s cubic-bezier(0.7, 0, 0.15, 1); will-change: transform; }
.arrowtrack__set > span { flex: none; display: flex; align-items: center; justify-content: center; line-height: 1; }
.arrowtrack--right { width: 1.05em; height: 1em; }
.arrowtrack--right .arrowtrack__set { width: 200%; transform: translateX(-50%); }
.arrowtrack--right .arrowtrack__set > span { width: 50%; }
.arrowtrack--down { width: 1em; height: 1.4em; vertical-align: -0.32em; }
.arrowtrack--down .arrowtrack__set { flex-direction: column; height: 200%; transform: translateY(-50%); }
.arrowtrack--down .arrowtrack__set > span { height: 50%; }
a:hover .arrowtrack--right .arrowtrack__set { transform: translateX(0); }
a:hover .arrowtrack--down .arrowtrack__set { transform: translateY(0); }

/* ---- Intro: portrait + statement (the "scrolled" state) ---- */
.intro {
    display: grid; grid-template-columns: 1fr 1.05fr; align-items: stretch;
    min-height: min(90vh, 900px);
    border-top: 1px solid var(--line-soft);
}
.intro__portrait { position: relative; overflow: hidden; background: var(--bg-deep); min-height: 60vh; }
.intro__portrait img {
    width: 100%; height: 100%; object-fit: cover; object-position: center 28%;
    filter: grayscale(100%) contrast(1.04) brightness(0.92);
}
/* fade the right + bottom edges into the page so the photo bleeds into the dark */
.intro__portrait::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background:
        linear-gradient(to right, transparent 55%, var(--bg) 100%),
        linear-gradient(to bottom, transparent 70%, var(--bg) 100%);
}
.intro__body {
    padding: clamp(3rem, 6vw, 6rem) clamp(2rem, 5vw, 5rem);
    display: flex; flex-direction: column; justify-content: center;
    gap: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 48rem;
}
.intro__headline { font-family: var(--serif); color: var(--ink); font-size: clamp(2.2rem, 3.9vw, 3.4rem); line-height: 1.02; letter-spacing: -0.01em; }
.intro__note { font-family: var(--sans); font-weight: 300; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.7; color: var(--muted); max-width: 54ch; }
.intro__availability { font-family: var(--sans); font-weight: 300; font-style: italic; font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.6; color: var(--muted); max-width: 48ch; }
.intro__foot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 1rem 2.5rem; font-family: var(--serif); font-size: clamp(1.1rem, 1.5vw, 1.4rem); }
.intro__foot a { color: var(--ink); transition: opacity 0.2s ease; }
.intro__foot a:hover { opacity: 0.65; }

/* ---- Selected work — an editorial project index (no thumbnails) ---- */
.work { max-width: var(--page); margin: clamp(5rem, 10vw, 8rem) auto 0; padding: 0 2.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); margin-bottom: 0; }
.section-head__intro { max-width: 42ch; font-size: 0.95rem; color: var(--muted); text-align: right; }

.band {
    position: relative;
    display: grid;
    grid-template-columns: [folio] minmax(2.5rem, auto) [body] minmax(0, 1fr) [facts] 12rem;
    column-gap: clamp(1.25rem, 3.5vw, 3rem);
    align-items: start;
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    border-bottom: 1px solid var(--line);
}
/* The whole row is the link (no CTA). Content sits above the cover; the one
   external "Live" link pokes back through so it stays clickable. */
.band__cover { position: absolute; inset: 0; z-index: 1; }
.band__folio, .band__body, .band__facts { position: relative; }
.band__facts a { position: relative; z-index: 2; }

.band__folio {
    grid-column: folio;
    font-family: var(--serif); font-variant-numeric: tabular-nums;
    color: var(--faint); line-height: 0.82;
    font-size: clamp(2rem, 3.6vw, 3rem);
    transition: color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.band__body { grid-column: body; }
.band__eyebrow {
    font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--muted); margin-bottom: clamp(0.5rem, 1.4vw, 0.9rem);
    transition: color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.band__title { font-family: var(--serif); font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.02; letter-spacing: -0.015em; max-width: 20ch; color: var(--ink); }
.band__title a { color: inherit; }
.band__lead { font-size: 1.1rem; line-height: 1.55; color: var(--text); max-width: 54ch; margin-top: clamp(0.8rem, 1.8vw, 1.15rem); }
.band__caps {
    margin-top: clamp(1rem, 2.4vw, 1.5rem); font-size: 0.9rem; line-height: 1.55;
    color: var(--faint); max-width: 54ch;
    transition: color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.band__built { white-space: nowrap; margin-left: 0.45rem; }
.band__built-k { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.68rem; color: var(--ink); }
.band__built-v { color: var(--text); }

.band__facts { grid-column: facts; display: grid; gap: 0; align-self: start; }
.band__facts > div { display: grid; gap: 0.2rem; padding: 0.7rem 0; border-top: 1px solid var(--line-soft); font-size: 0.92rem; }
.band__facts > div:first-child { border-top: none; padding-top: 0; }
.band__facts dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.66rem; }
.band__facts dd { color: var(--ink); }
.band__facts a { color: var(--text); border-bottom: 1px solid var(--line); transition: color 0.2s ease; }
.band__facts a:hover { color: var(--ink); }

/* Tiers — real rhythm: one big feature, two standard, two compact index rows */
.band--feature .band__folio { font-size: clamp(2.6rem, 5.2vw, 4.4rem); }
.band--feature .band__title { font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.band--feature .band__lead { font-size: 1.2rem; max-width: 50ch; }
.band--index { padding: clamp(2rem, 4vw, 3rem) 0; }
.band--index .band__folio { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.band--index .band__title { font-size: clamp(1.7rem, 3.1vw, 2.4rem); }
.band--index .band__lead { font-size: 1rem; color: var(--muted); }

/* Brighten-and-settle: on hover/focus the row "develops into focus" — the folio,
   eyebrow and capabilities resolve to full contrast and the numeral drifts toward
   the title. No dim, no arrow, no underline. */
.band:hover .band__folio, .band:focus-within .band__folio { color: var(--ink); }
.band:hover .band__eyebrow, .band:focus-within .band__eyebrow { color: var(--text); }
.band:hover .band__caps, .band:focus-within .band__caps { color: var(--text); }
@media (prefers-reduced-motion: no-preference) {
    .band__folio { transition: color 0.45s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
    .band:hover .band__folio, .band:focus-within .band__folio { transform: translateX(6px); }
}

/* ---- How I work ---- */
.approach { max-width: var(--page); margin: clamp(5rem, 10vw, 8.5rem) auto 0; padding: 0 2.5rem; }
.approach__lead { font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 3.05rem); line-height: 1.16; letter-spacing: -0.01em; color: var(--ink); margin-top: 1.5rem; max-width: none; }
.approach__examples { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.75rem, 3.4vw, 3.25rem); margin-top: clamp(3rem, 6vw, 5rem); }
.approach__examples li { padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 1rem; line-height: 1.6; }
.approach__at { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); margin-bottom: 0.5rem; }
.approach__did { color: var(--muted); }

/* ---- Experience ---- */
.experience { max-width: var(--page); margin: clamp(4.5rem, 9vw, 7rem) auto 0; padding: clamp(2.5rem, 5vw, 3.5rem) 2.5rem 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 2.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.experience__note { margin-top: 1rem; font-size: 0.85rem; line-height: 1.5; color: var(--muted); max-width: 32ch; }
.experience__groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem 2.5rem; }
.experience__group h3 { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.9rem; }
.experience__group ul { list-style: none; display: grid; gap: 0.5rem; }
.experience__group li { font-family: var(--serif); font-size: 1.2rem; color: var(--ink); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
    .band {
        grid-template-columns: [folio] auto [body] minmax(0, 1fr);
        column-gap: clamp(1rem, 3vw, 1.75rem); row-gap: 1.5rem;
    }
    .band__folio { align-self: start; }
    .band__facts { grid-column: folio / -1; display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; max-width: 40rem; }
    .band__facts > div { border-top: none; padding: 0; }
    .experience { grid-template-columns: 1fr; gap: 1.75rem; }
}
@media (max-width: 560px) {
    .band { grid-template-columns: 1fr; row-gap: 0.85rem; }
    /* single column: drop the named-line placement so children just stack */
    .band__folio, .band__body, .band__facts { grid-column: auto; }
    .band__folio { line-height: 1; }
    .band--feature .band__folio, .band--standard .band__folio, .band--index .band__folio { font-size: clamp(1.9rem, 7vw, 2.5rem); }
    .band__title, .band--feature .band__title, .band--index .band__title { max-width: none; }
    .band__facts { max-width: none; }
}
@media (max-width: 760px) {
    .intro { grid-template-columns: 1fr; min-height: 0; }
    .intro__portrait { min-height: 78vw; max-height: 70vh; }
    .intro__portrait::after { background: linear-gradient(to bottom, transparent 60%, var(--bg) 100%); }
    .intro__body { padding: clamp(2rem, 7vw, 3rem) 1.5rem clamp(3rem, 8vw, 4rem); }
    .intro__foot { justify-content: space-between; width: 100%; }
    .approach__examples { grid-template-columns: 1fr; gap: 0; }
    .approach__examples li { padding: 1.25rem 0; }
}
@media (max-width: 680px) {
    .work, .approach, .experience { padding-left: 1.5rem; padding-right: 1.5rem; }
    .section-head { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .section-head__intro { text-align: left; }
    .experience__groups { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
    .experience__groups { grid-template-columns: 1fr; }
}
