:root {
  color-scheme: dark;
  --bg: #07090f;
  --bg-soft: #101521;
  --card: rgba(255, 255, 255, 0.08);
  --card-strong: rgba(255, 255, 255, 0.13);
  --text: #f7f4ef;
  --muted: #aab3c5;
  --accent: #9bdcff;
  --accent-2: #c7edff;
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(136, 216, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 20%, rgba(155, 220, 255, 0.14), transparent 32rem),
    linear-gradient(145deg, #07090f, #111827 58%, #0b1019);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.lightbox-open {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 76%);
  content: "";
}

img {
  display: block;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.language-switch {
  position: relative;
  top: clamp(42px, 6vh, 58px);
  z-index: 50;
  grid-column: 1 / -1;
  justify-self: center;
  display: flex;
  gap: 4px;
  width: fit-content;
  margin: 0 0 clamp(14px, 2.4vw, 30px);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.78);
  padding: 5px;
  backdrop-filter: blur(16px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.26);
}

.language-switch__button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 9px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.language-switch__button:hover,
.language-switch__button:focus-visible {
  color: var(--text);
  outline: none;
}

.language-switch__button.is-active {
  background: var(--accent);
  color: #06121a;
}

.language-switch__flag {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  width: 20px;
  height: 14px;
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.language-switch__flag--pl {
  background: linear-gradient(#fff 0 50%, #dc143c 50% 100%);
}

.language-switch__flag--gb {
  background:
    linear-gradient(90deg, transparent 42%, #c8102e 42% 58%, transparent 58%),
    linear-gradient(transparent 36%, #c8102e 36% 64%, transparent 64%),
    linear-gradient(90deg, transparent 35%, #fff 35% 65%, transparent 65%),
    linear-gradient(transparent 28%, #fff 28% 72%, transparent 72%),
    linear-gradient(32deg, transparent 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58%),
    linear-gradient(-32deg, transparent 42%, #fff 42% 48%, #c8102e 48% 52%, #fff 52% 58%, transparent 58%),
    #012169;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.about-section,
.project-hero,
.feature-section {
  display: grid;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
  min-height: 100vh;
}

.about-section {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  column-gap: clamp(30px, 6vw, 76px);
  row-gap: clamp(18px, 3vw, 34px);
}

.project-hero,
.feature-section {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
}

.feature-section.reverse {
  grid-template-columns: minmax(360px, 1.08fr) minmax(0, 0.92fr);
}

.feature-section.reverse .feature-copy {
  order: 2;
}

.profile-wrap {
  display: flex;
  justify-content: center;
}

.profile-photo-frame {
  position: relative;
  width: min(340px, 68vw);
  aspect-ratio: 1;
  border: 1px solid var(--border);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.02)),
    var(--card);
  box-shadow: var(--shadow);
  padding: 12px;
}

.profile-photo-frame::before,
.profile-photo-frame::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
}

.profile-photo-frame::before {
  inset: -28px;
  background: linear-gradient(135deg, rgba(136, 216, 255, 0.38), rgba(199, 237, 255, 0.2));
  filter: blur(18px);
  opacity: 0.8;
}

.profile-photo-frame::after {
  inset: 12%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.profile-photo {
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(3.4rem, 8vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: -0.09em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.08em;
}

p {
  color: var(--muted);
  line-height: 1.68;
}

.about-text,
.lead,
.feature-copy p,
.contact-section p {
  max-width: 720px;
  color: #dfe6f3;
  font-size: clamp(0.98rem, 1.28vw, 1.12rem);
}

.about-text {
  margin-bottom: 34px;
}

.scroll-cue,
.contact-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-weight: 800;
}

.scroll-cue {
  gap: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 14px 18px 14px 22px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.scroll-cue:hover,
.scroll-cue:focus-visible {
  border-color: rgba(155, 220, 255, 0.58);
  background: rgba(155, 220, 255, 0.14);
  transform: translateY(-2px);
}

.arrow {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #06121a;
  font-size: 1.35rem;
  animation: arrow-bounce 1.35s ease-in-out infinite;
}

.model-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.model-row span,
.model-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.24);
}

.model-row span {
  border-radius: 999px;
  color: var(--text);
  font-size: 0.94rem;
  font-weight: 800;
  padding: 10px 14px;
}

.project-preview,
.feature-media,
.feature-media-stack,
.project-video,
.contact-section {
  border: 1px solid var(--border);
  border-radius: 34px;
  background: linear-gradient(145deg, var(--card-strong), rgba(255, 255, 255, 0.035));
  box-shadow: var(--shadow);
}

.project-preview,
.feature-media {
  overflow: hidden;
  margin: 0;
  padding: 12px;
}

.overview-card {
  display: grid;
  gap: 16px;
  padding: clamp(26px, 5vw, 50px);
}

.overview-card span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.overview-card strong {
  max-width: 520px;
  color: var(--text);
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
}

.overview-card p {
  max-width: 520px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
}

.project-preview img,
.feature-media img,
.feature-media-stack img {
  border-radius: 24px;
  object-fit: cover;
}

.feature-media img.is-zoomable,
.feature-media-stack img.is-zoomable {
  cursor: zoom-in;
  transition: filter 180ms ease, transform 180ms ease;
}

.feature-media img.is-zoomable:hover,
.feature-media img.is-zoomable:focus-visible,
.feature-media-stack img.is-zoomable:hover,
.feature-media-stack img.is-zoomable:focus-visible {
  filter: brightness(1.08);
  outline: 2px solid rgba(155, 220, 255, 0.72);
  outline-offset: 4px;
  transform: scale(1.012);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(3, 5, 10, 0.86);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox__image {
  width: auto;
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  object-fit: contain;
}

.image-lightbox__close {
  position: fixed;
  top: 22px;
  right: 22px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1.7rem;
  line-height: 1;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  border-color: rgba(155, 220, 255, 0.72);
  background: rgba(155, 220, 255, 0.18);
  outline: none;
}

.project-video {
  overflow: hidden;
  margin: 0;
  padding: 12px;
  aspect-ratio: 16 / 9;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 24px;
}

.features-title {
  min-height: 42vh;
  display: grid;
  align-content: center;
  justify-items: center;
  padding-top: 56px;
  padding-bottom: 56px;
  text-align: center;
}

.features-title h2 {
  margin-bottom: 0;
}

.project-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(1180px, calc(100% - 32px));
  margin: 22px auto -26px;
}

.project-divider::before {
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(155, 220, 255, 0.42),
    rgba(136, 216, 255, 0.26),
    transparent
  );
  content: "";
}

.project-divider span {
  position: absolute;
  border: 1px solid rgba(155, 220, 255, 0.36);
  border-radius: 999px;
  background: rgba(7, 9, 15, 0.92);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 8px 14px;
  text-transform: uppercase;
}

.feature-number {
  display: inline-grid;
  width: 50px;
  height: 50px;
  margin-bottom: 18px;
  place-items: center;
  border: 1px solid rgba(155, 220, 255, 0.5);
  border-radius: 50%;
  background: rgba(155, 220, 255, 0.12);
  color: var(--accent);
  font-weight: 800;
}

.model-card {
  display: grid;
  gap: 6px;
  width: fit-content;
  margin-top: 22px;
  border-radius: 22px;
  padding: 14px 16px;
}

.model-card span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.model-card strong {
  color: var(--text);
}

.feature-media-stack {
  display: grid;
  gap: 18px;
  padding: 12px;
}

.feature-media-stack img {
  max-height: 620px;
  object-position: top center;
}

.contact-section {
  margin-bottom: 32px;
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
}

.contact-section h2 {
  margin-bottom: 22px;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  letter-spacing: 0.12em;
}

.contact-link {
  margin-top: 12px;
  background: var(--accent);
  color: #06121a;
  padding: 14px 20px;
}

.reveal {
  opacity: 0;
  transform: translateY(44px) scale(0.98);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1);
}

@keyframes arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 900px) {
  .about-section,
  .project-hero,
  .feature-section,
  .feature-section.reverse {
    grid-template-columns: 1fr;
  }

  .feature-section.reverse .feature-copy {
    order: initial;
  }
}

@media (max-width: 760px) {
  .about-section {
    text-align: center;
  }

  .about-text,
  .lead,
  .feature-copy p,
  .contact-section p {
    margin-right: auto;
    margin-left: auto;
  }

  .model-row,
  .model-card {
    justify-content: center;
    margin-right: auto;
    margin-left: auto;
  }
}

@media (max-width: 640px) {
  .language-switch {
    top: 0;
    margin-bottom: 8px;
  }

  .language-switch__button {
    font-size: 0.76rem;
    padding: 8px 10px;
  }

  .section {
    padding: 78px 0;
  }

  .about-section {
    min-height: auto;
    padding-top: 58px;
  }

  .profile-photo-frame {
    width: min(260px, 72vw);
  }

  h1 {
    font-size: clamp(3.4rem, 22vw, 6rem);
  }

  .project-preview,
  .feature-media,
  .feature-media-stack,
  .project-video {
    border-radius: 24px;
    padding: 8px;
  }

  .project-video iframe {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .arrow {
    animation: none;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

