/* ==========================================================================
   monopole.style — avant-garde fashion editorial
   Palette: #f5f5f5 / #0a0a0a / #1a1a1a / #e0e0e0 / #ff2d55 / #4a4a4a / #8a8a8a
   Fonts: Big Shoulders Display, Cormorant, Azeret Mono
   ========================================================================== */

:root {
    --c-studio: #f5f5f5;
    --c-runway: #0a0a0a;
    --c-deep: #1a1a1a;
    --c-light: #e0e0e0;
    --c-red: #ff2d55;
    --c-cap-dark: #4a4a4a;
    --c-cap-light: #8a8a8a;

    --f-display: "Big Shoulders Display", "Impact", sans-serif;
    --f-body: "Cormorant", "Times New Roman", serif;
    --f-mono: "Azeret Mono", "Courier New", monospace;

    --pad-section: clamp(4rem, 10vh, 8rem);
}

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

html {
    scroll-behavior: smooth;
    background: var(--c-studio);
}

body {
    font-family: var(--f-body);
    color: var(--c-deep);
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 720px) {
    body { cursor: auto; }
}

/* ---------------- Masthead ---------------- */

.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
    mix-blend-mode: difference;
    color: var(--c-studio);
    pointer-events: none;
}

.mast-mark {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.2em;
}

.mast-nav {
    display: flex;
    gap: clamp(1rem, 3vw, 2.5rem);
    pointer-events: auto;
}

.mast-link {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: inherit;
}

.mast-link--accent {
    color: var(--c-red);
}

/* ---------------- Section base ---------------- */

.section {
    position: relative;
    min-height: 100vh;
    padding: var(--pad-section);
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.section--hero,
.section--01,
.section--03,
.section--05 {
    background: var(--c-studio);
    color: var(--c-deep);
}

.section--02,
.section--04,
.section--06 {
    background: var(--c-runway);
    color: var(--c-light);
}

.label {
    display: inline-block;
    font-family: var(--f-mono);
    font-weight: 400;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-cap-dark);
    margin-bottom: 2.5rem;
}

.label--light {
    color: var(--c-cap-light);
}

.label--mono {
    font-family: var(--f-mono);
}

.display {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--c-deep);
    font-size: clamp(2.5rem, 7vw, 6rem);
    margin-bottom: 2rem;
}

.display--light {
    color: var(--c-light);
}

.display--mega {
    font-size: clamp(5rem, 18vw, 16rem);
    line-height: 0.85;
    letter-spacing: -0.02em;
}

.accent {
    color: var(--c-red);
}

.body {
    font-family: var(--f-body);
    font-size: clamp(1rem, 1.1vw, 1.15rem);
    line-height: 1.8;
    color: var(--c-deep);
    margin-bottom: 1.25rem;
}

.body--light {
    color: var(--c-light);
}

.body--large {
    font-size: clamp(1.4rem, 2.4vw, 2.4rem);
    line-height: 1.4;
    font-weight: 300;
    font-style: italic;
}

/* ---------------- Hero ---------------- */

.section--hero {
    padding-left: 5%;
    padding-right: 5%;
    justify-content: space-between;
    padding-top: 8rem;
    padding-bottom: 4rem;
}

.hero-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.hero-meta .label {
    margin-bottom: 0;
}

.hero-title {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    color: var(--c-deep);
    font-size: clamp(3rem, 18vw, 16rem);
    line-height: 0.85;
    margin: 0;
    letter-spacing: clamp(0.1em, 1.2vw, 0.5em);
    align-self: flex-start;
    max-width: 100%;
}

.hero-line {
    display: block;
}

.hero-line--offset {
    padding-left: clamp(2rem, 12vw, 12rem);
}

.hero-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid var(--c-deep);
    padding-top: 1rem;
}

.hero-domain {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    letter-spacing: 0.4em;
    text-transform: uppercase;
}

.hero-domain .dot {
    color: var(--c-red);
    font-style: normal;
}

.hero-credit {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--c-cap-dark);
}

.hero-scroll {
    position: absolute;
    bottom: 1.75rem;
    right: 5%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--c-cap-dark);
}

.scroll-word {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.scroll-line {
    display: block;
    width: 60px;
    height: 1px;
    background: var(--c-cap-dark);
    transform-origin: left;
    animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* ---------------- Section content placement ---------------- */

.content {
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.section.is-visible .content {
    opacity: 1;
    transform: translateY(0);
}

.content--left {
    margin-left: 5%;
    margin-right: auto;
    max-width: 400px;
}

.content--right {
    margin-left: auto;
    margin-right: 5%;
    max-width: 500px;
    text-align: left;
}

.content--center {
    margin: 0 auto;
    max-width: 600px;
    text-align: center;
}

.content--wide {
    margin-left: 5%;
    margin-right: auto;
    max-width: 90%;
}

.content--narrow {
    max-width: 360px;
}

.content--small {
    max-width: 420px;
}

.content--center .label {
    display: inline-block;
}

/* ---------------- Margin folio numbers ---------------- */

.margin-folio {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--c-cap-dark);
    pointer-events: none;
}

.section--01 .margin-folio { right: 2rem; }
.section--05 .margin-folio { left: 2rem; }

.margin-folio--light {
    color: var(--c-cap-light);
}

.section--02 .margin-folio { left: 2rem; }

/* ---------------- Field glyph (svg) ---------------- */

.field-glyph {
    position: absolute;
    top: 12%;
    left: 5%;
    width: clamp(140px, 22vw, 320px);
    height: clamp(140px, 22vw, 320px);
    opacity: 0.55;
    pointer-events: none;
    animation: glyphRotate 60s linear infinite;
}

.field-glyph svg {
    width: 100%;
    height: 100%;
}

@keyframes glyphRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------------- Palette swatches ---------------- */

.swatch-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem 2rem;
    margin-top: 3rem;
}

.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chip {
    display: block;
    width: 64px;
    height: 96px;
    transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.swatch:hover .chip {
    transform: translateY(-8px);
}

.chip-name {
    font-family: var(--f-body);
    font-size: 0.95rem;
    color: var(--c-deep);
}

.chip-hex {
    font-family: var(--f-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--c-cap-dark);
    text-transform: uppercase;
}

.swatch--accent .chip-name {
    color: var(--c-red);
}

/* ---------------- Lookbook ---------------- */

.section--04 {
    padding-top: var(--pad-section);
    padding-bottom: var(--pad-section);
}

.section--04 .content--wide {
    margin-bottom: clamp(2rem, 6vh, 5rem);
}

.looks {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--c-cap-light);
}

.look {
    display: grid;
    grid-template-columns: clamp(80px, 12vw, 160px) 1fr 2fr;
    gap: clamp(1rem, 4vw, 4rem);
    align-items: baseline;
    padding: clamp(1.25rem, 3vh, 2.5rem) 5%;
    border-bottom: 1px solid var(--c-cap-light);
    transition: background-color 0.5s ease, padding-left 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.look:hover {
    background: rgba(255, 45, 85, 0.06);
    padding-left: 7%;
}

.look:hover .look-title {
    color: var(--c-red);
}

.look-num {
    font-family: var(--f-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--c-cap-light);
}

.look-title {
    font-family: var(--f-display);
    font-weight: 800;
    text-transform: uppercase;
    font-size: clamp(1.5rem, 3.5vw, 3rem);
    line-height: 1;
    color: var(--c-light);
    transition: color 0.4s ease;
}

.look-note {
    font-family: var(--f-body);
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.6;
    color: var(--c-light);
    font-style: italic;
}

/* ---------------- Closing mark ---------------- */

.closing-mark {
    position: absolute;
    bottom: var(--pad-section);
    right: 5%;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--c-light);
}

.mark-line {
    display: block;
    width: clamp(40px, 8vw, 120px);
    height: 1px;
    background: var(--c-light);
}

.mark-letter {
    font-family: var(--f-display);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: 0.1em;
    color: var(--c-red);
}

/* ---------------- Colophon ---------------- */

.colophon {
    background: var(--c-runway);
    color: var(--c-light);
    padding: 2rem clamp(1.25rem, 4vw, 3rem);
    border-top: 1px solid var(--c-cap-light);
}

.colophon-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.colophon .label {
    margin-bottom: 0;
}

/* ---------------- Custom cursor ---------------- */

.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 18px;
    height: 18px;
    border: 1px solid var(--c-deep);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100;
    mix-blend-mode: difference;
    transition: width 0.25s ease, height 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.cursor.is-hover {
    width: 38px;
    height: 38px;
    background: var(--c-red);
    border-color: var(--c-red);
}

@media (max-width: 720px) {
    .cursor { display: none; }
}

/* ---------------- Reveal letters in hero ---------------- */

.hero-title .hero-line {
    overflow: hidden;
}

.hero-line span.char {
    display: inline-block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 1.1s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 1.1s ease;
}

.hero-title.is-visible .hero-line span.char {
    transform: translateY(0);
    opacity: 1;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 800px) {
    .masthead { padding: 1rem; }
    .mast-nav { gap: 0.85rem; }
    .mast-link { font-size: 0.62rem; letter-spacing: 0.14em; }

    .hero-meta { flex-direction: column; }
    .hero-line--offset { padding-left: 1.5rem; }
    .hero-foot { flex-direction: column; align-items: flex-start; }

    .content--left,
    .content--right,
    .content--center,
    .content--wide,
    .content--narrow,
    .content--small {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }

    .field-glyph { top: 5%; right: 5%; left: auto; opacity: 0.35; }

    .look {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 5%;
    }

    .closing-mark { position: static; margin-top: 3rem; }

    .colophon-row { flex-direction: column; align-items: flex-start; }
}

/* ---------------- Section subtle motion ---------------- */

.section {
    transition: background-color 0.6s ease;
}

/* tiny print rule on section borders for editorial feel */
.section--01::before,
.section--03::before,
.section--05::before {
    content: "";
    position: absolute;
    top: var(--pad-section);
    left: 5%;
    width: 24px;
    height: 1px;
    background: var(--c-cap-dark);
}

.section--02::before,
.section--04::before,
.section--06::before {
    content: "";
    position: absolute;
    top: var(--pad-section);
    right: 5%;
    width: 24px;
    height: 1px;
    background: var(--c-cap-light);
}
