:root {
    --ink: #1a1a1a;
    --muted: #888;
    --line: #e5e5e5;
    --bg: #ffffff;
    --max: 1200px;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
svg { display: block; }

/* Header: fixed, transparent at top, white once scrolled */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px max(40px, calc((100% - var(--max)) / 2 + 40px));
    gap: 20px;
    background: transparent;
    transition: background .35s ease, padding .35s ease, box-shadow .35s ease;
}

.site-header.scrolled {
    background: #fff;
    padding-top: 14px;
    padding-bottom: 14px;
    box-shadow: 0 1px 0 var(--line);
}

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

.site-nav a {
    font-size: 15px;
    color: #666;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
    transition: color .35s ease, border-color .35s ease;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    border-bottom-color: var(--ink);
}

.site-logo { position: relative; }
.site-logo img { display: block; width: 170px; height: auto; transition: opacity .35s ease; }
.site-logo .logo-light { position: absolute; top: 0; left: 0; opacity: 0; }

/* Over the hero (home, not yet scrolled): white nav + white logo */
.has-hero .site-header:not(.scrolled) .site-nav a { color: rgba(255,255,255,.8); }
.has-hero .site-header:not(.scrolled) .site-nav a.active,
.has-hero .site-header:not(.scrolled) .site-nav a:hover { color: #fff; border-bottom-color: #fff; }
.has-hero .site-header:not(.scrolled) .logo-dark { opacity: 0; }
.has-hero .site-header:not(.scrolled) .logo-light { opacity: 1; }

/* Hero slider */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-bottom: 80px;
    overflow: hidden;
    background: #111;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.6s ease;
}
.hero-slide.active { opacity: 1; z-index: 1; }

.hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 8s ease-out;
}
.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.35);
}

/* Three different, simple motions */
.fx-zoomin.active .hero-img { transform: scale(1.1); }
.fx-zoom .hero-img { transform: scale(1.12); }
.fx-zoom.active .hero-img { transform: scale(1); }
.fx-pan .hero-img { transform: scale(1.08) translateX(3%); }
.fx-pan.active .hero-img { transform: scale(1.08) translateX(-1%); }

.hero-text {
    position: absolute;
    z-index: 2;
    left: max(40px, calc((100% - var(--max)) / 2 + 40px));
    right: 40px;
    bottom: 14vh;
    color: #fff;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 1s ease .6s, transform 1s ease .6s;
}
.hero-slide.active .hero-text { opacity: 1; transform: none; }

.hero-loc {
    font-size: 13px;
    letter-spacing: .14em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: 8px;
}
.hero-text h2 {
    font-size: clamp(30px, 4.5vw, 56px);
    font-weight: 400;
    line-height: 1.15;
    margin: 0 0 22px;
}
.hero-text a {
    font-size: 14px;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.7);
    padding-bottom: 3px;
}

.hero-dots {
    position: absolute;
    z-index: 3;
    right: max(40px, calc((100% - var(--max)) / 2 + 40px));
    bottom: 14vh;
    display: flex;
    gap: 10px;
}
.hero-dots button {
    width: 28px; height: 2px;
    padding: 0; border: 0;
    background: rgba(255,255,255,.4);
    cursor: pointer;
}
.hero-dots button.active { background: #fff; }

.hero-scroll {
    position: absolute;
    z-index: 3;
    left: 50%;
    bottom: 28px;
    margin-left: -14px;
    color: #fff;
    opacity: .85;
    animation: hero-bob 2.4s ease-in-out infinite;
}
.hero-scroll:hover { opacity: 1; }
@keyframes hero-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

html { scroll-behavior: smooth; }
#content { scroll-margin-top: 110px; }

@media (prefers-reduced-motion: reduce) {
    .hero-scroll { animation: none; }
    html { scroll-behavior: auto; }
    .hero-img, .hero-slide, .hero-text { transition: none !important; transform: none !important; }
}

/* Layout */
main {
    max-width: var(--max);
    margin: 0 auto;
    padding: 130px 40px 100px;
}
.has-hero main { padding-top: 0; }

.page-banner { margin-bottom: 40px; }
.page-banner h1 { font-size: 26px; font-weight: 700; margin: 0; }

h1 { font-size: 24px; font-weight: 700; margin: 0 0 24px; }

p { margin: 0 0 18px; }

.manifesto {
    font-size: 19px;
    line-height: 1.75;
    color: #333;
    max-width: 820px;
    margin-bottom: 60px;
}

.section-title {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999;
    margin: 60px 0 24px;
}

/* Works masonry (CSS multi-column approximates the live site's staggered grid) */
.works-masonry {
    column-count: 3;
    column-gap: 30px;
}
.works-masonry-3 { column-count: 3; }

.work-card {
    display: block;
    break-inside: avoid;
    margin-bottom: 36px;
}

.work-card img {
    width: 100%;
    display: block;
    margin-bottom: 14px;
}

.work-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 8px;
}

.work-card .excerpt {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.work-card hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 10px 0;
}

.work-card .work-cats {
    font-size: 12px;
    color: #999;
}

.work-card .work-date {
    font-size: 12px;
    color: #bbb;
}

/* Work detail */
.work-meta {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0 0 20px;
}
.work-meta li {
    font-size: 14px;
    font-weight: 600;
}
.work-meta .meta-label {
    display: block;
    font-size: 11px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #999;
}

.work-tags {
    margin-bottom: 30px;
}
.work-tags .tag {
    font-size: 13px;
    color: #999;
    margin-right: 10px;
}
.work-tags .tag:hover { color: var(--ink); }

.work-image {
    width: 100%;
    display: block;
    margin-bottom: 16px;
}

.work-body { max-width: 760px; margin-top: 30px; }
.work-body strong { display: block; margin-top: 22px; margin-bottom: 6px; }
.work-body strong:first-child { margin-top: 0; }

.work-share {
    display: flex;
    gap: 14px;
    margin: 30px 0 10px;
    color: #999;
}
.work-share a:hover { color: var(--ink); }

/* About */
.about-photo {
    float: left;
    width: 180px;
    margin: 0 24px 16px 0;
}

.about-name { font-size: 16px; font-weight: 700; }
.about-role { color: #777; font-size: 13px; margin-bottom: 16px; }

.clear { clear: both; }

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
}

.contact-info p { margin-bottom: 10px; font-size: 14px; color: #444; }

form.contact-form input,
form.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: inherit;
    font-size: 14px;
}

form.contact-form textarea { min-height: 120px; resize: vertical; }

form.contact-form button {
    background: var(--ink);
    color: #fff;
    border: none;
    padding: 12px 28px;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: pointer;
}

.form-note { font-size: 13px; margin-top: 10px; }
.form-note.success { color: #1a7a3a; }
.form-note.error { color: #b3261e; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 60px;
}
.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 30px 40px 50px;
    font-size: 13px;
    color: #999;
}
.footer-brand { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.footer-address { margin-bottom: 10px; }
.footer-copy { margin-bottom: 14px; }
.footer-social { display: flex; gap: 14px; color: #999; }
.footer-social a:hover { color: var(--ink); }

/* Responsive */
@media (max-width: 800px) {
    .works-masonry, .works-masonry-3 { column-count: 2; }
    .contact-grid { grid-template-columns: 1fr; }
    .about-photo { float: none; display: block; margin: 0 0 20px; }
    .site-header { padding: 20px; }
    .site-header.scrolled { padding-top: 12px; padding-bottom: 12px; }
    main { padding: 110px 20px 80px; }
    .site-nav { gap: 18px; }
    .hero-text { left: 20px; right: 20px; bottom: 16vh; }
    .hero-dots { right: auto; left: 20px; bottom: 8vh; }
    .work-meta { gap: 24px; flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .works-masonry, .works-masonry-3 { column-count: 1; }
    .site-header { flex-direction: column-reverse; align-items: flex-start; gap: 12px; }
    .site-logo img { width: 140px; }
    main { padding-top: 130px; }
}
