/* ============================================
   MIA HARPER — WEBSITE
   Palette: Encre #0D1117 | Nuit #1A2332 | Os #F5F0E8
           Cendre #8B8680 | Sang sec #6B2D2D | Laiton #B8956A
   Typo:   Playfair Display (titres) | Cormorant Garamond (corps)
   ============================================ */

/* --- Reset & Base --- */

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

:root {
    --encre: #0D1117;
    --nuit: #1A2332;
    --os: #F5F0E8;
    --cendre: #8B8680;
    --sang-sec: #6B2D2D;
    --laiton: #B8956A;

    --font-title: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --font-body: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
}

html {
    scroll-behavior: smooth;
    font-size: 17px;
}

body {
    background-color: var(--encre);
    color: var(--os);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection {
    background: var(--sang-sec);
    color: var(--os);
}

a {
    color: var(--os);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--laiton);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- Grain Overlay (present on every section) --- */

.grain {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* --- Container --- */

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

/* --- Section Base --- */

.section {
    position: relative;
    padding: 8rem 0;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--laiton);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.3rem;
    color: var(--cendre);
    margin-bottom: 4rem;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background-color: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(184, 149, 106, 0.08);
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-family: var(--font-title);
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    color: var(--os);
    transition: opacity 0.3s ease;
}

.nav-brand:hover {
    color: var(--os);
    opacity: 0.7;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    color: var(--cendre);
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--os);
}

/* Mobile toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--os);
    position: absolute;
    left: 0;
    transition: transform 0.3s ease, top 0.3s ease;
}

.nav-toggle span:first-child { top: 4px; }
.nav-toggle span:last-child { top: 14px; }

.nav-toggle.active span:first-child {
    top: 9px;
    transform: rotate(45deg);
}

.nav-toggle.active span:last-child {
    top: 9px;
    transform: rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(ellipse at 30% 20%, rgba(26, 35, 50, 0.6) 0%, var(--encre) 70%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 15%;
    left: 10%;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(184, 149, 106, 0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: breathe 8s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 20%;
    right: 8%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(107, 45, 45, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: breathe 10s ease-in-out 3s infinite;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-pre {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.1rem;
    color: var(--cendre);
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease 0.3s forwards;
}

.hero-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.25em;
    color: var(--os);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s ease 0.6s forwards;
}

.hero-line {
    width: 60px;
    height: 1px;
    background: var(--laiton);
    margin: 0 auto 2rem;
    opacity: 0;
    transform: scaleX(0);
    animation: drawLine 1.4s ease 1s forwards;
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 2.5vw, 1.55rem);
    font-weight: 300;
    line-height: 1.8;
    color: var(--os);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.2s ease 1.2s forwards;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s ease 2s forwards;
}

.scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--cendre);
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--laiton), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

/* ============================================
   QUOTE SECTION
   ============================================ */

.quote-section {
    position: relative;
    padding: 6rem 0;
    background: var(--nuit);
    border-top: 1px solid rgba(184, 149, 106, 0.08);
    border-bottom: 1px solid rgba(184, 149, 106, 0.08);
}

.pull-quote {
    font-family: var(--font-title);
    font-size: clamp(1.4rem, 3vw, 2.2rem);
    font-weight: 400;
    text-align: center;
    line-height: 1.8;
    color: var(--os);
    position: relative;
    z-index: 2;
}

.pull-quote em {
    color: var(--laiton);
    font-style: italic;
}

/* ============================================
   BOOKS
   ============================================ */

.books {
    background: var(--encre);
}

.book {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 8rem;
}

.book:last-of-type {
    margin-bottom: 4rem;
}

.book-reverse {
    grid-template-columns: 1fr 300px;
}

.book-reverse .book-cover {
    order: 2;
}

.book-reverse .book-info {
    order: 1;
    text-align: right;
}

.book-reverse .book-separator {
    margin-left: auto;
}

.book-reverse .book-meta {
    justify-content: flex-end;
}

.book-reverse .book-cta {
    margin-left: auto;
}

/* Cover */
.book-cover img {
    width: 100%;
    border-radius: 2px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(184, 149, 106, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.book-cover:hover img {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(184, 149, 106, 0.12);
}

/* Placeholder cover for La Clé du 4ème */
.placeholder-cover {
    aspect-ratio: 2/3;
    background: linear-gradient(160deg, var(--nuit) 0%, var(--encre) 100%);
    border: 1px solid rgba(184, 149, 106, 0.12);
    border-radius: 2px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(184, 149, 106, 0.08);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.placeholder-cover::before {
    content: '';
    position: absolute;
    top: 10%;
    left: -20%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(184, 149, 106, 0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.placeholder-cover:hover {
    transform: translateY(-4px);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(184, 149, 106, 0.12);
}

.placeholder-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.1em;
    line-height: 1.4;
    color: var(--os);
    position: relative;
}

.placeholder-sub {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--cendre);
    position: relative;
}

.placeholder-author {
    font-family: var(--font-title);
    font-size: 0.7rem;
    letter-spacing: 0.4em;
    color: var(--os);
    position: relative;
}

/* Book info */
.book-number {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--laiton);
    display: block;
    margin-bottom: 1rem;
}

.book-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: 0.08em;
    line-height: 1.3;
    color: var(--os);
    margin-bottom: 1.5rem;
}

.book-hook {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--cendre);
    margin-bottom: 1.5rem;
}

.book-separator {
    width: 40px;
    height: 1px;
    background: var(--sang-sec);
    margin-bottom: 1.5rem;
    transform-origin: left;
}

.book-reverse .book-separator {
    transform-origin: right;
}

.reveal.visible .book-separator {
    animation: drawLine 1s ease 0.3s both;
}

.book-description {
    font-family: var(--font-body);
    font-size: 1.15rem;
    line-height: 1.85;
    color: var(--os);
    margin-bottom: 1rem;
    opacity: 0.85;
}

.book-description.emphasis {
    font-style: italic;
    color: var(--laiton);
    opacity: 1;
}

.book-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cendre);
    letter-spacing: 0.05em;
    flex-wrap: wrap;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sang-sec);
    flex-shrink: 0;
}

.book-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.15em;
    color: var(--os);
    padding: 0.8rem 2rem;
    border: 1px solid rgba(245, 240, 232, 0.2);
    transition: all 0.3s ease;
}

.book-cta:hover {
    color: var(--encre);
    background: var(--os);
    border-color: var(--os);
}

.books-comp {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1rem;
    color: var(--cendre);
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(184, 149, 106, 0.08);
}

/* ============================================
   LEAD MAGNETS
   ============================================ */

.lead-magnets {
    background: var(--nuit);
    border-top: 1px solid rgba(184, 149, 106, 0.08);
}

.magnets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.magnet-card {
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(184, 149, 106, 0.08);
    border-radius: 2px;
    padding: 2.5rem;
    position: relative;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
}

.magnet-card:hover {
    border-color: rgba(184, 149, 106, 0.18);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(184, 149, 106, 0.06);
    transform: translateY(-2px);
}

.magnet-badge {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--laiton);
    margin-bottom: 1.25rem;
}

.magnet-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 1.55rem;
    letter-spacing: 0.05em;
    color: var(--os);
    margin-bottom: 1rem;
}

.magnet-sep {
    width: 30px;
    height: 1px;
    background: var(--sang-sec);
    margin-bottom: 1.25rem;
}

.magnet-hook {
    font-family: var(--font-title);
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--os);
    margin-bottom: 1rem;
    opacity: 0.9;
}

.magnet-description {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--cendre);
    margin-bottom: 1.25rem;
}

.magnet-format {
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--cendre);
    opacity: 0.5;
    margin-bottom: 1.5rem;
}

.magnet-form {
    display: flex;
    gap: 0;
}

.magnet-form input {
    flex: 1;
    padding: 0.75rem 1rem;
    background: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(245, 240, 232, 0.12);
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: var(--os);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.magnet-form input::placeholder {
    color: var(--cendre);
    opacity: 0.5;
}

.magnet-form input:focus {
    border-color: var(--laiton);
}

.magnet-form button {
    padding: 0.75rem 1.2rem;
    background: transparent;
    border: 1px solid rgba(245, 240, 232, 0.12);
    border-radius: 0 2px 2px 0;
    color: var(--os);
    font-family: var(--font-body);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.magnet-form button:hover {
    background: var(--os);
    color: var(--encre);
    border-color: var(--os);
}

/* ============================================
   UNIVERSE / DNA
   ============================================ */

.universe {
    background: var(--nuit);
}

.dna-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.dna-card {
    padding: 2rem;
    background: rgba(13, 17, 23, 0.5);
    border: 1px solid rgba(184, 149, 106, 0.06);
    border-radius: 2px;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.dna-card:hover {
    border-color: rgba(184, 149, 106, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
}

.dna-icon {
    width: 40px;
    height: 40px;
    color: var(--laiton);
    margin-bottom: 1.5rem;
    opacity: 0.7;
}

.dna-title {
    font-family: var(--font-title);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--os);
    margin-bottom: 0.75rem;
}

.dna-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--cendre);
    line-height: 1.7;
}

.universe-closing {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid rgba(184, 149, 106, 0.08);
}

.universe-closing p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 2;
    color: var(--os);
    opacity: 0.75;
}

.universe-closing .emphasis {
    font-style: italic;
    color: var(--laiton);
    opacity: 1;
    margin-top: 0.5rem;
    font-size: 1.35rem;
}

/* ============================================
   AUTHOR
   ============================================ */

.author {
    background: var(--encre);
}

.author-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 4rem;
    align-items: center;
}

.author-image-wrapper {
    position: relative;
}

.author-image {
    position: relative;
    border-radius: 2px;
    overflow: hidden;
}

.author-image img {
    width: 100%;
    filter: grayscale(40%) contrast(1.05);
    transition: filter 0.5s ease;
}

.author-image:hover img {
    filter: grayscale(20%) contrast(1.05);
}

.author-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        var(--encre) 0%,
        rgba(13, 17, 23, 0.4) 40%,
        rgba(13, 17, 23, 0.1) 70%,
        rgba(26, 35, 50, 0.3) 100%
    );
    pointer-events: none;
}

.author-text .section-title {
    margin-bottom: 2rem;
}

.author-bio p {
    font-family: var(--font-body);
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--os);
    margin-bottom: 1.2rem;
    opacity: 0.85;
}

.author-location {
    font-style: italic;
    color: var(--cendre);
    opacity: 0.7;
    margin-top: 1.5rem;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter {
    background: var(--nuit);
    text-align: center;
    padding: 7rem 0;
}

.newsletter-inner {
    max-width: 550px;
    margin: 0 auto;
}

.newsletter-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    letter-spacing: 0.25em;
    color: var(--os);
    margin-bottom: 1.5rem;
}

.newsletter-line {
    width: 40px;
    height: 1px;
    background: var(--laiton);
    margin: 0 auto 2rem;
    transform-origin: center;
}

.reveal.visible .newsletter-line {
    animation: drawLine 1s ease 0.2s both;
}

.newsletter-description {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 1.2rem;
    color: var(--cendre);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.newsletter-form {
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    gap: 0;
    max-width: 460px;
    margin: 0 auto;
}

.form-group input {
    flex: 1;
    padding: 0.9rem 1.2rem;
    background: rgba(13, 17, 23, 0.6);
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-right: none;
    border-radius: 2px 0 0 2px;
    color: var(--os);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: var(--cendre);
    opacity: 0.6;
}

.form-group input:focus {
    border-color: var(--laiton);
}

.form-group button {
    padding: 0.9rem 1.8rem;
    background: transparent;
    border: 1px solid rgba(245, 240, 232, 0.15);
    border-radius: 0 2px 2px 0;
    color: var(--os);
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.form-group button:hover {
    background: var(--os);
    color: var(--encre);
    border-color: var(--os);
}

.newsletter-note {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--cendre);
    opacity: 0.5;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    position: relative;
    padding: 4rem 0 3rem;
    background: var(--encre);
    border-top: 1px solid rgba(184, 149, 106, 0.08);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-title);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    color: var(--os);
    margin-bottom: 0.75rem;
}

.footer-tagline {
    font-family: var(--font-body);
    font-style: italic;
    font-size: 0.9rem;
    color: var(--cendre);
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--cendre);
    letter-spacing: 0.08em;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--os);
}

.footer-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--sang-sec);
}

.footer-bottom p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--cendre);
    opacity: 0.4;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}

@keyframes drawLine {
    0% { opacity: 0; transform: scaleX(0); }
    100% { opacity: 1; transform: scaleX(1); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.25, 0.1, 0.25, 1), transform 1s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Stagger DNA cards and magnet cards */
.dna-card.reveal { transition-delay: 0s; }
.dna-card.reveal:nth-child(2) { transition-delay: 0.1s; }
.dna-card.reveal:nth-child(3) { transition-delay: 0.2s; }
.dna-card.reveal:nth-child(4) { transition-delay: 0.3s; }
.dna-card.reveal:nth-child(5) { transition-delay: 0.4s; }

.magnet-card.reveal { transition-delay: 0s; }
.magnet-card.reveal:nth-child(2) { transition-delay: 0.15s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 900px) {
    .book {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
    }

    .book-reverse {
        grid-template-columns: 1fr;
    }

    .book-reverse .book-cover {
        order: 0;
    }

    .book-reverse .book-info {
        order: 0;
        text-align: left;
    }

    .book-reverse .book-separator {
        margin-left: 0;
    }

    .book-reverse .book-meta {
        justify-content: flex-start;
    }

    .book-reverse .book-cta {
        margin-left: 0;
    }

    .book-cover {
        max-width: 260px;
        margin: 0 auto;
    }

    .author-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .author-image-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .author-text .section-title {
        text-align: center;
    }

    .dna-grid {
        grid-template-columns: 1fr;
    }

    .magnets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .section {
        padding: 5rem 0;
    }

    .container {
        padding: 0 1.25rem;
    }

    /* Mobile nav */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: var(--encre);
        border-left: 1px solid rgba(184, 149, 106, 0.08);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transition: right 0.4s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hero-title {
        letter-spacing: 0.15em;
    }

    .pull-quote {
        padding: 0 1rem;
    }

    .book-cover {
        max-width: 220px;
    }

    .form-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-group input {
        border-right: 1px solid rgba(245, 240, 232, 0.15);
        border-radius: 2px;
    }

    .form-group button {
        border-radius: 2px;
    }

    .magnet-form {
        flex-direction: column;
        gap: 0.75rem;
    }

    .magnet-form input {
        border-right: 1px solid rgba(245, 240, 232, 0.12);
        border-radius: 2px;
    }

    .magnet-form button {
        border-radius: 2px;
    }
}
