/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-bg: #faf9f7;
    --color-bg-alt: #f0eeea;
    --color-text: #1a1a1a;
    --color-text-muted: #5a5a5a;
    --color-primary: #1e3a4c;
    --color-primary-light: #2a5268;
    --color-accent: #8b7355;
    --color-accent-light: #a89070;
    --color-white: #ffffff;
    --color-border: #e0ddd6;
    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Source Sans 3', system-ui, sans-serif;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
    --radius: 12px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
    overflow-x: hidden;
}

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

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

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

.container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: 600;
    line-height: 1.25;
}

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

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
}

h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 249, 247, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
}

.navbar.scrolled {
    border-bottom-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-muted);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.nav-menu a:hover {
    color: var(--color-primary);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, #f5f3ef 0%, #e8e4dc 100%);
    padding-top: 72px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(139, 115, 85, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(30, 58, 76, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 3rem 1.5rem;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.75rem;
}

.hero-text h1 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.hero-quote {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    font-style: italic;
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
    max-width: 420px;
    line-height: 1.6;
}

.hero-lead {
    font-size: 0.98rem;
    color: var(--color-text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 480px;
}

.hero-quote span {
    font-size: 0.9rem;
    font-style: normal;
    opacity: 0.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 50px;
    transition: all var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.hero-image {
    display: flex;
    justify-content: center;
}

.portrait {
    width: 100%;
    max-width: 380px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    object-fit: cover;
    aspect-ratio: 4/5;
}

/* ===== Sections ===== */
.section {
    padding: 6rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    font-size: 1.05rem;
}

/* ===== Bio ===== */
.bio-section {
    background: var(--color-white);
}

.bio-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
    align-items: start;
}

.bio-image {
    position: relative;
}

.bio-image img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    width: 100%;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.bio-image-caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(30, 58, 76, 0.85);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
}

.bio-content p {
    margin-bottom: 1.25rem;
    color: var(--color-text-muted);
}

.bio-content .lead {
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.bio-highlights {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-border);
}

.highlight {
    text-align: center;
}

.highlight-number {
    display: block;
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-primary);
}

.highlight-text {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== Curriculum ===== */
.curriculum-section {
    background: var(--color-bg-alt);
}

.curriculum-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
}

.curr-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.curr-card.full-width {
    grid-column: 1 / -1;
}

.curr-card h3 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 0.75rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.timeline {
    list-style: none;
}

.timeline li {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--color-border);
}

.timeline li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.timeline .year {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-accent);
    white-space: nowrap;
}

.timeline p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

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

.list-styled li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.85rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.55;
}

.list-styled li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
}

.publications li {
    margin-bottom: 1rem;
}

.mt-1 {
    margin-top: 1.25rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* ===== Gallery ===== */
.gallery-section {
    background: var(--color-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--color-bg-alt);
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    padding: 1.25rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-size: 0.95rem;
    font-weight: 500;
}

.gallery-item.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--color-border);
    background: var(--color-bg);
}

.placeholder-content {
    text-align: center;
    color: var(--color-text-muted);
}

.placeholder-icon {
    display: block;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    opacity: 0.4;
}

.placeholder-content p {
    font-size: 0.9rem;
    line-height: 1.4;
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.gallery-note a {
    font-weight: 500;
}

/* ===== Studio ===== */
.studio-section {
    background: var(--color-bg-alt);
}

.studio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.studio-card {
    background: var(--color-white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: transform var(--transition), box-shadow var(--transition);
}

.studio-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.studio-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.studio-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.studio-card .address {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.studio-card .phone a {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--color-primary);
}

.studio-card .note {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-top: 0.75rem;
    font-weight: 500;
}

.studio-link {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition), color var(--transition);
}

.studio-link:hover {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.highlight-card {
    text-align: left;
}

.highlight-card ul {
    list-style: none;
    margin-top: 0.5rem;
}

.highlight-card li {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.highlight-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    font-weight: 600;
}

/* ===== Contact ===== */
.contact-section {
    background: var(--color-white);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 3rem;
    align-items: start;
}

.contact-info h3 {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-list {
    list-style: none;
    margin-bottom: 2rem;
}

.contact-list li {
    margin-bottom: 1.25rem;
}

.contact-list strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.25rem;
}

.contact-list a {
    font-size: 1.1rem;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.social-btn {
    display: inline-block;
    padding: 0.6rem 1.25rem;
    border: 1.5px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-primary);
    transition: all var(--transition);
}

.social-btn:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: white;
}

.contact-map iframe {
    box-shadow: var(--shadow-md);
}

.map-note {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ===== Footer ===== */
.footer {
    background: var(--color-primary);
    color: rgba(255,255,255,0.85);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.footer-brand strong {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    color: white;
    display: block;
    margin-bottom: 0.25rem;
}

.footer-brand p {
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
}

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

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
    margin-bottom: 0.35rem;
}

.disclaimer {
    font-size: 0.8rem !important;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem 1.5rem 3rem;
    }

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

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .portrait {
        max-width: 280px;
    }

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

    .bio-image img {
        max-height: 400px;
        margin: 0 auto;
    }

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

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

    .gallery-item.large {
        grid-column: span 2;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

@media (max-width: 640px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--color-bg);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
        transform: translateY(-120%);
        opacity: 0;
        transition: all var(--transition);
        pointer-events: none;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-menu li {
        border-bottom: 1px solid var(--color-border);
    }

    .nav-menu a {
        display: block;
        padding: 0.9rem 0;
    }

    .bio-highlights {
        flex-direction: column;
        gap: 1.25rem;
    }

    .timeline li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

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

    .gallery-item.large {
        grid-column: span 1;
    }

    .section {
        padding: 4rem 0;
    }
}
