/* ============================================================
   HOME SWEET JAMAICA — Bright Luxury Magazine
   ============================================================ */

/* --- VARIABLES & RESET --- */
:root {
    /* 1. COLOR REFINEMENT */
    /* Warm, tactile paper-like backgrounds */
    --color-bg: #FCFBF8;
    --color-surface: #FFFFFF;
    --color-surface-2: #F4F1EB;
    /* Lighter, more natural linen tone */

    /* Ultra-subtle glass & borders */
    --color-glass: rgba(0, 0, 0, 0.02);
    --color-glass-border: rgba(0, 0, 0, 0.06);
    /* Simulates 0.5px visual weight */
    --color-border-fine: rgba(26, 59, 42, 0.15);
    /* Deep green tinted fine border */

    /* Deep, rich, organic accents */
    --color-primary: #12281D;
    /* Darker, almost black-green for high contrast */
    --color-accent: #173525;
    --color-accent-glow: rgba(23, 53, 37, 0.05);

    /* Muted Champagne Gold instead of harsh yellow-gold */
    --color-gold: #C5A467;
    --color-gold-glow: rgba(197, 164, 103, 0.1);

    /* High-contrast, sophisticated typography */
    --color-text: #2A2A2A;
    --color-text-muted: #737373;
    --color-text-dim: #A0A0A0;
    --color-white: #fff;
    --color-heading: #1a1a1a;

    /* 2. TYPOGRAPHY — magazine match: Quicksand headings, Poppins/Raleway body */
    --font-serif: 'Quicksand', 'Poppins', 'Helvetica Neue', system-ui, sans-serif;
    --font-sans: 'Poppins', 'Raleway', 'Helvetica Neue', system-ui, sans-serif;
    --font-heading: var(--font-serif);
    --font-body: var(--font-sans);

    /* 3. SPACING & STRUCTURE */
    /* Increased heavily for editorial breathing room */
    --spacing-section: 8rem;
    --spacing-section-lg: 12rem;

    /* Luxury sites favor sharper, more intentional corners. Reduced from 12px. */
    --border-radius: 4px;
    --border-radius-sm: 2px;

    /* 4. ANIMATION */
    --transition-smooth: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-spring: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);

    /* 5. LUXURY SHADOWS */
    --shadow-premium: 0 40px 100px rgba(0, 0, 0, 0.08), 0 10px 40px rgba(0, 0, 0, 0.04);
    --shadow-glass: 0 8px 32px 0 rgba(18, 40, 29, 0.08);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Tactile Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- UTILITIES --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

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

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

.article-image,
.article-section-break img,
.article-rich-text img,
.editorial-column-container img {
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    max-width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
}

/* --- MAGAZINE SECTION — No animations, no overlay, always visible --- */
#magazine .article-card,
#magazine .article-card *,
#magazine .section-header,
#magazine .article-grid {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

#magazine .article-card-image::after {
    display: none !important;
}

#magazine .article-card-body {
    padding: 0.4rem 1rem 1rem !important;
    margin: 0 !important;
}

#magazine .article-card-category {
    margin-top: 0 !important;
    margin-bottom: 0.5rem !important;
}

#magazine .article-card-image {
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

#magazine .article-card {
    gap: 0 !important;
}

/* --- SCROLL ANIMATIONS --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger children */
.stagger-children .fade-in:nth-child(1) {
    transition-delay: 0s;
}

.stagger-children .fade-in:nth-child(2) {
    transition-delay: 0.1s;
}

.stagger-children .fade-in:nth-child(3) {
    transition-delay: 0.15s;
}

.stagger-children .fade-in:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-children .fade-in:nth-child(5) {
    transition-delay: 0.25s;
}

.stagger-children .fade-in:nth-child(6) {
    transition-delay: 0.3s;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--color-glass-border);
    transition: var(--transition-smooth);
    padding: 0.5rem 0;
}

/* Blur on pseudo-element so navbar doesn't trap fixed children (backdrop-filter creates a containing block) */
.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(253, 251, 247, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: -1;
}

.nav-container,
.nav-container.centered {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    text-align: center;
}

.logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.nav-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    margin: -10px 0;
    /* Pull padding tighter if the image has inherent white space */
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: var(--transition-smooth);
    margin: -10px 0;
}

.logo a {
    color: var(--color-accent);
}

.logo a:hover {
    opacity: 0.8;
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    position: relative;
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--color-text-muted);
    padding: 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-gold);
    transition: var(--transition-smooth);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.btn-nav {
    border: 1px solid var(--color-accent);
    color: var(--color-accent) !important;
    padding: 0.6rem 1.8rem;
    border-radius: 50px;
    font-size: 0.72rem !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: var(--transition-spring);
}

.btn-nav:hover {
    background: var(--color-accent);
    color: var(--color-white) !important;
    transform: scale(1.05);
    box-shadow: 0 10px 20px var(--color-accent-glow);
}

/* ============================================================
   HERO — 2-Column Split Layout
   ============================================================ */
.hero.split {
    position: relative;
    min-height: 65vh;
    display: block;
    padding-top: 0;
    /* Offset handled by hero-text */
    box-sizing: border-box;
    overflow: hidden;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-glass-border);
}

.hero-split-container {
    position: relative;
    display: flex;
    min-height: 65vh;
    width: 100%;
    margin: 0;
}

.hero-column {
    flex: 1;
    min-height: 65vh;
    /* Force height so absolute children are visible */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Gold vertical divider between columns */
.hero-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, var(--color-gold), transparent);
    z-index: 5;
}

.hero-text {
    position: relative;
    z-index: 2;
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 60px 6% 0 6%;
    background: var(--color-bg);
    overflow: hidden;
    text-align: center;
}

.hero-content-wrapper {
    max-width: 550px;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

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

.hero-tagline {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.7rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 600;
    display: block;
    background: linear-gradient(90deg, var(--color-gold), #fff, var(--color-gold));
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-tagline::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 1.5rem 0 0;
    opacity: 0.6;
}

.hero.split h1 {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 4vw, 4.2rem);
    line-height: 1.1;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.hero.split p {
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
    max-width: 460px;
}

.hero-cta {
    display: inline-block;
    background: var(--color-accent);
    border: 1px solid var(--color-accent);
    color: var(--color-white);
    padding: 0.9rem 2.8rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: var(--transition-smooth);
    border-radius: 2px;
}

.hero-cta:hover {
    background: transparent;
    color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px var(--color-accent-glow);
}

/* --- Hero Newsletter Premium Card --- */
.hero-newsletter {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 20;
    width: 380px;
    background: rgba(23, 53, 37, 0.85);
    /* Deep green var(--color-accent) */
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 2.5rem;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(197, 164, 103, 0.2) inset;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    text-align: center;
    opacity: 0;
    animation: heroFadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1s forwards;
}

.hero-newsletter::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.hero-newsletter-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-newsletter-content h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

.hero-newsletter-content p {
    font-family: var(--font-sans);
    font-size: 0.8rem !important;
    line-height: 1.6 !important;
    color: rgba(255, 255, 255, 0.7) !important;
    margin-bottom: 1.8rem !important;
    max-width: 100% !important;
    text-align: center;
}

.hero-newsletter-form {
    display: flex;
    width: 100%;
    border: 1px solid rgba(197, 164, 103, 0.4);
    border-radius: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.2);
    transition: var(--transition-smooth);
    margin-bottom: 1rem;
}

.hero-newsletter-form:focus-within {
    border-color: var(--color-gold);
    background: rgba(0, 0, 0, 0.4);
}

.hero-newsletter-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.2rem;
    background: transparent;
    border: none;
    outline: none;
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.85rem;
}

.hero-newsletter-form input[type="email"]::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.hero-newsletter-form button {
    background: var(--color-gold);
    color: #12281D;
    border: none;
    padding: 0 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.hero-newsletter-form button:hover {
    background: #ffffff;
}

.hero-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 0.2rem;
    cursor: pointer;
}

.hero-consent-label input[type="checkbox"] {
    margin-top: 0.2rem;
    accent-color: var(--color-gold);
}

.hero-consent-label span {
    font-size: 0.65rem;
    color: inherit;
    text-align: left;
    line-height: 1.4;
    opacity: 0.9;
}

.hero-newsletter-message {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-newsletter-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-newsletter-message.success {
    color: var(--color-gold);
}

.hero-newsletter-message.error {
    color: #ff6b6b;
}

.hero-image {
    flex: 0 0 50%;
    min-height: 85vh;
    position: relative;
    z-index: 1;
    overflow: hidden;
    background: var(--color-surface-1);
}

.hero-image-inner {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Subtle gradient fade on image edge removed since text has gradient overlay */
.hero-image-inner::before {
    display: none;
}

/* --- Hero Image Slider --- */
.hero-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slider .slider-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.8s ease-in-out, transform 12s linear;
    transform: scale(1.05) translateZ(0);
    image-rendering: -webkit-optimize-contrast;
    /* Force sharpest possible rendering on WebKit */
    image-rendering: crisp-edges;
    -webkit-backface-visibility: hidden;
    /* Prevent anti-aliasing blur during transform */
    backface-visibility: hidden;
    z-index: 1;
}

.hero-slider .slider-img.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.0) translateZ(0);
}

/* Fallback for single static images */
.hero-image img:not(.slider-img) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    transform-origin: center 25%;
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero:hover .hero-image img:not(.slider-img) {
    transform: scale(1.0);
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 8%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-text-muted);
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll-indicator .line {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, var(--color-accent), transparent);
}

@keyframes scrollBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.section {
    padding: var(--spacing-section) 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-heading);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.7;
}

.section-divider {
    width: 30px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

/* ============================================================
   CATEGORY SECTIONS
   ============================================================ */
.category-section {
    margin-bottom: 1rem;
    padding-top: 1rem;
}

.category-section:last-child {
    margin-bottom: 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 5%;
}

.category-label {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--color-heading);
    font-weight: 400;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.category-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--color-gold), transparent);
}

/* Hide sections when filtering */
.category-section.hidden {
    display: none;
}

/* ============================================================
   CATEGORY FILTER BAR
   ============================================================ */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    padding: 0 5%;
}

.filter-btn {
    background: var(--color-white);
    border: 1px solid var(--color-glass-border);
    color: var(--color-text-muted);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-accent-glow);
}

.filter-btn.active {
    background: var(--color-accent);
    color: var(--color-white);
    border-color: var(--color-accent);
    font-weight: 600;
}

/* ============================================================
   ARTICLE GRID — Editorial Layout
   ============================================================ */
.article-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    padding: 0 5%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Responsive: 3 cols on medium screens, 2 on tablet, 1 on mobile */
@media (max-width: 1200px) {
    .article-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.article-card {
    position: relative;
    border-radius: var(--border-radius);
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    transition: var(--transition-spring);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-premium);
    border-color: rgba(197, 164, 103, 0.3);
    color: var(--color-text);
}

.article-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.article-card:hover .article-card-image img {
    transform: scale(1.08);
}

.article-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, var(--color-surface), transparent);
    pointer-events: none;
}

.article-card-body {
    padding: 1.5rem;
}

.article-card-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 600;
}

.article-card-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    line-height: 1.3;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.article-card-excerpt {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    font-weight: 300;
}

/* Featured card — spans 2 columns */
.article-card.featured {
    grid-column: span 2;
}

.article-card.featured .article-card-image {
    height: 280px;
}

.article-card.featured .article-card-title {
    font-size: 1.8rem;
}

/* Card hidden by filter */
.article-card.hidden {
    display: none;
}

/* ============================================================
   SHOP SECTION
   ============================================================ */
.shop-section {
    background: var(--color-surface-2);
    border-top: 1px solid var(--color-glass-border);
    border-bottom: 1px solid var(--color-glass-border);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    text-align: center;
    background: var(--color-white);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-smooth);
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card:hover {
    border-color: rgba(26, 59, 42, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.img-box {
    background: var(--color-surface-2);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
}

.img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-card h3 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
    color: var(--color-heading);
}

.price {
    font-weight: 600;
    color: var(--color-accent);
    font-size: 0.95rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   INSTAGRAM FEED SECTION
   ========================================================================== */
.instagram-section {
    background: var(--color-bg);
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }
}

.ig-post {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    background: var(--color-surface-1);
    border: 1px solid var(--color-glass-border);
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 40, 29, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.ig-overlay svg {
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.ig-post:hover img {
    transform: scale(1.08);
}

.ig-post:hover .ig-overlay {
    opacity: 1;
}

.ig-post:hover .ig-overlay svg {
    transform: scale(1.2);
}

/* Instagram Fallback CTA */
.ig-fallback {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 3rem 2rem;
    border: 1px dashed var(--color-glass-border);
    border-radius: 12px;
    background: var(--color-surface-1);
    text-decoration: none;
    color: var(--color-text-primary);
    transition: border-color 0.3s ease, background 0.3s ease;
}
.ig-fallback:hover {
    border-color: var(--color-accent);
    background: var(--color-surface-2, rgba(255,255,255,0.05));
}
.ig-fallback svg {
    width: 40px;
    height: 40px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.ig-fallback:hover svg {
    opacity: 1;
}
.ig-fallback p {
    margin: 0;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
}

/* ============================================================
   SUBSCRIBE / CTA SECTION
   ============================================================ */
.subscribe-section {
    text-align: center;
    padding: var(--spacing-section) 5%;
}

.subscribe-form {
    display: flex;
    gap: 0;
    max-width: 480px;
    margin: 2rem auto 0;
    border: 1px solid var(--color-glass-border);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition-smooth);
    background: var(--color-white);
}

.subscribe-form:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 20px var(--color-accent-glow);
}

.subscribe-form input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    outline: none;
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 0.9rem;
}

.subscribe-form input::placeholder {
    color: var(--color-text-dim);
}

.subscribe-form button {
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem 2rem;
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.subscribe-form button:hover {
    background: #245236;
}

/* --- Consent Checkbox --- */
.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    max-width: 480px;
    margin: 1.2rem auto 0;
    cursor: pointer;
    text-align: left;
}

.consent-label input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--color-accent);
    cursor: pointer;
    flex-shrink: 0;
}

.consent-label span {
    font-size: 0.75rem;
    color: var(--color-text);
    line-height: 1.6;
    font-weight: 400;
}

/* --- Subscribe Feedback Message --- */
.subscribe-message {
    max-width: 480px;
    margin: 1rem auto 0;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.subscribe-message.visible {
    opacity: 1;
    transform: translateY(0);
}

.subscribe-message.success {
    color: var(--color-accent);
}

.subscribe-message.error {
    color: #b94a48;
}

.micro-copy {
    display: block;
    font-size: 0.7rem;
    color: var(--color-text-dim);
    font-style: italic;
    margin-top: 1rem;
}

/* Subscribe Success Popup */
.hsj-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(18, 40, 29, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 1rem;
}
.hsj-popup-overlay.visible {
    opacity: 1;
}
.hsj-popup {
    background: var(--color-surface, #FFFFFF);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 400px;
    width: 100%;
    text-align: center;
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
}
.hsj-popup-overlay.visible .hsj-popup {
    transform: translateY(0) scale(1);
}
.hsj-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-text-muted, #737373);
    cursor: pointer;
    line-height: 1;
    padding: 4px;
}
.hsj-popup-close:hover {
    color: var(--color-text, #2A2A2A);
}
.hsj-popup-icon {
    margin-bottom: 1.2rem;
}
.hsj-popup-title {
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    font-size: 1.5rem;
    color: var(--color-primary, #12281D);
    margin: 0 0 0.75rem;
}
.hsj-popup-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted, #737373);
    margin: 0 0 1.5rem;
}
.hsj-popup-btn {
    display: inline-block;
    background: var(--color-accent, #173525);
    color: #FFFFFF;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.8rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hsj-popup-btn:hover {
    background: var(--color-primary, #12281D);
    transform: translateY(-1px);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
    position: relative;
    padding: 3rem 5%;
    min-height: 200px;
    display: flex;
    background: url('assets/images/home-sweet-jamaica-flag.webp') no-repeat center center/cover;
    color: var(--color-white);
    overflow: hidden;
    border-top: 1px solid var(--color-gold);
}

footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(18, 40, 29, 0.95) 0%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr 1fr;
    align-items: start;
    width: 100%;
    max-width: 1200px;
    gap: 2.5rem;
    margin: 0 auto;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    min-width: 0;
}

.footer-col--brand {
    gap: 1.1rem;
}

.footer-col .footer-logo {
    display: inline-block;
}

.footer-col .footer-logo img,
.footer-logo img {
    height: 96px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
    transition: transform 0.4s ease;
}

.footer-col .footer-logo:hover img {
    transform: scale(1.05);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.82rem;
    line-height: 1.55;
    margin: 0;
    max-width: 22rem;
}

.footer-col-title {
    color: var(--color-gold);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 0.4rem;
    font-family: 'Poppins', sans-serif;
}

.footer-col-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.footer-col-links a {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.4px;
    transition: color 0.25s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

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

.footer-col--map {
    align-items: stretch;
}

.footer-map-thumb {
    position: relative;
    display: block;
    width: 100%;
    height: 130px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    text-decoration: none;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.footer-map-thumb:hover {
    border-color: var(--color-gold);
    transform: translateY(-2px);
}

.footer-map-thumb iframe {
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
    display: block;
}

.footer-map-cta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.5rem 0.75rem;
    background: linear-gradient(to top, rgba(18, 40, 29, 0.92) 0%, rgba(18, 40, 29, 0) 100%);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* Legacy classes kept for any unconverted footer (privacy/terms minimal etc.) */
.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.footer-links {
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-links a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #FFFFFF;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

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

.footer-bottom {
    position: relative;
    z-index: 2;
    width: 100%;
    margin-top: 2.2rem;
}

.footer-gold-line {
    width: 80px;
    height: 2px;
    background: var(--color-gold);
    margin: 1rem 0;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0;
}

/* ============================================================
   ARTICLE PAGES — Full Layout
   ============================================================ */
.article-hero {
    height: 70vh;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.article-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--color-bg), transparent);
    pointer-events: none;
}

.article-container {
    max-width: 800px;
    margin: -120px auto 0;
    padding: 3rem 4rem 4rem;
    position: relative;
    z-index: 10;
    background: var(--color-surface);
    border: 1px solid var(--color-glass-border);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.article-meta {
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.7rem;
    color: var(--color-gold);
    margin-bottom: 1rem;
    display: block;
    text-align: center;
    font-weight: 600;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 2.8rem;
    line-height: 1.1;
    color: var(--color-heading);
    text-align: center;
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: var(--transition-fast);
}

.back-link:hover {
    color: var(--color-accent);
}

.article-body {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--color-text);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body .intro {
    font-size: 1.25rem;
    text-align: center;
    color: var(--color-text-muted);
    margin-bottom: 3rem;
    font-style: italic;
}

.article-body h2 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-heading);
    margin: 3rem 0 1.5rem;
    font-weight: 400;
}

.article-body img {
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--border-radius-sm);
}

.article-body strong {
    color: var(--color-heading);
}

.quote-box {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-accent);
    margin: 3rem 0;
    padding-left: 1.5rem;
    border-left: 2px solid var(--color-gold);
    line-height: 1.6;
}

/* ============================================================
   MOBILE RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .article-card.featured {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero-split-container {
        flex-direction: column;
    }

    .hero-column {
        flex: none;
        width: 100%;
    }

    .hero-text {
        height: auto;
        padding: 4rem 5%;
        justify-content: center;
        text-align: center;
    }

    .hero-content-wrapper {
        max-width: 100%;
    }

    .hero.split h1 {
        font-size: 2.8rem;
    }

    .hero-image {
        height: 300px;
    }

    .hero-scroll-indicator {
        left: 50%;
        transform: translateX(-50%);
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .article-grid {
        grid-template-columns: 1fr;
        padding: 0 5%;
    }

    .article-card.featured {
        grid-column: span 1;
    }

    .article-card.featured .article-card-image {
        height: 200px;
    }

    .article-container {
        padding: 2rem 1.5rem;
        margin-top: -80px;
        margin-left: 5%;
        margin-right: 5%;
        border-radius: var(--border-radius-sm);
    }

    .article-title {
        font-size: 2rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }

    .subscribe-form {
        flex-direction: column;
        border-radius: var(--border-radius);
    }

    .subscribe-form button {
        border-radius: 0 0 var(--border-radius) var(--border-radius);
    }

    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-layout {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        text-align: left;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
        text-align: center;
        align-items: center;
    }

    .footer-col--brand .footer-tagline {
        text-align: center;
    }

    .footer-col--map {
        grid-column: 1 / -1;
    }

    .footer-map-thumb {
        height: 160px;
    }

    .footer-right {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        align-items: center;
        margin-bottom: 1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    .footer-gold-line {
        margin: 1rem auto;
    }

    .footer-copyright {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }

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

    .article-card.featured {
        grid-column: span 1;
    }

    .article-card-image {
        height: 170px;
    }

    .section {
        padding: 3rem 0;
    }
}

/* --- SHOP BUTTONS --- */
.btn-shop {
    display: inline-block;
    margin-top: 0.75rem;
    padding: 0.6rem 1.4rem;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-shop:hover {
    background: var(--color-gold);
    color: var(--color-heading);
    transform: translateY(-1px);
}

/* Magazine Issues Section */
.magazine-issues {
    background: var(--color-bg-alt);
    padding: 6rem 5%;
}

.issues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 4rem;
    max-width: 1100px;
    margin: 3rem auto 0;
}

.issue-card {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

.issue-card-image {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    aspect-ratio: 1 / 1.414;
    background: #111;
}

.issue-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.issue-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.issue-overlay span {
    color: #fff;
    padding: 1rem 2rem;
    border: 1px solid #fff;
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    backdrop-filter: blur(5px);
}

.issue-card:hover .issue-card-image img {
    transform: scale(1.05);
}

.issue-card:hover .issue-overlay {
    opacity: 1;
}

.issue-card-info {
    padding: 1.5rem 0;
    text-align: center;
}

.issue-card-info h3 {
    font-family: 'Bodoni Moda', serif;
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--color-heading);
}

.issue-card-info p {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.product-card {
    text-align: center;
}

/* --- FORM MESSAGES --- */
.form-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    font-family: 'Poppins', 'Raleway', sans-serif;
    transition: opacity 0.3s ease;
}

.form-message.success {
    color: var(--color-accent);
    font-weight: 500;
}

.form-message.error {
    color: #c0392b;
    font-weight: 500;
}

/* ============================================================
   E-COMMERCE: PRODUCT PAGES, CART, GALLERY
   ============================================================ */

/* --- Cart Badge (Navbar) --- */
.cart-link {
    position: relative;
    text-decoration: none;
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -12px;
    background: var(--color-accent);
    color: var(--color-white);
    font-size: 0.65rem;
    font-weight: 600;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', 'Raleway', sans-serif;
}

/* --- Breadcrumb --- */
.breadcrumb {
    padding: 1.5rem 0;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.8rem;
    color: var(--color-muted);
    letter-spacing: 0.03em;
}

.breadcrumb a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--color-accent);
}

.breadcrumb span {
    color: var(--color-heading);
}

/* --- Product Page Layout --- */
.product-page {
    padding: 6rem 0 4rem;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* --- Product Gallery --- */
.product-gallery {
    position: sticky;
    top: 6rem;
}

.product-main-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f0;
    margin-bottom: 1rem;
}

.product-thumbnails, .product-thumbs {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-main-image:hover img {
    transform: scale(1.03);
}

.product-thumb {
    width: 70px;
    height: 70px;
    border-radius: 3px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s ease;
}

.product-thumb:hover,
.product-thumb.active {
    border-color: var(--color-accent);
    opacity: 1;
}

/* --- Product Info --- */
.product-info {
    padding-top: 1rem;
}

.footer-content h3 img {
    height: 160px;
    /* Made slightly larger for impact */
    width: auto;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    display: block;
}

.product-category {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
}

/* ============================================================
   ARTICLE CONTENT WRAPPER 
   ============================================================ */
.article-content-wrapper {
    max-width: 800px;
    margin: 4rem auto;
    padding: 0 5%;
}

.article-content-wrapper p,
.editorial-split-text p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* ============================================================
   LUXURY EDITORIAL ARTICLE TEMPLATE
   ============================================================ */

/* Asymmetrical Broken Grid */
.editorial-split {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin: 6rem 0;
}

.editorial-split.reverse {
    flex-direction: row-reverse;
}

.editorial-split-text {
    flex: 1;
}

.editorial-split-image {
    flex: 1;
    min-height: 500px;
    border-radius: 2px;
    background-color: var(--color-glass-bg);
    position: relative;
    overflow: hidden;
}

@media (max-width: 900px) {

    .editorial-split,
    .editorial-split.reverse {
        flex-direction: column;
        gap: 3rem;
        margin: 4rem 0;
    }

    .editorial-split-image {
        width: 100%;
        min-height: 400px;
    }
}

/* Oversized Pull Quote */
.article-pull-quote-oversized {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.1;
    color: var(--color-accent);
    margin: 6rem -6rem;
    padding: 0;
    border: none;
    text-align: center;
    font-style: italic;
    letter-spacing: -0.02em;
    position: relative;
}

.article-pull-quote-oversized::before,
.article-pull-quote-oversized::after {
    content: '';
    display: block;
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 2rem auto;
}

@media (max-width: 900px) {
    .article-pull-quote-oversized {
        margin: 4rem 0;
    }
}

/* True Parallax Divider */
.parallax-divider {
    height: 70vh;
    margin: 6rem calc(-50vw + 50%);
    width: 100vw;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}


.product-title {
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    font-size: 2.2rem;
    color: var(--color-heading);
    margin: 0.5rem 0 0.75rem;
    line-height: 1.2;
}

.product-price {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.product-description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-body);
    margin-bottom: 2rem;
    max-width: 480px;
}

/* --- Size Selector --- */
.product-size {
    margin-bottom: 1.5rem;
}

.product-size label {
    display: block;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.product-size select {
    width: 100%;
    max-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.9rem;
    background: var(--color-white);
    color: var(--color-heading);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

/* --- Quantity Selector --- */
.product-quantity {
    margin-bottom: 2rem;
}

.product-quantity label {
    display: block;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 0.5rem;
}

.qty-control {
    display: flex;
    align-items: center;
    gap: 0;
    max-width: 130px;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: #f5f5f0;
    font-size: 1.1rem;
    cursor: pointer;
    color: var(--color-heading);
    transition: background 0.2s;
    font-family: 'Poppins', 'Raleway', sans-serif;
}

.qty-btn:hover {
    background: #e8e8e0;
}

.qty-control input[type="number"] {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid #ddd;
    border-right: 1px solid #ddd;
    text-align: center;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.95rem;
    -moz-appearance: textfield;
    appearance: textfield;
}

.qty-control input::-webkit-inner-spin-button,
.qty-control input::-webkit-outer-spin-button {
    -webkit-appearance: none;
}

/* --- Add to Cart / Buy Now Buttons --- */
.product-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.btn-add-to-cart,
.btn-buy-now {
    width: 100%;
    padding: 1rem;
    border-radius: 3px;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-add-to-cart {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-add-to-cart:hover {
    background: var(--color-accent-glow);
}

.btn-add-to-cart.added {
    background: #2d6a4f;
    color: white;
    border-color: #2d6a4f;
}

.btn-buy-now {
    background: var(--color-accent);
    color: var(--color-white);
    border: 1px solid var(--color-accent);
}

.btn-buy-now:hover {
    background: var(--color-gold);
    color: var(--color-heading);
    border-color: var(--color-gold);
    transform: translateY(-1px);
}


/* --- Product Details List --- */
.product-details-list {
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.product-details-list h3 {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-heading);
    margin-bottom: 0.75rem;
}

.product-details-list ul {
    list-style: none;
    padding: 0;
}

.product-details-list li {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--color-body);
    padding: 0.3rem 0;
    padding-left: 1rem;
    position: relative;
}

.product-details-list li::before {
    content: '·';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: bold;
}

/* --- Cart Notification Toast --- */
.cart-notification {
    position: fixed;
    top: -80px;
    right: 2rem;
    background: var(--color-heading);
    color: var(--color-white);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.85rem;
    z-index: 9999;
    transition: top 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.cart-notification.show {
    top: 5rem;
}

.cart-notif-icon {
    background: var(--color-accent);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.cart-notif-link {
    color: var(--color-gold);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    white-space: nowrap;
}

.cart-notif-link:hover {
    text-decoration: underline;
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page {
    padding: 6rem 0 4rem;
    min-height: 60vh;
}

.cart-title {
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    font-size: 2.5rem;
    color: var(--color-heading);
    margin-bottom: 2rem;
}

.cart-content {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 3rem;
    align-items: start;
}

.cart-empty {
    text-align: center;
    padding: 4rem 0;
}

.cart-empty p {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 1.1rem;
    color: var(--color-muted);
    margin-bottom: 1.5rem;
}

.btn-continue-shopping,
.btn-continue-shopping-link {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: var(--color-accent);
    color: var(--color-white);
    text-decoration: none;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.btn-continue-shopping:hover,
.btn-continue-shopping-link:hover {
    background: var(--color-gold);
    color: var(--color-heading);
}

.btn-continue-shopping-link {
    display: block;
    text-align: center;
    margin-top: 1rem;
    background: transparent;
    color: var(--color-muted);
    padding: 0.5rem;
    font-size: 0.8rem;
}

.btn-continue-shopping-link:hover {
    color: var(--color-accent);
    background: transparent;
}

/* --- Cart Items --- */
.cart-item {
    display: grid;
    grid-template-columns: 90px 1fr auto auto 30px;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid #eee;
}

.cart-item-image {
    width: 90px;
    height: 90px;
    border-radius: 3px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details h3 {
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    font-size: 1rem;
    color: var(--color-heading);
    margin-bottom: 0.25rem;
}

.cart-item-size {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.75rem;
    color: var(--color-muted);
}

.cart-item-price {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--color-body);
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cart-item-qty .qty-btn {
    width: 28px;
    height: 28px;
    font-size: 0.85rem;
    border-radius: 2px;
}

.cart-item-qty span {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.9rem;
    min-width: 20px;
    text-align: center;
}

.cart-item-total {
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-heading);
    text-align: right;
    min-width: 60px;
}

.cart-item-remove {
    border: none;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
    padding: 0.25rem;
}

.cart-item-remove:hover {
    color: #c0392b;
}

/* --- Order Summary --- */
.cart-summary {
    background: #f9f9f6;
    padding: 2rem;
    border-radius: 4px;
    position: sticky;
    top: 6rem;
}

.cart-summary h2 {
    font-family: 'Quicksand', 'Poppins', system-ui, sans-serif;
    font-size: 1.3rem;
    color: var(--color-heading);
    margin-bottom: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.85rem;
    color: var(--color-body);
    padding: 0.5rem 0;
}

.summary-row.total {
    border-top: 1px solid #ddd;
    margin-top: 0.75rem;
    padding-top: 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-heading);
}

.btn-checkout {
    width: 100%;
    padding: 1rem;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 3px;
    font-family: 'Poppins', 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: all 0.3s ease;
}

.issue-card-info p {
    font-family: 'Outfit', sans-serif;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- E-Commerce Responsive --- */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-gallery {
        position: static;
    }

    .product-title {
        font-size: 1.8rem;
    }

    .cart-content {
        grid-template-columns: 1fr;
    }

    .cart-item {
        grid-template-columns: 70px 1fr auto;
        gap: 1rem;
    }

    .cart-item-total {
        display: none;
    }

    .cart-notification {
        right: 1rem;
        left: 1rem;
    }
}

/* ============================================================
   CHROME & CINEMATIC REVEALS (Gemini 3.1 Pro Enhancements)
   ============================================================ */

/* 1. The Wrapper acts as a physical window */
.image-reveal-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    /* Modern editorial ratio */
    background-color: var(--color-surface-2);
}

.article-card.featured .image-reveal-wrapper {
    aspect-ratio: 21 / 9;
}

/* 2. The Image scales down and pans up smoothly */
.parallax-reveal {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform, opacity;
    transform: scale(1.1) translateY(4%);
    opacity: 0;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.parallax-reveal.is-visible {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.article-card:hover .parallax-reveal.is-visible {
    transform: scale(1.05);
    transition: transform 4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Refined Article Card Body */
.article-card-body {
    padding: 2.5rem 2rem;
}

.article-card-title {
    font-size: 1.4rem;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.article-card-category {
    letter-spacing: 0.15em;
    font-size: 0.7rem;
    margin-bottom: 1.2rem;
}

/* Balanced Section Headers */
.section-header h2 {
    font-size: clamp(2.5rem, 4vw, 4rem);
    text-wrap: balance;
    margin-bottom: 2rem;
}

.section-divider {
    width: 60px;
    height: 1px;
    background: var(--color-gold);
    margin: 0 auto 2.5rem;
}

/* --- Instagram Section --- */
.instagram-section {
    background: var(--color-bg);
}

.instagram-feed-container {
    max-width: 1000px;
    margin: 0 auto;
    border: 1px dashed var(--color-gold);
    border-radius: var(--border-radius);
    padding: 4rem 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: var(--color-surface);
}

.elfsight-app-placeholder p {
    font-family: var(--font-sans);
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

.elfsight-app-placeholder p span {
    font-size: 0.8rem;
    color: var(--color-gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   ARTICLE PAGES (PREMIUM READABILITY)
   ========================================= */

body.article-page {
    background: var(--color-bg);
    color: var(--color-text);
    padding-top: 80px;
    /* Account for fixed global navbar */
}

/* The cinematic Hero section for Articles */
.article-hero {
    padding: 6rem 5% 2rem;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    background: transparent;
}

.article-hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1.2s ease-out forwards;
}

.article-meta {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    color: var(--color-gold);
    margin-bottom: 2rem;
    font-weight: 500;
}

.article-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: none;
    color: var(--color-heading);
}

/* Base structural layout for articles */
.article-content-wrapper {
    max-width: 800px;
    /* Optimal reading width */
    margin: 0 auto;
    padding: 4rem 5% 8rem;
}

/* Typography specifics for readable long-form text */
.article-content-wrapper p {
    font-size: 1.15rem;
    /* Larger, more readable body text */
    color: var(--color-text);
    margin-bottom: 2rem;
    line-height: 1.8;
    /* Generous line height for scanning */
}

/* Headings within the article */
.article-content-wrapper h2 {
    font-family: var(--font-serif);
    font-size: 2.2rem;
    margin: 4rem 0 2rem;
    color: var(--color-heading);
    line-height: 1.3;
}

.article-content-wrapper h3 {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    margin: 3rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-heading);
}

/* Standardized editorial elements */
.article-dropcap {
    float: left;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.85;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
    padding: 0;
    color: var(--color-gold);
}

.article-pull-quote {
    font-family: var(--font-serif);
    font-size: 2rem;
    text-align: center;
    margin: 5rem 0;
    padding: 3rem 0;
    border-top: 1px solid var(--color-border-fine);
    border-bottom: 1px solid var(--color-border-fine);
    font-style: italic;
    color: var(--color-heading);
    line-height: 1.4;
}

.article-section-break {
    position: relative;
    z-index: 1;
    margin: 6rem 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Two column layouts within articles */
.article-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin: 5rem 0;
}

.article-grid-layout img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

/* Standout summary or data boxes */
.article-sidebar {
    background: var(--color-surface);
    padding: 3rem;
    border-left: 4px solid var(--color-gold);
    margin: 4rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: var(--border-radius);
}

.article-sidebar h3 {
    font-family: var(--font-sans);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--color-accent);
}

/* Make sure lists inside wrappers look good */
.article-content-wrapper ul,
.article-content-wrapper ol {
    margin-bottom: 2rem;
    padding-left: 2rem;
}

.article-content-wrapper li {
    font-size: 1.15rem;
    margin-bottom: 0.8rem;
    color: var(--color-text);
}

/* Global fade in animation for article assets */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

/* Responsive tweaks for article pages */
@media (max-width: 768px) {
    .article-hero {
        padding: 4rem 5% 2rem;
    }

    .article-content-wrapper {
        padding: 2rem 5% 4rem;
    }

    .article-grid-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .article-pull-quote {
        font-size: 1.5rem;
        padding: 2rem 0;
    }

    .article-section-break {
        background-attachment: scroll;
    }
}


/* ============================================================
   FLIPBOOK MODAL
   ============================================================ */
.flipbook-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    /* Safe area for notched iPhones */
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.flipbook-modal.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.flipbook-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    display: block;
}

.flipbook-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.flipbook-close:hover {
    color: var(--color-gold);
}

/* --- Flipbook Wrapper: centers the book in the modal --- */
.flipbook-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: calc(100% - 60px);
    /* Leave room for page info at bottom */
    position: relative;
}

/* --- Flipbook Container: gets pixel dimensions from JS --- */
.flipbook-container {
    position: relative;
    /* Width and height are set dynamically by flipbook.js */
    margin: 0 auto;
}

/* --- Individual Pages --- */
.flip-page {
    background-color: #fff;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.flip-page img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: #fff;
}

/* --- Lateral Chevron Navigation Arrows --- */
.flipbook-chevron {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 2.5rem;
    width: 50px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: background 0.3s ease, color 0.3s ease;
    border-radius: 4px;
}

.flipbook-chevron:hover {
    background: var(--color-gold);
    color: var(--color-dark-surface);
}

.flipbook-chevron.left {
    left: 1.5rem;
}

.flipbook-chevron.right {
    right: 1.5rem;
}

/* --- Page Info Bar --- */
.flipbook-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-family: var(--font-sans);
    font-size: 0.85rem;
    letter-spacing: 1px;
}

/* --- Mobile Single-Page Mode (toggled by JS via .flipbook-mobile class) --- */
.flipbook-mobile .flipbook-modal-content {
    width: 100%;
    height: 100%;
    padding: 0;
    /* Reset centering for fullscreen mobile — use inset instead of transform */
    top: 0;
    left: 0;
    transform: none;
}

.flipbook-mobile .flipbook-wrapper {
    height: calc(100% - 28px) !important;
    touch-action: pan-y pinch-zoom;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.flipbook-mobile .flipbook-container {
    margin: 0 auto;
}

.flipbook-mobile .flipbook-chevron {
    width: 32px;
    height: 44px;
    font-size: 1.2rem;
    background: rgba(0, 0, 0, 0.25);
    border-radius: 6px;
    opacity: 0.6;
}

.flipbook-mobile .flipbook-chevron.left {
    left: 0.2rem;
}

.flipbook-mobile .flipbook-chevron.right {
    right: 0.2rem;
}

.flipbook-mobile .flipbook-close {
    top: calc(0.5rem + env(safe-area-inset-top, 0px));
    right: calc(0.5rem + env(safe-area-inset-right, 0px));
    font-size: 2rem;
    z-index: 10001;
    /* Ensure tappable on mobile — 44px minimum touch target */
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flipbook-mobile .flipbook-controls {
    font-size: 0.65rem;
    padding: 0.15rem 0;
    height: 28px;
}

/* ============================================================
   UI SNIPER COMPONENTS - LUXURY UPGRADES
   ============================================================ */

/* --- 1. Hero Parallax (Aceternity Style) --- */
.parallax-hero-wrapper {
    position: relative;
    height: 55vh;
    width: 100%;
    overflow: hidden;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Ensure article content sits above hero with solid background */
.article-page main {
    position: relative;
    z-index: 2;
    background: var(--color-bg);
}

.parallax-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Lighter gradient overlay to let the beautiful new image shine through, but dark enough for white text to pop */
    background: linear-gradient(135deg, rgba(18, 40, 29, 0.6), rgba(23, 53, 37, 0.5)),
        url('./assets/images/articles/layla-hero-bespoke.png');
    background-size: cover;
    background-position: top center;
    z-index: 1;
    will-change: transform;
}

.parallax-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 5%;
    max-width: 900px;
}

.parallax-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    color: var(--color-white);
    line-height: 1.1;
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.parallax-hero-meta {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-gold);
    display: inline-block;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(197, 164, 103, 0.4);
}

/* --- 2. Advanced Sticky Scroll Image Reveal (Aceternity Style) --- */
.sticky-scroll-container {
    display: flex;
    position: relative;
    padding: var(--spacing-section) 5%;
    max-width: 1400px;
    margin: 0 auto;
    gap: 6rem;
    align-items: flex-start;
}

.sticky-text-column {
    flex: 1;
    padding-top: 5vh;
    /* Buffer to allow scroll distance before sticking */
    padding-bottom: 5vh;
}

.sticky-text-block {
    margin-bottom: 25vh;
    /* Large gap sets the pace for the image swap */
    transition: var(--transition-smooth);
    opacity: 0.4;
    transform: translateX(-20px);
}

.sticky-text-block:last-child {
    margin-bottom: 0;
}

.sticky-text-block.active {
    opacity: 1;
    transform: translateX(0);
}

.sticky-image-column {
    flex: 1;
    position: sticky;
    top: 20vh;
    height: 60vh;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
}

.sticky-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.sticky-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.05);
    /* Slight zoom-out transition */
    transition: opacity 1s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}


/* --- 3. Shimmer Text Reveal (Magic UI Style) --- */
.shimmer-text {
    position: relative;
    background: linear-gradient(to right,
            var(--color-heading) 0%,
            var(--color-heading) 40%,
            var(--color-gold) 50%,
            var(--color-heading) 60%,
            var(--color-heading) 100%);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
    padding-bottom: 5px;
}

.animate-shimmer {
    animation: shimmerSlide 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes shimmerSlide {
    0% {
        background-position: 150% center;
    }

    100% {
        background-position: -50% center;
    }
}


/* --- 4. Nuance Hover Quote (Hover.dev Style) --- */
.nuance-quote-container {
    max-width: 800px;
    margin: 6rem auto;
    padding: 4rem;
    text-align: center;
    position: relative;
    border: 1px solid var(--color-glass-border);
    background: var(--color-surface);
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
    cursor: default;
}

.nuance-quote-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(197, 164, 103, 0.3);
    /* Subtle gold inner ring */
}

.nuance-quote-container::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-serif);
    font-size: 6rem;
    color: var(--color-gold-glow);
    opacity: 0.5;
    transition: var(--transition-smooth);
}

.nuance-quote-container:hover::before {
    opacity: 1;
    color: var(--color-gold);
    top: -30px;
}

.nuance-quote-text {
    font-family: var(--font-serif);
    font-size: 1.7rem;
    line-height: 1.5;
    color: var(--color-heading);
    font-weight: 400;
    font-style: italic;
}

/* Added for editorial density — single column for clean drop cap rendering */
.editorial-column-container {
    column-count: 1;
    margin-top: 2rem;
}

.editorial-column-container p {
    break-inside: avoid;
}

/* Base structural adjustments for article text */
.article-rich-text {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    padding: 0 5%;
}

.article-rich-text p {
    font-size: 0.95rem;
    /* ~15px */
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Drop cap override consolidated — see also line ~2575 */
.article-dropcap {
    float: left;
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 0.85;
    margin-right: 0.8rem;
    margin-top: 0.3rem;
    padding: 0;
    color: var(--color-gold);
}

/* ============================================================
   MOBILE RESPONSIVE — Complete Overhaul
   ============================================================ */

/* --- Hamburger Menu Toggle (hidden on desktop) --- */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition: all 0.3s ease;
    border-radius: 2px;
}

/* =========== TABLET BREAKPOINT (≤1024px) =========== */
@media (max-width: 1024px) {

    :root {
        --spacing-section: 5rem;
        --spacing-section-lg: 6rem;
    }

    /* --- Navigation --- */
    .mobile-menu-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 76px;
        left: 0;
        width: 100%;
        flex-direction: column;
        align-items: center;
        gap: 0;
        padding: 1rem 0 1.5rem;
        background: rgba(253, 251, 247, 0.99);
        border-top: 1px solid var(--color-glass-border);
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
        z-index: 9999;
    }

    .nav-links.active {
        display: flex !important;
    }

    .nav-links a {
        font-size: 0.95rem;
        letter-spacing: 0.22em;
        width: 100%;
        text-align: center;
        padding: 0.9rem 0;
        border-bottom: 1px solid var(--color-glass-border);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .nav-links .cart-link {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    /* --- Hero Split → Stacked --- */
    .hero.split {
        min-height: auto;
    }

    .hero-split-container {
        flex-direction: column;
        min-height: auto;
    }

    .hero-text {
        flex: none;
        width: 100%;
        padding: 120px 6% 3rem;
        text-align: center;
        align-items: center;
        justify-content: center;
    }

    .hero-text::after {
        display: none;
    }

    .hero-content-wrapper {
        text-align: center;
    }

    .hero.split h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
    }

    .hero.split p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-newsletter {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        position: relative;
        width: 100%;
        height: 40vh;
    }

    .hero-image-inner {
        position: relative;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* --- Article Grid: 3 cols → 2 cols --- */
    .article-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem;
    }

    .article-card.featured {
        grid-column: span 2;
    }

    /* --- Magazine cards: fix overflow --- */
    .article-grid[style*="repeat(2, 1fr)"] {
        max-width: 100% !important;
    }

    /* --- Footer: horizontal → stack --- */
    .footer-layout {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .footer-right {
        align-items: center;
    }

    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .footer-gold-line {
        margin: 1rem auto;
    }

    /* --- Sticky Scroll → Stacked --- */
    .sticky-scroll-container {
        flex-direction: column;
        gap: 3rem;
    }

    .sticky-image-column {
        position: relative;
        top: auto;
        height: 40vh;
        width: 100%;
    }

    .sticky-text-block {
        margin-bottom: 5vh;
    }

    /* --- Editorial Columns → single column --- */
    .editorial-column-container {
        column-count: 1;
    }

    /* --- Nuance Quote --- */
    .nuance-quote-container {
        margin: 4rem 5%;
        padding: 2.5rem;
    }

    .nuance-quote-text {
        font-size: 1.4rem;
    }
}

/* =========== MOBILE BREAKPOINT (≤768px) =========== */
@media (max-width: 768px) {

    :root {
        --spacing-section: 4rem;
        --spacing-section-lg: 4rem;
    }

    /* --- Responsive tables (future-proof) --- */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
        font-size: 0.85rem;
    }

    /* --- Typography scale down --- */
    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 0.9rem;
    }

    .category-label {
        font-size: 1.3rem;
    }

    /* --- Logo --- */
    .logo img {
        height: 60px;
    }

    /* --- Nav container tighten --- */
    .nav-container {
        padding: 0.8rem 4%;
    }

    /* --- Hero --- */
    .hero-text {
        padding: 100px 5% 2.5rem;
    }

    .hero.split h1 {
        font-size: clamp(1.8rem, 6vw, 2.8rem);
    }

    .hero.split p {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    .hero-cta {
        padding: 0.75rem 2rem;
        font-size: 0.65rem;
    }

    .hero-image {
        height: 40vh;
    }

    /* --- Article Grid: 2-up grouped layout on mobile --- */
    .article-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem;
        padding: 0 1rem;
    }

    /* --- Mobile Category Grouping — visual containers --- */
    #stories>.category-section,
    #stories .category-section {
        background: var(--color-surface-2);
        border-radius: 16px;
        padding: 1.25rem 0 1.5rem;
        margin: 0 3% 1.5rem;
        border: 1px solid var(--color-glass-border);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    }

    /* --- Category Header: prominent label on mobile --- */
    .category-header {
        padding: 0 1rem;
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--color-glass-border);
    }

    .category-label {
        font-size: 1.1rem;
        letter-spacing: 0.8px;
    }

    /* --- Article card sizing for 2-up mobile grid --- */
    .article-card-image {
        height: 130px;
    }

    .article-card-body {
        padding: 0.75rem;
    }

    .article-card-title {
        font-size: 0.95rem;
        line-height: 1.25;
        margin-bottom: 0.4rem;
    }

    .article-card-excerpt {
        font-size: 0.72rem;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 3;
    }

    .article-card-category {
        font-size: 0.55rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.4rem;
    }

    /* Featured cards still span full width in their group */
    .article-card.featured {
        grid-column: span 2;
    }

    .article-card.featured .article-card-image {
        height: 180px;
    }

    .article-card.featured .article-card-title {
        font-size: 1.2rem;
    }

    .article-card.featured .article-card-excerpt {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 2;
    }

    /* --- Hero Newsletter Mobile Reset --- */
    .hero-newsletter {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin: -2rem 4% 0;
        padding: 1.5rem;
        transform: none;
        animation: none;
        opacity: 1;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .hero-newsletter-content h3 {
        font-size: 1.2rem;
    }

    /* --- Magazine Section: FORCE stack for magazine covers --- */
    .article-grid[style*="repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
        margin: 0 auto;
    }

    .article-grid[style*="repeat(2, 1fr)"] .article-card-image {
        height: 280px !important;
    }

    /* --- Filter Bar --- */
    .filter-bar {
        gap: 0.5rem;
        padding: 0 4%;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    /* --- Product Grid --- */
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 0 4%;
    }

    .img-box {
        height: 160px;
    }

    .product-card h3 {
        font-size: 0.95rem;
    }

    /* --- Subscribe Form --- */
    .subscribe-section {
        padding: var(--spacing-section) 4%;
    }

    .subscribe-form {
        max-width: 100%;
        flex-direction: column;
        border-radius: 8px;
    }

    .subscribe-form input[type="email"] {
        border-bottom: 1px solid var(--color-glass-border);
        border-radius: 8px 8px 0 0;
        text-align: center;
    }

    .subscribe-form button {
        border-radius: 0 0 8px 8px;
        padding: 0.9rem;
    }

    /* --- Footer --- */
    footer {
        padding: 2.5rem 4%;
    }

    .footer-logo img {
        height: 100px;
    }

    .footer-links {
        gap: 1.2rem;
    }

    .footer-links a {
        font-size: 0.75rem;
        letter-spacing: 1.5px;
    }

    .footer-copyright {
        font-size: 0.65rem;
    }

    /* --- Article Pages --- */
    .article-container {
        margin: -80px auto 0;
        padding: 2rem 1.5rem 3rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .article-title {
        font-size: 2rem;
    }

    .article-sidebar {
        padding: 2rem;
        margin: 2.5rem 0;
    }

    /* --- Flipbook Modal --- */
    .flipbook-modal-content {
        width: 96%;
        height: 96%;
    }

    .flipbook-chevron {
        width: 36px;
        height: 56px;
        font-size: 1.8rem;
    }

    .flipbook-chevron.left {
        left: 0.5rem;
    }

    .flipbook-chevron.right {
        right: 0.5rem;
    }

    .flipbook-close {
        top: -30px;
        font-size: 2.2rem;
    }

    /* --- Parallax Hero (Article Pages) --- */
    .parallax-hero-wrapper {
        height: 45vh;
    }

    .parallax-hero-title {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    /* --- Hero Newsletter (mobile form fix) --- */
    .hero-newsletter {
        max-width: 100%;
    }

    .hero-newsletter-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .hero-newsletter-form input[type="email"] {
        border-bottom: 1px solid var(--color-glass-border);
        text-align: center;
        padding: 0.85rem;
    }

    .hero-newsletter-form button {
        border-radius: 0;
        padding: 0.85rem;
    }
}

/* =========== SMALL PHONE BREAKPOINT (≤480px) =========== */
@media (max-width: 480px) {

    :root {
        --spacing-section: 3rem;
        --spacing-section-lg: 3rem;
    }

    .logo img {
        height: 50px;
    }

    .hero-text {
        padding: 90px 4% 2rem;
    }

    .hero.split h1 {
        font-size: 1.6rem;
        line-height: 1.15;
    }

    .hero.split p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    .hero-image {
        height: 35vh;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header {
        padding: 0 4%;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    /* --- Article Grid: single column on small phones --- */
    .article-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        padding: 0 4%;
    }

    .article-card.featured {
        grid-column: span 1;
    }

    /* --- Magazine covers: single column on tiny phones --- */
    .article-grid[style*="repeat(2, 1fr)"] .article-card-image {
        height: 240px !important;
    }

    /* Article cards: tighter on small phones */
    .article-card-image {
        height: 180px;
    }

    .article-card-body {
        padding: 0.6rem;
    }

    .article-card-title {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .article-card-excerpt {
        font-size: 0.78rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        line-clamp: 3;
    }

    .article-card.featured .article-card-image {
        height: 200px;
    }

    .article-card.featured .article-card-title {
        font-size: 1.1rem;
    }

    /* --- Category sections: tighter spacing --- */
    #stories>.category-section,
    #stories .category-section {
        margin: 0 2% 1rem;
        padding: 1rem 0 1.25rem;
    }

    .category-header {
        padding: 0 0.75rem;
        margin-bottom: 0.75rem;
    }

    .category-label {
        font-size: 1rem;
    }

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

    /* --- Responsive table wrapper for any tables --- */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }

    /* --- Footer --- */
    .footer-logo img {
        height: 100px;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    /* --- Article pages --- */
    .article-container {
        padding: 1.5rem 1rem 2.5rem;
        margin-top: -60px;
    }

    .article-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .article-hero {
        height: 50vh;
    }

    .article-dropcap {
        font-size: 3.5rem;
        line-height: 3rem;
    }

    .article-pull-quote {
        font-size: 1.2rem;
        margin: 3rem 0;
        padding: 1.5rem 0;
    }

    .article-section-break {
        margin: 3rem 0;
    }

    /* --- Flipbook - even more compact --- */
    .flipbook-chevron {
        width: 30px;
        height: 44px;
        font-size: 1.4rem;
    }

    .flipbook-controls {
        font-size: 0.7rem;
    }

    /* --- Nuance Quote --- */
    .nuance-quote-container {
        padding: 2rem 1.5rem;
        margin: 3rem 4%;
    }

    .nuance-quote-text {
        font-size: 1.2rem;
    }

    .nuance-quote-container::before {
        font-size: 4rem;
    }
}

/* =========== MOBILE OVERLAY (for hamburger menu) =========== */
.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-overlay.active {
    display: block;
    opacity: 1;
}

/* =========== HAMBURGER ANIMATION =========== */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* =========================================================================
   AUTHOR BIO COMPONENT
   ========================================================================= */
.author-bio-container {
    max-width: 800px;
    margin: 6rem auto 2rem;
    padding: 3rem 2rem;
    background-color: var(--color-surface);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
    .author-bio-container {
        flex-direction: row;
        align-items: flex-start;
        padding: 4rem;
        gap: 3rem;
    }
}

.author-bio-image-wrapper {
    flex-shrink: 0;
}

.author-bio-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-gold);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.author-bio-content {
    flex-grow: 1;
    text-align: center;
}

@media (min-width: 768px) {
    .author-bio-content {
        text-align: left;
    }
}

.author-bio-name {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-surface-light) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.author-bio-role {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-gold);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.author-bio-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
}

/* ============================================================
   INSTAGRAM FEED
   ============================================================ */
.instagram-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 992px) {
    .instagram-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.ig-post {
    position: relative;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: var(--color-surface-2);
    border: 1px solid var(--color-glass-border);
    transition: var(--transition-spring);
}

.ig-post img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.ig-post:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-premium);
    border-color: var(--color-gold);
}

.ig-post:hover img {
    transform: scale(1.1);
}

.ig-overlay {
    position: absolute;
    inset: 0;
    background: rgba(18, 40, 29, 0.6);
    /* Deep green overlay */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
}

.ig-post:hover .ig-overlay {
    opacity: 1;
}

.ig-overlay svg {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
}

/* Skip Navigation */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.75rem 1.5rem;
    z-index: 10000;
    font-size: 0.875rem;
    text-decoration: none;
    border-radius: 0 0 4px 0;
}
.skip-nav:focus { top: 0; }

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════════
   CINEMATIC MODULES
   ═══════════════════════════════════════════ */

/* cin-reveal — fade in on scroll */
.cin-reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.cin-reveal--visible { opacity: 1; transform: translateY(0); }
.cin-reveal[data-delay="1"] { transition-delay: 0.15s; }
.cin-reveal[data-delay="2"] { transition-delay: 0.3s; }
.cin-reveal[data-delay="3"] { transition-delay: 0.45s; }
@media (prefers-reduced-motion: reduce) { .cin-reveal { opacity: 1; transform: none; transition: none; } }

/* cin-kinetic — hero headline wave */
.cin-kinetic { display: inline-block; }
.cin-kinetic span { display: inline-block; opacity: 0; transform: translateY(40px); }
.cin-kinetic--visible span { animation: cin-kinetic-wave 0.6s ease forwards; animation-delay: calc(var(--char-index, 0) * 0.03s); }
@keyframes cin-kinetic-wave { to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .cin-kinetic span { opacity: 1; transform: none; animation: none; } }