/* ZIN - static one pager. Nine Inch Nails / Year Zero direction:
   dark, industrial, high contrast, degraded, restrained accent. */

:root {
    --black:    #050507;
    --near:     #0c0d11;
    --panel:    #111217;
    --ash:      #2a2c34;
    --smoke:    #6b6e78;
    --bone:     #c9cbd1;
    --white:    #f4f5f7;
    --accent:   #d84e25;   /* atria burnt orange */
    --accent-d: #8f2d12;   /* deep ember shadow */
    --ember:    #f0703a;   /* bright petal orange */
    --signal:   #4fc3f7;   /* the biosignal blue, used sparingly */
    --maxw:     1180px;
    --ease:     cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--black);
    color: var(--bone);
    font-family: 'Oswald', 'Arial Narrow', sans-serif;
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: var(--white); }

a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------------
   OVERLAYS: grain + scanlines for the analog/degraded feel
--------------------------------------------------------------- */

.overlay-grain,
.overlay-scan {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
}

.overlay-grain {
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 0.4s steps(2) infinite;
}

@keyframes grain {
    0%   { transform: translate(0, 0); }
    100% { transform: translate(-4%, 3%); }
}

.overlay-scan {
    background: repeating-linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0px,
        rgba(0, 0, 0, 0) 2px,
        rgba(0, 0, 0, 0.28) 3px,
        rgba(0, 0, 0, 0) 4px
    );
    opacity: 0.5;
    mix-blend-mode: multiply;
}

/* ---------------------------------------------------------------
   NAV
--------------------------------------------------------------- */

.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.6rem 2.2rem;
    mix-blend-mode: difference;
}

.nav-mark {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 0.04em;
    color: var(--white);
}

.nav-n {
    display: inline-block;
    transform: translateY(0.16em);
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
}

.nav-links a {
    color: var(--white);
    position: relative;
    padding-bottom: 4px;
    transition: opacity 0.3s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0; height: 1px;
    background: var(--white);
    transition: width 0.4s var(--ease);
}

.nav-links a:hover::after { width: 100%; }

/* ---------------------------------------------------------------
   HERO
--------------------------------------------------------------- */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--black);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1rem;
}

/* Logo: Lato Heavy, the N dropped down a touch (matches the mark) */
.hero-title {
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    font-size: clamp(5rem, 24vw, 21rem);
    line-height: 0.85;
    letter-spacing: -0.01em;
    color: var(--white);
}

.logo-zi,
.logo-n {
    display: inline-block;
}

.logo-n {
    transform: translateY(0.20em);
}

.hero-sub {
    /* extra top margin clears the dropped N, which descends with font size */
    margin-top: clamp(2.5rem, 7vw, 5.5rem);
    font-family: 'Space Mono', monospace;
    font-size: clamp(0.7rem, 1.6vw, 1rem);
    letter-spacing: 0.55em;
    text-indent: 0.55em;
    color: var(--bone);
    text-transform: uppercase;
}

.hero-scroll {
    position: absolute;
    bottom: 2.2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.3em;
    color: var(--smoke);
}

.scroll-line {
    width: 1px;
    height: 46px;
    background: linear-gradient(to bottom, var(--smoke), transparent);
    animation: scrollPulse 2.4s var(--ease) infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(0.4); opacity: 0.3; transform-origin: top; }
    50%      { transform: scaleY(1);   opacity: 1;   transform-origin: top; }
}

/* ---------------------------------------------------------------
   SECTIONS (shared)
--------------------------------------------------------------- */

.section {
    position: relative;
    padding: 9rem 2.2rem;
    border-top: 1px solid var(--ash);
}

.section-inner {
    max-width: var(--maxw);
    margin: 0 auto;
}

.section-index {
    position: absolute;
    top: 3rem;
    right: 2.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--ash);
}

.section-title {
    font-weight: 600;
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--white);
    margin-bottom: 3.5rem;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    left: -2.2rem; top: 50%;
    width: 1.4rem; height: 2px;
    background: var(--accent);
}

/* ---------------------------------------------------------------
   ABOUT
--------------------------------------------------------------- */

/* Performance photo, faded heavily into the black so it reads as texture */
.about-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url("assets/performance.jpg");
    background-size: cover;
    background-position: center 28%;
    opacity: 0.18;
    filter: grayscale(0.15) contrast(1.05);
}

/* Vignette: darken edges so the text stays readable over the photo */
.about-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 50%, transparent 0%, var(--black) 82%),
        linear-gradient(to bottom, var(--black) 0%, transparent 25%, transparent 75%, var(--black) 100%);
}

/* Lift section content above the photo */
.about .section-inner,
.about .section-index {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-col p {
    color: var(--bone);
    font-size: 1.08rem;
    line-height: 1.65;
    margin-bottom: 1.4rem;
    max-width: 52ch;
}

.about-col p:first-child {
    color: var(--white);
}

.about-col p:last-child {
    margin-bottom: 0;
}

/* ---------------------------------------------------------------
   PERFORMANCES
--------------------------------------------------------------- */

.perf-list { list-style: none; }

.perf-item + .perf-item { margin-top: 1.2rem; }

.perf-link {
    display: grid;
    grid-template-columns: 160px 220px 1fr;
    gap: 2rem;
    align-items: center;
    padding: 2.4rem 1.5rem;
    border: 1px solid var(--ash);
    background: linear-gradient(120deg, var(--near), transparent);
    color: inherit;
    transition: border-color 0.4s var(--ease), background 0.4s var(--ease), transform 0.4s var(--ease);
}

.perf-item.upcoming .perf-link {
    border-color: var(--accent-d);
}

.perf-item.past {
    opacity: 0.6;
}

.perf-item.past .perf-status {
    color: var(--smoke);
}

.perf-item.past .perf-dot {
    background: var(--smoke);
    box-shadow: none;
    animation: none;
}

.perf-link:hover {
    border-color: var(--accent);
    background: linear-gradient(120deg, #14090b, transparent);
    transform: translateX(6px);
}

.perf-status {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.perf-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 0 var(--accent);
    animation: ping 2s var(--ease) infinite;
}

@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(185, 28, 44, 0.6); }
    70%  { box-shadow: 0 0 0 10px rgba(185, 28, 44, 0); }
    100% { box-shadow: 0 0 0 0 rgba(185, 28, 44, 0); }
}

.perf-date {
    font-family: 'Space Mono', monospace;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: 0.02em;
}

.perf-venue {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.perf-desc {
    color: var(--smoke);
    font-size: 0.95rem;
    margin-top: 0.3rem;
    max-width: 50ch;
}

/* ---------------------------------------------------------------
   MUSIC
--------------------------------------------------------------- */

.music-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 4rem;
    align-items: center;
}

.cover {
    aspect-ratio: 1 / 1;
}

.cover-art {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid var(--accent-d);
}

.music-eyebrow {
    font-family: 'Space Mono', monospace;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    color: var(--accent);
    margin-bottom: 1rem;
}

.music-title {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 700;
    line-height: 0.9;
    color: var(--white);
    text-transform: lowercase;
    letter-spacing: 0.01em;
}

.music-status {
    margin-top: 1.2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bone);
    display: inline-block;
    border: 1px solid var(--ash);
    padding: 0.5rem 1rem;
}

.music-desc {
    margin-top: 1.8rem;
    color: var(--smoke);
    font-size: 1.02rem;
    max-width: 44ch;
}

/* ---------------------------------------------------------------
   FOOTER
--------------------------------------------------------------- */

.footer {
    border-top: 1px solid var(--ash);
    padding: 5rem 2.2rem 3rem;
    text-align: center;
}

.footer-mark {
    font-size: clamp(3rem, 12vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-indent: 0.2em;
    color: var(--panel);
    line-height: 1;
}

.footer-contact {
    margin-top: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    color: var(--bone);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact-label {
    font-size: 0.65rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
}

.footer-contact a {
    color: var(--bone);
    border-bottom: 1px solid var(--ash);
    padding-bottom: 2px;
    transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.footer-contact a:hover {
    color: var(--white);
    border-color: var(--accent);
}

.footer-note {
    margin-top: 2rem;
    font-family: 'Space Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    color: var(--ash);
    text-transform: uppercase;
}

/* ---------------------------------------------------------------
   REVEAL ON SCROLL
--------------------------------------------------------------- */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------------- */

/* Tablet and below */
@media (max-width: 900px) {
    .nav { padding: 1.2rem 1.4rem; }
    .nav-links { gap: 1.4rem; }

    .section { padding: 6rem 1.4rem; }

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

    .music-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        justify-items: center;
        text-align: center;
    }
    .cover { width: 100%; max-width: 360px; }
    .music-desc { margin-left: auto; margin-right: auto; }

    /* Performance cards: collapse fixed columns to a stacked block */
    .perf-link {
        grid-template-columns: 1fr;
        gap: 0.7rem;
        padding: 1.8rem 1.4rem;
    }
    .perf-link:hover { transform: none; }
}

/* Phone */
@media (max-width: 560px) {
    .nav {
        padding: 1rem 1.1rem;
        mix-blend-mode: normal;
        background: rgba(5, 5, 7, 0.6);
        backdrop-filter: blur(8px);
    }
    .nav-mark { font-size: 1.15rem; }
    .nav-links { gap: 1rem; font-size: 0.58rem; letter-spacing: 0.14em; }

    .section { padding: 4.5rem 1.2rem; }

    /* Section title decorative dash would overflow the narrow viewport */
    .section-title::before { display: none; }
    .section-index { top: 1.6rem; right: 1.2rem; }

    .hero { min-height: 88vh; }
    .hero-sub {
        letter-spacing: 0.32em;
        text-indent: 0.32em;
        margin-top: clamp(2rem, 12vw, 3.5rem);
    }

    .about-col p { font-size: 1rem; max-width: none; }

    .perf-date { font-size: 1rem; }
    .perf-venue { font-size: 1.25rem; }
    .perf-desc { font-size: 0.9rem; max-width: none; }

    .music-status { font-size: 0.85rem; }

    .footer { padding: 4rem 1.2rem 2.5rem; }
    .footer-note { font-size: 0.6rem; letter-spacing: 0.14em; }
}

/* Very small phones */
@media (max-width: 360px) {
    .nav-links { gap: 0.7rem; font-size: 0.54rem; }
    .hero-sub { letter-spacing: 0.22em; text-indent: 0.22em; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
    .reveal { opacity: 1; transform: none; }
}
