/* ===========================================================
   Curvya — Case File
   Palette:  --cv-bg #0F0B0C  --cv-panel #171113
             --cv-rose #E6A8B4  --cv-rose-deep #C97F91
             --cv-gold #C9A05A  --cv-cream #F3E7E1
             --cv-muted #A6928E
   Type:     Playfair Display italic — the brand's own voice
             PP Neue Montreal — studio UI voice (labels, nav)
             Inter — reading copy
             JetBrains Mono — spec / tech-pack data
   Signature: the hangtag — a garment spec label, pinned to
             the page the way a tag is pinned to a slip
=============================================================== */
@media (min-width: 1025px) {

    .cv-hero,
    .cv-section,
    .cv-quote,
    .cv-chapternav {
        margin-left: var(--sidebar-w);
    }
}

.curvya-page {
    background: var(--cv-bg);
    color: var(--cv-cream);
    overflow-x: clip;
}

.curvya-page * {
    box-sizing: border-box;
}

.curvya-page ::selection {
    background: var(--cv-rose);
    color: #2a1418;
}

.cv-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: 500 .72rem "PP Neue Montreal", sans-serif;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cv-rose);
}

.cv-eyebrow::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--cv-rose);
}

/* ===========================
   Hero
=========================== */

.cv-hero {
    position: relative;
    min-height: 86vh;
    display: flex;
    align-items: flex-end;
    padding: 120px 64px 72px;
    border-bottom: 1px solid var(--cv-line);
    overflow: hidden;
}

.cv-hero-ribbons {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.cv-hero-ribbons svg {
    position: absolute;
}

.cv-hero-ribbons .cv-ribbon-a {
    top: -12%;
    right: -8%;
    width: 62vw;
    max-width: 780px;
    animation: cvDrift 22s ease-in-out infinite;
}

.cv-hero-ribbons .cv-ribbon-b {
    top: 18%;
    right: -18%;
    width: 48vw;
    max-width: 620px;
    animation: cvDrift 26s ease-in-out infinite reverse;
}

@keyframes cvDrift {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-2%, 2%) rotate(1.5deg);
    }
}

.cv-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.cv-hero-title {
    margin: 18px 0 22px;
    font: 500 clamp(3.2rem, 9vw, 7rem) "Playfair Display", serif;
    font-style: italic;
    line-height: .95;
    color: var(--cv-cream);
    letter-spacing: -.01em;
}

.cv-hero-sub {
    max-width: 46ch;
    font: 400 1.05rem/1.6 "Inter", sans-serif;
    color: var(--cv-muted);
}

.cv-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--cv-line);
}

.cv-hero-meta-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cv-hero-meta-item dt {
    font: 500 .68rem "JetBrains Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cv-muted);
}

.cv-hero-meta-item dd {
    margin: 0;
    font: 400 .9rem "Inter", sans-serif;
    color: var(--cv-cream);
}

.cv-status-dot {
    margin-bottom: 2px;
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--cv-gold);
    margin-right: 6px;
    box-shadow: 0 0 0 3px rgba(201, 160, 90, .18);
}

/* ===========================
   Shared section rhythm
=========================== */

.cv-section {
    padding: 96px 64px;
    border-bottom: 1px solid var(--cv-line);
}

.cv-section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.cv-section-title {
    margin: 14px 0 0;
    font: 500 clamp(1.8rem, 3.4vw, 2.6rem) "PP Neue Montreal", sans-serif;
    letter-spacing: -.01em;
    color: var(--cv-cream);
}

.cv-section-title em {
    font-family: "Playfair Display", serif;
    font-style: italic;
    color: var(--cv-rose);
}

/* ===========================
   The Brief
=========================== */

.cv-brief {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 64px;
    align-items: start;
}

.cv-brief-copy p {
    margin: 0 0 18px;
    font: 400 1.02rem/1.7 "Inter", sans-serif;
    color: var(--cv-muted);
    max-width: 56ch;
}

.cv-brief-copy p:last-child {
    margin-bottom: 0;
}

.cv-brief-copy strong {
    color: var(--cv-cream);
    font-weight: 500;
}

/* --- Hangtag: the signature element --- */

.cv-hangtag {
    position: relative;
    background: var(--cv-panel);
    border: 1px solid var(--cv-line);
    padding: 30px 28px 26px;
    max-width: 340px;
    justify-self: end;
    transform: rotate(1.4deg);
    box-shadow: 0 24px 48px rgba(0, 0, 0, .35);
}

.cv-hangtag::before {
    /* punched hole */
    content: "";
    position: absolute;
    top: 18px;
    left: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--cv-bg);
    border: 1px solid var(--cv-line);
}

.cv-hangtag::after {
    /* loop of string through the hole */
    content: "";
    position: absolute;
    top: -14px;
    left: 21px;
    width: 18px;
    height: 24px;
    border: 1.5px solid var(--cv-gold);
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    opacity: .8;
}

.cv-hangtag-label {
    display: block;
    margin: 6px 0 18px 30px;
    font: 500 .68rem "JetBrains Mono", monospace;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--cv-rose);
}

.cv-hangtag-rows {
    margin: 0;
}

.cv-hangtag-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-top: 1px dashed var(--cv-line);
    font: 400 .82rem "JetBrains Mono", monospace;
}

.cv-hangtag-row:first-child {
    border-top: none;
}

.cv-hangtag-row dt {
    color: var(--cv-muted);
}

.cv-hangtag-row dd {
    margin: 0;
    color: var(--cv-cream);
    text-align: right;
}

/* ===========================
   Approach — spec panel
=========================== */

.cv-spec {
    display: flex;
    flex-direction: column;
}

.cv-spec-row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 40px;
    padding: 32px 0;
    border-top: 1px solid var(--cv-line);
}

.cv-spec-row:last-child {
    border-bottom: 1px solid var(--cv-line);
}

.cv-spec-key {
    font: 500 .78rem "JetBrains Mono", monospace;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--cv-gold);
    padding-top: 2px;
}

.cv-spec-value h3 {
    margin: 0 0 10px;
    font: 500 1.15rem "PP Neue Montreal", sans-serif;
    color: var(--cv-cream);
}

.cv-spec-value p {
    margin: 0;
    max-width: 60ch;
    font: 400 .96rem/1.65 "Inter", sans-serif;
    color: var(--cv-muted);
}

/* ===========================
   Plates — visual gallery
=========================== */

.cv-plates {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--cv-line);
    border: 1px solid var(--cv-line);
}

.cv-plate {
    position: relative;
    background: var(--cv-panel);
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cv-plate svg {
    width: 62%;
    height: 62%;
}

.cv-plate-caption {
    position: absolute;
    left: 18px;
    bottom: 16px;
    font: 500 .68rem "JetBrains Mono", monospace;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cv-muted);
}

.cv-plate-caption b {
    color: var(--cv-rose);
    font-weight: 500;
}

/* ===========================
   Palette & Type specimen
=========================== */

.cv-specimen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
}

.cv-swatches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.cv-swatch {
    padding: 20px 16px;
    border: 1px solid var(--cv-line);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    aspect-ratio: 1.6 / 1;
}

.cv-swatch-name {
    font: 500 .78rem "PP Neue Montreal", sans-serif;
}

.cv-swatch-hex {
    font: 400 .74rem "JetBrains Mono", monospace;
    opacity: .8;
}

.cv-type-specimen {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.cv-type-row {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--cv-line);
}

.cv-type-row:last-child {
    border-bottom: none;
}

.cv-type-sample {
    margin: 0 0 6px;
    color: var(--cv-cream);
}

.cv-type-sample.serif {
    font: 500 2.4rem "Playfair Display", serif;
    font-style: italic;
}

.cv-type-sample.sans {
    font: 500 1.7rem "PP Neue Montreal", sans-serif;
}

.cv-type-meta {
    font: 400 .72rem "JetBrains Mono", monospace;
    color: var(--cv-muted);
    letter-spacing: .04em;
}

/* ===========================
   Pull quote
=========================== */

.cv-quote {
    text-align: center;
    padding: 110px 64px;
}

.cv-quote blockquote {
    margin: 0 auto;
    max-width: 780px;
    font: 500 clamp(1.5rem, 3vw, 2.3rem) "Playfair Display", serif;
    font-style: italic;
    line-height: 1.4;
    color: var(--cv-cream);
}

.cv-quote cite {
    display: block;
    margin-top: 24px;
    font: 500 .72rem "JetBrains Mono", monospace;
    font-style: normal;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--cv-muted);
}

/* ===========================
   Chapter nav (prev/next + back)
=========================== */

.cv-chapternav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 64px;
    gap: 24px;
    flex-wrap: wrap;
}

.cv-chapternav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--cv-muted);
    font: 400 .85rem "Inter", sans-serif;
    transition: color .25s ease;
}

.cv-chapternav-link:hover {
    color: var(--cv-rose);
}

.cv-chapternav-link svg {
    width: 16px;
    height: 16px;
    transition: transform .25s ease;
}

.cv-chapternav-link.next:hover svg {
    transform: translateX(3px);
}

.cv-chapternav-link.back:hover svg {
    transform: translateX(-3px);
}

/* ===========================
   Focus visibility
=========================== */

.curvya-page a:focus-visible,
.curvya-page button:focus-visible {
    outline: 2px solid var(--cv-rose);
    outline-offset: 3px;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 1024px) {

    .cv-hero,
    .cv-section,
    .cv-quote,
    .cv-chapternav {
        padding-left: 28px;
        padding-right: 28px;
    }

    .cv-brief,
    .cv-specimen {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .cv-hangtag {
        justify-self: start;
        transform: rotate(0);
    }

    .cv-plates {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cv-hero {
        min-height: auto;
        padding-top: 96px;
        padding-bottom: 48px;
    }

    .cv-hero-meta {
        gap: 20px;
    }

    .cv-spec-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .cv-swatches {
        grid-template-columns: 1fr 1fr;
    }
}