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

:root {
    --color-dark: #2a1f14;
    --color-dark-mid: #3b2e1e;
    --color-cream: #f4ede3;
    --color-warm: #e8ddd0;
    --color-tan: #d4c4a8;
    --color-sage: #8b9a7a;
    --color-terracotta: #c45d3e;
    --font-main: 'Commissioner', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    font-weight: 300;
    color: var(--color-dark);
    background-color: var(--color-cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    pointer-events: none;
}

.wordmark {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--color-dark);
    pointer-events: auto;
}

.scroll-indicator {
    width: 36px;
    height: 36px;
    pointer-events: auto;
}

.progress-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-arc {
    transition: stroke-dashoffset 0.1s ease;
}

/* Sections */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 2rem;
}

.section-inner {
    max-width: 720px;
    width: 100%;
    position: relative;
}

.section-number {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--color-tan);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-heading {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    letter-spacing: 0.02em;
    line-height: 1.15;
    color: var(--color-dark);
    margin-bottom: 1.5rem;
}

.section-text {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-dark-mid);
    max-width: 540px;
}

/* Hero Section */
.section-hero {
    background-color: var(--color-cream);
    flex-direction: column;
    align-items: flex-start;
    padding-left: 10vw;
    overflow: hidden;
}

.hero-circle {
    position: absolute;
    bottom: -128px;
    right: -128px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background-color: var(--color-sage);
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: clamp(3rem, 7vw, 5.5rem);
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: var(--color-dark);
    position: relative;
    z-index: 1;
}

.hero-title-accent {
    color: var(--color-dark-mid);
    font-weight: 500;
}

.hero-subtitle {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1.125rem;
    color: var(--color-dark-mid);
    margin-top: 2rem;
    position: relative;
    z-index: 1;
}

.scroll-cue {
    position: absolute;
    bottom: 3rem;
    left: 10vw;
}

.scroll-cue-line {
    display: block;
    width: 1px;
    height: 48px;
    background-color: var(--color-terracotta);
    animation: scrollPulse 2s ease-in-out infinite;
}

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

/* Philosophy Section */
.section-philosophy {
    background-color: var(--color-cream);
}

.horizontal-rule {
    width: 60px;
    height: 1px;
    background-color: var(--color-tan);
    margin-top: 2.5rem;
}

/* Process Section */
.section-process {
    background-color: var(--color-warm);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2.5rem;
    margin-top: 1rem;
}

.process-label {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.875rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-dark);
    display: block;
    margin-bottom: 0.75rem;
}

.process-desc {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-dark-mid);
}

/* Work Section */
.section-work {
    background-color: var(--color-cream);
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.work-card {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.work-card:hover {
    transform: translateY(-4px);
}

.work-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 2px;
    position: relative;
}

.work-card-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background-color: var(--color-tan);
    mix-blend-mode: multiply;
    opacity: 0.25;
    border-radius: 2px;
}

.work-card-title {
    display: block;
    margin-top: 0.75rem;
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    color: var(--color-dark);
}

/* Contact Section */
.section-contact {
    background-color: var(--color-dark);
    min-height: 80vh;
}

.section-contact .section-inner {
    text-align: center;
    position: relative;
}

.contact-circle {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 1px solid var(--color-sage);
    margin: 0 auto 2rem;
    opacity: 0.5;
}

.contact-heading {
    font-family: var(--font-main);
    font-weight: 600;
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--color-cream);
    margin-bottom: 1rem;
}

.contact-text {
    font-family: var(--font-main);
    font-weight: 300;
    font-size: 1.125rem;
    color: var(--color-tan);
    margin-bottom: 2rem;
}

.contact-link {
    font-family: var(--font-main);
    font-weight: 500;
    font-size: 1rem;
    color: var(--color-terracotta);
    text-decoration: none;
    letter-spacing: 0.02em;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-link:hover {
    border-bottom-color: var(--color-terracotta);
}

/* Reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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