:root {
    --ink: #1a1a1a;
    --paper: #f8f5ed;
    --accent: #fcb900;
    --accent-dark: #ff6900;
    --accent-gradient: linear-gradient(135deg, rgba(252, 185, 0, 1) 0%, rgba(255, 105, 0, 1) 100%);
    --muted: #8c8c8c;
    --highlight: #fff8e1;
}

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

body {
    font-family: 'Crimson Pro', serif;
    background: var(--paper);
    color: var(--ink);
    line-height: 1.4;
    overflow-x: hidden;
}

.grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.03;
    z-index: 1000;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='4' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 80px 40px 0px 40px;
    position: relative;
}

.masthead {
    margin-bottom: 50px;
    opacity: 0;
    animation: fadeSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    font-size: 4.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--ink);
    position: relative;
    display: inline-block;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--accent-gradient);
    animation: expandLine 1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}

@keyframes expandLine {
    to {
        width: 100%;
    }
}

.tagline {
    font-size: 1.5rem;
    font-weight: 300;
    color: #664022;
    max-width: 600px;
    margin-top: 10px;
}

.subtitle {
    margin-top: 25px;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--muted);
    max-width: 720px;
}

.hero-section {
    background-image: url('assets/hero-bg-2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 40px;
    margin: -80px -40px 50px -40px;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 245, 237, 0.2);
    z-index: 0;
}

.hero-section .masthead,
.hero-section .mission-block {
    position: relative;
    z-index: 1;
}

.mission-block {
    background: #664022;
    color: #fff2d0;
    padding: 20px;
    margin-top: -10px;
    border-left: 6px solid #b69644;
    font-size: 1.3rem;
    font-weight: 300;
    line-height: 1.4;
    opacity: 0;
    animation: fadeSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.section-marker {
    font-family: 'DM Mono', monospace;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #fff2d0;
    margin-bottom: 15px;
    font-weight: 500;
    background-color: #6f3305;
    padding: 15px 40px 15px 20px;
    border-left: 6px solid #b69644;
    position: relative;
    z-index: 1;
    display: inline-block;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);
}

.section-marker::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, transparent 0%, rgba(255, 242, 208, 0.1) 50%, rgba(255, 255, 255, 0.3) 100%);
    z-index: 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 50%, 100% 100%, 0 100%);
}

.section {
    margin: 50px 0;
    opacity: 0;
    animation: fadeSlideUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.section:nth-child(3) { animation-delay: 0.4s; }
.section:nth-child(4) { animation-delay: 0.5s; }
.section:nth-child(5) { animation-delay: 0.6s; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.section-intro {
    font-size: 1.2rem;
    color: var(--ink);
    line-height: 1.4;
    max-width: 850px;
}

.service {
    margin-bottom: 60px;
    padding-left: 40px;
    border-left: 2px solid transparent;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.service:hover {
    border-left-color: var(--accent);
    transform: translateX(10px);
}

.service-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--ink);
}

.service-title .icon {
    display: inline-block;
    margin-right: 15px;
    font-style: normal;
}

.service-desc {
    font-size: 1.15rem;
    color: var(--ink);
    line-height: 1.4;
}

.keyword {
    background: linear-gradient(120deg, var(--highlight) 0%, var(--highlight) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 85%;
    font-weight: 600;
    padding: 0 4px;
}

.projects-list {
    columns: 2;
    column-gap: 40px;
    margin-top: 40px;
}

.project {
    break-inside: avoid;
    margin-bottom: 30px;
    padding-left: 35px;
    position: relative;
    font-size: 1.05rem;
    line-height: 1.4;
}

.project::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1.3rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.member {
    padding: 35px;
    background: white;
    border: 1px solid #e8e4d9;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.member:hover {
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.member-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--ink);
}

.member-bio {
    font-size: 1rem;
    color: var(--ink);
    line-height: 1.4;
}

.bullet-list {
    list-style: none;
    margin-top: 10px;
    padding-left: 35px;
}

.bullet-list li {
    position: relative;
    padding-top: 4px;
    margin-bottom: 2px;
    font-size: 1.15rem;
    line-height: 1.4;
}

.bullet-list li::before {
    content: '•';
    position: absolute;
    left: -28px;
    font-size: 1.5rem;
    top: 2px;
    color: var(--accent);
    font-weight: 600;
}

.impact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: start;
    margin-top: 40px;
}

.impact-column .service-title {
    margin-top: 0;
}

.impact-image .placeholder-frame {
    margin: 0;
    max-width: none;
    height: 400px;
    border: none;
    background: var(--paper);
    color: var(--muted);
}

.impact-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.tech-pill {
    display: inline-block;
    padding: 10px 18px;
    margin: 8px 12px 8px 0;
    background: white;
    border: 1px solid #e8e4d9;
    border-radius: 999px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.tech-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.project-divider {
    width: 100%;
    height: 2px;
    background: linear-gradient(135deg, #371d04 0%, #b57f34 55%, #371d04 100%);
    margin: 40px 0;
    border: none;
  }
  

.closing {
    margin-top: 80px;
    padding: 70px;
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.closing::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(252, 185, 0, 0.151), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    to {
        left: 100%;
    }
}

.closing-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.closing-text {
    font-size: 1.3rem;
    font-weight: 300;
    opacity: 0.9;
}

.contact-section {
    margin: 80px -40px 0 -40px;
    padding: 70px 40px;
    height: 85vh;
    background-image: url('assets/closing-section.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff2d0;
    position: relative;
    overflow: hidden;
}

.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    margin-top: 50px;
    margin-left: 3rem;
    position: relative;
    z-index: 1;
}

.contact-text {
    margin-bottom: 40px;
}

.contact-main-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    color: #fff2d0;
    max-width: 800px;
    margin-bottom: 100px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #fff2d0;
}

.contact-icon {
    flex-shrink: 0;
    color: #fff2d0;
    width: 20px;
    height: 20px;
}

.contact-link {
    color: #fff2d0;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.contact-link-icon {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-link-icon:hover {
    opacity: 0.8;
}

.contact-address {
    color: #fff2d0;
    line-height: 1.5;
}

.placeholder-frame {
    margin: 35px auto 0;
    max-width: 420px;
    height: 240px;
    max-height: 300px;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.placeholder-label {
    display: inline-block;
}

@media print {
    body {
        background: white;
    }

    .grain {
        display: none;
    }

    .masthead,
    .mission-block,
    .section,
    .closing,
    .contact-section {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .service,
    .member,
    .project,
    .bullet-list li {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .section {
        page-break-after: auto;
    }

    .team-grid {
        page-break-before: always;
    }

    .closing,
    .contact-section {
        page-break-before: always;
    }

    * {
        animation: none !important;
        opacity: 1 !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 50px 25px;
    }

    .hero-section {
        padding: 40px 25px;
        margin: -50px -25px 50px -25px;
    }

    .logo {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .projects-list {
        columns: 1;
    }

    .impact-layout {
        grid-template-columns: 1fr;
    }

    .bullet-list {
        padding-left: 22px;
    }

    .bullet-list li {
        position: relative;
        padding-top: 4px;
        margin-bottom: 2px;
        font-size: 1.15rem;
        line-height: 1.4;
    }

    .bullet-list li::before {
        left: -20px;
    }

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

    .closing {
        padding: 55px 28px;
    }
    .placeholder-frame {
        max-height: 200px;
    }

    .contact-section {
        margin: 80px -25px 0 -25px;
        padding: 50px 25px;
    }

    .contact-main-text {
        font-size: 1.2rem;
    }

    .contact-item {
        font-size: 1rem;
    }
}

