*,
*::after,
*::before {
    box-sizing: border-box;
}

:root {
    --color-text: #fff;
    --color-bg: #000;
    --color-bg-alt: #0a0a0a;
    --color-link: rgba(255,255,255,0.5);
    --color-link-hover: #fff;
    --font-display: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
}

body {
    margin: 0;
    color: var(--color-text);
    background-color: var(--color-bg);
    font-family: var(--font-body);
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    margin-bottom: 50vh;
}

.js .loading::before,
.js .loading::after {
    content: '';
    position: fixed;
    z-index: 1000;
}
.js .loading::before {
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--color-bg);
}
.js .loading::after {
    top: 50%; left: 50%; width: 50px; height: 50px;
    margin: -25px 0 0 -25px;
    border-radius: 50%;
    opacity: 0.4;
    background: var(--color-link);
    animation: loaderAnim 0.7s linear infinite alternate forwards;
}
@keyframes loaderAnim {
    to { opacity: 1; transform: scale3d(0.5, 0.5, 1); }
}

a { text-decoration: none; color: var(--color-link); }
a:hover { color: var(--color-link-hover); }

/* Nav */
.nav {
    position: fixed; top: 0; left: 0; width: 100%;
    display: flex; justify-content: center; align-items: center;
    gap: 3rem; padding: 1.5rem 2rem; z-index: 100;
    pointer-events: none;
}
.nav__link {
    pointer-events: auto;
    font-family: var(--font-body); font-size: 0.85rem; font-weight: 300;
    letter-spacing: 0.05em; text-transform: lowercase;
    color: var(--color-text); white-space: nowrap; position: relative;
}
.nav__link:not(.nav__logo)::before {
    content: ''; height: 1px; width: 100%; background: currentColor;
    position: absolute; top: 90%;
    transform: scaleX(1); transform-origin: 0% 50%; transition: transform 0.3s;
}
.nav__link:not(.nav__logo):hover::before {
    transform: scaleX(0); transform-origin: 100% 50%;
}
.nav__logo {
    font-family: var(--font-display); font-size: 1.1rem; font-weight: 400;
    letter-spacing: 0.15em; text-transform: uppercase;
}

/* Hero */
.hero {
    height: 100vh; display: grid; place-items: center;
    position: relative;
    background: linear-gradient(0deg, transparent, var(--color-bg-alt));
    overflow: hidden;
}
.hero__bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0.35;
}
.hero__content { text-align: center; z-index: 1; }
.hero__title { margin: 0; }
.hero__title-pre {
    font-family: var(--font-display); font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 300; font-style: italic; color: var(--color-text); line-height: 1.1;
}
.hero__info {
    display: block; margin-top: 2rem; font-size: 0.75rem;
    text-transform: uppercase; letter-spacing: 0.15em; opacity: 0.4;
    position: relative;
}
.hero__info::after {
    content: ''; width: 1px; height: 2rem; background: #fff;
    position: absolute; bottom: -3rem; left: 50%; opacity: 0.3;
    animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 0.3; transform: translateY(10px); }
}
.hero__social {
    position: absolute; bottom: 2rem; left: 2rem;
    display: flex; gap: 1rem;
}
.hero__social a {
    font-size: 0.75rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
}

main {
    max-width: 1024px;
    margin: 0 auto;
}

/* Content Wrap */
.content-wrap {
    display: grid; place-items: center;
    grid-template-areas: 'main';
    max-width: 1024px;
    margin-left: auto;
    margin-right: auto;
}
.content-wrap:not(:last-child) { margin-bottom: 15vmax; }

.content {
    grid-area: main; display: grid; place-items: center;
    line-height: 1.2; grid-template-areas: 'content';
}
.content-wrap .content:first-child { height: 100vh; }

/* Title */
.title-wrap {
    display: flex; gap: 1em; align-items: center; justify-content: center;
}
.title {
    padding-top: 0.3em; line-height: 0.525;
    font-size: clamp(1rem, 7.5vw, 4.5rem);
    font-family: var(--font-display); font-weight: 300;
    position: relative; z-index: 100; text-indent: -0.05em;
}
.title--up { grid-area: title-up; font-style: italic; }
.title--down { grid-area: title-down; font-weight: 500; }

/* Content Layout base */
.content--layout { gap: 1rem; }

.content__link {
    grid-area: img; display: block; width: 100%;
    cursor: pointer;
}

.content__img {
    width: 100%; height: auto; display: block;
}
.content__text {
    grid-area: text; text-transform: uppercase; margin: 0; opacity: 0.5;
}

/* ===== LAYOUT 4 — Heart Ache (stacked) ===== */
.content--layout-4 {
    width: 100%;
    grid-template-areas: 'title-up'
                         'img'
                         'title-down'
                         'text';
    grid-template-columns: 1fr;
    justify-content: center;
    row-gap: 4vh;
}
.content--layout-4 .title--up { justify-self: center; }
.content--layout-4 .title--down { justify-self: center; }
.content--layout-4 .content__text {
    text-align: center; max-width: 400px; margin-top: 3rem;
}

/* ===== LAYOUT 7 — Star Light (image top, titles+text below) ===== */
.content--layout-7 {
    width: 100%;
    grid-template-areas: 'img img img img'
                         '... text title-up ...'
                         '... text title-down ...';
    grid-template-columns: 10vw 1fr 1fr 10vw;
    justify-content: center;
    row-gap: 4vh;
}
.content--layout-7 .title--up { justify-self: start; }
.content--layout-7 .title--down { justify-self: start; align-self: end; }
.content--layout-7 .content__text {
    max-width: 250px; justify-self: start; align-self: start; text-align: right;
}

/* Footer */
.footer {
    padding: 5rem 2rem; text-align: center;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.footer__social {
    display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem;
}
.footer__social a {
    font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: rgba(255,255,255,0.45);
}
.footer__copy { font-size: 0.75rem; opacity: 0.3; margin: 0 0 0.5rem; }
.footer__contact { font-size: 0.75rem; opacity: 0.3; margin: 0; letter-spacing: 0.05em; }

/* Mobile */
@media (max-width: 768px) {
    .content-wrap:not(:last-child) { margin-bottom: 2vmax; }
    .content-wrap .content:first-child { height: 50vh; }
    .title { font-size: clamp(1.5rem, 10vw, 3rem); }
    .title-wrap { gap: 0.5em; }
    .content--layout-4 { row-gap: 2vh; }
    .content--layout-7 { row-gap: 2vh; }
    .hero__title-pre { font-size: clamp(2rem, 10vw, 4rem); }
    .nav { gap: 1.5rem; padding: 1rem 1.5rem; }
    .nav__logo { font-size: 0.9rem; }
    .nav__link { font-size: 0.75rem; }
}
