:root[data-theme="alabaster"] {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-sub: #F2F0EB;
  --ink: #111215;
  --ink-muted: #5D5F66;
  --line: rgba(17, 18, 21, 0.08);
  --hl: #FF4D00;
  --hl-soft: rgba(255, 77, 0, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(17, 18, 21, 0.03);
  --shadow-hover: 0 30px 60px rgba(17, 18, 21, 0.08);
}

:root[data-theme="dark"] {
  --bg: #0A0B0D;
  --surface: #121418;
  --surface-sub: #1A1D24;
  --ink: #F3F4F6;
  --ink-muted: #949BA3;
  --line: rgba(243, 244, 246, 0.08);
  --hl: #FF5A2F;
  --hl-soft: rgba(255, 90, 47, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.5);
}

:root[data-theme="mint"] {
  --bg: #070B0A;
  --surface: #0E1513;
  --surface-sub: #15201C;
  --ink: #E7EEEC;
  --ink-muted: #829892;
  --line: rgba(231, 238, 236, 0.08);
  --hl: #00FFB3;
  --hl-soft: rgba(0, 255, 179, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 30px 60px rgba(0, 0, 0, 0.35);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
  border: 2px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--hl);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  height: -webkit-fill-available;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--bg);
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease;
}

:root[data-theme="alabaster"] .header { background: rgba(250, 249, 245, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
:root[data-theme="dark"] .header { background: rgba(10, 11, 13, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
:root[data-theme="mint"] .header { background: rgba(7, 11, 10, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  font-family: 'Space Mono', monospace;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.05em;
}
.logo span { color: var(--hl); }
.logo { white-space: nowrap; }
.logo-role { color: var(--ink); }
.logo-role b { color: var(--hl); font-weight: 800; }
@media (max-width: 1080px) {
  .logo { font-size: 18px; }
}
@media (max-width: 760px) {
  .logo { font-size: 16px; }
  .logo-role { display: none; }
}

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-link {
  color: var(--ink-muted);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  padding: 8px 0;
  transition: color 0.3s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--hl);
  transition: width 0.3s ease;
}
.nav-link:hover, .nav-item.active .nav-link {
  color: var(--ink);
}
.nav-item.active .nav-link::after {
  width: 100%;
}

/* Mobilny Burger */
.menu-toggle {
  display: none;
  background: var(--surface-sub);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.segmented-control {
  display: flex;
  background: var(--surface-sub);
  padding: 3px;
  border-radius: 30px;
  border: 1px solid var(--line);
}
.segmented-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.segmented-btn.active {
  background: var(--hl);
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px var(--hl-soft);
}

.custom-select {
  position: relative;
  width: 130px;
}
.select-trigger {
  background: var(--surface-sub);
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.select-trigger::after {
  content: '';
  border: solid var(--ink-muted);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 2px;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
}
.custom-select.open .select-trigger::after {
  transform: rotate(-135deg);
}
.select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  overflow: hidden;
}
.custom-select.open .select-options {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.select-option {
  padding: 10px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.select-option:hover {
  background: var(--surface-sub);
  color: var(--hl);
}
.select-option.selected {
  color: var(--ink);
  font-weight: 700;
  background: var(--hl-soft);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 140px 24px 80px;
}

.hero {
  padding: 60px 0 100px;
  text-align: left;
}
.hero-tag {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--hl);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  display: inline-block;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  max-width: 16ch;
}
.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--ink-muted);
  max-width: 44em;
  margin-bottom: 36px;
  font-weight: 500;
}
.hero-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-muted);
  padding: 8px 18px;
  border-radius: 30px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow);
}

.section-header {
  font-size: 12px;
  font-family: 'Space Mono', monospace;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin: 48px 0 32px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.section-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  margin-bottom: 48px;
  box-shadow: var(--shadow);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.4s ease;
  scroll-margin-top: 110px;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--hl);
}

.proj-title h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.proj-hook {
  font-size: 18px;
  color: var(--ink-muted);
  margin-top: 6px;
  font-weight: 500;
}

.proj-media {
  margin-top: 32px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sub);
}
.proj-media img, .proj-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.proj-specs {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  background: var(--surface-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.spec-item {
  padding: 16px 24px;
  border-right: 1px solid var(--line);
}
.spec-item:last-child { border-right: none; }
.spec-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
}
.spec-val {
  font-size: 14px;
  font-weight: 700;
  margin-top: 3px;
}
.spec-val.highlight { color: var(--hl); }

.proj-desc {
  margin-top: 28px;
  color: var(--ink-muted);
  font-size: 15.5px;
}

.proj-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.btn {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border: none;
}
.btn-primary:hover {
  background: var(--hl);
  color: #FFFFFF;
  transform: translateY(-2px);
}
.btn-secondary {
  background: var(--surface-sub);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  background: var(--surface-sub);
  border-color: var(--ink);
  transform: translateY(-2px);
}

.case-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-container { overflow: hidden; }
.project-card.open .case-wrapper {
  grid-template-rows: 1fr;
}
.case-content {
  margin-top: 36px;
  background: var(--surface-sub);
  border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
}
.case-content h4 {
  font-size: 20px;
  font-weight: 800;
  text-transform: uppercase;
  margin: 28px 0 12px;
}
.case-content h4:first-of-type { margin-top: 0; }
.case-content p { color: var(--ink-muted); margin-bottom: 16px; }

.img-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 24px 0;
}
.img-pair img, .img-pair video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.stage-item { margin: 24px 0; }
.stage-badge {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--hl);
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.stage-item img {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}

.mosaic {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 24px 0;
}
.mitem { display: flex; flex-direction: column; }
.mitem img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.caption {
  font-size: 12.5px;
  color: var(--ink-muted);
  font-style: italic;
  margin-top: 6px;
}

.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow);
  scroll-margin-top: 110px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
}
.about-text {
  font-size: 16px;
  color: var(--ink-muted);
  margin-bottom: 24px;
}
.tools-list {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--hl);
  font-weight: 700;
  text-transform: uppercase;
}
.contact-cta {
  background: var(--surface-sub);
  border-radius: var(--radius-md);
  padding: 32px;
  border: 1px solid var(--line);
}
.contact-cta h3 {
  font-size: 11px;
  font-family: 'Space Mono', monospace;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.contact-email {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--hl);
  word-break: break-all;
}
.contact-email:hover {
  color: var(--hl);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 5000;
  background: rgba(10, 11, 13, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: all;
}
.lb-img {
  max-width: 95vw;
  max-height: 85vh;
  border-radius: var(--radius-sm);
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}
.lb-close {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: #FFFFFF;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 20px;
}

footer {
  text-align: center;
  padding: 64px 20px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: var(--ink-muted);
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none; 
  }
  .menu-toggle {
    display: flex; 
  }
  .header {
    padding: 0 20px;
    height: 70px;
  }
  .container {
    padding-top: 110px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .img-pair {
    grid-template-columns: 1fr;
  }
  .custom-select {
    width: 115px;
  }
}

.mobile-nav-panel {
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  z-index: 999;
  display: none;
  flex-direction: column;
  padding: 24px;
  gap: 16px;
  box-shadow: var(--shadow-hover);
}
.mobile-nav-panel.open {
  display: flex;
}
.mobile-nav-link {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
/* ===== Restored content additions ===== */

/* numbered design-approach list */
ol.approach {
  margin: 12px 0 0 22px;
  padding: 0;
}
ol.approach li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* stage videos match stage images */
.stage-item video {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: block;
  background: #000;
}

/* mosaic: 3 columns of captioned thumbnails */
.mosaic {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 16px 0 24px;
}
.mosaic .mitem { display: flex; flex-direction: column; }
.mosaic img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: block;
}
.mosaic .caption { margin-top: 6px; font-size: 12px; line-height: 1.45; }
@media (max-width: 700px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
}

/* lightbox: navigation, caption and counter */
.lightbox {
  flex-direction: column;
  padding: 56px 20px 20px;
}
.lb-img { max-height: 76vh; }
.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 64px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 10px;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.lb-nav:hover { border-color: #FF4D00; color: #FF4D00; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-cap {
  margin-top: 14px;
  max-width: 62ch;
  text-align: center;
  color: #E4E1D8;
  font-size: 14px;
  line-height: 1.5;
}
.lb-count {
  margin-top: 6px;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #97928A;
}
@media (max-width: 700px) {
  .lb-nav { top: auto; bottom: 14px; transform: none; width: 60px; height: 42px; }
  .lb-prev { left: 14px; }
  .lb-next { right: 14px; }
  .lb-img { max-height: 62vh; }
}

/* store button rows */
.proj-actions { flex-wrap: wrap; gap: 10px; }
