@import url("https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap&subset=latin-ext");
:root {
  --bg: #f7f3ec;
  --ink: #13110f;
  --muted: #4b4b4b;
  --accent: #ff6b3d;
  --accent-2: #2b7a78;
  --card: #ffffff;
  --shadow: rgba(17, 17, 17, 0.12);
  --header-h: 150px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jost", sans-serif;
  color: var(--ink);
  background: transparent;
  min-height: 100vh;
  overflow-x: hidden;
}
.net-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0.5;
  background: var(--bg);
  display: block;
}
.net-bg--header {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  z-index: 0;
  background: #13110f;
}
.page {
  position: relative;
  z-index: 1;
}
.site-header {
  height: var(--header-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header-invert .site-header {
  background: #13110f;
  color: #fff;
}
.logo-mark {
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  z-index: 1;
}
.logo-mark img {
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
}
.main-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
  z-index: 1;
}
.main-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.4px;
}
.header-invert .main-nav a { color: #fff; }

.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  min-height: 520px;
  overflow: hidden;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform 700ms ease;
}
.slide {
  min-width: 100%;
  height: 100%;
  position: relative;
}
.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--slide-image);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: var(--slide-pos, center);
  filter: grayscale(70%);
  z-index: 0;
}
.slide.placeholder {
  background: linear-gradient(135deg, #e9e4dc, #d9e5e6);
}
.slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.25);
  z-index: 1;
}
.slide-content {
  position: absolute;
  left: 8vw;
  bottom: 12vh;
  color: #fff;
  max-width: 620px;
  z-index: 2;
}
.slide-content h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 0 0 10px;
  font-weight: 600;
}
.slide-content p {
  font-size: 18px;
  margin: 0;
  opacity: 0.9;
}
.slider-controls {
  position: absolute;
  left: 8vw;
  bottom: 6vh;
  display: flex;
  gap: 10px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}
.dot.active { background: #fff; }
.slider-arrow {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 2vh;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  text-decoration: none;
  display: grid;
  place-items: center;
  font-size: 22px;
  animation: arrow-bounce 2.2s ease-in-out infinite;
  z-index: 3;
  pointer-events: auto;
}
.slider-arrow img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  mix-blend-mode: difference;
}
@keyframes arrow-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

.cta { display: flex; gap: 16px; align-items: center; }
.btn {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 10px 24px var(--shadow);
}
.link {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
}
main { max-width: 1100px; margin: 0 auto; padding: 0 8vw 80px; }
#portfolio {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 100px 6vw !important;
}
#portfolio .section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 12px;
}
#portfolio .section-head h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
}
#portfolio .section-head h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 18px auto 0;
}
#portfolio .section-head p {
  max-width: 500px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--muted);
}
#o-mne,
#kontakt {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.section { padding: 64px 0; }
.section-head h2, .section h2 { font-size: 32px; margin-bottom: 12px; font-weight: 600; }
.section-head p { color: var(--muted); max-width: 680px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 40px;
  justify-content: center;
}
.filter {
  border: 1px solid rgba(19, 17, 15, 0.15);
  background: var(--card);
  color: var(--ink);
  padding: 11px 24px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 300ms cubic-bezier(.22,.61,.36,1);
}
.filter:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}
.filter.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 6px 20px rgba(19, 17, 15, 0.25);
}
#portfolio .grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  transition: opacity 220ms ease, transform 220ms ease;
}
.grid.loading { opacity: 0.5; }
.grid.fade-out { opacity: 0; transform: translateY(6px); }
.grid.fade-in { opacity: 1; transform: translateY(0); }
.card {
  background: var(--card);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  margin: 0;
  display: grid;
  gap: 0;
  position: relative;
  transition: transform 400ms cubic-bezier(.22,.61,.36,1), box-shadow 400ms ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
}
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  transform: translateY(100%);
  transition: transform 900ms ease;
  z-index: 1;
  pointer-events: none;
}
.card.dir-left::after { transform: translateX(-100%); }
.card.dir-right::after { transform: translateX(100%); }
.card.dir-top::after { transform: translateY(-100%); }
.card.dir-bottom::after { transform: translateY(100%); }
.card.is-hover::after { transform: translateX(0) translateY(0); }
.card-link { display: block; position: relative; z-index: 0; }
.card img {
  width: 100%;
  height: auto;
  object-fit: initial;
  display: block;
  position: relative;
  z-index: 0;
  filter: grayscale(100%);
  transition: filter 1200ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .card.is-hover img,
  .card:hover img { filter: grayscale(0%); }
}
#portfolio .card figcaption {
  position: absolute;
  inset: 0;
  padding: 16px;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 260ms ease;
  pointer-events: none;
  z-index: 2;
}
#portfolio .card.is-hover figcaption { transform: translateX(0) translateY(0); }
#portfolio .card.dir-left.is-hover figcaption,
#portfolio .card.dir-right.is-hover figcaption,
#portfolio .card.dir-top.is-hover figcaption,
#portfolio .card.dir-bottom.is-hover figcaption {
  transform: translateX(0) translateY(0);
}
#portfolio .card.dir-left figcaption { transform: translateX(-100%); }
#portfolio .card.dir-right figcaption { transform: translateX(100%); }
#portfolio .card.dir-top figcaption { transform: translateY(-100%); }
#portfolio .card.dir-bottom figcaption { transform: translateY(100%); }
#portfolio .card.is-hover.dir-left figcaption,
#portfolio .card.is-hover.dir-right figcaption,
#portfolio .card.is-hover.dir-top figcaption,
#portfolio .card.is-hover.dir-bottom figcaption {
  transform: translateX(0) translateY(0);
}
@media (hover: none) {
  #portfolio .card figcaption { display: none; }
}
.empty {
  background: #fff3e6;
  padding: 20px;
  border-radius: 16px;
}
/* --- About section --- */
#o-mne {
  background: var(--ink);
  color: #fff;
  padding: 100px 6vw !important;
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
#o-mne::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.06;
  pointer-events: none;
}
#o-mne::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -60px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: var(--accent-2);
  opacity: 0.06;
  pointer-events: none;
}
.about-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}
#o-mne h2 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 48px);
  margin: 0 0 6px;
  font-weight: 700;
  line-height: 1.15;
}
#o-mne h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-top: 18px;
  margin-bottom: 20px;
}
.about-text {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
  margin: 0;
}
.about-details {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.about-services h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 16px;
  font-weight: 500;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.service-tag {
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  transition: all 300ms ease;
}
.service-tag:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}
.about-note {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  line-height: 1.75;
  padding: 24px 0 0 24px;
  border-left: 2px solid var(--accent);
}

/* --- Contact section --- */
#kontakt {
  padding: 100px 6vw !important;
}
.contact-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.contact-lead {
  text-align: center;
  margin-bottom: 56px;
}
.contact-lead h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
}
.contact-lead h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 18px auto 0;
}
.contact-text {
  color: var(--muted);
  font-size: 18px;
  margin-top: 12px;
}
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 44px 28px 40px;
  background: var(--card);
  border-radius: 24px;
  box-shadow: 0 4px 24px var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.04);
  text-decoration: none;
  color: var(--ink);
  transition: transform 400ms cubic-bezier(.22,.61,.36,1), box-shadow 400ms ease;
  position: relative;
  overflow: hidden;
}
.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 400ms ease;
  z-index: 0;
}
a.contact-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(17, 17, 17, 0.2);
}
a.contact-card:hover::before {
  opacity: 1;
}
a.contact-card:hover .contact-icon {
  background: #fff;
  color: var(--accent);
}
a.contact-card:hover .contact-label,
a.contact-card:hover strong {
  color: #fff;
}
.contact-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  transition: all 400ms ease;
}
.contact-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: color 400ms ease;
}
.contact-card strong {
  font-size: 17px;
  font-weight: 600;
  position: relative;
  z-index: 1;
  transition: color 400ms ease;
}
footer {
  padding: 24px 8vw 40px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
}
footer a { color: var(--muted); text-decoration: none; }
@media (max-width: 1200px) {
  #portfolio .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .slide-content { left: 6vw; right: 6vw; }
  .slider-controls { left: 6vw; }
  .main-nav { gap: 14px; }
  #portfolio .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --header-h: 130px; }
}
@media (max-width: 640px) {
  #portfolio { padding-left: 5vw; padding-right: 5vw; }
  #portfolio .grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  #o-mne, #kontakt { padding-left: 5vw; padding-right: 5vw; }
  :root { --header-h: 120px; }
  .hero-slider { min-height: 360px; }
  .net-bg--header { opacity: 0.3; }
}
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 4vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
  z-index: 999;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.lightbox-caption {
  color: #fff;
  margin-top: 12px;
  text-align: center;
  font-weight: 600;
  width: 100%;
}
.lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 2;
}
.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }
