/* =============================================================================
   Sahoua — Editorial Theme
   Color philosophy: ~45% deep black, ~45% warm white, ~10% red (CTA-only)
   ============================================================================= */

:root {
    --radius: 0.625rem;

    --background: #ffffff;
    --foreground: #0e0e0e;
    --card: #ffffff;
    --card-foreground: #0e0e0e;

    /* Red — used sparingly for primary CTA, active state, focus ring */
    --primary: #c8202a;
    --primary-foreground: #ffffff;

    /* Neutral secondaries (no more pinkish surfaces) */
    --secondary: #f2f2f1;
    --secondary-foreground: #1a1a1a;
    --muted: #f4f4f3;
    --muted-foreground: #6b6b6b;
    --accent: #efefee;
    --accent-foreground: #1a1a1a;

    --destructive: #d93527;
    --destructive-foreground: #ffffff;

    --border: #e5e5e4;
    --input: #e5e5e4;
    --ring: #c8202a;

    --surface: #f8f8f7;
    --surface-elevated: #ffffff;
    --hero-bg: #0a0a0a;

    /* Editorial easing */
    --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out-book: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   Base
   ============================================================================= */

* { border-color: var(--border); }

html, body {
    background-color: var(--background);
    color: var(--foreground);
}
body {
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

[dir="rtl"] body,
[dir="rtl"] * {
    font-family: 'Tajawal', sans-serif;
}
[dir="rtl"] code,
[dir="rtl"] pre { font-family: monospace; }

/* =============================================================================
   RTL numeric/price fix — prevents "25 TND" from reversing to "TND 25"
   ============================================================================= */

.ltr-num {
    direction: ltr;
    unicode-bidi: embed;
    display: inline-block;
}

/* =============================================================================
   Components
   ============================================================================= */

.hero-title {
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.card-hover {
    transition: transform 0.35s var(--ease-out-soft),
                box-shadow 0.35s var(--ease-out-soft),
                border-color 0.35s var(--ease-out-soft);
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(10, 10, 10, 0.10);
    border-color: rgba(10, 10, 10, 0.14);
}

/* Neutral glow behind book covers (no more red wash) */
.brand-glow {
    box-shadow: 0 30px 80px rgba(10, 10, 10, 0.35),
                0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* Legacy fade-in kept for back-compat */
.fade-in {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease-out-soft), transform 0.7s var(--ease-out-soft);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =============================================================================
   Scroll Reveal v2 — progressive enhancement
   Content is VISIBLE by default; only when html.js-ready is set do we hide &
   animate it. This guarantees no content is ever lost if JS fails.
   Usage: <div data-reveal="up|down|left|right|fade|zoom" data-reveal-delay="150">
   ============================================================================= */

html.js-ready [data-reveal] {
    opacity: 0;
    transition: opacity 0.9s var(--ease-out-soft), transform 0.9s var(--ease-out-soft);
    will-change: opacity, transform;
}
html.js-ready [data-reveal="up"],
html.js-ready [data-reveal=""],
html.js-ready [data-reveal]:not([data-reveal="down"]):not([data-reveal="left"]):not([data-reveal="right"]):not([data-reveal="fade"]):not([data-reveal="zoom"]) {
    transform: translateY(24px);
}
html.js-ready [data-reveal="down"]  { transform: translateY(-24px); }
html.js-ready [data-reveal="left"]  { transform: translateX(-32px); }
html.js-ready [data-reveal="right"] { transform: translateX(32px); }
html.js-ready [data-reveal="fade"]  { transform: none; }
html.js-ready [data-reveal="zoom"]  { transform: scale(0.97); }
html.js-ready [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

/* =============================================================================
   Book Page Flip reveal — sections enter with a subtle rotate/lift
   Applies ONLY to the section itself (never hides nested content permanently).
   ============================================================================= */

[data-book-flip] { position: relative; }

html.js-ready [data-book-flip] {
    perspective: 1600px;
}
html.js-ready [data-book-flip] > * {
    transform-origin: center top;
    transform: rotateX(-6deg) translateY(28px);
    opacity: 0;
    transition: transform 1.0s var(--ease-out-book),
                opacity 0.8s var(--ease-out-book);
    will-change: transform, opacity;
}
html.js-ready [data-book-flip].is-visible > * {
    transform: rotateX(0) translateY(0);
    opacity: 1;
}

/* =============================================================================
   Page transition (route-to-route fade-rise)
   ============================================================================= */

html.js-ready main[data-page] {
    opacity: 0;
    transform: translateY(8px);
    animation: pageEnter 0.45s var(--ease-out-soft) forwards;
}
@keyframes pageEnter {
    to { opacity: 1; transform: translateY(0); }
}
html.js-ready body.is-leaving main[data-page] {
    animation: pageLeave 0.22s ease forwards;
}
@keyframes pageLeave {
    to { opacity: 0; transform: translateY(-4px); }
}
@media (prefers-reduced-motion: reduce) {
    html.js-ready main[data-page],
    html.js-ready body.is-leaving main[data-page] {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* =============================================================================
   Preloader — shows once per session
   ============================================================================= */

#preloader {
    position: fixed;
    inset: 0;
    background: #0a0a0a;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1.75rem;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-gif {
    width: clamp(100px, 25vw, 180px);
    height: auto;
    opacity: 0;
    animation: preGifIn 0.8s var(--ease-out-soft) 0.1s forwards;
    mix-blend-mode: screen;
}
@keyframes preGifIn {
    to { opacity: 1; }
}
.preloader-word {
    color: #ffffff;
    font-size: clamp(2.25rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: translateY(14px);
    animation: preWordIn 0.9s var(--ease-out-soft) forwards;
}
.preloader-word span {
    display: inline-block;
    opacity: 0;
    transform: translateY(22px) scale(0.96);
    filter: blur(6px);
    animation: preCharIn 0.9s var(--ease-out-soft) forwards;
}
.preloader-word span + span { margin-inline-start: 0.5rem; }
@keyframes preWordIn {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes preCharIn {
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}
.preloader-bar {
    position: relative;
    width: 160px;
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.preloader-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    width: 40%;
    background: #ffffff;
    animation: preBar 1.1s var(--ease-out-soft) infinite;
}
@keyframes preBar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(350%); }
}

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

.hero-slider {
    position: relative;
    overflow: hidden;
}
.hero-slider-track {
    display: flex;
    width: 100%;
    transition: transform 0.9s var(--ease-out-book);
    will-change: transform;
}
.hero-slide {
    flex: 0 0 100%;
    min-width: 100%;
}
/* RTL: flip slide direction so "next" still moves visually forward */
html[dir="rtl"] .hero-slider-track { direction: ltr; }
html[dir="rtl"] .hero-slide         { direction: rtl; }

.hero-slider-dots {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}
.hero-slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    transition: width 0.35s var(--ease-out-soft), background 0.35s ease;
}
.hero-slider-dot.is-active {
    width: 28px;
    background: #ffffff;
}
.hero-slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(10, 10, 10, 0.35);
    backdrop-filter: blur(6px);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.25s ease, border-color 0.25s ease;
    z-index: 3;
}
.hero-slider-nav:hover { background: rgba(10, 10, 10, 0.6); border-color: rgba(255, 255, 255, 0.4); }
.hero-slider-nav.prev { left: 1.25rem; }
.hero-slider-nav.next { right: 1.25rem; }
@media (min-width: 768px) { .hero-slider-nav { display: flex; } }

/* =============================================================================
   Micro-interactions — editorial link underline + button lift
   ============================================================================= */

.link-underline {
    position: relative;
    display: inline-block;
}
.link-underline::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease-out-soft);
}
html[dir="rtl"] .link-underline::after { transform-origin: left center; }
.link-underline:hover::after { transform: scaleX(1); transform-origin: left center; }
html[dir="rtl"] .link-underline:hover::after { transform-origin: right center; }

.btn-lift {
    transition: transform 0.3s var(--ease-out-soft), box-shadow 0.3s var(--ease-out-soft);
}
.btn-lift:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(10, 10, 10, 0.18); }
.btn-lift:active { transform: translateY(0); }

/* Image Ken-Burns slow zoom used on hero slides */
@keyframes kenburns {
    0%   { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}
.kenburns { animation: kenburns 12s ease-in-out infinite alternate; }

/* =============================================================================
   Eyebrow label (editorial micro-type for section intros)
   ============================================================================= */

.eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: #6b6b6b;
}
.eyebrow.is-dark { color: rgba(255, 255, 255, 0.5); }

.section-title {
    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

/* =============================================================================
   Stats strip
   ============================================================================= */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    background: #0a0a0a;
}
@media (min-width: 768px) { .stats-strip { grid-template-columns: repeat(4, 1fr); } }
.stat-cell {
    padding: 2rem 1.5rem;
    text-align: center;
    background: #0a0a0a;
    position: relative;
}
/* Subtle internal dividers — inset so they don't touch the top/bottom edges */
.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 24%;
    bottom: 24%;
    width: 1px;
    background: rgba(255, 255, 255, 0.08);
}
@media (max-width: 767px) {
    .stat-cell + .stat-cell::before { display: none; }
}
.stat-number {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
    letter-spacing: -0.02em;
}
.stat-label {
    margin-top: 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

/* =============================================================================
   Inside the book — excerpt card
   ============================================================================= */

.excerpt-card {
    position: relative;
    background: #fafafa;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 2rem 1.75rem 2rem;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
    transition: transform 0.45s var(--ease-out-soft), box-shadow 0.45s var(--ease-out-soft);
}
.excerpt-card::before {
    content: "\201C";
    position: absolute;
    top: -1rem;
    inset-inline-start: 1rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 6rem;
    line-height: 1;
    color: rgba(10, 10, 10, 0.08);
    pointer-events: none;
}
.excerpt-card:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(10,10,10,0.08); }
.excerpt-card .eyebrow { letter-spacing: 0.2em; }
.excerpt-card p {
    color: #2a2a2a;
    font-size: 0.95rem;
    line-height: 1.75;
    font-style: italic;
}
.excerpt-card .page-number {
    margin-top: auto;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #9a9a9a;
}

/* =============================================================================
   Big pull-quote band
   ============================================================================= */

.bigquote {
    position: relative;
    background: #0a0a0a;
    color: #ffffff;
    padding: clamp(4rem, 10vw, 8rem) 1.5rem;
    text-align: center;
    overflow: hidden;
}
.bigquote::before,
.bigquote::after {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(6rem, 18vw, 14rem);
    line-height: 0.6;
    color: rgba(255, 255, 255, 0.08);
    position: absolute;
}
.bigquote::before { content: "\201C"; top: 2.5rem; inset-inline-start: 2rem; }
.bigquote::after  { content: "\201D"; bottom: 0.5rem; inset-inline-end: 2rem; }
.bigquote-text {
    font-size: clamp(1.5rem, 3.5vw, 2.75rem);
    font-weight: 600;
    line-height: 1.4;
    max-width: 60rem;
    margin: 0 auto;
    letter-spacing: -0.01em;
}
.bigquote-author {
    margin-top: 2.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* =============================================================================
   FAQ accordion
   ============================================================================= */

.faq-item {
    border-top: 1px solid var(--border);
    transition: background 0.3s ease;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-trigger {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 1.5rem 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    cursor: pointer;
    color: var(--foreground);
    font-size: 1rem;
    font-weight: 600;
    text-align: start;
    transition: color 0.25s ease;
}
.faq-trigger:hover { color: #000000; }
.faq-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #0e0e0e;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.35s var(--ease-out-soft);
    flex-shrink: 0;
}
.faq-icon::before {
    content: "+";
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1;
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out-book), padding 0.4s var(--ease-out-book);
    padding: 0 0.25rem;
}
.faq-item.is-open .faq-panel { padding: 0 0.25rem 1.75rem; }
.faq-panel p {
    color: var(--muted-foreground);
    font-size: 0.95rem;
    line-height: 1.8;
    max-width: 48rem;
}

/* =============================================================================
   Newsletter band
   ============================================================================= */

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 0.4rem;
    transition: border-color 0.3s ease;
}
.newsletter-form:focus-within { border-color: rgba(255, 255, 255, 0.35); }
.newsletter-input {
    flex: 1;
    background: transparent;
    border: 0;
    padding: 0.65rem 1rem;
    color: #ffffff;
    font-size: 0.95rem;
    outline: none;
}
.newsletter-input::placeholder { color: rgba(255, 255, 255, 0.45); }
.newsletter-btn {
    background: #ffffff;
    color: #0a0a0a;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s var(--ease-out-soft);
}
.newsletter-btn:hover { background: #e5e5e5; transform: translateY(-1px); }

/* =============================================================================
   HERO SLIDER v2 — 3 pro slides with fade + ken-burns zoom
   ============================================================================= */

.hero-v2 {
    position: relative;
    width: 100%;
    min-height: clamp(560px, 86vh, 780px);
    overflow: hidden;
    background: #0a0a0a;
    isolation: isolate;
}

.hero-v2-track {
    position: relative;
    width: 100%;
    height: clamp(560px, 86vh, 780px);
}

.hero-v2-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    backface-visibility: hidden;
    will-change: transform, opacity;
}
.hero-v2-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* Ken Burns background for image slides */
.hero-v2-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-position: center;
    background-size: cover;
    transform: scale(1.08);
    transition: transform 9s linear;
}
.hero-v2-slide.is-active .hero-v2-bg { transform: scale(1); }

.hero-v2-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
.hero-v2-overlay--dark {
    background: linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0.8) 100%);
}
.hero-v2-overlay--light {
    background: linear-gradient(180deg, rgba(255,255,255,0.85) 0%, rgba(255,255,255,0.95) 100%);
}

.hero-v2-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 4.5rem 1.5rem 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
@media (min-width: 768px) {
    .hero-v2-inner { padding: 5rem 3rem 4.5rem; }
}

.hero-v2-slide .eyebrow-bar {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.2s, transform 0.8s cubic-bezier(0.22,1,0.36,1) 0.2s;
}
.hero-v2-slide .eyebrow-bar::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
}
.hero-v2-slide.is-active .eyebrow-bar {
    opacity: 1;
    transform: translateY(0);
}

.hero-v2-title {
    font-family: Inter, "Tajawal", sans-serif;
    font-weight: 900;
    font-size: clamp(2.5rem, 10vw, 8rem);
    line-height: 0.9;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease 0.35s, transform 1.2s cubic-bezier(0.22,1,0.36,1) 0.35s;
}
html[dir="rtl"] .hero-v2-title { letter-spacing: 0; font-family: "Tajawal", Inter, sans-serif; line-height: 1.1; }
.hero-v2-slide.is-active .hero-v2-title {
    opacity: 1;
    transform: translateY(0);
}

.hero-v2-sub {
    max-width: 36rem;
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease 0.55s, transform 1s cubic-bezier(0.22,1,0.36,1) 0.55s;
}
.hero-v2-slide.is-active .hero-v2-sub {
    opacity: 1;
    transform: translateY(0);
}

.hero-v2-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s ease 0.75s, transform 0.9s cubic-bezier(0.22,1,0.36,1) 0.75s;
}
.hero-v2-slide.is-active .hero-v2-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Side meta (right column on desktop) */
.hero-v2-meta {
    position: relative;
    z-index: 3;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* Navigation: dots + arrows */
.hero-v2-nav {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.hero-v2-dot {
    width: 8px !important;
    height: 8px !important;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    aspect-ratio: 1 / 1;
    flex: 0 0 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    display: block;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}
.hero-v2-dot.is-dark { background: rgba(10,10,10,0.25); }
.hero-v2-dot.is-active { background: #ffffff; transform: scale(1.35); }
.hero-v2-dot.is-dark.is-active { background: #0a0a0a; }
.hero-v2-dot:hover { background: rgba(255,255,255,0.7); }
.hero-v2-dot.is-dark:hover { background: rgba(10,10,10,0.6); }

.hero-v2-progress {
    position: absolute;
    bottom: 0; left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.08);
    z-index: 11;
    overflow: hidden;
}
.hero-v2-progress-bar {
    height: 100%;
    width: 0;
    background: currentColor;
    transition: width 0.15s linear;
}

/* =============================================================================
   BOOK FAIR section — standalone promotional banner
   ============================================================================= */

.fair-banner {
    position: relative;
    background: #ffffff;
    color: #0a0a0a;
    padding: 5rem 1.5rem;
    overflow: hidden;
    isolation: isolate;
}
@media (min-width: 768px) {
    .fair-banner { padding: 7rem 3rem; }
}

/* Decorative faint texture — barely visible */
.fair-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.035;
    background-image:
        radial-gradient(circle at 15% 20%, #0a0a0a 0, transparent 40%),
        radial-gradient(circle at 85% 80%, #0a0a0a 0, transparent 45%);
}

.fair-inner {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}
@media (min-width: 1024px) {
    .fair-inner { grid-template-columns: 1.3fr 1fr; gap: 5rem; align-items: center; }
}

/* Coming Soon — equal split so the book cover is bigger */
.fair-inner.is-coming-soon {
    align-items: stretch;
}
@media (min-width: 1024px) {
    .fair-inner.is-coming-soon { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.coming-soon-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}
.coming-soon-cover {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: 16px;
    filter: drop-shadow(0 25px 50px rgba(0,0,0,0.15));
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.coming-soon-cover:hover {
    transform: scale(1.03) translateY(-4px);
}
@media (max-width: 1023px) {
    .coming-soon-image-wrapper {
        min-height: auto;
    }
    .coming-soon-cover {
        max-height: 400px;
    }
}

.fair-title {
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-top: 1.25rem;
    color: #0a0a0a;
}
html[dir="rtl"] .fair-title {
    line-height: 1.15;
}
.fair-subtitle {
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.1rem;
    color: #6b6b6b;
    margin-top: 1rem;
}

.fair-meta-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2.5rem;
}
.fair-meta {
    border-top: 1px solid rgba(10,10,10,0.22);
    padding-top: 1rem;
}
.fair-meta-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(10,10,10,0.55);
    margin-bottom: 0.5rem;
}
.fair-meta-value {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: #0a0a0a;
}
.fair-meta-value.is-big {
    font-size: clamp(1.5rem, 3.5vw, 2.5rem);
    line-height: 1;
    letter-spacing: -0.01em;
}

/* Countdown panel — dark accent block inside the white section */
.fair-countdown {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-top: 2rem;
    padding: 2.25rem 2rem 2rem;
    background: #0a0a0a;
    color: #ffffff;
    border-radius: 18px;
}
@media (min-width: 1024px) {
    .fair-countdown {
        margin-top: 0;
        align-self: stretch;
        justify-content: center;
        padding: 3rem 2.5rem;
    }
}
.fair-countdown-num {
    font-size: clamp(4rem, 14vw, 10rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: #ffffff;
}
.fair-countdown-label {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.6);
}

/* Fair poster — full-width image below content */
.fair-poster {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 3.5rem auto 0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12), 0 0 0 1px rgba(0,0,0,0.06);
}
.fair-poster-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
@media (max-width: 640px) {
    .fair-poster {
        margin: 2rem 1rem 0;
        border-radius: 10px;
    }
}

/* =============================================================================
   CATALOG v2 — left feature panel + right book grid (fills empty space)
   ============================================================================= */

.catalog-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 1024px) {
    .catalog-split {
        grid-template-columns: minmax(280px, 1fr) 2.2fr;
        gap: 4rem;
        padding: 0 2rem;
    }
}

.catalog-aside {
    position: relative;
}
@media (min-width: 1024px) {
    .catalog-aside {
        position: sticky;
        top: 6rem;
        align-self: start;
    }
}
.catalog-aside-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted-foreground);
}
.catalog-aside-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    margin-top: 1rem;
}
.catalog-aside-text {
    margin-top: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--muted-foreground);
    max-width: 28rem;
}
.catalog-aside-count {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: baseline;
    gap: 1rem;
}
.catalog-aside-count-num {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.02em;
}

.catalog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 640px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (min-width: 1024px) {
    .catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1280px) {
    .catalog-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}

/* =============================================================================
   CARD + GSAP CARD — scroll-triggered book-page reveals
   ============================================================================= */

.card-hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card-hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(10, 10, 10, 0.10);
}
.gsap-card {
    will-change: transform, opacity;
}

/* =============================================================================
   3D BOOK CARD — standing book with spine + hover rotation
   ============================================================================= */

.book-3d-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}
.book-3d-wrap {
    position: relative;
    display: block;
    perspective: 900px;
}
.book-3d {
    position: relative;
    width: 160px;
    height: 220px;
    transform-style: preserve-3d;
    transform: rotateY(-18deg);
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.book-3d-card:hover .book-3d {
    transform: rotateY(-30deg);
}
.book-3d-cover {
    position: absolute;
    inset: 0;
    border-radius: 4px 0 0 4px;
    overflow: hidden;
    backface-visibility: hidden;
    box-shadow: 6px 6px 18px rgba(0,0,0,0.25), 0 0 6px rgba(0,0,0,0.1);
    transition: box-shadow 0.5s ease;
}
.book-3d-card:hover .book-3d-cover {
    box-shadow: 10px 10px 30px rgba(0,0,0,0.35), 0 0 10px rgba(0,0,0,0.15);
}
.book-3d-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.book-3d-spine {
    position: absolute;
    top: 0;
    width: 30px;
    height: 100%;
    background: linear-gradient(90deg, #2a2a2a 0%, #1a1a1a 40%, #2a2a2a 100%);
    transform: rotateY(90deg) translateZ(0px);
    transform-origin: left center;
    border-radius: 0 2px 2px 0;
}
.book-3d-back {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    transform: translateZ(-30px);
    border-radius: 0 4px 4px 0;
}
.book-3d-badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 2;
    background: #0e0e0e;
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 99px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.book-3d-actions {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    padding: 1rem 0.75rem;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 70%, transparent 100%);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease;
    pointer-events: none;
    z-index: 3;
}
.book-3d-card:hover .book-3d-actions {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.book-3d-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0.45rem 0.75rem;
    font-size: 11px;
    font-weight: 600;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(6px);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.book-3d-action-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.5);
}
.book-3d-action-btn--primary {
    background: #fff;
    color: #0a0a0a;
    border-color: #fff;
}
.book-3d-action-btn--primary:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
}
.book-3d-meta {
    width: 100%;
    max-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
}

@media (min-width: 640px) {
    .book-3d {
        width: 180px;
        height: 250px;
    }
    .book-3d-meta {
        max-width: 200px;
    }
}
@media (min-width: 1024px) {
    .book-3d {
        width: 200px;
        height: 280px;
    }
    .book-3d-meta {
        max-width: 220px;
    }
}

/* =============================================================================
   Number counter — smooth monospace-feel number transitions
   ============================================================================= */

.stat-number[data-count-to] {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

/* =============================================================================
   BOOK FEEL — immersive reading experience
   - smooth scroll
   - fixed reading progress bar at top
   - "page-turn" section reveals (mobile-focused)
   - subtle parallax layer
   ============================================================================= */

html { scroll-behavior: smooth; }

/* Reading progress bar (fixed at very top of viewport) */
.reading-progress {
    position: fixed;
    top: 0; left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #0a0a0a 0%, #404040 50%, #0a0a0a 100%);
    z-index: 100;
    pointer-events: none;
    transition: width 0.05s linear;
    box-shadow: 0 0 8px rgba(10,10,10,0.25);
}
@media (prefers-color-scheme: dark) {
    .reading-progress { background: linear-gradient(90deg, #fff 0%, #ccc 50%, #fff 100%); }
}

/* Parallax layer — GSAP drives the transform directly */
.parallax {
    will-change: transform;
}

/* Page-turn divider — decorative accent between major sections */
.page-turn {
    position: relative;
    height: 32px;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}
.page-turn::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: clamp(160px, 40vw, 520px);
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(10,10,10,0.12) 20%,
        rgba(10,10,10,0.4) 50%,
        rgba(10,10,10,0.12) 80%,
        transparent 100%);
    transform: translate(-50%, -50%);
}
.page-turn.is-dark::before {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.12) 20%,
        rgba(255,255,255,0.35) 50%,
        rgba(255,255,255,0.12) 80%,
        transparent 100%);
}
.page-turn-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--background, #ffffff);
    padding: 0 1rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: rgba(10,10,10,0.5);
    font-variant-numeric: tabular-nums;
}
.page-turn.is-dark .page-turn-num {
    background: #0a0a0a;
    color: rgba(255,255,255,0.55);
}
.page-turn.on-surface .page-turn-num { background: #f8f8f7; }

/* Chapter badge — tiny marker pinned to top-right of a section */
.chapter-badge {
    position: absolute;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    color: rgba(10,10,10,0.38);
    font-variant-numeric: tabular-nums;
    z-index: 4;
    pointer-events: none;
}
.chapter-badge.is-dark { color: rgba(255,255,255,0.45); }
@media (min-width: 768px) {
    .chapter-badge { top: 2rem; inset-inline-end: 2.5rem; }
}

/* =============================================================================
   CINEMATIC SCROLL ANIMATIONS — presentation-style reveals
   - 3D word-by-word text rollup (keeps Arabic words intact)
   - Scroll-progress scale on section headers
   - Perspective tilt on cards
   ============================================================================= */

/* Word-by-word 3D reveal container.
   Usage: <h2 data-split="words">Your title</h2>
   JS splits into: <span class="reveal-line"><span class="reveal-word"><span>Your</span></span>...</span> */

[data-split="words"] {
    display: block;
    perspective: 1400px;
}
.reveal-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.14em;
}
.reveal-word {
    display: inline-block;
    white-space: nowrap;
    perspective: 1000px;
    transform-style: preserve-3d;
}
.reveal-word > span {
    display: inline-block;
    transform-origin: 50% 100%;
    transform: translateY(110%) rotateX(-78deg);
    opacity: 0;
    transition:
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
        opacity  0.65s ease-out;
    transition-delay: calc(var(--word-index, 0) * 65ms);
    will-change: transform, opacity;
}
.reveal-word + .reveal-word { margin-inline-start: 0.25em; }

/* Reveal when visible */
[data-split="words"].is-visible .reveal-word > span,
.reveal-section.is-visible [data-split="words"] .reveal-word > span {
    transform: translateY(0) rotateX(0);
    opacity: 1;
}

/* Section headers: GSAP scrub drives scale directly */
.scroll-scale {
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Perspective tilt on reveal cards (gives "presentation slide" feel) */
.reveal-tilt {
    opacity: 0;
    transform: perspective(1200px) translateY(50px) rotateX(10deg) scale(0.96);
    transform-origin: 50% 100%;
    transition:
        opacity 0.7s ease-out,
        transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform, opacity;
}
.reveal-tilt.is-visible {
    opacity: 1;
    transform: perspective(1200px) translateY(0) rotateX(0) scale(1);
}

/* Big-type mask reveal (text swipes in from behind a curtain) */
.reveal-mask {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
}
.reveal-mask > span {
    display: inline-block;
    transform: translateY(100%);
    transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--word-index, 0) * 80ms);
    will-change: transform;
}
.reveal-mask.is-visible > span { transform: translateY(0); }

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal-word > span,
    .reveal-section,
    .reveal-tilt,
    .reveal-mask > span {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .scroll-scale { transform: none !important; }
}

/* =============================================================================
   ACCORDION AESTHETIC — editorial black & white design language
   Inspired by accordion.net.au
   ============================================================================= */

/* Eyebrow with horizontal rules on both sides: ═══  OUR WORK  ═══ */
.eyebrow-rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--foreground);
}
.eyebrow-rule::before,
.eyebrow-rule::after {
    content: "";
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: currentColor;
    opacity: 0.9;
}
.eyebrow-rule.is-dark { color: #ffffff; }
.eyebrow-rule.is-dark::before,
.eyebrow-rule.is-dark::after { opacity: 0.75; }

/* Decorative + markers at panel corners */
.plus-frame {
    position: relative;
}
.plus-frame::before,
.plus-frame::after,
.plus-frame > .plus-tl::before,
.plus-frame > .plus-tl::after {
    content: "+";
    position: absolute;
    font-family: Inter, sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    line-height: 1;
    color: inherit;
    opacity: 0.55;
    pointer-events: none;
}
.plus-frame::before { top: 1rem; left: 1rem; }
.plus-frame::after { top: 1rem; right: 1rem; }
.plus-frame > .plus-tl { position: absolute; inset: 0; pointer-events: none; }
.plus-frame > .plus-tl::before { bottom: 1rem; left: 1rem; top: auto; }
.plus-frame > .plus-tl::after  { bottom: 1rem; right: 1rem; top: auto; }

@media (min-width: 1024px) {
    .plus-frame::before { top: 1.5rem; left: 1.5rem; font-size: 1.5rem; }
    .plus-frame::after  { top: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
    .plus-frame > .plus-tl::before { bottom: 1.5rem; left: 1.5rem; font-size: 1.5rem; }
    .plus-frame > .plus-tl::after  { bottom: 1.5rem; right: 1.5rem; font-size: 1.5rem; }
}

/* =============================================================================
   Curved section divider — SVG "accordion squeeze" between sections
   Usage: <div class="acc-divider acc-divider-top-black"></div>
   Variants:
     acc-divider-top-black    -> concave arc with black fill (squeezing from top)
     acc-divider-bottom-black -> convex arc with black fill (bulging into next)
     acc-divider-top-white    -> white concave
     acc-divider-bottom-white -> white convex
   ============================================================================= */

.acc-divider {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 0;
    pointer-events: none;
}
@media (min-width: 768px) { .acc-divider { height: 64px; } }

.acc-divider svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* =============================================================================
   Display type (huge cropped editorial headlines)
   ============================================================================= */

.acc-display {
    font-family: Inter, "Tajawal", sans-serif;
    font-weight: 900;
    line-height: 0.88;
    letter-spacing: -0.04em;
    font-size: clamp(3.5rem, 14vw, 11rem);
    text-transform: uppercase;
    word-break: break-word;
}
html[dir="rtl"] .acc-display {
    letter-spacing: 0;
    font-family: "Tajawal", Inter, sans-serif;
}

.acc-display--outline {
    -webkit-text-stroke: 1px currentColor;
    color: transparent;
}

/* Parallax scale — enlarges as it scrolls into view */
.acc-parallax {
    transform: scale(var(--acc-scale, 1));
    transition: transform 0.6s var(--ease-out-soft);
    will-change: transform;
}

/* =============================================================================
   Editorial hero — single strong moment, accordion style
   ============================================================================= */

.acc-hero {
    position: relative;
    background: #ffffff;
    color: #0a0a0a;
    min-height: 100vh;
    padding: 6rem 1.5rem 3rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
@media (min-width: 768px) {
    .acc-hero { padding: 7rem 3rem 4rem; }
}

.acc-hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}
@media (min-width: 1024px) {
    .acc-hero-grid { grid-template-columns: 1.6fr 1fr; gap: 3rem; align-items: end; }
}

.acc-hero-title {
    font-family: Inter, "Tajawal", sans-serif;
    font-weight: 900;
    font-size: clamp(2.75rem, 11vw, 9rem);
    line-height: 0.88;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    color: #0a0a0a;
}
html[dir="rtl"] .acc-hero-title { letter-spacing: 0; font-family: "Tajawal", Inter, sans-serif; }

.acc-hero-side {
    max-width: 28rem;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #2a2a2a;
}
.acc-hero-side p + p { margin-top: 1rem; }
.acc-hero-side .acc-meta {
    margin-top: 1.5rem;
    font-family: Inter, sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #6b6b6b;
}

.acc-hero-foot {
    border-top: 1px solid #0a0a0a;
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #0a0a0a;
}
.acc-hero-foot .scroll-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.acc-hero-foot .scroll-hint::after {
    content: "";
    width: 1px;
    height: 24px;
    background: #0a0a0a;
    animation: scrollLine 1.8s ease-in-out infinite;
    transform-origin: top;
}
@keyframes scrollLine {
    0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
    50%      { transform: scaleY(1);   opacity: 1; }
}

/* =============================================================================
   Section label block: centered eyebrow-rule + huge display heading
   ============================================================================= */

.acc-section-header {
    text-align: center;
    padding: 0 1.5rem;
    max-width: 64rem;
    margin: 0 auto;
}
.acc-section-header .eyebrow-rule { margin-bottom: 1.5rem; }
.acc-section-header h2 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
html[dir="rtl"] .acc-section-header h2 {
    letter-spacing: 0;
    font-family: "Tajawal", Inter, sans-serif;
    line-height: 1.15;
}

/* =============================================================================
   English (LTR) typography refinement
   Arabic (Tajawal) looks great at 900 + uppercase; English (Inter) does not.
   Soften weight, remove uppercase, tighten sizing for an editorial feel.
   ============================================================================= */

html[dir="ltr"] .hero-v2-title {
    font-weight: 800;
    font-size: clamp(2.25rem, 7vw, 5.25rem);
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: none;
}

html[dir="ltr"] .fair-title {
    font-weight: 800;
    font-size: clamp(1.875rem, 4.5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

html[dir="ltr"] .acc-display {
    font-weight: 800;
    font-size: clamp(2.5rem, 9vw, 7rem);
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: none;
}

html[dir="ltr"] .acc-hero-title {
    font-weight: 800;
    font-size: clamp(2.25rem, 7vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.025em;
    text-transform: none;
}

html[dir="ltr"] .acc-section-header h2 {
    font-weight: 800;
    font-size: clamp(1.875rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-transform: none;
}

html[dir="ltr"] .catalog-aside-title {
    font-weight: 800;
    letter-spacing: -0.015em;
}

html[dir="ltr"] .fair-countdown-num {
    font-weight: 800;
    font-size: clamp(3.5rem, 11vw, 8rem);
    letter-spacing: -0.035em;
}

/* Mobile LTR refinements — keep headings readable, not overwhelming */
@media (max-width: 640px) {
    html[dir="ltr"] .hero-v2-title { font-size: clamp(1.875rem, 8.5vw, 2.75rem); line-height: 1.02; }
    html[dir="ltr"] .acc-hero-title { font-size: clamp(1.875rem, 9vw, 2.75rem); line-height: 1.02; }
    html[dir="ltr"] .acc-display { font-size: clamp(2rem, 11vw, 3.25rem); line-height: 1.02; }
    html[dir="ltr"] .acc-section-header h2 { font-size: clamp(1.625rem, 6.5vw, 2.5rem); line-height: 1.08; }
    html[dir="ltr"] .fair-title { font-size: clamp(1.625rem, 7vw, 2.25rem); line-height: 1.08; }
}

/* =============================================================================
   Hairline (thin editorial divider)
   ============================================================================= */

.acc-hairline {
    width: 100%;
    max-width: 1200px;
    height: 1px;
    margin: 0 auto;
    background: currentColor;
    opacity: 0.15;
}

/* =============================================================================
   Mobile-first polish — tightens spacing, prevents overflow, bigger touch targets
   95% of users are mobile — treat this as the primary surface.
   ============================================================================= */

html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 640px) {
    /* Hero */
    .acc-hero { min-height: calc(100vh - 64px); padding: 5rem 1.25rem 2rem; }
    .acc-hero-title { font-size: clamp(2.25rem, 11vw, 3.5rem); line-height: 0.9; }
    .acc-hero-side { font-size: 0.95rem; }
    .acc-hero-foot { font-size: 0.65rem; letter-spacing: 0.22em; }

    /* Section headers */
    .acc-section-header h2 { font-size: clamp(1.75rem, 8vw, 2.5rem); }
    .eyebrow-rule { font-size: 10px; letter-spacing: 0.22em; gap: 0.75rem; }
    .eyebrow-rule::before,
    .eyebrow-rule::after { max-width: 48px; }

    /* Big quote */
    .bigquote { padding: 4rem 1.25rem; }
    .bigquote::before,
    .bigquote::after { font-size: 5rem; }
    .bigquote::before { top: 1rem; inset-inline-start: 1rem; }
    .bigquote::after  { bottom: 0.5rem; inset-inline-end: 1rem; }
    .bigquote-text { font-size: 1.25rem; line-height: 1.45; }
    .bigquote-author { font-size: 0.65rem; letter-spacing: 0.22em; margin-top: 1.75rem; }

    /* Stats */
    .stat-cell { padding: 1.5rem 1rem; }
    .stat-number { font-size: 2.25rem; }
    .stat-label { font-size: 0.65rem; letter-spacing: 0.14em; }

    /* Excerpt cards */
    .excerpt-card { min-height: 0; padding: 1.5rem 1.25rem; }
    .excerpt-card::before { font-size: 4.5rem; top: -0.5rem; }
    .excerpt-card p { font-size: 0.9rem; }

    /* FAQ */
    .faq-trigger { padding: 1.25rem 0; font-size: 0.95rem; }

    /* Touch targets */
    button, a, [role="button"] { min-height: 44px; }

    /* Legacy hero-title fallback */
    .hero-title { font-size: clamp(2.25rem, 10vw, 3.25rem) !important; }

    /* Snap carousel scroll anchors cleanly */
    .snap-carousel > * { scroll-snap-align: center; }

    /* Dividers: shorter on mobile so they don't eat vertical space */
    .acc-divider { height: 28px; }

    /* Plus-frame markers — tighter on mobile */
    .plus-frame::before,
    .plus-frame::after,
    .plus-frame > .plus-tl::before,
    .plus-frame > .plus-tl::after { font-size: 1rem; }
    .plus-frame::before { top: 0.75rem; left: 0.75rem; }
    .plus-frame::after  { top: 0.75rem; right: 0.75rem; }
    .plus-frame > .plus-tl::before { bottom: 0.75rem; left: 0.75rem; }
    .plus-frame > .plus-tl::after  { bottom: 0.75rem; right: 0.75rem; }

    /* Newsletter form gets its own mobile treatment */
    .newsletter-form { max-width: 100%; padding: 0.35rem; }
    .newsletter-input { font-size: 0.875rem; padding: 0.55rem 0.85rem; }
    .newsletter-btn { padding: 0.55rem 1.1rem; font-size: 0.825rem; }
}

/* Tablet tweaks */
@media (min-width: 641px) and (max-width: 1023px) {
    .acc-hero-title { font-size: clamp(3.5rem, 9vw, 6rem); }
    .acc-section-header h2 { font-size: clamp(2.25rem, 6vw, 3.75rem); }
}

/* Mobile-specific hero-v2 + fair-banner polish */
@media (max-width: 640px) {
    .hero-v2 { min-height: 480px; }
    .hero-v2-track { height: 480px; min-height: 480px; }
    .hero-v2-inner { padding: 1.5rem 1.25rem 3rem; }
    .hero-v2-title { font-size: clamp(2.25rem, 11vw, 3.5rem); line-height: 0.92; }
    html[dir="rtl"] .hero-v2-title { line-height: 1.1; }
    .hero-v2-sub { font-size: 0.95rem; margin-top: 1rem; }
    .hero-v2-actions { margin-top: 1.5rem; }
    .hero-v2-slide .eyebrow-bar { font-size: 9px; margin-bottom: 1rem; }
    .hero-v2-nav { bottom: 1rem; gap: 0.5rem; }
    .hero-v2-dot {
        width: 7px !important;
        height: 7px !important;
        min-width: 7px; min-height: 7px;
        max-width: 7px; max-height: 7px;
        flex: 0 0 7px;
    }

    /* Fair banner mobile */
    .fair-banner { padding: 4rem 1.25rem; }
    .fair-title { font-size: clamp(1.75rem, 8vw, 2.75rem); }
    .fair-subtitle { font-size: 0.95rem; }
    .fair-meta-grid { gap: 1.25rem; margin-top: 1.75rem; }
    .fair-meta-value { font-size: 0.9rem; }
    .fair-meta-value.is-big { font-size: clamp(1.25rem, 6vw, 2rem); }
    .fair-countdown {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        margin-top: 1.75rem;
        padding-top: 1.5rem;
    }
    .fair-countdown-num { font-size: clamp(4.5rem, 28vw, 7rem); }
    .fair-countdown-label { font-size: 0.65rem; letter-spacing: 0.22em; }
}

/* =============================================================================
   Press / mentions — infinite logo marquee
   ============================================================================= */

.press-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}
.press-marquee-track {
    display: flex;
    width: max-content;
    animation: pressScroll 25s linear infinite;
}
.press-marquee:hover .press-marquee-track {
    animation-play-state: paused;
}
.press-marquee-set {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 0 1.5rem;
}
@media (min-width: 768px) {
    .press-marquee-set { gap: 5rem; padding: 0 2.5rem; }
}
.press-logo {
    height: 55px;
    width: auto;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.4s ease, opacity 0.4s ease;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .press-logo { height: 65px; max-width: 200px; }
}
.press-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
}
@keyframes pressScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-25%); }
}
html[dir="rtl"] .press-marquee-track {
    animation-name: pressScrollRTL;
}
@keyframes pressScrollRTL {
    0%   { transform: translateX(0); }
    100% { transform: translateX(25%); }
}

/* =============================================================================
   Scrollbar
   ============================================================================= */

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f4f4f4; }
::-webkit-scrollbar-thumb { background: #c4c4c4; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #a3a3a3; }

/* =============================================================================
   Utilities
   ============================================================================= */

.line-clamp-1, .line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
}
.line-clamp-1 { -webkit-line-clamp: 1; line-clamp: 1; }
.line-clamp-2 { -webkit-line-clamp: 2; line-clamp: 2; }

/* Hide native scrollbar for horizontal carousels */
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Horizontal snap carousel */
.snap-carousel {
    display: flex;
    gap: 0.875rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-snap-stop: always;
    scroll-padding-inline: 1.25rem;
    padding: 0.25rem 1.25rem 1rem;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.snap-carousel > * {
    scroll-snap-align: center;
    flex: 0 0 calc(100% - 2.5rem);
    max-width: 380px;
}

/* Carousel dots — small rounded */
.carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    padding: 0 1rem;
}
.carousel-dot {
    appearance: none;
    border: 0;
    padding: 0;
    margin: 0;
    width: 8px !important;
    height: 8px !important;
    min-width: 8px;
    min-height: 8px;
    max-width: 8px;
    max-height: 8px;
    aspect-ratio: 1 / 1;
    flex: 0 0 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: block;
    box-sizing: border-box;
    line-height: 0;
    font-size: 0;
}
.carousel-dot.is-active {
    background: #0a0a0a;
    transform: scale(1.35);
}
.carousel-dots-dark .carousel-dot {
    background: rgba(255, 255, 255, 0.25);
}
.carousel-dots-dark .carousel-dot.is-active {
    background: #ffffff;
}

/* =============================================================================
   Cart Toast
   ============================================================================= */

.toast {
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 280px;
    max-width: 360px;
    padding: 0.875rem 1rem;
    border-radius: 0.75rem;
    background: #ffffff;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transform: translateX(calc(100% + 2rem));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease;
}
[dir="rtl"] .toast {
    transform: translateX(calc(-100% - 2rem));
}
.toast.show {
    transform: translateX(0);
    opacity: 1;
}
.toast.success .toast-icon {
    background: var(--accent);
    color: var(--primary);
}
.toast.error .toast-icon {
    background: #fee2e2;
    color: var(--destructive);
}
.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    flex-shrink: 0;
}
.toast-body { flex: 1; min-width: 0; }
.toast-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--foreground);
    margin: 0;
}
.toast-link {
    font-size: 0.75rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.toast-link:hover { text-decoration: underline; }

/* Cart badge pulse when updated */
.cart-badge-pulse {
    animation: cartPulse 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes cartPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.35); }
    100% { transform: scale(1); }
}

/* =============================================================================
   Mobile Drawer (navbar)
   ============================================================================= */

body.drawer-open { overflow: hidden; }

.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 55;
}
.drawer-backdrop.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    width: min(82vw, 340px);
    background: var(--hero-bg);
    z-index: 60;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}
/* LTR: slide from right */
html[dir="ltr"] .drawer-panel {
    right: 0;
    transform: translateX(100%);
}
html[dir="ltr"] .drawer-panel.open {
    transform: translateX(0);
}
/* RTL: slide from left */
html[dir="rtl"] .drawer-panel {
    left: 0;
    transform: translateX(-100%);
}
html[dir="rtl"] .drawer-panel.open {
    transform: translateX(0);
}

/* =============================================================================
   Language dropdown
   ============================================================================= */

.lang-menu {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.lang-menu.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.flag {
    width: 20px;
    height: 14px;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

/* =============================================================================
   Legal document typography (Terms, Privacy, Returns)
   Shared across all admin-editable legal pages.
   ============================================================================= */

.legal-article { color: var(--foreground); }

.legal-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}
.legal-section:first-child { padding-top: 0; }
.legal-section:last-of-type { border-bottom: 0; }

.legal-article p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--muted-foreground);
    margin-bottom: 1rem;
}
.legal-article p:last-child { margin-bottom: 0; }

@media (min-width: 768px) {
    .legal-article p { font-size: 1.0625rem; }
}

html[dir="rtl"] .legal-article p {
    line-height: 1.9;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}
.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    color: var(--muted-foreground);
    font-size: 1rem;
    line-height: 1.7;
}
@media (min-width: 768px) {
    .legal-list li { font-size: 1.0625rem; }
}
.legal-bullet {
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0a0a0a;
    margin-top: 0.7rem;
}

/* TOC active link style (hash-change will toggle) */
.legal-article :target h2 {
    transition: color 0.2s ease;
}

