:root {
  --bg: #000000;
  --panel: rgba(255, 255, 255, 0.06);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.12);
  --accent: #E25303;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
  --radius: 28px;
  --max: 1320px;
  --header-h: 84px;
}

/* ---------- FONTS ---------- */

@font-face {
  font-family: "Aristotelica";
  src: url("../fonts/Aristotelica-Regular.woff2") format("woff2"),
       url("../fonts/Aristotelica-Regular.woff") format("woff"),
       url("../fonts/Aristotelica-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Questrial";
  src: url("../fonts/Questrial-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- BASE ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Questrial", Arial, sans-serif;
  line-height: 1.4;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body:not(.home-page) .loading-screen {
  display: none !important;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
.hero-title,
.section-title,
.project-title,
.info-title,
.menu-link,
.site-footer strong {
  font-family: "Aristotelica", Arial, sans-serif;
  font-weight: 400;
}

.eyebrow,
.section-index,
.menu-label,
.hero-subtitle,
.section-text,
.project-lead,
.info-text,
.meta-card,
.button,
.hero-scroll,
body {
  font-family: "Questrial", Arial, sans-serif;
}

/* ---------- HEADER ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 2.8vw, 34px);
  z-index: 240;
  pointer-events: none;
}

.site-brand,
.burger {
  pointer-events: auto;
}

.site-brand {
  position: relative;
  display: block;
  width: clamp(112px, 13vw, 156px);
  z-index: 2;
}

.site-brand img {
  width: 100%;
  height: auto;
  opacity: 1;
  mix-blend-mode: difference;
}

.burger {
  position: relative;
  z-index: 2;
  border: 0;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  padding: 12px;
  width: auto;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}

.burger:hover,
.burger:focus-visible {
  transform: scale(1.03);
}

.burger span {
  display: block;
  width: 34px;
  height: 3px;
  background: #fff;
  transition: background 0.25s ease, transform 0.25s ease;
}

.burger:hover span,
.burger:focus-visible span {
  background: var(--accent);
}

/* ---------- LOADING SCREEN ---------- */

.loading-screen {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: #000;
  z-index: 400;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-orbit {
  position: relative;
  width: min(42vw, 320px);
  display: grid;
  place-items: center;
}

.loading-logo {
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(0.94);
  will-change: transform, opacity;
  animation:
    logoIntro 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logoBreath 2.2s ease-in-out 0.8s infinite;
}

.loading-screen.is-finishing .loading-logo {
  animation:
    logoIntro 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    logoFadeOut 0.6s ease forwards;
}

@keyframes logoIntro {
  0% {
    opacity: 0;
    transform: scale(0.94);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes logoBreath {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.025);
    opacity: 0.96;
  }
}

@keyframes logoFadeOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.03);
  }
}

/* ---------- BACK TO TOP ---------- */

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 34px;
  width: 58px;
  height: 58px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  z-index: 220;
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.92);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    visibility 0.35s ease;
  appearance: none;
  -webkit-appearance: none;
  overflow: visible;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center center;
  will-change: transform, filter;
  animation: rocketFloat 2.8s ease-in-out infinite;
  transition: transform 0.22s ease, filter 0.22s ease;
}

/* Haupt-Trail */
.back-to-top::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 66%;
  width: 10px;
  height: 34px;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scaleY(0.12);
  transform-origin: top center;
  border-radius: 999px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(255, 255, 255, 0.5) 38%,
      rgba(255, 255, 255, 0.16) 72%,
      rgba(255, 255, 255, 0) 100%
    );
  filter: blur(0.4px) drop-shadow(0 0 6px rgba(255, 255, 255, 0.22));
}

/* Kleine Partikel */
.back-to-top::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 88%;
  width: 30px;
  height: 30px;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) scale(0.45);
  background:
    radial-gradient(circle, rgba(255,255,255,0.8) 0 1.4px, transparent 2.5px) 50% 8% / 7px 7px no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1.2px, transparent 2.5px) 28% 40% / 7px 7px no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.55) 0 1.2px, transparent 2.5px) 72% 40% / 7px 7px no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 2.5px) 40% 72% / 6px 6px no-repeat,
    radial-gradient(circle, rgba(255,255,255,0.35) 0 1px, transparent 2.5px) 60% 74% / 6px 6px no-repeat;
}

.back-to-top:hover img,
.back-to-top:focus-visible img {
  transform: translate3d(0, -3px, 0) scale(1.04);
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.18));
}

.back-to-top.is-boosting img {
  animation: rocketBoostHold 0.82s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.back-to-top.is-boosting::before {
  opacity: 0.55;
  animation: boostTrailHold 0.82s ease-in-out infinite;
}

.back-to-top.is-boosting::after {
  opacity: 0.55;
  animation: boostParticlesHold 0.82s ease-in-out infinite;
}

@keyframes rocketBoostHold {
  0%,
  100% {
    transform: translate3d(0, -3px, 0) scale(1.03);
  }

  50% {
    transform: translate3d(0, -9px, 0) scale(1.06);
  }
}

@keyframes boostTrailHold {
  0%,
  100% {
    opacity: 0.45;
    transform: translateX(-50%) scaleY(0.72);
  }

  50% {
    opacity: 0.72;
    transform: translateX(-50%) scaleY(1);
  }
}

@keyframes boostParticlesHold {
  0%,
  100% {
    opacity: 0.42;
    transform: translateX(-50%) translateY(4px) scale(0.82);
  }

  50% {
    opacity: 0.68;
    transform: translateX(-50%) translateY(12px) scale(1);
  }
}
/* ---------- MENU ---------- */

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease, visibility 0.28s ease;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.menu-overlay__inner {
  position: relative;
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.menu-close {
  position: absolute;
  top: 22px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-close:hover,
.menu-close:focus-visible {
  color: var(--accent);
  transform: scale(1.06);
}

.menu-nav {
  width: min(680px, 100%);
  padding: 38px 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}

.menu-link {
  color: #fff;
  font-size: clamp(1.3rem, 1.8vw, 1.8rem);
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.menu-link:hover,
.menu-link:focus-visible,
.menu-link.is-active {
  color: var(--accent);
  transform: translateY(-1px);
}

.menu-group {
  width: 100%;
  display: grid;
  gap: 16px;
  margin-top: 2px;
}

.menu-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  text-align: center;
}

.menu-projects {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  align-items: start;
}

.menu-link--project {
  font-family: "Questrial", Arial, sans-serif;
  font-size: 0.96rem;
  line-height: 1.35;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 0;
  text-transform: uppercase;
}

.menu-link--project:hover,
.menu-link--project:focus-visible {
  color: var(--accent);
  transform: translateY(-1px);
}

/* ---------- HOME / HERO ---------- */

.home-main {
  scroll-snap-type: y mandatory;
}

.hero {
  min-height: 100svh;
  position: relative;
  overflow: clip;
  scroll-snap-align: start;
}

.hero-media,
.hero-fallback,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-fallback {
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.09), transparent 38%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0.72)),
    url("../media/01_NewFrontier/newfrontier_shot2.png") center / cover no-repeat;
}

.hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.15) 0%,
    rgba(0, 0, 0, 0.55) 58%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 120px 24px 110px;
}

.hero-copy {
  display: grid;
  gap: 16px;
  justify-items: center;
  width: min(100%, 900px);
}

.eyebrow {
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.82rem;
}

.hero-title {
  font-size: clamp(4rem, 11vw, 10.5rem);
  line-height: 0.9;
  margin: 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  margin: 0;
  max-width: 680px;
  text-wrap: balance;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  color: #fff;
  cursor: pointer;
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
  appearance: none;
  -webkit-appearance: none;
  animation: featuredPulse 1.8s ease-in-out infinite;
}

.hero-scroll:hover,
.hero-scroll:focus-visible {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(226, 83, 3, 0.08);
  box-shadow: 0 0 18px rgba(226, 83, 3, 0.25);
  transform: translateX(-50%) translateY(-2px);
  animation-play-state: paused;
}

.hero-scroll__chevron {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@keyframes featuredPulse {
  0% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35);
  }

  50% {
    transform: translateX(-50%) scale(1.06);
    box-shadow: 0 0 0 14px rgba(255, 255, 255, 0);
  }

  100% {
    transform: translateX(-50%) scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* ---------- HOME SECTIONS ---------- */

.section-screen {
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(108px, 12vh, 140px) clamp(18px, 4vw, 46px) 48px;
  scroll-snap-align: start;
  position: relative;
}

.section-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
    linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.section-inner {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.section-screen:nth-of-type(even) .section-inner {
  grid-template-columns: 0.85fr 1.15fr;
}

.section-screen:nth-of-type(even) .section-copy {
  order: -1;
}

.section-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #090909;
  min-height: 40vh;
}

.section-media img,
.section-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-copy {
  display: grid;
  gap: 18px;
}

.section-index {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.section-text {
  color: var(--muted);
  font-size: clamp(1rem, 1.2vw, 1.08rem);
  line-height: 1.75;
  max-width: 58ch;
}

.section-text p {
  margin: 0;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    color 0.25s ease;
  text-align: center;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(226, 83, 3, 0.72);
  color: var(--accent);
}

.button--accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button--accent:hover,
.button--accent:focus-visible {
  background: transparent;
  color: var(--accent);
}

/* ---------- PROJECT PAGES ---------- */

.project-main {
  display: block;
}

.project-page .project-hero {
  position: relative;
  min-height: 100svh;
  height: 100svh;
  overflow: hidden;
  display: block;
  padding: 0;
}

.project-hero video.project-hero__bg,
.project-hero img.project-hero__bg {
  display: block;
}

.project-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%;
  filter: brightness(0.45);
  z-index: 0;
}

.project-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.42) 50%,
    rgba(0, 0, 0, 0.88) 100%
  );
}

.project-hero__content {
  position: absolute;
  left: clamp(18px, 5vw, 88px);
  right: clamp(18px, 5vw, 88px);
  bottom: clamp(36px, 8vh, 88px);
  z-index: 2;
  max-width: 820px;
  display: grid;
  gap: 18px;
  justify-items: start;
  text-align: left;
}

.project-hero__content .section-actions {
  justify-content: flex-start;
}

.project-title {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-wrap: balance;
}

.project-lead {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.project-body {
  width: min(1260px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 80px;
  display: grid;
  gap: 44px;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.meta-card {
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.meta-card__label {
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.meta-card__value {
  font-size: 1rem;
  line-height: 1.5;
  color: #fff;
}

.content-grid {
  display: grid;
  gap: 24px;
}

.content-grid p {
  margin: 0;
  color: var(--muted);
  line-height: 1.85;
  font-size: 1.03rem;
  max-width: none;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.gallery-card img,
.gallery-card video {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ---------- INFO PAGE ---------- */

.info-page main {
  padding: 118px clamp(18px, 4vw, 46px) 80px;
}

.info-layout {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.info-card {
  border-radius: 30px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.info-card--visual {
  min-height: 560px;
  background:
    radial-gradient(circle at 30% 30%, rgba(226, 83, 3, 0.16), transparent 18%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    #050505;
  display: grid;
  place-items: center;
  padding: 40px;
}

.info-card--visual img {
  width: min(100%, 360px);
}

.info-copy {
  display: grid;
  gap: 20px;
}

.info-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.info-text {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
}

/* ---------- FOOTER ---------- */

.footer-role {
  color: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding: 22px clamp(18px, 4vw, 46px) 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.95rem;
}

/* ---------- PROJECT IMAGE POPUP / LIGHTBOX ---------- */

.project-page .gallery-card {
  cursor: zoom-in;
}

.project-page .gallery-card img {
  cursor: zoom-in;
  pointer-events: auto;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

.project-page .gallery-card:hover img {
  transform: scale(1.025);
  filter: brightness(1.08);
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.28s ease,
    visibility 0.28s ease;
}

.image-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.image-lightbox__img {
  max-width: min(94vw, 1500px);
  max-height: 86svh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 28px 100px rgba(0, 0, 0, 0.75);
  transform: scale(0.94);
  opacity: 0;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  pointer-events: auto;
}

.image-lightbox.is-open .image-lightbox__img {
  transform: scale(1);
  opacity: 1;
}

.image-lightbox__close {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 801;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 42px;
  line-height: 1;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  color: var(--accent);
  transform: scale(1.06);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .image-lightbox {
    padding: 16px;
  }

  .image-lightbox__img {
    max-width: 94vw;
    max-height: 82svh;
    border-radius: 12px;
  }

  .image-lightbox__close {
    top: 16px;
    right: 18px;
    font-size: 36px;
  }
}

/* ---------- REVEAL ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- TABLET ---------- */

@media (max-width: 1024px) {
  .site-header {
    padding: 18px 20px;
  }

  .site-brand {
    width: 126px;
  }

  .section-screen {
    padding: 110px 24px 44px;
  }

  .section-inner,
  .section-screen:nth-of-type(even) .section-inner,
  .info-layout {
    grid-template-columns: 1fr;
  }

  .section-screen:nth-of-type(even) .section-copy {
    order: initial;
  }

  .section-media {
    min-height: 34vh;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-projects {
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
  }
}

/* ---------- MOBILE ---------- */

@media (max-width: 768px) {
  .home-main {
    scroll-snap-type: y proximity;
  }

  .site-header {
    height: 76px;
    padding: 16px 16px;
  }

  .site-brand {
    width: 108px;
  }

  .burger {
    padding: 10px;
    gap: 7px;
  }

  .burger span {
    width: 30px;
    height: 3px;
  }

  .menu-overlay__inner {
    padding: 24px 16px;
  }

  .menu-close {
    top: 18px;
    right: 18px;
    font-size: 34px;
  }

  .menu-nav {
    width: min(520px, 100%);
    padding: 28px 22px;
    gap: 18px;
    border-radius: 22px;
  }

  .menu-link {
    font-size: 1.2rem;
  }

  .menu-projects {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .menu-link--project {
    font-size: 0.92rem;
    letter-spacing: 0.06em;
  }

  .loading-orbit {
    width: min(56vw, 220px);
  }

  .loading-logo {
    width: 100%;
  }

  .back-to-top {
    width: 50px;
    height: 50px;
    right: 14px;
    bottom: 14px;
  }

  .hero-content {
    padding: 108px 20px 118px;
  }

  .hero-copy {
    gap: 14px;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(3.4rem, 16vw, 6.6rem);
    line-height: 0.9;
    letter-spacing: 0.04em;
  }

  .hero-subtitle {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.65;
    padding: 0 6px;
  }

  .hero-scroll {
    width: calc(100% - 32px);
    max-width: 320px;
    bottom: 18px;
    padding: 14px 18px;
  }

  .section-screen {
    min-height: auto;
    padding: 96px 16px 34px;
  }

  .section-inner {
    gap: 22px;
  }

  .section-media {
    min-height: 260px;
    border-radius: 22px;
  }

  .section-copy {
    gap: 14px;
  }

  .section-title {
    font-size: clamp(2rem, 10vw, 3rem);
    letter-spacing: 0.03em;
  }

  .section-text {
    font-size: 0.98rem;
    line-height: 1.7;
    max-width: 100%;
  }

  .section-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 0 18px;
  }

  .project-page .project-hero {
    min-height: 100svh;
    height: 100svh;
    padding: 0;
  }

  .project-hero__content {
    left: 16px;
    right: 16px;
    bottom: 28px;
    max-width: none;
    gap: 14px;
  }

  .project-hero__bg {
    object-position: center 30%;
  }

  .project-title {
    max-width: 10ch;
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .project-lead {
    max-width: 100%;
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .project-body {
    width: calc(100% - 32px);
    padding: 34px 0 56px;
    gap: 28px;
  }

  .meta-grid {
    grid-template-columns: 1fr;
  }

  .content-grid p {
    font-size: 0.98rem;
    line-height: 1.75;
  }

  .gallery {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-card {
    border-radius: 20px;
  }

  .info-page main {
    padding: 102px 16px 56px;
  }

  .info-layout {
    gap: 24px;
  }

  .info-card {
    border-radius: 24px;
  }

  .info-card--visual {
    min-height: 320px;
    padding: 28px;
  }

  .info-card--visual img {
    width: min(100%, 250px);
  }

  .info-title {
    font-size: clamp(2rem, 11vw, 3.2rem);
  }

  .info-text {
    font-size: 0.98rem;
    line-height: 1.8;
  }

  .site-footer {
    padding: 20px 16px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.9rem;
  }
}

/* ---------- SMALL MOBILE ---------- */

@media (max-width: 480px) {
  .site-header {
    padding: 14px 14px;
    height: 72px;
  }

  .site-brand {
    width: 98px;
  }

  .burger {
    padding: 8px;
    gap: 6px;
  }

  .burger span {
    width: 28px;
    height: 2.5px;
  }

  .menu-nav {
    padding: 24px 18px;
  }

  .menu-link {
    font-size: 1.08rem;
  }

  .menu-label {
    font-size: 0.7rem;
  }

  .menu-link--project {
    font-size: 0.88rem;
  }

  .loading-orbit {
    width: min(62vw, 180px);
  }

  .hero-content {
    padding: 96px 16px 112px;
  }

  .eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.22em;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 5.4rem);
    letter-spacing: 0.03em;
  }

  .hero-subtitle {
    font-size: 0.93rem;
    line-height: 1.6;
    padding: 0;
  }

  .hero-scroll {
    width: calc(100% - 24px);
    max-width: none;
    bottom: 14px;
    font-size: 0.95rem;
    gap: 8px;
  }

  .section-screen {
    padding: 88px 14px 28px;
  }

  .section-media {
    min-height: 220px;
    border-radius: 18px;
  }

  .section-index {
    font-size: 0.72rem;
  }

  .section-title {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }

  .section-text {
    font-size: 0.94rem;
    line-height: 1.65;
  }

  .button {
    min-height: 48px;
    font-size: 0.95rem;
  }

  .project-page .project-hero {
    min-height: 100svh;
    height: 100svh;
    padding: 0;
  }

  .project-hero__content {
    left: 14px;
    right: 14px;
    bottom: 24px;
    max-width: none;
  }

  .project-hero__bg {
    object-position: center 32%;
  }

  .project-title {
    max-width: 9ch;
    font-size: clamp(2rem, 12vw, 3.1rem);
  }

  .project-body {
    width: calc(100% - 28px);
    padding: 28px 0 44px;
  }

  .meta-card {
    padding: 16px;
    border-radius: 18px;
  }

  .content-grid p,
  .info-text {
    font-size: 0.95rem;
  }

  .info-page main {
    padding: 96px 14px 48px;
  }

  .info-card--visual {
    min-height: 260px;
    padding: 22px;
  }

  .site-footer {
    padding: 18px 14px 24px;
    font-size: 0.86rem;
  }
}

/* ---------- REDUCED MOTION ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .loading-logo,
  .back-to-top img,
  .hero-scroll,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}