/* 
   Ashbourne Privè - Main Styles
   Premium Light Theme
*/

:root {
    /* Colors */
    --bg-color: #FAFAFA;
    --card-bg: #FFFFFF;
    --text-primary: #1A1A1A;
    --text-secondary: #4A4A4A;
    --text-muted: #888888;
    --accent-gold: #D4AF37;
    --accent-sand: #E5DCC5;
    --border-light: #EAEAEA;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-spacing: 8rem 0;
    --container-width: 1200px;

    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography Helpers */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.25;
}

.italic-serif {
    font-style: italic;
    font-weight: 400;
}

.subtitle {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Layout */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section {
    padding: var(--section-spacing);
}

.text-center {
    text-align: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.mt-3 {
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: #fff;
    transform: translateY(-2px);
}

.btn-link {
    color: var(--text-primary);
    border-bottom: 1px solid var(--text-primary);
    padding: 0 0 4px 0;
}

.btn-link:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background-color: rgba(250, 250, 250, 0.95);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(10px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a:not(.btn) {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.nav-links a:not(.btn):hover {
    color: var(--text-primary);
}

.nav-links a.active {
    color: var(--text-primary);
    font-weight: 500;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 1px;
    background-color: var(--text-primary);
    transition: var(--transition-smooth);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Initial zoom for parallax */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(250, 250, 250, 0.95) 0%, rgba(250, 250, 250, 0.4) 60%, rgba(250, 250, 250, 0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin-left: 5%;
    /* Slight offset */
}

.hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
}

.scroll-down {
    position: absolute;
    bottom: 3rem;
    right: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transform: rotate(90deg);
    transform-origin: right bottom;
}

.scroll-down span {
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.scroll-down .line {
    width: 50px;
    height: 1px;
    background-color: var(--text-primary);
}

/* Services */
.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
}

.card {
    background: var(--card-bg);
    padding: 2.5rem;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
}

.card:hover {
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transform: translateY(-5px);
}

.icon-box {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 300px;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Specific Sizes */
.portfolio-item.tall {
    grid-row: span 2;
    height: 100%;
}

.portfolio-item.wide {
    grid-column: span 2;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    color: #fff;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-info {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-info h4 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
}

.portfolio-info span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.8;
}

/* Process Section */
.process-bg {
    background-color: var(--text-primary);
    /* Dark BG for contrast */
    color: #fff;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.process-bg .subtitle {
    color: var(--accent-gold);
}

.process-bg h2 {
    color: #fff;
    margin-bottom: 3rem;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.step {
    display: flex;
    gap: 1.5rem;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--accent-gold);
    opacity: 0.6;
}

.step-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.step-details p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

.process-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.visual-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    width: 100%;
    max-width: 350px;
    border-radius: 4px;
}

.visual-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
}

.visual-body .mono {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 2px;
    background-color: rgba(255, 255, 255, 0.1);
    position: relative;
}

.fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 60%;
    background-color: var(--accent-gold);
}

/* Footer */
footer {
    padding: 4rem 0 2rem 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-light);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 300px;
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-group h5 {
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.link-group a {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.link-group a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
}

.footer-legal {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.footer-legal a:hover {
    color: var(--text-primary);
}

.footer-legal .divider {
    opacity: 0.3;
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 2000;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-primary);
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
}



/* --- Services Page Specifics --- */

/* Service Rows */
.service-row {
    display: flex;
    align-items: center;
    gap: 5rem;
    margin-bottom: 8rem;
}

.service-row.reverse {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
}

.service-img {
    flex: 1;
    height: 600px;
    overflow: hidden;
    border-radius: 4px;
    /* Slight softening */
}

.service-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.service-row:hover .service-img img {
    transform: scale(1.05);
}

.service-text h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.feature-list {
    margin-top: 2rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
}

/* Tier Cards */
.tier-card {
    display: flex;
    flex-direction: column;
    padding: 3rem 2rem;
    position: relative;
    border: 1px solid var(--border-light);
}

.tier-card.highlight {
    border-color: var(--text-primary);
    background-color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transform: translateY(-10px);
}

.tier-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 1.5rem;
}

.tier-header h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tier-header .price {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-gold);
    font-weight: 600;
}

.tier-desc {
    margin-bottom: 2rem;
    min-height: 50px;
}

.tier-features {
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.tier-features li {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.8rem;
}

.full-width {
    width: 100%;
    text-align: center;
}

/* --- Collections Page Specifics --- */
.collection-header {
    padding-top: 140px;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.collection-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.filter-bar a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
}

.filter-bar a:hover,
.filter-bar a.filter-active {
    color: var(--text-primary);
}

.filter-bar a.filter-active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
}

/* Masonry Grid */
.masonry-grid {
    column-count: 3;
    column-gap: 2rem;
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #e0e0e0;
    min-height: 360px;
    /* Placeholder height */
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.masonry-item img,
.masonry-item video {
    width: 100%;
    display: block;
    transition: transform 0.6s ease;
}

.masonry-item video {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-item:hover video {
    opacity: 1;
    transform: scale(1.05);
}

.hover-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    opacity: 0;
    transition: var(--transition-smooth);
    pointer-events: none;
}

.masonry-item:hover .hover-info {
    opacity: 1;
}

.hover-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.hover-info span {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transform: translateY(20px);
    transition: transform 0.4s ease 0.1s;
}

.masonry-item:hover .hover-info h4,
.masonry-item:hover .hover-info span {
    transform: translateY(0);
}

.pt-0 {
    padding-top: 0;
}

/* Fix About Page Overlap */
.hero.small-hero {
    min-height: 60vh;
    padding-top: 100px;
    /* Add padding to prevent nav overlap */
}


/* --- Contact Page (Premium Split) --- */
/* (Rest of the previous CSS remains, I'm just ensuring this block is appended correctly) */
.contact-page-body {
    overflow-x: hidden;
}

/* ... (previous split screen styles) ... */


.split-screen-container {
    display: flex;
    min-height: 100vh;
}

.split-visual {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 2rem;
}

.split-visual .cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay-darken {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.visual-text {
    position: relative;
    z-index: 2;
}

.heading-lg {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.split-form {
    flex: 1;
    background-color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 80px;
    /* Nav spacing */
}

.form-wrapper {
    width: 100%;
    max-width: 500px;
}

.form-wrapper h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.premium-form .form-group {
    margin-bottom: 1.5rem;
}

.premium-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.premium-form input,
.premium-form select,
.premium-form textarea {
    width: 100%;
    padding: 0.8rem 0;
    border: none;
    border-bottom: 1px solid var(--border-light);
    background: transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border-radius: 0;
    /* Remove default styling */
}

.premium-form input:focus,
.premium-form select:focus,
.premium-form textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

/* Custom Select styling hack for better look */
.select-style {
    position: relative;
}

.premium-form button {
    margin-top: 1rem;
}

.form-status {
    margin-top: 1rem;
    font-size: 0.9rem;
    min-height: 1.2em;
}

/* Success Message State */
.success-message {
    text-align: center;
    padding: 2rem;
    border: 1px solid var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
}

/* --- About Page Specifics --- */
.small-hero {
    height: 60vh;
}

.small-container {
    max-width: 800px;
    margin: 0 auto;
}

.divider-line {
    width: 100%;
    height: 1px;
    background-color: var(--border-light);
    margin: 3rem 0;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.agent-card {
    border: 1px solid var(--border-light);
    padding: 1rem;
    background: #fff;
}

.agent-img {
    height: 450px;
    width: 100%;
    margin-bottom: 1rem;
    overflow: hidden;
}

.agent-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: var(--transition-smooth);
}

.agent-card:hover .agent-img img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.agent-info h4 {
    font-size: 1.1rem;
    font-family: var(--font-heading);
    margin-bottom: 0.2rem;
}

.agent-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Philosophy Section */
.philosophy-item {
    padding: 2rem;
    border-left: 1px solid var(--accent-gold);
}

.philosophy-item h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.philosophy-item p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* --- Collections Page Specifics --- */
.collection-header {
    padding-top: 140px;
    padding-bottom: 4rem;
    background-color: var(--bg-color);
}

.collection-header h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    cursor: pointer;
    /* Ensure pointer */
}

.filter-bar a {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
    transition: color 0.3s ease;
}

.filter-bar a:hover,
.filter-bar a.active {
    color: var(--text-primary);
}

.filter-bar a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
}

/* Thematic World Portals */
.portals-grid {
    column-count: 2;
    /* Using 2 columns for higher impact on the archives page */
    column-gap: 2rem;
    margin-top: 3rem;
}

.portal-item {
    break-inside: avoid;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    min-height: 360px;
    /* Placeholder visibility */
    cursor: pointer;
    background-color: #e0e0e0;
    /* Slightly darker placeholder */
    background: linear-gradient(110deg, #ececec 8%, #f5f5f5 18%, #ececec 33%);
    /* Shimmer base */
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
    transition: var(--transition-smooth);
}

@keyframes shimmer {
    to {
        background-position-x: -200%;
    }
}

/* Asymmetric Span Logic */
/* Remove span-based grid logic as we are now in masonry mode */
.portal-item.span-12,
.portal-item.span-8,
.portal-item.span-4,
.portal-item.span-6,
.portal-item.span-3,
.portal-item.tall {
    grid-column: auto;
    grid-row: auto;
    min-height: auto;
    height: auto;
}

/* Centralized Hero Variant override for masonry */
.portal-item.span-12.hero-style {
    margin-top: 0;
}

.portal-item.span-12.hero-style .portal-content {
    text-align: center;
    padding-bottom: 5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

@media (max-width: 768px) {
    .portals-grid {
        column-count: 1;
    }

    .portal-item {
        height: auto !important;
        min-height: auto !important;
    }
}

.portal-visual {
    position: relative;
    /* Relative to allow image to set natural height */
    width: 100%;
    min-height: 360px;
}

.portal-visual img,
.portal-visual video {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    /* Back to cover for a gap-less professional look now that height is auto */
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-visual video {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease, transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-item:hover .portal-visual img {
    transform: scale(1.05);
}

.portal-item:hover .portal-visual video {
    opacity: 1;
    transform: scale(1.05);
}

.portal-content {
    position: absolute;
    bottom: -20px;
    /* Extend below the edge */
    left: 0;
    width: 100%;
    padding: 3rem;
    padding-bottom: calc(3rem + 20px);
    /* Offset the negative bottom */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    color: #fff;
    z-index: 2;
    transition: transform 0.6s var(--transition-smooth);
}

/* Restore lift effect with gap protection */
.portal-item:hover .portal-content {
    transform: translateY(-10px);
}

.portal-content h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-heading);
}

.portal-item.span-4 h2,
.portal-item.span-3 h2 {
    font-size: 1.5rem;
}

.portal-content span {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .portals-container {
        grid-template-columns: 1fr;
    }

    .portal-item,
    .portal-item.full-width {
        height: 400px;
        grid-column: span 1;
    }

    .portal-content {
        padding: 2rem;
    }

    .portal-content h2 {
        font-size: 1.8rem;
    }
}

.pt-0 {
    padding-top: 0;
}

/* Fix About Page Overlap */
.hero.small-hero {
    min-height: 68vh;
    padding-top: 100px;
    /* Add padding to prevent nav overlap */
}





/* Custom Themed Menu Icon */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 1px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

/* Themed "Artistic" toggle state */
.menu-toggle span:nth-child(2) {
    width: 70%;
    align-self: flex-end;
    /* Staggered look */
}

/* Mobile Menu Overlay - Slide-in from Right */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: auto;
    /* Override rogue left:0 */
    right: -100%;
    /* Hidden off-screen */
    width: 300px;
    /* Fixed width sidebar */
    max-width: 85%;
    height: 100vh;
    background: var(--bg-color);
    /* Themed Background */
    z-index: 2000;
    display: flex;
    /* Flex is persistent, we toggle 'right' */
    flex-direction: column;
    padding: 3rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Premium Ease */
    border-left: 1px solid var(--border-light);
}

.mobile-menu-overlay.active {
    right: 0;
    /* Slide in */
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-menu:hover {
    opacity: 1;
}

.mobile-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.mobile-links a:hover {
    color: var(--accent-gold);
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}



/* Mobile Menu Overlay - Slide-in from Right */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: auto;
    /* Override rogue left:0 */
    right: -100%;
    /* Hidden off-screen */
    width: 300px;
    /* Fixed width sidebar */
    max-width: 85%;
    height: 100vh;
    background: var(--bg-color);
    /* Themed Background */
    z-index: 2000;
    display: flex;
    /* Flex is persistent, we toggle 'right' */
    flex-direction: column;
    padding: 3rem 2rem;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2);
    transition: right 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    /* Premium Ease */
    border-left: 1px solid var(--border-light);
}

.mobile-menu-overlay.active {
    right: 0;
    /* Slide in */
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--text-primary);
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.close-menu:hover {
    opacity: 1;
}

.mobile-links {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-links a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.mobile-links a:hover {
    color: var(--accent-gold);
}

/* Menu Backdrop */
.menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    backdrop-filter: blur(2px);
}

.menu-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: none;
    }

    .section {
        padding: 1rem 0;
    }
}

/* Responsive Media Queries */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr 1fr;
    }

    .portfolio-item.tall {
        grid-row: span 1;
    }

    .portfolio-item.wide {
        grid-column: span 2;
    }

    .split-layout {
        flex-direction: column;
        gap: 3rem;
    }

    .process-visual {
        width: 100%;
    }

    /* Service Page Mobile */
    .service-row.reverse {
        flex-direction: column-reverse;
    }

    /* Contact Mobile */
    .split-screen-container {
        flex-direction: column;
    }

    .split-visual {
        min-height: 52vh;
        padding-top: 80px;
    }

    .heading-lg {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    .hero-content {
        margin-left: 0;
        text-align: center;
        margin: 0 auto;
        padding: 0 1rem;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin: 0 auto 2.5rem auto;
    }

    .hero-actions {
        display: none;
    }

    .scroll-down {
        display: none;
    }

    .overlay {
        background: rgba(250, 250, 250, 0.85);
        /* Darker overlay on mobile for readability */
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item.wide {
        grid-column: span 1;
    }

    .footer-content {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }

    .service-row {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .service-row .feature-list {
        display: inline-block;
        text-align: left;
    }

    /* About Mobile */
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .small-hero {
        height: 50vh;
    }
}

/* Responsive Updates for Collections */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }

    .collection-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }
}

/* Mobile Hero Fix: Prevent Nav Overlap */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
        /* Push hero content down */
    }

    .hero-content {
        margin-top: 2rem;
        /* Additional spacing */
    }

    .hero.small-hero {
        padding-top: 120px;
        /* More space for small hero */
    }
}

/* Responsive Updates for Collections */
@media (max-width: 900px) {
    .masonry-grid {
        column-count: 2;
    }

    .collection-header h1 {
        font-size: 3rem;
    }

    /* Responsive Philosophy Section */
    .grid-2 {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .philosophy-item {
        border-left: none;
        border-bottom: 1px solid var(--accent-gold);
        padding: 1.5rem 0;
        text-align: center;
    }

    .philosophy-item:last-child {
        border-bottom: none;
    }

    /* Services Mobile Typography */
    .heading-lg {
        font-size: 2.5rem;
        /* Resize for mobile */
        word-break: break-word;
        /* Prevent overflow */
    }
}

@media (max-width: 600px) {
    .masonry-grid {
        column-count: 1;
    }

    /* Collections Mobile Filter */
    .filter-bar {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 1rem;
        -webkit-overflow-scrolling: touch;
        gap: 1.5rem;
    }

    .filter-bar::-webkit-scrollbar {
        height: 2px;
    }

    .filter-bar::-webkit-scrollbar-thumb {
        background: var(--accent-gold);
    }

    /* Mobile Nav Tweaks */
    .mobile-links a {
        font-size: 1.3rem;
    }

    /* Fix Tier Card highlight overflow */
    .tier-card.highlight {
        transform: none;
        box-shadow: none;
        border: 1px solid var(--accent-gold);
        margin: 0 1rem 1rem 1rem;
    }
}

/* --- Premium Mail Choice Modal --- */
.mail-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-color);
    border: 1px solid var(--accent-gold);
    padding: 3rem 2.5rem;
    z-index: 3000;
    width: 90%;
    max-width: 400px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.mail-modal.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.mail-modal h4 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.mail-modal p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.mail-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mail-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 1rem;
    border: 1px solid var(--border-light);
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.mail-btn:hover {
    border-color: var(--accent-gold);
    background-color: rgba(212, 175, 55, 0.05);
    color: var(--accent-gold);
}

.mail-btn svg {
    width: 18px;
    height: 18px;
}

.close-mail-modal {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s;
}

.close-mail-modal:hover {
    color: var(--text-primary);
}

/* Backdrop for Mail Modal */
.mail-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mail-backdrop.active {
    opacity: 1;
    pointer-events: all;
}

/* Luxury Custom Cursor */
.custom-cursor {
    width: 6px;
    height: 6px;
    background: var(--accent-gold) !important;
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    transform: translate3d(-50%, -50%, 0);
    transition: transform 0.1s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.custom-cursor.active {
    width: 12px;
    height: 12px;
    background: white !important;
}

.cursor-follower.active {
    width: 60px;
    height: 60px;
    border-color: var(--accent-gold);
    background: rgba(212, 175, 55, 0.1);
}

@media (min-width: 1025px) {
    body {
        cursor: none;
    }

    a,
    button,
    .portal-item,
    .masonry-item {
        cursor: none;
    }
}

/* Scroll Progress Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.05);
    z-index: 3001;
}

.scroll-progress-bar {
    height: 100%;
    background: linear-gradient(to right, var(--accent-gold), #fff);
    width: 0%;
}

/* Enhancements */
.portal-item {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.6s ease;
}

.portal-item:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

/* Breadcrumb Navigation */
.breadcrumb-nav {
    padding: 120px 0 0 0;
    background-color: var(--bg-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    color: var(--text-muted);
    font-size: 1rem;
}

.breadcrumb-list a {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.breadcrumb-list a:hover {
    color: var(--accent-gold);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* When breadcrumb-nav is present, reduce collection-header padding-top */
.breadcrumb-nav+.collection-header {
    padding-top: 2rem;
}