    * { box-sizing:border-box; }
    html { scroll-behavior:smooth; }
    body { margin:0; background:#1c1c1c; color:#fff; font-family:Arial,Helvetica,sans-serif; }
    a { color:inherit; text-decoration:none; }

    /* ---------- NAV ---------- */
    .nav { position:sticky; top:0; z-index:10; height:48px; background:#000;
           display:flex; align-items:center; justify-content:center; gap:48px; }
    .nav .logo img { height:26px; width:auto; display:block; }
    .nav ul { list-style:none; margin:0; padding:0; display:flex; gap:20px; }
    .nav ul a { font-size:14px; transition:opacity .2s ease; }
    .nav ul a:hover { opacity:.6; }

    /* anchors land below the sticky nav */
    #home, #portfolio, #about, #contact { scroll-margin-top:48px; }

    /* ---------- HERO ---------- */
    .hero-wrap { width:100%; background:#000; }
    .hero { position:relative; width:100%; aspect-ratio:1800/488; overflow:hidden; }
    .hero video { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; display:block; }

    /* ---------- SECTION HEADINGS ---------- */
    .heading { display:flex; align-items:center; gap:30px; max-width:620px; margin:50px auto 20px; padding:0 16px; }
    .heading::before, .heading::after { content:""; flex:1; height:1px; background:#fff; }
    .heading h2 { margin:0; font-family:'Oswald',sans-serif; font-weight:600; font-size:32px;
                  line-height:40px; letter-spacing:1px; text-transform:uppercase; }

    /* ---------- PORTFOLIO GRID ---------- */
    .grid { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; max-width:620px; margin:0 auto; padding:20px 16px; }
    .item { display:block; position:relative; aspect-ratio:1/1; overflow:hidden; background:#111; }
    .item img { width:100%; height:100%; object-fit:cover; display:block; transition:filter .3s ease; }
    .item span { position:absolute; inset:0; display:flex; align-items:center; justify-content:center;
                 padding:10px; text-align:center; font-weight:700; font-size:15px;
                 opacity:0; transition:opacity .3s ease; }
    .item:hover img { filter:brightness(.4); }
    .item:hover span { opacity:1; }

    /* touch screens can't hover, so show titles along the bottom instead */
    @media (hover:none) {
      .item span { inset:auto 0 0 0; justify-content:flex-start; opacity:1; font-size:12px;
                   padding:18px 8px 8px; text-align:left;
                   background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0)); }
    }

    /* ---------- ABOUT ---------- */
    .divider { max-width:800px; height:1px; margin:40px auto 0; background:#fff; }
    .about { display:flex; align-items:center; justify-content:center; gap:24px;
             max-width:560px; margin:0 auto; padding:0 16px 20px; }
    .about p { flex:1; margin:0; font-size:14px; line-height:1.5; }
    .social { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; }
    .social a { display:block; width:24px; height:24px; }
    .social svg { width:100%; height:100%; fill:#fff; transition:opacity .2s ease; }
    .social a:hover svg { opacity:.6; }

    /* ---------- FOOTER ---------- */
    footer { background:#000; padding:28px 16px; }
    .footer-inner { max-width:620px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; }
    .footer-inner .social { flex-direction:row; gap:18px; }
    .footer-inner ul { list-style:none; margin:0; padding:0; display:flex; gap:20px; }
    .footer-inner ul a { font-size:13px; transition:opacity .2s ease; }
    .footer-inner ul a:hover { opacity:.6; }

    /* ---------- CONTACT ---------- */
    .contact-intro { max-width:560px; margin:0 auto 24px; padding:0 16px; text-align:center; font-size:14px; line-height:1.5; }
    .contact-form { max-width:560px; margin:0 auto; padding:0 16px 70px; }
    .contact-form .field { margin-bottom:18px; }
    .contact-form label { display:block; margin:0 0 6px; font-size:13px; }
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form input[type="tel"],
    .contact-form textarea { width:100%; background:#000; color:#fff; border:1px solid #444; border-radius:0;
                             padding:12px; font:inherit; font-size:14px; transition:border-color .2s ease; }
    .contact-form input:focus,
    .contact-form textarea:focus { outline:none; border-color:#fff; }
    .contact-form textarea { min-height:140px; resize:vertical; }
    .contact-form ::placeholder { color:#777; }
    .contact-form button { display:block; width:100%; background:#fff; color:#000; border:0; padding:14px;
                           font-family:'Oswald',sans-serif; font-weight:600; font-size:16px; letter-spacing:1px;
                           text-transform:uppercase; cursor:pointer; transition:opacity .2s ease; }
    .contact-form button:hover { opacity:.8; }
    .contact-form button:disabled { opacity:.5; cursor:default; }
    .form-status { margin-top:14px; min-height:20px; text-align:center; font-size:14px; }

    @media (max-width:520px) {
      .nav { gap:24px; }
      .heading { gap:16px; }
      .heading h2 { font-size:26px; }
    }

/* ---------- PROJECT PAGES ---------- */
body.light {
  background-color:#f2f2f2; color:#000;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.light .heading { max-width:1230px; padding:0 24px; margin-top:40px; }
.light .heading::before, .light .heading::after { background:#000; }

/* keep the black menu bars readable on the light project pages */
.nav, .nav a,
footer, footer a { color:#fff; }

.project-gallery {
  --img-w:211px;      /* width of every image: change this to resize them all */
  --gap-x:23px;       /* space between columns */
  display:grid;
  grid-template-columns:repeat(auto-fill, var(--img-w));
  gap:26px var(--gap-x);
  justify-content:center;
  align-items:start;  /* each image keeps its own natural height */
  max-width:calc(var(--img-w) * 3 + var(--gap-x) * 2 + 32px);
  margin:30px auto 0; padding:0 16px 70px;
}
.project-gallery img { width:var(--img-w); height:auto; display:block; }
@media (min-width:480px) {
  .project-gallery img.span-2 { grid-column:span 2; width:100%; }
}
@media (min-width:711px) {
  .project-gallery img.span-2 { height:calc(var(--img-w) * 1.25); object-fit:cover; }
}
.project-gallery img.wide { grid-column:1 / -1; width:100%; }
.project-gallery video { width:var(--img-w); height:auto; aspect-ratio:9/16; display:block; background:#111; }

.back-link { display:block; text-align:center; padding-bottom:60px; font-size:14px; transition:opacity .2s ease; }
.back-link:hover { opacity:.6; }

/* ---------- FULL-SCREEN OVERLAY ---------- */
.project-gallery img, .project-gallery video { cursor:zoom-in; }

.lightbox { position:fixed; inset:0; z-index:100; display:none; align-items:center; justify-content:center;
            background:rgba(0,0,0,.94); }
.lightbox.open { display:flex; }

.lb-stage { display:flex; align-items:center; justify-content:center; }
.lb-stage img, .lb-stage video { height:92vh; width:auto; max-width:92vw; object-fit:contain; display:block; }

.lightbox button { position:absolute; background:none; border:0; color:#fff; cursor:pointer;
                   line-height:1; opacity:.8; transition:opacity .2s ease; }
.lightbox button:hover, .lightbox button:focus-visible { opacity:1; }
.lb-close { top:14px; right:20px; font-size:44px; }
.lb-prev, .lb-next { top:50%; transform:translateY(-50%); font-size:64px; padding:10px 16px; }
.lb-prev { left:6px; }
.lb-next { right:6px; }
.lightbox.single .lb-prev, .lightbox.single .lb-next { display:none; }

@media (max-width:600px) {
  .lb-prev, .lb-next { display:none; }   /* phones swipe instead */
}