/* Reset & Variables */
:root {
    --bg-dark: #0a0a0a;
    --bg-darker: #050505;
    --bg-light: #f4f4f4;
    --text-light: #e0e0e0;
    --text-dark: #1a1a1a;
    --text-muted: #888888;
    --accent: #ffffff;
    
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Inter', sans-serif;
    
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.3s ease;
}

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

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

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: var(--font-body);
    font-weight: 300;
}

p {
    margin-bottom: var(--spacing-sm);
    font-weight: 300;
}

.lead-text {
    font-size: 1.25rem;
    color: var(--accent);
}

.section-label {
    display: block;
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    position: relative;
    padding-left: 3rem;
}

/* Specific fix for centered section labels */
.center-text .section-label {
    padding-left: 3rem;
    display: inline-block;
}

.center-text .section-label::before {
    left: 0;
    right: auto;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 2rem;
    height: 1px;
    background-color: var(--text-muted);
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-lg) 0;
}

.no-list {
    list-style: none;
}

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

.mt-medium { margin-top: var(--spacing-md); }
.mt-large { margin-top: var(--spacing-lg); }

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hero Section */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000; /* Fallback color */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-images/etype-bg.webp');
    background-size: cover;
    background-position: center;
    z-index: 0;
    filter: brightness(0.6); /* Slightly dark overlay effect */
}

/* Ensure background is dark if image fails */
/* #hero background-color is already set in the #hero rule */

.hero-content {
    text-align: center;
    z-index: 2;
    padding-top: 0;
}

.hero-statement {
    margin-bottom: var(--spacing-lg);
    color: #fff;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-intro {
    max-width: 600px;
    margin: 0 auto;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: var(--spacing-md);
    text-align: left;
}

.hero-intro h2 {
    font-family: var(--font-body);
    font-size: 1.5rem; /* Increased size */
    font-weight: 600; /* Bolder */
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--spacing-sm);
    color: #fff; /* Brighter color */
}

.hero-intro p {
    font-size: 1.15rem; /* Increased size for subheader text */
    color: var(--text-light);
}

.hero-intro .sub-intro {
    font-size: 1.25rem; /* Even larger for the main authority statement */
    color: #fff;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background-color: #fff;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Authority Section */
.dark-section {
    background-color: var(--bg-darker);
    padding: var(--spacing-xl) 0;
}

.text-block {
    max-width: 800px;
    margin: 0 auto;
}

.emphasis-text {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-top: var(--spacing-md);
    color: #fff;
    text-transform: none;
    letter-spacing: normal;
}

.no-list li {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Philosophy Section */
.light-section {
    background-color: var(--bg-light);
    color: var(--text-dark);
    padding: var(--spacing-xl) 0;
}

.split-layout {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

blockquote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* Expertise Preview */
.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.card {
    padding: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.3s ease;
}

.card:hover {
    background-color: rgba(255,255,255,0.03);
}

.transition-line {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-style: italic;
    opacity: 0.8;
}

/* Image Section (Story & Workshop) */
.image-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    color: #fff;
    overflow: hidden;
    /* Removed background-attachment: fixed */
}

/* The subtle BG layer */
.image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
    /* Using a mask to fade top/bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 25%, black 75%, transparent 100%);
    opacity: 0.6; /* Subtle effect */
    transition: opacity 0.5s ease;
}

/* Darker overlay on top if needed, or let the mask do the fade to background color */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6); /* Darker overlay as requested */
    z-index: 1;
    pointer-events: none;
}

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

/* Story Section Rebuild */
.story-grid {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    max-width: 800px; /* Constrain width for readability */
    margin: 0 auto;   /* Center the column */
}

.story-content {
    background: rgba(10, 10, 10, 0.9); /* Strong, readable backing */
    padding: var(--spacing-md);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.story-title .section-label {
    margin-bottom: var(--spacing-sm);
    padding-left: 0;
    color: var(--accent);
}

.story-title .section-label::before {
    display: none;
}

.story-title h2 {
    margin-bottom: var(--spacing-md);
}

.story-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.divider {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.principles-list {
    list-style: none;
    margin: 2rem 0;
    padding-left: 0;
}

.principles-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: #fff;
}

.principles-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--text-muted);
}

.highlight {
    font-size: 1.5rem;
    color: #fff;
    font-family: var(--font-heading);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    margin-top: 1rem;
}

.emphasis-small {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 2rem;
}

/* Pull Quote */
.pull-quote {
    background-color: #fcfcfc; /* Almost all the way white */
    color: #000; /* Black text */
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.pull-quote h2 {
    color: #000;
}

/* Workshop Adjustments - Clean Title Style */
#workshop {
    /* Ensure text is readable if image is subtle */
}

.emphasis-box {
    /* Just text now */
    padding: 0;
    margin-top: var(--spacing-md);
    font-size: 1.5rem;
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: normal;
    color: #fff;
    border: none;
}

#workshop .text-block.narrow {
    max-width: 600px;
    margin: 0 auto;
}

/* Contact Adjustments - Minimalist High-End */
#contact {
    /* Make sure background is clean */
}

#contact h2.huge-text {
    font-size: clamp(2rem, 5vw, 3rem); /* Much smaller, editorial */
    letter-spacing: -0.01em;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.contact-block {
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
    font-size: 1.1rem;
}

.no-nonsense {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--spacing-md);
}

.phone-number {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-family: var(--font-body); /* Switch to body font for clean numbers */
    font-weight: 300;
    color: var(--text-dark);
    text-decoration: none;
    margin-top: 0;
    border-bottom: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.phone-number:hover {
    opacity: 1;
    border-bottom: none;
}

/* What I Do - Refined Layout */
#what-i-do .service-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

#what-i-do .service-title h3 {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0;
}

#what-i-do .service-content {
    color: var(--text-light);
}

#what-i-do .service-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 65ch; /* Optimal reading width */
}

#what-i-do .service-content p:last-child {
    margin-bottom: 0;
}

/* Footer */
footer {
    background-color: var(--bg-darker);
    padding: var(--spacing-md) 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

.identity h4 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Animations */
.reveal-text, .reveal-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.reveal-text.active, .reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1.5s ease forwards;
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }

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

/* Tablet & Desktop Media Queries */
@media (min-width: 768px) {
    .split-layout {
        flex-direction: row;
    }
    .sticky-title {
        flex: 1;
        position: sticky;
        top: 2rem;
        height: fit-content;
    }
    .content-col {
        flex: 2;
    }
    
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .story-content {
        padding: var(--spacing-lg);
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    #what-i-do .service-row {
        grid-template-columns: 300px 1fr; /* Fixed width sidebar for titles */
        gap: var(--spacing-xl);
        align-items: start;
    }
    
    #what-i-do .service-title {
        position: sticky;
        top: 2rem; /* Nice sticky effect if content is long */
    }
}
