/* =========================================================
   KODAMA BOOK PAGE
   BOOKS.CSS
========================================================= */


/* =========================================================
   GLOBAL
========================================================= */

:root {

    --bg: #000000;
    --bg-soft: #11110f;
    --bg-light: #e9e6df;

    --surface: #171714;

    --text: #f2efe8;
    --text-soft: #aaa79f;
    --text-dark: #171714;

    --line: rgba(242, 239, 232, 0.16);
    --line-soft: rgba(242, 239, 232, 0.08);
    --line-dark: rgba(23, 23, 20, 0.16);

    --accent: #d8c9a7;

    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;

    --container: min(90vw, 1440px);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);

}


/* =========================================================
   RESET
========================================================= */

*,
*::before,
*::after {

    box-sizing: border-box;

}


html {

    margin: 0;
    padding: 0;

    background: var(--bg);

    color: var(--text);

    scroll-behavior: auto;

}


/* =========================================================
   CUSTOM MOUSE CURSOR
========================================================= */

.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;

    width: 18px;
    height: 18px;

    border: 1px solid currentColor;
    border-radius: 50%;

    pointer-events: none;
    z-index: 99999;

    transform: translate(-50%, -50%);
    transition:
        width 0.35s cubic-bezier(.16, 1, .3, 1),
        height 0.35s cubic-bezier(.16, 1, .3, 1),
        background-color 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease;

    display: flex;
    align-items: center;
    justify-content: center;

    mix-blend-mode: difference;
}

.custom-cursor-text {
    font-family: "DM Sans", sans-serif;
    font-size: 8px;
    font-weight: 500;
    letter-spacing: 0.08em;

    opacity: 0;
    transform: scale(0.5);

    transition:
        opacity 0.25s ease,
        transform 0.35s cubic-bezier(.16, 1, .3, 1);
}

/* Quando estiver sobre elementos interativos */

.custom-cursor.is-hovering {
    width: 75px;
    height: 75px;
}

.custom-cursor.is-hovering .custom-cursor-text {
    opacity: 1;
    transform: scale(1);
}

/* Cursor em elementos que queremos destacar */

.custom-cursor.is-story {
    width: 95px;
    height: 95px;
}

.custom-cursor.is-story .custom-cursor-text {
    opacity: 1;
    transform: scale(1);
}

/* Esconde o cursor original apenas em desktop */

@media (min-width: 769px) {
    body {
        cursor: none;
    }

    a,
    button {
        cursor: none;
    }
}

/* Não usar cursor customizado no mobile */

@media (max-width: 768px) {
    .custom-cursor {
        display: none;
    }

    body,
    a,
    button {
        cursor: auto;
    }
}


body {

    margin: 0;
    padding: 0;

    background: var(--bg);

    color: var(--text);

    font-family: var(--sans);

    font-weight: 400;

    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;

    text-rendering: optimizeLegibility;

}


body.is-loading {

    overflow: hidden;

}


a {

    color: inherit;

    text-decoration: none;

}


img {

    display: block;

    width: 100%;

}


button {

    font: inherit;

    border: 0;

    background: none;

    color: inherit;

}


h1,
h2,
h3,
p {

    margin: 0;

}


::selection {

    background: var(--accent);

    color: var(--text-dark);

}


/* =========================================================
   CONTAINER
========================================================= */

.section-container {

    width: var(--container);

    margin-inline: auto;

}


/* =========================================================
   PAGE
========================================================= */

.book-page {

    position: relative;

    width: 100%;

    overflow: clip;

}


/* =========================================================
   HEADER
========================================================= */

.book-header {

    position: fixed;

    top: 0;
    left: 0;

    z-index: 100;

    width: 100%;

    padding:

        30px 5vw;

    display: flex;

    justify-content: space-between;

    align-items: center;

    pointer-events: none;

    mix-blend-mode: difference;

}


.book-header>* {

    pointer-events: auto;

}


/* =========================================================
   BACK
========================================================= */

.book-back {

    display: inline-flex;

    align-items: center;

    gap: 12px;

    font-size: 9px;

    font-weight: 500;

    letter-spacing: .16em;

    text-transform: uppercase;

    transition:

        opacity .4s ease;

}


.book-back:hover {

    opacity: .55;

}


.book-back-arrow {

    font-size: 16px;

    line-height: 1;

    transition:

        transform .7s var(--ease);

}


.book-back:hover .book-back-arrow {

    transform: translateX(-5px);

}


/* =========================================================
   KODAMA WORDMARK
========================================================= */

.book-kodama {

    font-size: 16px;

    font-weight: 500;

    letter-spacing: .24em;

}


/* =========================================================
   HERO
========================================================= */

.book-hero {

    position: relative;

    min-height: 100svh;

    padding-top: 150px;

    padding-bottom: 70px;

}


.book-hero-grid {

    width: var(--container);

    margin-inline: auto;

    display: grid;

    grid-template-columns:

        minmax(280px, .72fr) minmax(0, 1.28fr);

    gap: clamp(60px, 9vw, 150px);

    align-items: center;

}


/* =========================================================
   COVER
========================================================= */

.book-cover-column {

    position: relative;

}


.book-cover-frame {

    position: relative;

    width: min(100%, 570px);

    margin-inline: auto;

}


.book-cover-frame::before {

    content: "";

    position: absolute;

    inset: -20px;

    border: 2px solid var(--line-soft);

    pointer-events: none;

}


.book-cover-link {

    position: relative;

    display: block;

    overflow: hidden;


}


.book-cover-image {

    aspect-ratio: 3 / 5;

    object-fit: cover;

    transition:

        transform 1.4s var(--ease),


}


.book-cover-link:hover .book-cover-image {

    transform: scale(1.035);


}


.book-cover-number {

    position: absolute;

    top: -38px;

    left: 0;

    z-index: 2;

    font-size: 8px;

    letter-spacing: .18em;

    color: var(--text-soft);

}


.book-cover-caption {

    display: flex;

    justify-content: space-between;

    margin-top: 25px;

    font-size: 11px;

    font-weight: 500;

    letter-spacing: .15em;

    text-transform: uppercase;

    color: rgba(242, 239, 232, .85);

}


/* =========================================================
   BOOK INTRO
========================================================= */

.book-introduction {

    max-width: 850px;

}


.book-eyebrow {

    margin-bottom: 30px;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .2em;

    color: var(--text-soft);

}


.book-title {

    max-width: 900px;

    font-family: var(--serif);

    font-size: clamp(70px, 10vw, 160px);

    font-weight: 400;

    line-height: .82;

    letter-spacing: -.065em;

}


.book-title em {

    display: block;

    padding-left: clamp(25px, 8vw, 120px);

    font-style: italic;

}


.book-author-line {

    display: flex;

    align-items: baseline;

    gap: 10px;

    margin-top: 38px;

}


.book-author-label {

    font-family: var(--serif);

    font-size: 15px;

    font-style: italic;

    color: var(--text-soft);

}


.book-author-name {

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .16em;

}


.book-lead {

    max-width: 570px;

    margin-top: 50px;

    margin-left: 12%;

    font-size: 15px;

    line-height: 1.8;

    color: var(--text-soft);

}


/* =========================================================
   GENRES
========================================================= */

.book-genres {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 25px;

    margin-top: 55px;

    margin-left: 12%;

    padding-top: 20px;

    border-top: 1px solid var(--line);

}


.book-info-label {

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .16em;

    color: var(--text-soft);

}


.book-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

}


.book-tags a {

    padding: 9px 14px;

    border: 1px solid var(--line);

    border-radius: 100px;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .12em;

    transition:

        background .5s var(--ease),

        color .5s var(--ease);

}


.book-tags a:hover {

    background: var(--text);

    color: var(--text-dark);

}


/* =========================================================
   BOOK FACTS
========================================================= */

.book-facts {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    margin-top: 50px;

    margin-left: 12%;

    border-top: 1px solid var(--line);

}


.book-fact {

    padding: 18px 20px 18px 0;

    border-bottom: 1px solid var(--line);

}


.book-fact:nth-child(even) {

    padding-left: 20px;

    border-left: 1px solid var(--line);

}


.book-fact-label {

    display: block;

    margin-bottom: 7px;

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .14em;

    color: var(--text-soft);

}


.book-fact-value {

    display: block;

    font-family: var(--serif);

    font-size: 17px;

    line-height: 1.3;

}


/* =========================================================
   HERO FOOT
========================================================= */

.book-hero-foot {

    width: var(--container);

    margin: 80px auto 0;

    padding-top: 18px;

    border-top: 1px solid var(--line);

    display: flex;

    justify-content: space-between;

    font-size: 12px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .16em;

    color: rgba(242, 239, 232, .85);

}


/* =========================================================
   DIVIDER
========================================================= */

.book-divider {

    display: flex;

    justify-content: space-between;

    padding-block: 18px;

    border-top: 1px solid var(--line);

    border-bottom: 1px solid var(--line);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .17em;

    color: var(--text-soft);

}


/* =========================================================
   EDITORIAL
========================================================= */

.book-editorial-section {

    padding:

        clamp(150px, 19vw, 300px) 0;

}

.book-editorial-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.editorial-layout {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 6vw;

}


.editorial-index {

    font-size: 9px;

    letter-spacing: .18em;

    color: var(--text-soft);

}


.editorial-main {

    max-width: 1100px;

}


.section-kicker {

    display: block;

    margin-bottom: 28px;

    font-size: 11px;

    font-weight: 600;

    text-transform: uppercase;

    letter-spacing: .2em;

    color: var(--text-soft);

}


.editorial-title {

    max-width: 950px;

    font-family: var(--serif);

    font-size: clamp(52px, 7vw, 105px);

    font-weight: 400;

    line-height: .94;

    letter-spacing: -.05em;

}


.editorial-title em {

    font-style: italic;

}


.editorial-columns {

    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 5vw;

    max-width: 850px;

    margin-top: 80px;

    margin-left: 15%;

}


.editorial-columns p {

    font-size: 14px;

    line-height: 1.9;

    color: var(--text-soft);

}


/* =========================================================
   QUOTE
========================================================= */

.book-quote-section {

    position: relative;

    min-height: 95svh;

    display: flex;

    align-items: center;

    overflow: hidden;

    background: var(--bg-soft);

}

.book-quote-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.book-quote-background {

    position: absolute;

    inset: 0;

    background: linear-gradient(to bottom,
            rgb(0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0) 72%,
            rgba(0, 0, 0, 0) 87%,
            #000 100%);

    z-index: 1;

}


.book-quote {

    position: relative;

    max-width: 1050px;

    z-index: 2;

}

/* Background image common styles */
.section-bg-video {

    position: absolute;

    inset: 0;

    width: 100%;

    height: 110%;

    object-fit: cover;

    object-position: center;

    transform: scale(1.05);

    pointer-events: none;

    z-index: 0;

}

/* Legacy section: allow video background & stacking */
.legacy-section {

    position: relative;

}

.legacy-section .section-container,
.legacy-section .legacy-grid {

    position: relative;

    z-index: 2;

}

.legacy-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.book-quote-mark {

    display: block;

    font-family: var(--serif);

    font-size: 150px;

    line-height: .5;

    color: var(--accent);

}


.book-quote blockquote {

    max-width: 950px;

    margin-top: 40px;

    font-family: var(--serif);

    font-size: clamp(42px, 6vw, 90px);

    line-height: .98;

    letter-spacing: -.04em;

}


.book-quote-caption {

    display: block;

    margin-top: 50px;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .18em;

    color: var(--text-soft);

}


/* =========================================================
   AUTHOR
========================================================= */

.author-section {

    padding:

        clamp(150px, 19vw, 280px) 0;

}

.author-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.author-grid {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 6vw;

}


.author-side {

    display: flex;

    flex-direction: column;

    justify-content: space-between;

}


.author-number {

    font-size: 9px;

    color: var(--text-soft);

    letter-spacing: .15em;

}


.author-content {

    max-width: 1050px;

}


.author-title {

    font-family: var(--serif);

    font-size: clamp(58px, 8vw, 125px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.055em;

}


.author-title em {

    font-style: italic;

}


.author-text {

    max-width: 760px;

    margin-top: 80px;

    margin-left: 15%;

}


.author-text p {

    margin-bottom: 30px;

    font-size: 14px;

    line-height: 1.9;

    color: var(--text-soft);

}


.author-note {

    max-width: 500px;

    margin-top: 70px;

    margin-left: 15%;

    padding-top: 18px;

    border-top: 1px solid var(--line);

}


.author-note>span {

    display: block;

    margin-bottom: 15px;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: .18em;

    color: rgba(242, 239, 232, .85);

}


.author-note p {

    font-family: var(--serif);

    font-size: 18px;

    line-height: 1.5;

}


/* =========================================================
   FACTS
========================================================= */

.facts-section {

    padding:

        clamp(140px, 18vw, 260px) 0;

    background: var(--bg-light);

    color: var(--text-dark);

}


.facts-heading {

    max-width: 1000px;

    margin-left: 15%;

}


.facts-heading .section-kicker {

    color: rgba(23, 23, 20, .6);

    font-weight: 600;

}


.facts-heading h2 {

    font-family: var(--serif);

    font-size: clamp(50px, 7vw, 105px);

    font-weight: 400;

    line-height: .94;

    letter-spacing: -.05em;

}


.facts-heading h2 em {

    font-style: italic;

}


.facts-list {

    margin-top: 120px;

    border-top: 1px solid var(--line-dark);

}


.fact-item {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 6vw;

    padding: 45px 0;

    border-bottom: 1px solid var(--line-dark);

}


.fact-number {

    font-size: 14px;

    font-weight: 600;

    letter-spacing: .18em;

    color: var(--text-dark);

    opacity: .75;

}


.fact-item h3 {

    max-width: 650px;

    font-family: var(--serif);

    font-size: clamp(25px, 3vw, 42px);

    font-weight: 400;

    line-height: 1;

}


.fact-item p {

    max-width: 650px;

    margin-top: 20px;

    font-size: 13px;

    line-height: 1.8;

    opacity: .6;

}


/* =========================================================
   ADAPTATIONS
========================================================= */

.adaptations-section {

    padding:

        clamp(150px, 18vw, 270px) 0;

}

.adaptations-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.adaptations-header {

    display: grid;

    grid-template-columns: 1.2fr .8fr;

    gap: 8vw;

    align-items: end;

}


.adaptations-header h2 {

    max-width: 850px;

    font-family: var(--serif);

    font-size: clamp(50px, 7vw, 105px);

    font-weight: 400;

    line-height: .94;

    letter-spacing: -.05em;

}


.adaptations-header h2 em {

    font-style: italic;

}


.section-introduction {

    max-width: 390px;

    font-size: 14px;

    line-height: 1.8;

    color: var(--text-soft);

}


.adaptation-list {

    margin-top: 110px;

    border-top: 1px solid var(--line);

}


.adaptation-card {

    display: grid;

    grid-template-columns: 120px 1fr;

    gap: 5vw;

    padding: 42px 0;

    border-bottom: 1px solid var(--line);

}


.adaptation-year {

    font-family: var(--serif);

    font-size: 27px;

}


.adaptation-info h3 {

    font-family: var(--serif);

    font-size: clamp(28px, 3vw, 45px);

    font-weight: 400;

}


.adaptation-info p {

    max-width: 650px;

    margin-top: 15px;

    font-size: 13px;

    line-height: 1.8;

    color: var(--text-soft);

}




/* =====================================================
   BOOK FILM
====================================================== */

.book-film-section {
    position: relative;
    padding: 180px 0;
    overflow: hidden;
}


/* HEADER */

.film-header {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, .65fr);
    align-items: end;
    gap: 80px;
    margin-bottom: 70px;
}

.film-title {
    margin: 25px 0 0;

    max-width: 800px;

    font-family: var(--font-display, "Playfair Display", serif);
    font-size: clamp(58px, 8vw, 125px);
    font-weight: 400;
    line-height: .92;
    letter-spacing: -.045em;
}

.film-title em {
    font-style: italic;
}

.film-introduction {
    max-width: 390px;
    margin: 0;

    font-size: 14px;
    line-height: 1.8;

    color: rgba(242, 239, 232, .62);
}


/* =====================================================
   YOUTUBE FRAME
====================================================== */

.film-player {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #111;
}


/* IFRAME */

.film-player iframe {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    display: block;

    border: 0;
}


/* =====================================================
   CAPTION
====================================================== */

.film-caption {
    display: flex;
    justify-content: space-between;

    margin-top: 20px;

    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .16em;

    color: rgba(242, 239, 232, .42);
}


/* =====================================================
   TABLET
====================================================== */

@media (max-width: 900px) {

    .book-film-section {
        padding: 130px 0;
    }

    .film-header {
        grid-template-columns: 1fr;
        gap: 35px;
    }

}


/* =====================================================
   MOBILE
====================================================== */

@media (max-width: 768px) {

    .book-film-section {
        padding: 100px 0;
    }

    .film-header {
        display: block;
        margin-bottom: 45px;
    }

    .film-title {
        font-size: clamp(52px, 15vw, 85px);
    }

    .film-introduction {
        margin-top: 35px;
        max-width: 360px;
    }

    .film-player {
        aspect-ratio: 16 / 10;
    }

    .film-caption {
        display: block;
        line-height: 2;
    }

    .film-caption span {
        display: block;
    }

    .film-caption span:last-child {
        margin-top: 5px;
    }

}




/* =========================================================
   LEGACY
========================================================= */

.legacy-section {

    padding:

        clamp(180px, 20vw, 320px) 0;

    position: relative;

    overflow: hidden;

}

/* Overlay gradient to match the book-quote-section */
.legacy-section::before {

    content: "";

    position: absolute;

    inset: 0;

    z-index: 1;

    pointer-events: none;

    background: linear-gradient(to bottom,
            rgb(0, 0, 0) 0%,
            rgba(0, 0, 0, 0.089) 35%,
            rgba(0, 0, 0, 0) 55%,
            rgba(0, 0, 0, 0) 72%,
            rgba(255, 252, 252, 0) 87%,
            #000000 100%);

}



.legacy-grid {

    display: grid;

    grid-template-columns: 100px 1fr;

    gap: 6vw;

}


.legacy-title {

    max-width: 950px;

    font-family: var(--serif);

    font-size: clamp(55px, 8vw, 120px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.055em;

}


.legacy-title em {

    font-style: italic;

}


.legacy-text {

    max-width: 620px;

    margin-top: 70px;

    margin-left: 15%;

    font-size: 16px;

    line-height: 1.9;

    color: rgb(255, 255, 255);

    font-weight: 400;

}


/* =========================================================
   PURCHASE
========================================================= */

.purchase-section {

    padding:

        clamp(160px, 20vw, 300px) 0;

    background: black;

    color: rgb(255, 255, 255);

}


.purchase-inner {

    max-width: 1000px;

    margin-left: 15%;

}


.purchase-section .section-kicker {

    color: rgba(23, 23, 20, .6);

    font-weight: 600;

}


.purchase-inner h2 {

    max-width: 900px;

    font-family: var(--serif);

    font-size: clamp(55px, 8vw, 120px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.055em;

}


.purchase-inner h2 em {

    font-style: italic;

}


.purchase-inner>p {

    max-width: 520px;

    margin-top: 45px;

    font-size: 14px;

    line-height: 1.8;

    opacity: .6;

}


/* =========================================================
   PURCHASE BUTTON
========================================================= */

.purchase-button {

    position: relative;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-top: 55px;

    padding: 21px 34px;

    border: 1px solid rgba(255, 255, 255, 0.562);

    overflow: hidden;

    font-size: 9px;

    font-weight: 500;

    text-transform: uppercase;

    letter-spacing: .16em;

}


.purchase-button::before {

    content: "";

    position: absolute;

    inset: 0;

    background: white;

    transform: translateY(101%);

    transition:

        transform .7s var(--ease);

}


.purchase-button span {

    position: relative;

    z-index: 2;

    transition:

        color .6s ease;

}


.purchase-button:hover::before {

    transform: translateY(0);

}


.purchase-button:hover span {

    color: black;

}


.purchase-inner small {

    display: block;

    max-width: 420px;

    margin-top: 22px;

    font-size: 12px;

    line-height: 1.6;

    opacity: .45;

}


/* =========================================================
   RELATED
========================================================= */

.related-section {

    padding:

        clamp(150px, 18vw, 270px) 0;

}

.related-section .section-kicker {

    color: rgba(255, 255, 255, 0.65);

    font-weight: 600;

}


.related-header {

    max-width: 900px;

}


.related-header h2 {

    font-family: var(--serif);

    font-size: clamp(50px, 7vw, 105px);

    font-weight: 400;

    line-height: .94;

    letter-spacing: -.05em;

}


.related-header h2 em {

    font-style: italic;

}


.related-grid {

    display: grid;

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: clamp(18px, 2.5vw, 38px);

    margin-top: 100px;

}


.related-book {

    min-width: 0;

}


.related-cover {

    display: block;

    overflow: hidden;

    aspect-ratio: 2 / 3;

    background: var(--surface);

}


.related-cover img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:

        transform 1s var(--ease),

        filter .8s ease;

}


.related-book:hover .related-cover img {

    transform: scale(1.045);

    filter: brightness(1.07);

}


.related-meta {

    margin-top: 18px;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .15em;

    color: var(--text-soft);

}


.related-book h3 {

    margin-top: 9px;

    font-family: var(--serif);

    font-size: clamp(21px, 2vw, 30px);

    font-weight: 400;

    line-height: 1.05;

}


.related-book p {

    margin-top: 7px;

    font-size: 10px;

    color: var(--text-soft);

}


/* =========================================================
   FINAL ENGAGEMENT
========================================================= */

.book-engagement {

    position: relative;

    min-height: 90svh;

    display: flex;

    align-items: center;

    overflow: hidden;

}


.engagement-media {

    position: absolute;

    inset: -8%;

    background:

        linear-gradient(rgba(0, 0, 0, .3),
            rgba(0, 0, 0, .75)),

        url("assets/books/kodama-reading.webp") center / cover no-repeat;

    transform: scale(1.05);

}


.engagement-overlay {

    position: absolute;

    inset: 0;

    background:

        linear-gradient(to bottom,
            rgba(0, 0, 0, .15),
            rgba(0, 0, 0, .75));

}


.engagement-content {

    position: relative;

    z-index: 2;

    max-width: 1000px;

}


.engagement-content h2 {

    max-width: 900px;

    font-family: var(--serif);

    font-size: clamp(58px, 8vw, 125px);

    font-weight: 400;

    line-height: .9;

    letter-spacing: -.055em;

}


.engagement-content h2 em {

    font-style: italic;

}


.engagement-content p {

    max-width: 450px;

    margin-top: 45px;

    margin-left: 15%;

    font-size: 14px;

    line-height: 1.8;

    color: rgba(242, 239, 232, .7);

}


/* =========================================================
   ENGAGEMENT BUTTON
========================================================= */

.engagement-button {
    position: relative;
    z-index: 3;
    display: inline-flex;
    margin-top: 45px;
    margin-left: 15%;
    padding: 18px 28px;
    border: 1px solid rgba(242, 239, 232, .45);
    overflow: hidden;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .15em;
    transition: color .5s ease;
}

.engagement-button::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgb(255, 255, 255);
    transform: translateY(101%);
    transition: transform .7s var(--ease);
}

.engagement-button:hover::before {
    transform: translateY(0);
}

.engagement-button:hover {
    color: var(--text-dark);
}

.engagement-button>* {
    position: relative;
    z-index: 4;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {

    padding:

        100px 0 35px;

    background: var(--bg);

}


.footer-main {

    display: grid;

    grid-template-columns: .8fr 1.2fr;

    gap: 8vw;

    padding-bottom: 100px;

}


.footer-wordmark {

    display: inline-block;

    font-size: 23px;

    font-weight: 500;

    letter-spacing: .22em;

}


.footer-brand p {

    max-width: 300px;

    margin-top: 25px;

    font-family: var(--serif);

    font-size: 18px;

    line-height: 1.4;

    color: var(--text-soft);

}


.footer-navigation {

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 30px;

}


.footer-column {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

}


.footer-column-title {

    margin-bottom: 22px;

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .17em;

    color: var(--text-soft);

}


.footer-column a {

    margin-bottom: 12px;

    font-size: 12px;

    color: rgba(242, 239, 232, .72);

    transition:

        opacity .35s ease,

        transform .5s var(--ease);

}


.footer-column a:hover {

    opacity: .45;

    transform: translateX(5px);

}


.footer-bottom {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;

    padding-top: 22px;

    border-top: 1px solid var(--line);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .14em;

    color: var(--text-soft);

}


.footer-bottom span:nth-child(2) {

    text-align: center;

}


.footer-bottom span:last-child {

    text-align: right;

}


/* =========================================================
   REVEAL
========================================================= */

[data-reveal] {

    opacity: 0;

    transform: translate3d(0, 55px, 0);

}


[data-reveal].is-revealed {

    opacity: 1;

    transform: translate3d(0, 0, 0);

}


/* =========================================================
   PARALLAX
========================================================= */

[data-parallax] {

    will-change: transform;

}


/* =========================================================
   RESPONSIVE — 1100
========================================================= */

@media (max-width: 1100px) {

    :root {

        --container: 90vw;

    }


    .book-hero-grid {

        grid-template-columns:

            minmax(250px, .7fr) minmax(0, 1.3fr);

        gap: 6vw;

    }


    .book-title {

        font-size: clamp(65px, 10vw, 120px);

    }


    .related-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        row-gap: 70px;

    }

}


/* =========================================================
   RESPONSIVE — 768
========================================================= */

@media (max-width: 768px) {

    :root {

        --container: 88vw;

    }


    .book-header {

        padding: 25px 6vw;

    }


    .book-kodama {

        font-size: 14px;

    }


    /* ========================================= HERO — MOBILE ========================================= */
    .book-hero {
        padding-top: 125px;
    }

    /* Tudo passa a ficar em coluna: CAPA ↓ INFORMAÇÕES */
    .book-hero-grid {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    /* ========================================= CAPA DO LIVRO ========================================= */
    .book-cover-column {
        width: 100%;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    /* A capa ocupa quase toda a largura disponível, mas mantém proporção. */
    .book-cover-frame {
        width: min(78vw, 380px);
        margin: 0 auto;
    }

    .book-cover-frame::before {
        inset: -12px;
    }

    .book-cover-link {
        display: block;
        width: 100%;
    }

    .book-cover-image {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Número da edição fica alinhado com a composição da capa. */
    .book-cover-number {
        left: -18px;
    }

    /* ========================================= LEGENDA DA CAPA ========================================= */
    .book-cover-caption {
        width: min(78vw, 380px);
        margin-top: 18px;
        display: flex;
        justify-content: space-between;
    }


    .book-lead {

        margin-left: 0;

        max-width: 390px;

    }


    /* ========================================= INFORMAÇÕES DO LIVRO ========================================= */
    .book-introduction {
        width: 100%;
        margin-top: 100px;
    }

    /* ========================================= EYEBROW ========================================= */
    .book-eyebrow {
        margin-bottom: 25px;
    }

    /* ========================================= TÍTULO ========================================= */
    .book-title {
        font-size: clamp(62px, 17vw, 105px);
        line-height: .88;
    }

    .book-title em {
        padding-left: 10vw;
    }

    /* ========================================= DESCRIÇÃO ========================================= */
    .book-lead {
        margin-left: 0;
        max-width: 390px;
        margin-top: 40px;
    }

    /* ========================================= CATEGORIAS ========================================= */
    .book-genres {
        margin-left: 0;
    }

    /* ========================================= FATOS DO LIVRO ========================================= */
    .book-facts {
        margin-left: 0;
    }

    /* ========================================= RODAPÉ DO HERO ========================================= */
    .book-hero-foot {
        margin-top: 80px;
    }


    .editorial-layout,
    .author-grid,
    .legacy-grid {

        display: block;

    }


    .editorial-index,
    .author-side>.section-kicker,
    .legacy-grid>.section-kicker {

        margin-bottom: 40px;

    }


    .editorial-columns {

        grid-template-columns: 1fr;

        gap: 25px;

        margin-left: 0;

        margin-top: 55px;

    }


    .book-quote-section {

        min-height: 70svh;

    }

    .book-quote-section .section-bg-video,
    .legacy-section .section-bg-video {

        object-position: 85% center;

    }


    .book-quote blockquote {

        font-size: clamp(40px, 11vw, 70px);

    }


    .author-text {

        margin-left: 0;

        margin-top: 55px;

    }


    .author-note {

        margin-left: 0;

    }


    .facts-heading {

        margin-left: 0;

    }


    .fact-item {

        grid-template-columns: 45px 1fr;

        gap: 20px;

    }


    .adaptations-header {

        display: block;

    }


    .adaptations-header .section-introduction {

        margin-top: 35px;

    }


    .adaptation-card {

        grid-template-columns: 70px 1fr;

        gap: 25px;

    }


    .legacy-text {

        margin-left: 0;

    }


    .purchase-inner {

        margin-left: 0;

    }


    .related-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 55px 15px;

    }


    .engagement-content p,
    .engagement-button {

        margin-left: 0;

    }

    .book-cover-column {
        display: flex;
        justify-content: center;
    }


    .footer-main {

        grid-template-columns: 1fr;

        gap: 70px;

        padding-bottom: 70px;

    }


    .footer-navigation {

        grid-template-columns: repeat(2, minmax(0, 1fr));

        row-gap: 50px;

    }


    .footer-bottom {

        grid-template-columns: 1fr;

        gap: 12px;

    }


    .footer-bottom span,
    .footer-bottom span:nth-child(2),
    .footer-bottom span:last-child {

        text-align: left;

    }

}


/* =========================================================
   RESPONSIVE — 480
========================================================= */

@media (max-width: 480px) {

    .book-header {

        padding-inline: 6vw;

    }


    .book-cover-column {

        width: 84%;

        margin-right: auto;

        margin-left: auto;

    }


    .book-title {

        font-size: 17vw;

    }


    .book-author-line {

        margin-top: 30px;

    }


    .book-lead {

        font-size: 13px;

    }


    .book-genres {

        display: block;

    }


    .book-tags {

        margin-top: 15px;

    }


    .book-facts {

        grid-template-columns: 1fr;

    }


    .book-fact,
    .book-fact:nth-child(even) {

        padding-left: 0;

        border-left: 0;

    }


    .book-hero-foot {

        flex-direction: column;

        gap: 10px;

    }


    .editorial-title,
    .facts-heading h2,
    .adaptations-header h2,
    .legacy-title,
    .purchase-inner h2,
    .related-header h2 {

        font-size: 13vw;

    }


    .book-quote blockquote {

        font-size: 12vw;

    }


    .book-quote-mark {

        font-size: 100px;

    }


    .related-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));

    }


    .related-book h3 {

        font-size: 20px;

    }


    .footer-navigation {

        grid-template-columns: 1fr;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        animation-duration: .01ms !important;

        animation-iteration-count: 1 !important;

        transition-duration: .01ms !important;

    }


    [data-reveal] {

        opacity: 1 !important;

        transform: none !important;

    }


    [data-parallax] {

        transform: none !important;

    }

}