/* ===== RESET & BASE ===== */
@import url('https://rsms.me/inter/inter.css');

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --white: #ffffff;
    --off-white: #fdfefa;
    --light-bg: #f5f5f5;
    --border: #dddddd;
    --text-muted: #888888;
    --text-medium: #666666;
    --text-dark: #222222;
    --text-black: #111111;
    --text-body: #333333;
    --accent: #485b54;
    --highlight: #ffeba1;
    --overlay: rgba(18, 18, 18, 0.6);

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1200px;
    --section-padding: 120px 50px;
    --section-padding-mobile: 80px 25px;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--off-white);
    color: var(--text-black);
    line-height: 1.65;
    overflow-x: hidden;
    font-feature-settings: "ss01" on, "ss07" on, "ss08" on, "cv10" on, "cv13" on;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6, p, figure {
    margin: 0;
}

/* ===== TYPOGRAPHY ===== */
.label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.5;
}

.heading-xl {
    font-size: clamp(3rem, 8vw, 6.5rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 1.05;
    color: var(--text-dark);
}

.heading-lg {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.3;
    color: var(--text-dark);
}

.heading-md {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.body-lg {
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-body);
}

.body-md {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-body);
}

.body-sm {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-medium);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.navbar.hidden {
    transform: translateY(-100%);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 50px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 32px;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-center {
    flex-shrink: 0;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.04em;
    color: var(--text-black);
    transition: opacity 0.2s;
}

.nav-logo:hover {
    opacity: 0.7;
}

.nav-link {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-muted);
    position: relative;
    transition: color 0.2s;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-black);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-black);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-dark);
    transition: all 0.3s ease;
    border-radius: 1px;
}

.hamburger.active span:first-child {
    transform: rotate(45deg) translate(3px, 4px);
}

.hamburger.active span:last-child {
    transform: rotate(-45deg) translate(3px, -4px);
}

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--light-bg);
    z-index: 999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu a {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    padding: 12px 24px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu a:hover {
    color: var(--text-muted);
}

.mobile-menu .mobile-num {
    font-size: 0.625rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.mobile-menu .divider-line {
    width: 200px;
    height: 1px;
    background-color: var(--border);
}

/* ===== HERO SECTION ===== */
.hero {
    padding: 120px 50px 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.hero-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-name {
    font-size: clamp(3.5rem, 9vw, 7rem);
    font-weight: 300;
    letter-spacing: -0.04em;
    line-height: 0.95;
    color: var(--text-dark);
}

.hero-tagline {
    max-width: 420px;
    color: var(--text-medium);
    line-height: 1.7;
    font-size: 1.0625rem;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.hero-meta-item {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #22c55e;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-meta-divider {
    color: var(--border);
    font-size: 1rem;
}

.hero-photo-side {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-photo-frame {
    position: relative;
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    border-radius: 4px;
}

.hero-photo-frame img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.hero-image-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--light-bg);
    transform: translateX(0);
    animation: imageReveal 1.2s ease-out 0.3s forwards;
}

@keyframes imageReveal {
    to { transform: translateX(100%); }
}

.hero-heading-wrap {
    text-align: center;
}

.hero-side-text {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.hero-side-text .label {
    max-width: 80px;
}

.hero-side-text .label-right {
    text-align: right;
}

.hero-image-wrap {
    margin-top: 50px;
    position: relative;
    width: 100%;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

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

/* ===== SECTIONS COMMON ===== */
.section {
    padding: var(--section-padding);
}

.section-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.section-split {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 60px;
}

.section-label {
    position: sticky;
    top: 120px;
    align-self: start;
}

.section-divider {
    width: 100%;
    height: 1px;
    background-color: var(--border);
    margin: 40px 0;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    line-height: 1.1;
}

.stat-label {
    margin-top: 8px;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.about-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    background-color: var(--text-black);
    color: var(--white);
    border-radius: 500px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.about-cta:hover {
    background-color: var(--text-body);
    transform: translateY(-1px);
}

/* ===== IMAGE STRIP ===== */
.image-strip {
    padding: 0 50px;
    overflow: hidden;
}

.image-strip-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.image-strip-item {
    aspect-ratio: 4/3;
    overflow: hidden;
    position: relative;
}

.image-strip-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.image-strip-item:hover img {
    transform: scale(1.05);
}

.image-strip-caption {
    text-align: center;
    margin-top: 20px;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.project-card {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.project-image-wrap {
    aspect-ratio: 4/3;
    overflow: hidden;
    background-color: var(--light-bg);
    position: relative;
}

.project-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: grayscale(0);
}

.project-card:hover .project-image-wrap img {
    transform: scale(1.03);
}

.project-info {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--text-dark);
}

.project-year {
    font-size: 0.8125rem;
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ===== SERVICES/SKILLS SECTION ===== */
.services-header {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-bottom: 80px;
}

.services-intro {
    max-width: 700px;
}

.service-cards {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service-card {
    border-top: 1px solid var(--border);
    padding: 40px 0;
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 40px;
    align-items: start;
    cursor: pointer;
    transition: background-color 0.3s;
}

.service-card:last-child {
    border-bottom: 1px solid var(--border);
}

.service-num {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    padding-top: 4px;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-dark);
    line-height: 1.3;
}

.service-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-medium);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.3s ease;
    opacity: 0;
}

.service-card.active .service-desc {
    max-height: 300px;
    opacity: 1;
}

.service-card:hover .service-title {
    color: var(--text-black);
}

/* ===== FAQ SECTION ===== */
.faq-list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-top: 1px solid var(--border);
    padding: 28px 0;
    cursor: pointer;
}

.faq-item:last-child {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-dark);
}

.faq-toggle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease, background-color 0.3s;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
    background-color: var(--text-black);
    border-color: var(--text-black);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding-top: 20px;
}

.faq-answer p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text-medium);
    max-width: 600px;
}

/* ===== TEAM/EXPERIENCE SECTION ===== */
.team-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.team-card {
    overflow: hidden;
}

.team-image-wrap {
    aspect-ratio: 1;
    overflow: hidden;
    background-color: var(--border);
    position: relative;
}

.team-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
    transition: filter 0.4s ease, transform 0.6s ease;
}

.team-card:hover .team-image-wrap img {
    filter: grayscale(0);
    transform: scale(1.03);
}

.team-image-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(17, 17, 17, 0.15);
    pointer-events: none;
}

.team-info {
    padding: 16px 0;
}

.team-name {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

.team-role {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* ===== CONTACT SECTION ===== */
.contact-header {
    text-align: center;
    margin-bottom: 60px;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 40px;
    align-items: start;
}

.contact-image {
    aspect-ratio: 3/2;
    overflow: hidden;
}

.contact-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-line {
    width: 100%;
    height: 1px;
    background-color: var(--border);
}

.contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    background-color: var(--text-black);
    color: var(--white);
    border-radius: 500px;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.contact-button:hover {
    background-color: var(--text-body);
    transform: translateY(-1px);
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--light-bg);
    padding: var(--section-padding);
    padding-bottom: 50px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.footer-newsletter h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.footer-newsletter p {
    font-size: 0.9375rem;
    color: var(--text-medium);
    margin-bottom: 24px;
    max-width: 400px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    max-width: 400px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border);
    background-color: var(--white);
    font-family: var(--font-sans);
    font-size: 0.875rem;
    color: var(--text-black);
    outline: none;
    transition: border-color 0.2s;
}

.newsletter-form input::placeholder {
    color: var(--border);
}

.newsletter-form input:focus {
    border-color: var(--text-muted);
}

.newsletter-form button {
    padding: 12px 20px;
    background-color: var(--text-black);
    color: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    transition: background-color 0.2s;
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: var(--text-body);
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.footer-nav-title,
.footer-detail-label {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-nav-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav-links a {
    font-size: 0.9375rem;
    color: var(--text-body);
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.2s;
}

.footer-nav-links a .arrow {
    opacity: 0;
    transition: opacity 0.2s;
}

.footer-nav-links a:hover {
    color: var(--text-muted);
}

.footer-nav-links a:hover .arrow {
    opacity: 1;
}

.footer-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-detail-item p {
    font-size: 0.9375rem;
    color: var(--text-body);
}

.footer-detail-item a {
    transition: color 0.2s;
}

.footer-detail-item a:hover {
    color: var(--text-muted);
}

.footer-bottom {
    margin-top: 80px;
    position: relative;
}

.footer-brand {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.1;
    background: linear-gradient(180deg, #aaaaaa 0%, rgba(171, 171, 171, 0) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.footer-copyright p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-copyright a {
    transition: color 0.2s;
}

.footer-copyright a:hover {
    color: var(--text-dark);
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Hero animation */
.hero-animate {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(50px) rotate(2deg);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-animate.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(0);
}

.hero-animate-delay-1 { transition-delay: 0.05s; }
.hero-animate-delay-2 { transition-delay: 0.1s; }
.hero-animate-delay-3 { transition-delay: 0.15s; }
.hero-animate-delay-4 { transition-delay: 0.2s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 100px 40px;
    }

    .hero-top {
        gap: 40px;
    }

    .hero-photo-frame {
        max-width: 400px;
    }

    .section-split {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-label {
        position: static;
    }

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

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

    .service-card {
        grid-template-columns: 50px 1fr;
    }

    .service-desc {
        grid-column: 2;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 799px) {
    :root {
        --section-padding: var(--section-padding-mobile);
    }

    .nav-inner {
        padding: 0 25px;
    }

    .nav-left,
    .nav-right {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        padding: 140px 25px 60px;
        min-height: auto;
    }

    .hero-top {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-text-side {
        align-items: center;
    }

    .hero-tagline {
        max-width: 100%;
    }

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

    .hero-photo-side {
        order: 2;
    }

    .hero-photo-frame {
        max-width: 360px;
    }

    .image-strip {
        padding: 0 25px;
    }

    .image-strip-inner {
        grid-template-columns: 1fr;
        gap: 15px;
    }

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

    .about-stats {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .service-card {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-num {
        display: none;
    }

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

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

    .contact-image {
        display: none;
    }

    .footer-right {
        grid-template-columns: 1fr;
    }

    .footer-copyright {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .hero-name {
        font-size: 3rem;
    }

    .hero-meta {
        flex-direction: column;
        gap: 6px;
    }

    .hero-meta-divider {
        display: none;
    }

    .hero-photo-frame {
        max-width: 280px;
    }
}
