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

:root {
  --bg: #1a1428;
  --surface: #120e1c;
  --surface-2: #211836;
  --text: #f5ede1;
  --text-muted: rgba(245, 237, 225, 0.72);
  --text-dim: rgba(245, 237, 225, 0.45);
  --text-fade: rgba(245, 237, 225, 0.28);
  --accent-warm: #e8734a;
  --accent-cool: #a68fff;
  --success: #7bcf99;

  --syn-keyword: #a68fff;
  --syn-type: #f0c17b;
  --syn-string: #7bcf99;

  --border: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.14);
  --divider: rgba(255, 255, 255, 0.08);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
  --font-arabic: 'Noto Sans Arabic', system-ui, sans-serif;

  --radius: 6px;
  --radius-lg: 8px;
  --radius-pill: 999px;

  --dur: 200ms;
  --easing: cubic-bezier(0.4, 0, 0.2, 1);

  --nav-h: 60px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  color-scheme: dark;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
button { font-family: inherit; color: inherit; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 400;
  background: var(--accent-warm);
  color: var(--bg);
  padding: 8px 12px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
}
.skip-link:focus { top: 12px; }

.container { max-width: 1100px; margin: 0 auto; padding-inline: 20px; }
@media (min-width: 900px) { .container { padding-inline: 40px; } }

section {
  padding-top: 44px;
  padding-bottom: 36px;
  border-top: 1px dashed var(--border-strong);
}
@media (min-width: 900px) {
  section {
    padding-top: 56px;
    padding-bottom: 44px;
  }
}

.js .reveal {
  opacity: 0;
  transition: opacity 0.7s var(--easing);
}
.js .reveal.is-in {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; }
  .hero-avatar:hover img { transform: none; }
  .logo-quote { transition: none; }
}

/* --- nav --- */
.nav {
  position: sticky;
  top: 0;
  z-index: 150;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  height: var(--nav-h);
  padding: 0 20px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  column-gap: 16px;
  isolation: isolate;
}
@media (min-width: 900px) { .nav { padding: 0 40px; } }

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}
.logo-frame {
  display: block;
  line-height: 0;
}
.logo-mark {
  height: 22px;
  width: auto;
  filter: brightness(1.18) saturate(1.05);
}
.logo:hover { opacity: 0.86; }

.logo-quote {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34ch;
  opacity: 1;
  transition: opacity 320ms var(--easing);
}
.logo-quote.is-out { opacity: 0; }
@media (max-width: 1079px) { .logo-quote { display: none; } }

.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  pointer-events: none;
  background: var(--border);
}
.nav-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent-warm);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 22px;
  justify-self: center;
}
.nav-links a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dur) var(--easing);
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent-warm); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-self: end;
}
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.badge-status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.lang {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--dur) var(--easing);
}
.lang:hover { border-color: var(--accent-warm); }

.nav-burger { display: none; }

@media (max-width: 899px) {
  .nav {
    display: flex;
    justify-content: space-between;
  }
  .nav-links,
  .nav-right { display: none; }

  .nav-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    width: 42px;
    height: 42px;
    position: relative;
    z-index: 130;
  }
  .nav-burger span {
    width: 22px;
    height: 1.5px;
    background: var(--text);
    transition: transform var(--dur) var(--easing), opacity var(--dur) var(--easing);
  }
  .nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: var(--bg);
    padding: 40px 24px 88px;
    gap: 8px;
    align-items: flex-start;
    overflow-y: auto;
    z-index: 120;
  }
  .nav.menu-open .nav-links li { width: 100%; }
  .nav.menu-open .nav-links a {
    display: block;
    padding: 12px 0;
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--text);
  }
  .nav.menu-open .nav-links a.active {
    color: var(--accent-warm);
    font-style: italic;
  }

  .nav.menu-open .nav-right {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    background: var(--bg);
    padding: 16px 24px;
    border-top: 1px dashed var(--divider);
    justify-content: space-between;
    z-index: 121;
  }
}

body.menu-open { overflow: hidden; }

/* ——— hero ——— */
.hero { padding-top: 40px; padding-bottom: 28px; border-top: none; }
@media (min-width: 900px) { .hero { padding-top: 80px; padding-bottom: 36px; } }

.hero-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    gap: 48px;
    align-items: stretch;
  }
}

.hero-copy {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "avatar heading"
    "lead lead"
    "chips chips"
    "cta cta";
  column-gap: 20px;
  row-gap: 0;
  align-items: start;
  min-width: 0;
}
@media (min-width: 900px) {
  .hero-copy { column-gap: 28px; }
}
@media (max-width: 640px) {
  .hero-copy {
    grid-template-columns: 1fr;
    grid-template-areas:
      "avatar"
      "heading"
      "lead"
      "chips"
      "cta";
    row-gap: 10px;
  }
}

.hero-avatar {
  grid-area: avatar;
  width: 120px;
  height: 120px;
}
@media (min-width: 900px) {
  .hero-avatar { width: 176px; height: 176px; }
}

.hero-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 400ms var(--easing);
}
.hero-avatar:hover img { transform: scale(1.04); }

.hero-heading {
  grid-area: heading;
  min-width: 0;
}

.hero-copy .section-kicker {
  margin-bottom: 6px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 34px;
  line-height: 1.14;
  font-weight: 500;
  margin: 0;
}
.hero-title span { display: block; }
.hero-title .italic { font-style: italic; }
.hero-title .warm { color: var(--accent-warm); }
@media (min-width: 640px)  { .hero-title { font-size: 40px; } }
@media (min-width: 1100px) { .hero-title { font-size: 44px; } }

.hero-lead {
  grid-area: lead;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 14px 0 0;
  max-width: 58ch;
}
@media (min-width: 900px) { .hero-lead { font-size: 15px; } }

.lang-chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 4px 12px;
  border: 1px solid var(--text-dim);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
}
.chip.warm {
  border-color: var(--accent-warm);
  color: var(--accent-warm);
  background: #e8734a22;
}
.chip.arabic { font-family: var(--font-arabic); font-size: 13px; }

.hero-cta {
  grid-area: cta;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.btn-primary {
  background: var(--accent-warm);
  color: var(--bg);
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  transition: transform var(--dur) var(--easing), background var(--dur) var(--easing);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  padding: 10px 4px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--dur) var(--easing);
}
.btn-ghost:hover { color: var(--text); }

.hero-ide {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  min-height: 220px;
}
@media (min-width: 900px) {
  .hero-ide { min-height: 100%; }
}
.ide-tabs {
  display: flex;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.ide-tabs .tab {
  padding: 7px 14px;
  color: var(--text-dim);
  border: none;
  border-right: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  transition: color var(--dur) var(--easing), background var(--dur) var(--easing);
}
.ide-tabs .tab.active {
  background: var(--surface);
  color: var(--text);
}
.ide-code {
  padding: 14px;
  line-height: 1.8;
  color: var(--text);
  font-size: 13px;
  white-space: pre;
  overflow-x: auto;
  margin: 0;
  flex: 1;
}
.ide-code .ln { color: var(--text-fade); margin-right: 12px; user-select: none; }
.ide-code .kw   { color: var(--syn-keyword); }
.ide-code .ty   { color: var(--syn-type); }
.ide-code .str  { color: var(--syn-string); }
.ide-code .warm { color: var(--accent-warm); }
.ide-code .cm   { color: var(--text-dim); }
.ide-code .ok   { color: var(--success); }

.now-strip {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--divider);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}
.now-strip em { font-style: normal; color: var(--text); }
.now-strip .dot.ok {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  margin-right: 6px;
}
.now-strip .cool { color: var(--accent-cool); }

.scroll-cue {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--dur) var(--easing), color var(--dur) var(--easing), opacity var(--dur) var(--easing);
}
.scroll-cue svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur) var(--easing);
}
.scroll-cue:hover { border-color: var(--accent-warm); color: var(--text); }
.scroll-cue.is-top svg { transform: rotate(180deg); }
body.menu-open .scroll-cue,
body.panel-open .scroll-cue { opacity: 0; pointer-events: none; }

/* ——— section header ——— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-head .section-kicker { margin-bottom: 0; }
.section-path {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-fade);
}

.section-lead {
  font-family: var(--font-serif);
  font-size: 20px;
  line-height: 1.45;
  max-width: 40ch;
  margin-bottom: 32px;
  color: var(--text);
}
.section-lead em { color: var(--accent-warm); font-style: italic; }
@media (min-width: 900px) { .section-lead { font-size: 26px; } }

/* ——— skills ——— */
.skill-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
@media (min-width: 640px) { .skill-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

.skill-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.skill-list { list-style: none; }
.skill-list li {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 2;
  color: var(--text);
}
.skill-list li::before { content: "· "; color: var(--text-dim); }

.also {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px dashed var(--divider);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}
.also-label { color: var(--text-dim); }

/* ——— timeline ——— */
.timeline-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px dashed var(--divider);
}
.timeline-item:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 8px; }

@media (min-width: 640px) {
  .timeline-item { grid-template-columns: 140px 1fr; gap: 24px; }
}

.tl-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 6px;
}
.tl-date span { color: var(--text-dim); }
@media (min-width: 640px) { .tl-date span { display: block; } }

.tl-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text);
}
.tl-org {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-warm);
  margin-bottom: 12px;
}
.tl-org a {
  color: var(--accent-warm);
  text-underline-offset: 3px;
}
.tl-body p {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 10px;
  background: var(--surface);
  border-radius: 4px;
  color: var(--text-muted);
}

/* ——— projects ——— */
.project-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .project-list { grid-template-columns: 1fr 1fr; gap: 20px; } }

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color var(--dur) var(--easing), transform var(--dur) var(--easing);
}
.project:hover { border-color: var(--accent-warm); transform: translateY(-2px); }
.project.featured {
  background: rgba(232, 115, 74, 0.06);
  border-color: rgba(232, 115, 74, 0.28);
}
@media (min-width: 900px) {
  .project.featured { grid-column: 1 / -1; }
}

.project header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  gap: 12px;
}
.project h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  color: var(--text);
}
.project .status {
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.project .status.ok { color: var(--success); }

.project-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cool);
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}
.project p {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.project-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 14px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg);
  color: var(--text-muted);
  border-radius: 3px;
}
.tag.warm { background: rgba(232, 115, 74, 0.18); color: var(--accent-warm); }
.tag.cool { background: rgba(166, 143, 255, 0.18); color: var(--accent-cool); }

.project-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
}
.link-warm {
  background: none;
  border: none;
  color: var(--accent-warm);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}
.link-warm:hover { text-decoration: underline; }
.link-dim {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--dur) var(--easing);
}
.link-dim:hover { color: var(--text); }

.all-projects { text-align: center; margin-top: 32px; }

.btn-outline {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  transition: border-color var(--dur) var(--easing), background var(--dur) var(--easing);
}
.btn-outline:hover {
  border-color: var(--accent-warm);
  background: var(--surface-2);
}

/* ——— panel ——— */
.panel-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 28, 0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity var(--dur) var(--easing);
}
.panel-backdrop.open { opacity: 1; }

.panel {
  position: fixed;
  z-index: 201;
  background: var(--bg);
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: transform 300ms var(--easing);
  top: var(--nav-h);
  right: 0;
  bottom: 0;
  width: min(520px, 90vw);
  border-left: 1px solid var(--border);
  transform: translateX(100%);
}
.panel.open { transform: translateX(0); }

@media (max-width: 639px) {
  .panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88vh;
    border-left: none;
    border-top: 1px solid var(--border);
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .panel.open { transform: translateY(0); }
}

.panel-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  transition: background var(--dur) var(--easing), color var(--dur) var(--easing);
  z-index: 1;
}
.panel-close:hover { background: var(--surface); color: var(--text); }

.panel-content { padding: 32px 28px; }
.panel-content h2 {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 4px;
  padding-right: 40px;
}
.panel-content .status {
  font-size: 12px;
  color: var(--success);
  margin-bottom: 20px;
}
.panel-content p {
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 20px;
  white-space: pre-line;
}
.panel-content .panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.panel-content .panel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.panel-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 0 0 20px;
}
@media (min-width: 480px) {
  .panel-gallery { grid-template-columns: 1fr 1fr; }
}
.panel-shot {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
  padding: 0;
  min-height: 108px;
}
.panel-shot img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  object-position: top;
}

body.panel-open { overflow: hidden; }

/* ——— contact ——— */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
}

.contact-lead {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--text);
}
.contact-lead em { color: var(--accent-warm); font-style: italic; }
@media (min-width: 900px) { .contact-lead { font-size: 26px; } }

#kontakt { padding-bottom: 32px; }
@media (min-width: 900px) { #kontakt { padding-bottom: 40px; } }

.contact-links { display: flex; flex-direction: column; gap: 8px; }
.contact-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  transition: border-color var(--dur) var(--easing), transform var(--dur) var(--easing);
}
.contact-row:hover { border-color: var(--accent-warm); transform: translateX(2px); }
.contact-row .warm { color: var(--accent-warm); }

/* ——— footer ——— */
.footer {
  padding: 28px 20px 72px;
  margin-top: 0;
  border-top: 1px dashed var(--border-strong);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}
@media (min-width: 900px) { .footer { padding: 28px 40px 72px; } }

/* ——— lightbox ——— */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(18, 14, 28, 0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) var(--easing), visibility var(--dur) var(--easing);
}
.lightbox.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  border: 1px solid var(--border-strong);
}
.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  cursor: pointer;
}
