*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --bg: #0a0a0a;
      --text: #ffffff;
      --text-muted: rgba(255,255,255,0.45);
      --gap: 4px;
      --nav-h: 56px;
    }

    html { scroll-behavior: smooth; }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
      font-size: 13px;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      overflow-x: hidden;
    }

    /* ── NAV ── */
    nav {
      position: fixed;
      top: 0; left: 0; right: 0;
      z-index: 100;
      height: var(--nav-h);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      mix-blend-mode: difference;
    }

    .nav-logo {
      font-size: 13px;
      font-weight: 700;
      letter-spacing: 0.12em;
      color: #fff;
      text-decoration: none;
      white-space: nowrap;
      background: none;
      border: none;
      cursor: pointer;
      font-family: inherit;
      text-transform: uppercase;
      padding: 0;
    }

    .nav-center {
      display: flex;
      gap: 26px;
      position: absolute;
      left: 50%;
      transform: translateX(-50%);
      white-space: nowrap;
    }

    /* Four categories need a little more room before the burger takes over */
    @media (max-width: 1180px) {
      .nav-center { gap: 18px; }
      .nav-center a { font-size: 12px; letter-spacing: 0.09em; }
      .nav-right { gap: 18px; }
    }

    .nav-center button {
      background: none;
      border: none;
      color: var(--text-muted);
      font: inherit;
      cursor: pointer;
      letter-spacing: 0.12em;
      transition: color 0.2s;
      padding: 4px 0;
      position: relative;
      text-transform: uppercase;
    }
    .nav-center button::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 100%;
      height: 1px;
      background: #fff;
      transition: right 0.25s ease;
    }
    .nav-center button:hover, .nav-center button.active { color: #fff; }
    .nav-center button.active::after, .nav-center button:hover::after { right: 0; }

    .nav-right { display: flex; align-items: center; gap: 24px; }

    .lang-toggle {
      display: flex;
      align-items: center;
      gap: 6px;
    }
    .lang-toggle button {
      background: none;
      border: none;
      color: rgba(255,255,255,0.35);
      font: inherit;
      cursor: pointer;
      padding: 4px 0;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      transition: color 0.2s;
    }
    .lang-toggle button:hover { color: rgba(255,255,255,0.75); }
    .lang-toggle button.active { color: #fff; }
    .lang-sep { color: rgba(255,255,255,0.22); }

    /* ── BURGER (mobile only) ── */
    .burger {
      display: none;
      background: none;
      border: none;
      cursor: pointer;
      padding: 10px 0 10px 16px;
      width: 42px;
      height: var(--nav-h);
      position: relative;
      z-index: 210;
    }
    .burger span {
      display: block;
      width: 22px;
      height: 1.5px;
      background: #fff;
      margin-left: auto;
      transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), opacity 0.2s;
    }
    .burger span + span { margin-top: 6px; }

    body.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
    body.menu-open .burger span:nth-child(2) { opacity: 0; }
    body.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

    /* ── MOBILE MENU PANEL ── */
    .mobile-menu {
      position: fixed;
      inset: 0;
      z-index: 200;
      background: #0a0a0a;
      display: flex;
      flex-direction: column;
      justify-content: center;
      padding: var(--nav-h) 28px 40px;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.28s ease;
    }
    body.menu-open .mobile-menu { opacity: 1; pointer-events: all; }

    .mobile-menu button {
      background: none;
      border: none;
      color: rgba(255,255,255,0.5);
      font-family: inherit;
      font-size: 24px;
      font-weight: 700;
      letter-spacing: 0.06em;
      text-transform: uppercase;
      text-align: left;
      padding: 13px 0;
      cursor: pointer;
      transition: color 0.2s;
    }
    .mobile-menu button:hover,
    .mobile-menu button.active { color: #fff; }

    .mobile-menu .mm-divider {
      height: 1px;
      background: rgba(255,255,255,0.12);
      margin: 22px 0;
    }

    .mobile-menu .mm-secondary button {
      font-size: 14px;
      font-weight: 400;
      letter-spacing: 0.14em;
      padding: 9px 0;
    }

    .mobile-menu .mm-lang {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 30px;
    }
    .mobile-menu .mm-lang button {
      font-size: 13px;
      font-weight: 400;
      letter-spacing: 0.14em;
      padding: 0;
    }

    .btn-contact {
      background: none;
      border: none;
      color: var(--text-muted);
      font: inherit;
      cursor: pointer;
      padding: 4px 0;
      letter-spacing: 0.12em;
      transition: color 0.2s;
      text-transform: uppercase;
      position: relative;
    }
    .btn-contact::after {
      content: '';
      position: absolute;
      bottom: 0; left: 0; right: 100%;
      height: 1px;
      background: #fff;
      transition: right 0.25s ease;
    }
    .btn-contact:hover { color: #fff; }
    .btn-contact:hover::after { right: 0; }

    /* ── GRID VIEW ── */
    main { padding-top: var(--nav-h); }

    .grid {
      display: flex;
      flex-direction: column;
      gap: var(--gap);
    }

    .row-single {
      width: 100%;
      aspect-ratio: 16/9;
      overflow: hidden;
      cursor: pointer;
    }

    .row-pair {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: var(--gap);
    }
    .row-pair .cell {
      aspect-ratio: 3/2;
      overflow: hidden;
      cursor: pointer;
    }

    .work-item {
      position: relative;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }

    .work-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
      filter: brightness(0.88);
    }

    .work-item:hover img { transform: scale(1.03); filter: brightness(1); }

    .work-item-overlay {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      padding: 28px 32px;
      background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
      opacity: 0;
      transition: opacity 0.3s ease;
      pointer-events: none;
    }
    .work-item:hover .work-item-overlay { opacity: 1; }

    .work-item-overlay .client {
      font-size: 11px;
      color: rgba(255,255,255,0.6);
      margin-bottom: 4px;
      letter-spacing: 0.15em;
    }
    .work-item-overlay .title {
      font-size: 18px;
      font-weight: 700;
      letter-spacing: 0.06em;
      line-height: 1.2;
    }
    .work-item-overlay .category-tag {
      margin-top: 8px;
      font-size: 10px;
      letter-spacing: 0.2em;
      color: rgba(255,255,255,0.5);
    }

    /* ── DETAIL VIEW ── */
    #detail {
      display: none;
      padding-top: var(--nav-h);
      min-height: 100vh;
    }
    #detail.open { display: block; }
    body.detail-open .grid { display: none; }

    .detail-hero {
      width: 100%;
      display: flex;
      justify-content: center;
      background: #000;
    }
    .detail-hero img {
      max-width: 100%;
      max-height: calc(100vh - var(--nav-h));
      width: auto;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .detail-body {
      max-width: 1400px;
      margin: 0 auto;
      padding: 72px 32px 120px;
      display: grid;
      grid-template-columns: 1fr 380px;
      gap: 80px;
      align-items: start;
    }

    .detail-info .detail-client {
      font-size: 11px;
      letter-spacing: 0.22em;
      color: var(--text-muted);
      margin-bottom: 12px;
    }
    .detail-info .detail-title {
      font-size: clamp(28px, 4vw, 46px);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 1.1;
      margin-bottom: 20px;
    }
    .detail-info .detail-category {
      font-size: 10px;
      letter-spacing: 0.24em;
      color: var(--text-muted);
      padding-bottom: 24px;
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .detail-info .detail-desc {
      margin-top: 24px;
      font-size: 13px;
      line-height: 1.9;
      letter-spacing: 0.04em;
      text-transform: none;
      color: rgba(255,255,255,0.7);
      max-width: 52ch;
    }

    /* Credits */
    .credits { }
    .credits h3 {
      font-size: 10px;
      letter-spacing: 0.26em;
      color: var(--text-muted);
      font-weight: 400;
      margin-bottom: 22px;
      padding-bottom: 14px;
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }
    .credit-row {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 16px;
      padding: 9px 0;
      align-items: baseline;
    }
    .credit-label {
      font-size: 10px;
      letter-spacing: 0.18em;
      color: rgba(255,255,255,0.38);
      white-space: nowrap;
    }
    .credit-value {
      font-size: 12px;
      letter-spacing: 0.06em;
      color: rgba(255,255,255,0.92);
      text-transform: none;
    }

    /* Gallery of additional images inside detail */
    .detail-gallery {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: var(--gap);
      padding-bottom: 100px;
    }
    .detail-gallery img {
      max-width: 100%;
      max-height: calc(100vh - var(--nav-h));
      width: auto;
      height: auto;
      display: block;
      object-fit: contain;
    }

    .btn-back {
      background: none;
      border: none;
      color: var(--text-muted);
      font: inherit;
      cursor: pointer;
      letter-spacing: 0.16em;
      padding: 0;
      text-transform: uppercase;
      transition: color 0.2s;
      margin-bottom: 40px;
      display: inline-block;
    }
    .btn-back:hover { color: #fff; }

    /* ── ABOUT VIEW ── */
    #about {
      display: none;
      padding-top: var(--nav-h);
      min-height: 100vh;
    }
    #about.open { display: block; }
    body.about-open .grid { display: none; }

    .about-inner {
      max-width: 1400px;
      margin: 0 auto;
      padding: 72px 32px 140px;
    }

    .about-grid {
      display: grid;
      grid-template-columns: 1fr 420px;
      gap: 90px;
      align-items: start;
      margin-top: 20px;
    }

    .about-heading {
      font-size: clamp(32px, 5vw, 60px);
      font-weight: 700;
      letter-spacing: 0.04em;
      line-height: 1.05;
      margin-bottom: 14px;
    }

    .about-role {
      font-size: 11px;
      letter-spacing: 0.22em;
      color: var(--text-muted);
      padding-bottom: 30px;
      border-bottom: 1px solid rgba(255,255,255,0.12);
    }

    .about-body {
      margin-top: 34px;
      text-transform: none;
      letter-spacing: 0.01em;
    }
    .about-body p {
      font-size: 15px;
      line-height: 1.9;
      color: rgba(255,255,255,0.72);
      max-width: 58ch;
      margin-bottom: 22px;
    }

    .about-meta {
      margin-top: 52px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 40px;
      padding-top: 34px;
      border-top: 1px solid rgba(255,255,255,0.12);
    }
    .about-meta-block h4 {
      font-size: 10px;
      letter-spacing: 0.24em;
      color: rgba(255,255,255,0.38);
      font-weight: 400;
      margin-bottom: 12px;
    }
    .about-meta-block p {
      font-size: 12px;
      letter-spacing: 0.06em;
      line-height: 1.9;
      color: rgba(255,255,255,0.85);
      text-transform: none;
    }

    .about-portrait {
      overflow: hidden;
    }
    .about-portrait img {
      width: 100%;
      height: auto;
      display: block;
      filter: brightness(0.92);
    }

    /* ── CONTACT MODAL ── */
    .modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.96);
      z-index: 200;
      display: flex;
      align-items: center;
      justify-content: center;
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.3s;
    }
    .modal-overlay.open { opacity: 1; pointer-events: all; }
    .modal { text-align: center; padding: 60px 40px; }
    .modal h2 {
      font-size: 11px;
      letter-spacing: 0.25em;
      color: var(--text-muted);
      margin-bottom: 32px;
      font-weight: 400;
    }
    .modal .contact-name {
      font-size: clamp(28px, 5vw, 52px);
      font-weight: 700;
      letter-spacing: 0.06em;
      margin-bottom: 40px;
    }
    .modal .contact-links { display: flex; flex-direction: column; gap: 16px; }
    .modal a {
      color: var(--text-muted);
      text-decoration: none;
      font-size: 13px;
      letter-spacing: 0.15em;
      transition: color 0.2s;
    }
    .modal a:hover { color: #fff; }
    .modal-close {
      position: absolute;
      top: 28px; right: 28px;
      background: none;
      border: none;
      color: var(--text-muted);
      font: inherit;
      cursor: pointer;
      font-size: 20px;
      transition: color 0.2s;
    }
    .modal-close:hover { color: #fff; }

    /* ── MOBILE ── */
    @media (max-width: 900px) {
      .detail-body {
        grid-template-columns: 1fr;
        gap: 48px;
        padding: 48px 24px 80px;
      }
      .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
      }
      .about-portrait { order: -1; }
      .about-inner { padding: 48px 24px 90px; }
    }

    @media (max-width: 900px) {
      /* Everything moves into the burger menu */
      .nav-center,
      .nav-right .btn-contact,
      .nav-right .lang-toggle { display: none; }
      .burger { display: block; }
      nav { mix-blend-mode: normal; }
      body.menu-open { overflow: hidden; }
    }

    @media (max-width: 768px) {
      nav { padding: 0 18px; }
      .nav-logo { font-size: 11px; }

      .row-single { aspect-ratio: 4/3; }
      .row-pair { grid-template-columns: 1fr; }
      .row-pair .cell { aspect-ratio: 4/3; }

      .work-item-overlay { opacity: 1; padding: 20px 22px; }
      .work-item-overlay .title { font-size: 15px; }
      .work-item-overlay .client { font-size: 10px; }

      .credit-row { grid-template-columns: 100px 1fr; gap: 12px; }
      .about-meta { grid-template-columns: 1fr; gap: 28px; }
      .about-body p { font-size: 14px; }
    }

    @media (max-width: 480px) {
      .mobile-menu button { font-size: 21px; }
      .mobile-menu { padding: var(--nav-h) 22px 34px; }
    }

/* ── Server-rendered markup uses <a> where JS used <div> ── */
.work-item {
  display: block;
  text-decoration: none;
  color: inherit;
}
.work-item-overlay { display: flex; }

.nav-center a,
.mobile-menu a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.nav-center a {
  color: var(--text-muted);
  letter-spacing: 0.12em;
  transition: color 0.2s;
  padding: 4px 0;
  position: relative;
  text-transform: uppercase;
  font-size: 13px;
}
.nav-center a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 100%;
  height: 1px;
  background: #fff;
  transition: right 0.25s ease;
}
.nav-center a:hover, .nav-center a.active { color: #fff; }
.nav-center a.active::after, .nav-center a:hover::after { right: 0; }

.mobile-menu a {
  color: rgba(255,255,255,0.5);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 0;
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active { color: #fff; }
.mobile-menu .mm-secondary a {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  padding: 9px 0;
}

a.btn-contact, a.nav-logo, a.btn-back {
  text-decoration: none;
  display: inline-block;
}
a.btn-back { margin-bottom: 40px; }

/* Visible to search engines and screen readers, not on screen */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .nav-center a { display: none; }
}
@media (max-width: 480px) {
  .mobile-menu a { font-size: 21px; }
}

/* ── PROJECT DESCRIPTION ── */
.detail-desc {
  margin-top: 28px;
  font-size: 15px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  text-transform: none;
  color: rgba(255,255,255,0.75);
  max-width: 62ch;
}
.detail-desc p + p { margin-top: 1.1em; }

/* ── SMOOTH IMAGE LOADING ── */
/* Reserves the right space from the start, so nothing jumps as photos load */
.work-item img,
.detail-hero img,
.detail-gallery img {
  background: #141414;
}

.work-item img {
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
.work-item img[data-loaded="1"] { opacity: 1; animation: none; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Respect the system setting for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .work-item img { opacity: 1; animation: none; }
  .work-item:hover img { transform: none; }
  html { scroll-behavior: auto; }
}
