/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #FFFbFb;
    --text: #1a1a1a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e5e5;
    --text-light: #6b7280;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
}

/* Landing Hero */
body.landing-hero {
    overflow-x: hidden;
}

body.landing-hero header,
body.landing-hero main,
body.landing-hero footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--site-fade-duration, 1.1s) ease;
}

body.landing-hero.site-visible header,
body.landing-hero.site-visible main,
body.landing-hero.site-visible footer {
    opacity: 1;
    pointer-events: auto;
}

.hero-stage {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    overflow: hidden;
    background: var(--background);
    opacity: 1;
    transition: opacity var(--site-fade-duration, 1.1s) ease;
}

body.landing-hero.site-visible .hero-stage {
    opacity: 0;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text);
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1000ms) ease;
}

.hero-text.is-final {
    font-size: clamp(3rem, 8vw, 6rem);
}

.hero-text.is-visible {
    opacity: 1;
}

/* Typography */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: var(--border);
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

/* Header - Editorial Style */
header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    height: 55px;
}

.header-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative;
}

.site-title {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}

.main-nav a {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
}

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

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7rem;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.25rem 0;
    min-width: 220px;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.3rem 0.7rem;
    font-size: 0.95rem;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Layout - Variant B: Editorial/Left-Aligned/Reading-First */
main {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-article {
    margin-bottom: 4rem;
}

.lead-article {
    margin-bottom: 4rem;
}

/* Article Elements */
.deck {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.lede {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* CTA Elements */
.cta-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.cta-link {
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Recent Work Section */
.recent-work {
    margin-top: 4rem;
}

.work-preview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.work-preview:last-child {
    border-bottom: none;
}

.work-preview h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.work-preview p {
    margin-bottom: 0.75rem;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    font-family: Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.submit-button {
    background-color: var(--accent);
    color: white;
    font-weight: 500;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    height: 55px;
    padding: 0;
    display: flex;
    align-items: center;
}

.footer-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding-top: 0.25rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lede {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #FFFbFb;
    --text: #1a1a1a;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --border: #e5e5e5;
    --text-light: #6b7280;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
}

body {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--background);
}

/* Landing Hero */
body.landing-hero {
    overflow-x: hidden;
}

body.landing-hero header,
body.landing-hero main,
body.landing-hero footer {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--site-fade-duration, 1.1s) ease;
}

body.landing-hero.site-visible header,
body.landing-hero.site-visible main,
body.landing-hero.site-visible footer {
    opacity: 1;
    pointer-events: auto;
}

.hero-stage {
    position: fixed;
    inset: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 1.5rem;
    overflow: hidden;
    background: var(--background);
    opacity: 1;
    transition: opacity var(--site-fade-duration, 1.1s) ease;
}

body.landing-hero.site-visible .hero-stage {
    opacity: 0;
    pointer-events: none;
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    font-weight: 400;
    color: var(--text);
    opacity: 0;
    transition: opacity var(--hero-fade-duration, 1000ms) ease;
}

.hero-text.is-final {
    font-size: clamp(3rem, 8vw, 6rem);
}

.hero-text.is-visible {
    opacity: 1;
}

/* Typography */
h1, h2, h3 {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.75rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

code {
    font-family: 'SF Mono', Monaco, 'Courier New', monospace;
    background: var(--border);
    padding: 0.2em 0.4em;
    font-size: 0.9em;
}

/* Header - Editorial Style */
header {
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    padding: 0.75rem 0;
    height: 55px;
}

.header-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    position: relative;
}

.site-title {
    font-family: Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text);
    text-decoration: none;
    line-height: 1;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
}

.main-nav a {
    color: var(--text);
    font-size: 1.1rem;
    line-height: 1;
}

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

/* Dropdown Navigation */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-toggle::after {
    content: " ▼";
    font-size: 0.7rem;
}

.dropdown-menu {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--background);
    border: 1px solid var(--border);
    padding: 0.25rem 0;
    min-width: 220px;
    z-index: 1000;
    flex-direction: column;
    gap: 0;
    margin-top: 0;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
}

.dropdown-menu a {
    display: block;
    width: 100%;
    padding: 0.3rem 0.7rem;
    font-size: 0.95rem;
    text-align: center;
}

.dropdown-menu a:hover {
    background: var(--border);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

/* Layout - Variant B: Editorial/Left-Aligned/Reading-First */
main {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
}

.main-article {
    margin-bottom: 4rem;
}

.lead-article {
    margin-bottom: 4rem;
}

/* Article Elements */
.deck {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    font-style: italic;
}

.lede {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
}

ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* CTA Elements */
.cta-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.cta-link {
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Recent Work Section */
.recent-work {
    margin-top: 4rem;
}

.work-preview {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.work-preview:last-child {
    border-bottom: none;
}

.work-preview h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.work-preview p {
    margin-bottom: 0.75rem;
}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    background-color: var(--background);
    font-family: Georgia, serif;
    font-size: 1rem;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-note {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.submit-button {
    background-color: var(--accent);
    color: white;
    font-weight: 500;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    margin-top: 4rem;
    height: 55px;
    padding: 0;
    display: flex;
    align-items: center;
}

.footer-content {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-content p {
    color: var(--text-light);
    font-size: 0.875rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        padding-top: 0.25rem;
    }
    
    .header-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
    
    .main-nav ul {
        gap: 1rem;
    }
    
    .dropdown-menu {
        left: 50%;
        transform: translateX(-50%);
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .lede {
        border-left: none;
        border-top: 1px solid var(--border);
        padding-left: 0;
        padding-top: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
}
