/* =========================================================================
   NIK — Homepage (reference: nik-website (2).html)
   Loaded on top of app.css. Shared systems (world plate, buttons, cards,
   marquee, flow, reveal, invite band) live in app.css; this file adds the
   hero composition and the page's section layouts only.
   ========================================================================= */

/* ----------------------------------------------------------------------
   Hero — 01 The Reveal
   ---------------------------------------------------------------------- */

.hero {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 160px 20px 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .hero-plate {
    position: absolute;
    inset: 0;
    border: none;
    border-radius: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 55% at 50% 100%, rgba(11, 11, 13, 0.94), transparent 60%),
        linear-gradient(180deg, rgba(11, 11, 13, 0.35) 0%, rgba(11, 11, 13, 0.15) 40%, rgba(11, 11, 13, 0.85) 100%);
}

.hero-glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 28%), rgba(200, 176, 138, 0.14), transparent 70%);
    transition: background 0.15s;
}

.hero > .nik-mark.hero-mark {
    width: min(84px, 16vw);
    height: auto;
    margin-bottom: 36px;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 0 44px rgba(200, 176, 138, 0.4));
    animation: float 7.5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero .eyebrow {
    position: relative;
    z-index: 2;
}

.hero-title {
    position: relative;
    z-index: 2;
    font-family: var(--font-serif);
    font-weight: 400;
    font-style: var(--serif-style);
    font-size: clamp(2.8rem, 8vw, 6.4rem);
    color: var(--ivory);
    max-width: 17ch;
    margin-bottom: 26px;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

html[lang="fa"] .hero-title {
    font-weight: 600;
    max-width: 14ch;
    letter-spacing: 0;
    line-height: 1.3;
}

/* Split-line reveal: lines are clipped; inner spans start below and rise
   with a stagger once motion.js adds `in` (or immediately under reduced
   motion / without JS thanks to the html.js-reveal guard). */
.hero-title .reveal-line {
    display: block;
    overflow: hidden;
    padding: 0 4px;
}

.hero-title .reveal-line > span {
    display: block;
}

html.js-reveal .hero-title .reveal-line > span {
    transform: translateY(112%);
    transition: transform 1.1s var(--ease);
}

html.js-reveal .hero-title.in .reveal-line > span {
    transform: translateY(0);
}

html.js-reveal .hero-title .reveal-line:nth-child(2) > span { transition-delay: 0.09s; }
html.js-reveal .hero-title .reveal-line:nth-child(3) > span { transition-delay: 0.18s; }

.hero-lead {
    position: relative;
    z-index: 2;
    color: var(--w-72);
    font-size: clamp(1rem, 1.6vw, 1.16rem);
    font-weight: 300;
    max-width: 52ch;
    line-height: 1.85;
    margin: 0 auto 44px;
}

html[lang="fa"] .hero-lead {
    font-weight: 400;
}

.hero-ctas {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Pinned to the hero's bottom edge on tall viewports (reference); on shorter
   screens it flows under the CTAs so it can never collide with them. */
.scroll-cue {
    position: relative;
    margin-top: 64px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--w-38);
    font-family: var(--font-ui);
    font-size: 0.66rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

html[lang="fa"] .scroll-cue {
    letter-spacing: 0.06em;
}

.scroll-cue .line {
    width: 1px;
    height: 36px;
    background: linear-gradient(var(--champagne), transparent);
    animation: scrollcue 2.4s ease-in-out infinite;
}

@keyframes scrollcue {
    0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
    40% { opacity: 1; transform: scaleY(1); transform-origin: top; }
    60% { opacity: 1; transform: scaleY(1); transform-origin: bottom; }
    100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

@media (min-height: 1000px) {
    .scroll-cue {
        position: absolute;
        bottom: 38px;
        left: 50%;
        margin-top: 0;
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero > .nik-mark.hero-mark,
    .scroll-cue .line {
        animation: none;
    }
}

/* ----------------------------------------------------------------------
   Belief
   ---------------------------------------------------------------------- */

.belief {
    text-align: center;
}

.belief .section-head {
    margin: 0 auto 70px;
    max-width: 800px;
}

.belief h2.section-title {
    font-size: clamp(1.9rem, 4.4vw, 3.4rem);
}

/* ----------------------------------------------------------------------
   Possibility — material plates
   ---------------------------------------------------------------------- */

.home-section-intro {
    max-width: 680px;
}

.materials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 56px;
}

.materials-grid .world-plate {
    aspect-ratio: 4 / 3.1;
}

/* ----------------------------------------------------------------------
   Section header row (heading + ghost CTA)
   ---------------------------------------------------------------------- */

.home-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-5);
    margin-bottom: 56px;
}

.home-section-header .section-heading {
    max-width: 680px;
}

.home-section-header .btn {
    margin-bottom: 4px;
}

/* ----------------------------------------------------------------------
   Selected work / services / journal grids
   ---------------------------------------------------------------------- */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.services-grid--preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* ----------------------------------------------------------------------
   Responsive — 1024 / 980 / 900 / 768 / 600 / 560 / 460
   ---------------------------------------------------------------------- */

@media (max-width: 980px) {
    .portfolio-grid,
    .journal-grid,
    .services-grid--preview {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .materials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 140px 20px 110px;
    }

    .home-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-4);
    }
}

@media (max-width: 600px) {
    .portfolio-grid,
    .journal-grid,
    .services-grid--preview {
        grid-template-columns: 1fr;
    }
}

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

@media (max-width: 460px) {
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .hero-ctas .btn {
        width: 100%;
        justify-content: center;
    }
}
