:root {
    --charcoal: #1a1a1a;
    --cream: #f5f0e8;
    --sage: #7d8c7a;
    --sage-light: #9aa897;
    --cream-dark: #d4cfc6;
    --charcoal-light: #2a2a2a;
    --warm-brown: #4a3f35;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Newsreader', Georgia, serif;
    background-color: var(--charcoal);
    color: var(--cream);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Staff Lines Background Pattern */
.staff-lines {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.03;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        var(--cream) 39px,
        var(--cream) 40px
    );
}

/* Typography */
h1, h2, h3 {
    font-weight: 200;
    letter-spacing: -0.02em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 300;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.75rem 3rem;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

nav .logo {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--cream);
    text-decoration: none;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

nav a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    text-decoration: none;
    position: relative;
    padding-bottom: 0.25rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--sage);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a.active::after {
    width: 100%;
}

.nav-transparent {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Sections */
section {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: 8rem 3rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    min-height: auto;
    padding: 0;
    position: relative;
    display: block;
}

.hero-image {
    position: relative;
    width: 100%;
    height: 60vh;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.hero-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.2) 0%,
        rgba(26, 26, 26, 0.4) 70%,
        rgba(26, 26, 26, 0.8) 100%
    );
}

.hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
    width: 100%;
    padding: 0 3rem 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
    animation-delay: 0.3s;
}

.hero h1 {
    font-size: clamp(3rem, 10vw, 7rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    font-weight: 200;
}

.hero h1 .first-name {
    display: block;
}

.hero h1 .last-name {
    display: block;
    font-style: italic;
    color: var(--cream-dark);
}

.hero-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cream-dark);
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.6s;
}

/* Page Header (for non-home pages) */
.page-header {
    min-height: 40vh;
    display: flex;
    align-items: flex-end;
    padding: 6rem 3rem 3rem;
    background: var(--charcoal);
}

.page-header h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 200;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.page-header .subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--sage-light);
    margin-top: 1rem;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid rgba(245, 240, 232, 0.1);
    padding-bottom: 1rem;
}

.section-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--sage);
    letter-spacing: 0.1em;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 200;
}

/* About Section */
.about {
    background: var(--cream);
    color: var(--charcoal);
    min-height: auto;
}

.about .section-header {
    border-bottom-color: rgba(26, 26, 26, 0.1);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
}

.about-text {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.7;
    text-align: center;
}

.about-text p {
    margin-bottom: 1.5rem;
}

.about-text .highlight {
    color: var(--sage);
    font-style: italic;
}

.about-sidebar {
    border-left: 1px solid rgba(26, 26, 26, 0.15);
    padding-left: 3rem;
}

.sidebar-block {
    margin-bottom: 3rem;
}

.sidebar-label {
    color: var(--sage);
    margin-bottom: 1rem;
}

.sidebar-content {
    font-size: 1rem;
    line-height: 1.8;
}

/* Performance Section */
.performance {
    padding-top: 4rem;
}

.performance-grid {
    display: grid;
    gap: 0;
}

.performance-item {
    display: grid;
    grid-template-columns: 120px 1fr auto;
    gap: 3rem;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.08);
    align-items: baseline;
    opacity: 0;
    transform: translateX(-20px);
}

.performance-item.visible {
    animation: slideIn 0.6s ease forwards;
}

.performance-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--sage);
    letter-spacing: 0.05em;
}

.performance-name {
    font-size: 1.5rem;
    font-weight: 200;
}

.performance-name span {
    display: block;
    font-size: 0.9rem;
    color: var(--cream-dark);
    margin-top: 0.25rem;
    font-style: italic;
}

.performance-role {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--cream-dark);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: right;
}

/* Media Section */
.media {
    background: var(--cream);
    color: var(--charcoal);
}

.media .section-header {
    border-bottom-color: rgba(26, 26, 26, 0.1);
}

.media-embed {
    max-width: 800px;
}

.media-embed iframe {
    border-radius: 4px;
}

/* Teaching Section */
.teaching {
    padding-top: 4rem;
}

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

.teaching-card {
    padding: 2.5rem;
    border: 1px solid rgba(245, 240, 232, 0.1);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.teaching-card.visible {
    animation: fadeUp 0.6s ease forwards;
}

.teaching-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 1px;
    background: var(--sage);
}

.teaching-category {
    color: var(--sage);
    margin-bottom: 1.5rem;
}

.teaching-title {
    font-size: 1.5rem;
    font-weight: 200;
    margin-bottom: 1rem;
}

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

.teaching-list li {
    font-size: 0.95rem;
    color: var(--cream-dark);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(245, 240, 232, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.teaching-list .date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--sage);
}

/* Education Section */
.education {
    background: var(--cream);
    color: var(--charcoal);
}

.education .section-header {
    border-bottom-color: rgba(26, 26, 26, 0.1);
}

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

.education-card {
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(26, 26, 26, 0.1);
}

.education-year {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--sage);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.education-degree {
    font-size: 1.75rem;
    font-weight: 200;
    margin-bottom: 0.5rem;
}

.education-school {
    font-style: italic;
    color: rgba(26, 26, 26, 0.6);
}

.education-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: rgba(26, 26, 26, 0.7);
}

/* Contact Section */
.contact {
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.contact-text h2 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 200;
    margin-bottom: 1.5rem;
}

.contact-text p {
    font-size: 1.1rem;
    color: var(--cream-dark);
    max-width: 400px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(245, 240, 232, 0.1);
    text-decoration: none;
    color: var(--cream);
    transition: all 0.3s ease;
}

.contact-link:hover {
    border-color: var(--sage);
    background: rgba(125, 140, 122, 0.05);
}

.contact-link-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--sage);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    width: 60px;
}

.contact-link-value {
    font-size: 1.1rem;
    font-weight: 200;
}

/* Footer */
footer {
    padding: 2rem 3rem;
    border-top: 1px solid rgba(245, 240, 232, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--cream-dark);
    letter-spacing: 0.05em;
}

footer a {
    color: var(--cream-dark);
    text-decoration: none;
}

footer a:hover {
    color: var(--sage);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll animations */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Performance Page (Cream Background) */
.cream-page {
    background-color: var(--cream);
    color: var(--charcoal);
}

.staff-lines-dark {
    opacity: 0.04;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 39px,
        var(--charcoal) 39px,
        var(--charcoal) 40px
    );
}

.nav-cream {
    background: rgba(245, 240, 232, 0.95);
}

.nav-cream a {
    color: var(--charcoal);
    text-shadow: none;
}

.nav-cream a::after {
    background: var(--sage);
}

.media-page {
    min-height: 100vh;
    padding: 5rem 3rem 4rem;
}

.media-page-header {
    margin-bottom: 1.5rem;
}

.media-page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 200;
    color: var(--charcoal);
}

.media-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.video-feature iframe,
.video-feature video,
.soundcloud-feature iframe {
    border-radius: 4px;
}

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

.photo-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 3px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    cursor: pointer;
}

.photo-gallery img:hover {
    transform: scale(1.02);
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 4px;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--cream);
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: var(--cream);
    cursor: pointer;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.lightbox-arrow:hover {
    opacity: 1;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem 6rem;
    max-width: 800px;
}

.credits-block {
    padding-bottom: 2rem;
}

.credits-label {
    color: var(--sage);
    margin-bottom: 1rem;
}

.credits-content {
    font-size: 1rem;
    line-height: 2;
    color: var(--charcoal);
}

.credits-note {
    font-style: italic;
    color: rgba(26, 26, 26, 0.6);
    font-size: 0.9rem;
}

.footer-cream {
    background: var(--cream);
    border-top-color: rgba(26, 26, 26, 0.1);
}

.footer-cream span,
.footer-cream a {
    color: rgba(26, 26, 26, 0.6);
}

.footer-cream a:hover {
    color: var(--sage);
}

/* Teaching Page (Cream Background) */
.teaching-page {
    min-height: auto;
    padding: 5rem 3rem 2rem;
}

.teaching-page-header {
    margin-bottom: 1.5rem;
}

.teaching-page-header h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 200;
    color: var(--charcoal);
}

.teaching-page .teaching-intro {
    margin-bottom: 2rem;
    max-width: 700px;
}

.teaching-page .teaching-intro p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(26, 26, 26, 0.7);
}

.teaching-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    margin-bottom: 0;
}

.teaching-hero-content {
    padding-top: 1rem;
}

.teaching-hero-content .teaching-page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 1.25rem;
}

.teaching-philosophy {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.teaching-intro {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(26, 26, 26, 0.65);
    margin-bottom: 2.5rem;
}

.teaching-lists {
    display: flex;
    gap: 3rem;
}

.teaching-list-group {
    flex: 1;
    padding-left: 1rem;
    border-left: 2px solid var(--sage);
}

.teaching-list-title {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sage);
    margin-bottom: 1rem;
    font-weight: 500;
}

.teaching-list-group .teaching-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.teaching-list-group .teaching-list li {
    font-size: 0.9rem;
    padding: 0.5rem 0;
    color: rgba(26, 26, 26, 0.75);
    border-bottom: none;
    position: relative;
    padding-left: 0.75rem;
}

.teaching-list-group .teaching-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: var(--sage);
    border-radius: 50%;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.teaching-list-group .teaching-list li:hover::before {
    opacity: 1;
}

.teaching-list-group .teaching-list li:hover {
    color: var(--charcoal);
}

.teaching-hero-image {
    position: relative;
}

.teaching-hero-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
    box-shadow:
        0 4px 20px rgba(26, 26, 26, 0.12),
        0 8px 40px rgba(26, 26, 26, 0.08);
}

.teaching-hero-image::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 60%;
    height: 60%;
    border: 1px solid var(--sage);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.4;
}

.teaching-page .teaching-grid {
    gap: 1.5rem;
}

.teaching-page .teaching-card {
    background: rgba(26, 26, 26, 0.02);
    border-color: rgba(26, 26, 26, 0.1);
    padding: 2rem;
}

.teaching-page .teaching-card::before {
    background: var(--sage);
}

.teaching-page .teaching-category {
    color: var(--sage);
}

.teaching-page .teaching-title {
    color: var(--charcoal);
    font-size: 1.25rem;
}

.teaching-page .teaching-list li {
    color: rgba(26, 26, 26, 0.7);
    border-bottom-color: rgba(26, 26, 26, 0.08);
}

.teaching-page .teaching-note {
    margin-top: 2rem;
    padding: 1.5rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    max-width: 450px;
    background: rgba(26, 26, 26, 0.02);
}

.teaching-page .teaching-note .mono {
    color: var(--sage);
    margin-bottom: 0.5rem;
}

.teaching-page .teaching-note p:last-child {
    color: rgba(26, 26, 26, 0.7);
    font-size: 0.95rem;
}

/* Education Section (Cream Page) */
.education-section {
    min-height: auto;
    padding: 2rem 3rem 1.5rem;
}

.education-section .education-grid {
    gap: 2rem 4rem;
}

.education-section .education-card {
    border-bottom-color: rgba(26, 26, 26, 0.1);
    padding-bottom: 1.5rem;
}

.education-section .education-degree {
    font-size: 1.4rem;
    color: var(--charcoal);
}

/* Contact Section (Cream Page) */
.contact-section {
    min-height: auto;
    padding: 1.5rem 3rem 3rem;
}

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

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border: 1px solid rgba(26, 26, 26, 0.1);
    text-decoration: none;
    color: var(--charcoal);
    transition: all 0.3s ease;
    background: rgba(26, 26, 26, 0.02);
}

a.contact-card:hover {
    border-color: var(--sage);
    background: rgba(125, 140, 122, 0.08);
}

.contact-card-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--sage);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-card-value {
    font-size: 1rem;
    font-weight: 200;
    color: var(--charcoal);
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    section {
        padding: 6rem 2rem;
    }

    nav {
        padding: 1rem 2rem;
    }

    .hero-content {
        padding: 0 2rem 2rem;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .page-header {
        padding: 5rem 2rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-sidebar {
        border-left: none;
        border-top: 1px solid rgba(26, 26, 26, 0.15);
        padding-left: 0;
        padding-top: 2rem;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .performance-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .performance-role {
        text-align: left;
    }

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

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

    .teaching-hero-image {
        order: -1;
    }

    .teaching-lists {
        flex-direction: column;
        gap: 2.5rem;
    }

    .teaching-list-group {
        padding-left: 1.25rem;
    }

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

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .media-page {
        padding: 8rem 2rem 4rem;
    }

    .teaching-page {
        padding: 5rem 2rem 3rem;
    }

    .education-section {
        padding: 2rem 2rem 1.5rem;
    }

    .contact-section {
        padding: 1.5rem 2rem 3rem;
    }

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

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery img {
        height: 180px;
    }
}

@media (max-width: 600px) {
    nav ul {
        display: none;
    }

    .section-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .about-sidebar {
        grid-template-columns: 1fr;
    }

    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .photo-gallery img {
        height: 150px;
    }
}
