:root {
    --accent: #ffcc00;
    --ink: #4c4f55;
    --ink-soft: #55606a;
    --line: #e0e0e0;
    --alt: #f3f3f3;
    --head-h: 60px;
    --wrap: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body { margin: 0; font: 400 17px/1.65 'Open Sans', Arial, sans-serif; color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: 'Ubuntu', 'Open Sans', sans-serif; font-weight: 300; line-height: 1.2; color: var(--ink); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 2000; }
.skip:focus { left: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto 0; height: var(--head-h); z-index: 1000; display: flex; align-items: center; justify-content: space-between;
    padding: 0 24px; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.logo { display: block; flex: 0 1 340px; min-width: 0; line-height: 0; }
.logo img { width: 100%; max-width: 340px; height: auto; }
.logo:hover { opacity: .65; }
.main-nav ul { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.main-nav a { display: block; padding: 8px 14px; text-decoration: none; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.main-nav a:hover, .main-nav a:focus-visible { color: #000; background: var(--alt); }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.menu-toggle span:first-child, .menu-toggle span:first-child::before, .menu-toggle span:first-child::after {
    content: ''; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--ink); }
.menu-toggle span:first-child { top: 21px; }
.menu-toggle span:first-child::before { left: 0; right: 0; top: -7px; }
.menu-toggle span:first-child::after { left: 0; right: 0; top: 7px; }

/* Hero slider */
.hero { position: relative; height: 100vh; min-height: 480px; margin-top: 0; background: #222; overflow: hidden; color: #fff; }
.slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.2s ease; }
.slide.is-active { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.45), rgba(0,0,0,0) 45%); }
.hero-title { position: absolute; left: 0; right: 0; bottom: 14vh; margin: 0; text-align: center; text-transform: uppercase; color: #fff;
    font-size: clamp(30px, 5.5vw, 64px); letter-spacing: .02em; text-shadow: 0 2px 12px rgba(0,0,0,.4); padding: 0 24px; }
.hero-controls button { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; background: rgba(0,0,0,.3);
    color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.hero-controls button:hover { background: rgba(0,0,0,.55); }
.hero-controls .prev { left: 0; } .hero-controls .next { right: 0; }
.hero-down { position: absolute; left: 50%; bottom: 3vh; transform: translateX(-50%); color: #fff; font-size: 40px; text-decoration: none; line-height: 1; }

/* Sections */
.band { padding: 100px 0; }
.band-alt { background: var(--alt); }
.band-head { margin-bottom: 40px; }
.band-head h2 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 8px; }
.band-head .lead { font-size: 22px; font-weight: 300; margin: 0; max-width: 46em; }
.typography p { margin: 0 0 1.1em; }
.typography .highlight { color: #000; background: linear-gradient(transparent 60%, var(--accent) 60%); }
.typography a { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }

/* Our Work */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 28px; }
.filters-label { font: 300 20px/1 'Ubuntu', sans-serif; text-transform: uppercase; margin-right: 12px; }
.filter { border: 0; border-bottom: 3px solid transparent; background: none; padding: 8px 10px; font: 600 13px/1 'Open Sans', sans-serif;
    letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); cursor: pointer; }
.filter:hover { color: #000; }
.filter.is-on { color: #000; border-bottom-color: var(--accent); }
.projects { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.project[hidden] { display: none; }
.project a { display: block; text-decoration: none; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.project img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: opacity .25s; }
.project a:hover img, .project a:focus-visible img { opacity: .75; }
.project-title { display: block; padding: 12px 14px; text-align: center; font-size: 15px; line-height: 1.3; }

/* Quote */
.quote { padding: 90px 0; text-align: center; }
.quote blockquote { margin: 0; font: 300 clamp(24px, 3.4vw, 36px)/1.4 'Ubuntu', sans-serif; color: var(--ink); }
.quote blockquote::before { content: ''; display: block; width: 48px; height: 4px; background: var(--accent); margin: 0 auto 28px; }

/* Contact */
.contact-details h3 { font-size: 22px; margin: 0 0 12px; }
.contact-details ul { list-style: none; padding: 0; margin: 0; font-size: 19px; }
.contact-details li { margin-bottom: 14px; }
.map { display: block; width: 100%; height: 360px; border: 0; margin-top: 70px; filter: grayscale(.4); }

/* Inner pages */
.inner { padding: calc(var(--head-h) + 60px) 0 90px; min-height: 60vh; }
.inner h1 { font-size: clamp(32px, 4vw, 48px); margin: 0 0 20px; }
.crumb { margin: 0 0 8px; font-size: 14px; }
.crumb .tag { margin-left: 10px; padding: 2px 8px; background: var(--accent); color: #000; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 32px; }
.project-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Footer */
.site-footer { background: var(--ink); color: #fff; text-align: center; padding: 24px; font-size: 13px; letter-spacing: .05em; text-transform: uppercase; }
.site-footer p { margin: 0; }

/* Lightbox (native <dialog>) */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; }
.lightbox figcaption { color: #ddd; margin-top: 12px; font-size: 14px; text-align: center; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 34px; line-height: 1; width: 52px; height: 52px; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.3); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; } .lightbox .lb-next { right: 12px; top: 50%; }

@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-nav { position: absolute; top: var(--head-h); left: 0; right: 0; background: #fff; box-shadow: 0 6px 10px rgba(0,0,0,.15); display: none; }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav a { padding: 16px 24px; border-top: 1px solid var(--line); }
    .band { padding: 64px 0; }
    .lightbox figure { padding: 56px 12px; }
    .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .slide { transition: none; }
}
