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

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
    --text: #333;
    --text-light: #777;
    --bg: #fff;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Header */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 32px;
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.97);
    z-index: 100;
    backdrop-filter: blur(8px);
}

.site-logo .name {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.site-logo .title {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 300;
    font-style: italic;
}

.site-nav {
    display: flex;
    gap: 36px;
}

.site-nav a {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.06em;
    transition: opacity 0.2s;
}

.site-nav a:hover { opacity: 0.6; }
.site-nav a.active { font-weight: 600; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

/* Mobile nav */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.98);
    z-index: 200;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 20px; font-weight: 400; }

.mobile-nav .close-btn {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text);
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    padding: 8px 12px 40px;
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
}

/* 4-column grid for commercial page */
.grid-4col {
    grid-template-columns: repeat(4, 1fr);
    padding: 8px 32px 40px;
}

/* Mixed alternating grid for home page */
.grid-mixed {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: calc((100vw - 80px) / 3 * 9 / 16);
    grid-auto-flow: dense;
    padding: 8px 32px 40px;
}

.grid-mixed .portfolio-item {
    aspect-ratio: auto;
}

.grid-mixed .item-large-left {
    grid-column: 1 / 3;
    grid-row: span 2;
}

.grid-mixed .item-small-right {
    grid-column: 3;
}

.grid-mixed .item-small-left {
    grid-column: 1;
}

.grid-mixed .item-large-right {
    grid-column: 2 / 4;
    grid-row: span 2;
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    background: var(--bg-light);
    aspect-ratio: 16/9;
    cursor: pointer;
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.4s;
    animation: fadeIn 0.6s ease-out;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.03);
}

/* Overlay - centered */
.portfolio-item .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    color: #fff;
    opacity: 0;
    transition: opacity 0.3s;
}

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

.overlay .item-title {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 4px;
    text-align: center;
    padding: 0 16px;
}

.overlay .item-category {
    font-size: 11px;
    font-weight: 300;
    opacity: 0.85;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Placeholder */
.portfolio-item .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 50%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder .item-label {
    font-size: 13px;
    color: #999;
    text-align: center;
    padding: 16px;
}

/* Portfolio Detail */
.portfolio-detail {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 32px 60px;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: #000;
    margin-bottom: 24px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.portfolio-detail h1 {
    font-size: 22px;
    font-weight: 500;
    margin-bottom: 4px;
}

.portfolio-detail .category-link {
    font-size: 13px;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.portfolio-detail .category-link:hover { color: var(--text); }

/* Text Pages */
.page-content {
    max-width: 640px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.page-content h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    font-family: Georgia, 'Times New Roman', serif;
}

.page-content p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.page-content strong { font-weight: 600; }
.page-content em { font-style: italic; }

.page-content h2 {
    font-size: 15px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 12px;
}

.page-content .contact-section { margin-top: 24px; }

.page-content .contact-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.page-content .agency-name {
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.page-content .contact-line {
    font-size: 14px;
    margin-bottom: 4px;
}

.page-content .contact-line a { text-decoration: underline; }

.page-content .personal-label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 4px;
    text-decoration: underline;
}

.page-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* About Page - Two Column */
.about-layout {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.about-text {
    flex: 1;
    min-width: 0;
}

.about-text h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 32px;
    font-family: Georgia, 'Times New Roman', serif;
}

.about-text p {
    font-size: 14px;
    line-height: 1.75;
    margin-bottom: 16px;
}

.about-text strong { font-weight: 600; }
.about-text em { font-style: italic; }

.about-photo {
    flex: 0 0 240px;
    margin-top: 72px;
}

.about-photo img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: center top;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-text .contact-section { margin-top: 24px; }

.about-text .contact-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.about-text .agency-name {
    font-family: Georgia, serif;
    font-size: 18px;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.about-text .contact-line {
    font-size: 14px;
    margin-bottom: 4px;
}

.about-text .contact-line a { text-decoration: underline; }

.about-text .personal-label {
    font-size: 14px;
    font-weight: 500;
    margin-top: 16px;
    margin-bottom: 4px;
    text-decoration: underline;
}

.about-text hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 32px 0;
}

/* Equipment Page - Card Style */
.equipment-layout {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 32px 60px;
}

.equipment-layout h1 {
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 36px;
    font-family: Georgia, 'Times New Roman', serif;
}

.equipment-card {
    background: var(--bg-light);
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 20px;
}

.equipment-card h2 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.equipment-card .equipment-highlight {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 12px;
    color: var(--text);
}

.equipment-card ul {
    list-style: none;
    columns: 2;
    column-gap: 32px;
}

.equipment-card li {
    font-size: 13px;
    line-height: 1.9;
    color: #555;
    break-inside: avoid;
}

.equipment-list { list-style: none; }
.equipment-list li { font-size: 13px; line-height: 1.8; }

/* Footer */
.site-footer {
    text-align: center;
    padding: 56px 32px 36px;
    border-top: 1px solid var(--border);
    background: var(--bg-light);
}

.footer-name {
    font-size: 18px;
    font-weight: 500;
    font-family: Georgia, serif;
    margin-bottom: 6px;
}

.footer-bio {
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
    margin-bottom: 20px;
}

.footer-social { margin-bottom: 24px; }

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border);
    border-radius: 50%;
    transition: 0.2s;
}

.footer-social a svg { width: 18px; height: 18px; }

.footer-social a:hover {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.footer-copyright {
    font-size: 11px;
    color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
    .site-nav { display: none; }
    .hamburger { display: flex; }

    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 8px 8px 40px;
    }

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

    .grid-mixed {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }

    .grid-mixed .portfolio-item {
        aspect-ratio: 16/9;
    }

    .grid-mixed .item-large-left,
    .grid-mixed .item-large-right,
    .grid-mixed .item-small-left,
    .grid-mixed .item-small-right {
        grid-column: auto;
        grid-row: auto;
    }

    .site-header { padding: 16px; }
    .page-content { padding: 24px 16px 40px; }
    .portfolio-detail { padding: 0 16px 40px; }

    .about-layout {
        flex-direction: column;
        padding: 24px 16px 40px;
        gap: 24px;
    }

    .about-photo {
        flex: none;
        width: 180px;
        margin: 0 auto;
        order: -1;
    }

    .about-photo img { margin-top: 0; }

    .equipment-layout { padding: 24px 16px 40px; }
    .equipment-card ul { columns: 1; }
    .equipment-card { padding: 20px; }
}

@media (max-width: 480px) {
    .portfolio-grid { gap: 4px; }
    .grid-4col { grid-template-columns: 1fr; }
}
