:root {
  --font-brand: "Humanst521 BT", "Humanst 521 BT", "Humanist 521 BT", Arial, sans-serif;
  --ink: #2B2A29;
  --ink-2: #5a5650;
  --orange: #EC671F;
  --bg: #0d0d0f;
  --surface: #ffffff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-brand);
  color: var(--ink);
  background: var(--bg);
}

body {
  display: flex;
  flex-direction: column;
}

.viewer-nav {
  position: fixed;
  top: 16px;
  left: 28px;
  right: 28px;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px 0 32px;
  height: 64px;
  background: #ffffff;
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .07);
  transition: background .25s, box-shadow .25s;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
}

.logo-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
  filter: contrast(1.01) saturate(1.02);
}

.nav-center {
  display: flex;
  gap: 40px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-center a {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #0a0a0a;
  text-decoration: none;
  transition: color .2s;
}

.nav-center a:hover { color: var(--orange); }

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

.nav-cta {
  background: var(--orange);
  color: #fff;
  border: 1px solid transparent;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease;
}

.nav-cta:hover {
  background: #0a0a0a;
  transform: none;
  box-shadow: none;
}

.nav-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 12px 28px;
}

.nav-call svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.work-shell {
  flex: 1 1 auto;
  min-height: 0;
  padding: 88px 20px 14px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.work-toolbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  margin-right: 28px;
  padding: 12px 28px;
  font-family: var(--font-brand);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.back-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.back-btn:hover {
  background: #fff;
  color: var(--orange);
  border-color: var(--orange);
}

.work-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  background: var(--bg);
  border-radius: 0;
  overflow: hidden;
  padding: 0 20px 20px;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.work-grid {
  width: min(1400px, 100%);
  height: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.work-tile {
  border: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: inline-block;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

.work-tile img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 16px;
  object-fit: cover;
}

/* Identity-only micro adjustments */
.work-shell[data-work-page="work-identity-design"] .work-tile:nth-child(1) img {
  object-position: center top;
}

.work-shell[data-work-page="work-identity-design"] .work-tile:nth-child(6) img {
  object-position: center bottom;
}

.work-shell[data-work-page="work-identity-design"] .work-tile:nth-child(2) {
  background: rgba(10, 10, 10, .08);
}

.work-shell[data-work-page="work-logo-design"] .work-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fefefe;
}

.work-shell[data-work-page="work-logo-design"] .work-tile img {
  width: 84%;
  height: 84%;
  margin: 0;
  object-fit: contain;
}

.work-empty {
  margin: auto;
  max-width: 780px;
  background: rgba(255, 255, 255, .62);
  border: 1px solid rgba(43, 42, 41, .12);
  border-radius: 16px;
  padding: 22px;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.6;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(11, 10, 10, .82);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-img {
  max-width: min(94vw, 1400px);
  max-height: 88vh;
  border-radius: 12px;
  background: #fff;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .9);
  color: #0f0f0f;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close {
  top: 22px;
  right: 22px;
}

.lightbox-prev {
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:disabled,
.lightbox-next:disabled {
  opacity: .35;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .viewer-nav {
    top: 12px;
    left: 18px;
    right: 18px;
    padding: 0 8px 0 18px;
    height: 60px;
  }

  .logo-plate { height: 44px; }
  .logo-img { height: 40px; }
  .nav-center { display: none; }
  .nav-call { padding: 10px 20px; }

  .work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 560px) {
  .work-shell {
    padding: 74px 8px 10px;
  }

  .back-btn {
    margin-right: 10px;
    padding: 10px 20px;
  }

  .work-stage {
    padding: 0 8px 12px;
  }

  .work-grid {
    gap: 8px;
  }

  .lightbox {
    padding: 14px;
  }

  .lightbox-prev,
  .lightbox-next {
    width: 42px;
    height: 42px;
    font-size: 24px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-close {
    top: 8px;
    right: 8px;
  }
}
