@font-face {
  font-family: "PlanGrotesqueCond";
  src: url("/assets/fonts/PlanGrotesqueCond-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PlanGrotesque";
  src: url("/assets/fonts/PlanGrotesque-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PlanGrotesque", system-ui, -apple-system, sans-serif;
  color: #111111;
  background: #ffffff;
}

img {
  display: block;
}

p {
  margin: 0;
}
html {
  scroll-snap-type: y mandatory;
}

/* ==========================================================================
   FLUID VALUES (clamp: mobile 375px → desktop 1440px)
   ========================================================================== */
:root {
  --logo-font-size: clamp(32px, calc(32px + (48 - 32) * ((100vw - 375px) / (1440 - 375))), 48px);
  --logo-line-height: clamp(29px, calc(29px + (40 - 29) * ((100vw - 375px) / (1440 - 375))), 40px);
  --logo-lc-gap: clamp(50px, calc(50px + (70 - 50) * ((100vw - 375px) / (1440 - 375))), 70px);
  --logo-a-gap: clamp(6px, calc(6px + (7 - 6) * ((100vw - 375px) / (1440 - 375))), 7px);
}

/* ==========================================================================
   LOGO
   ========================================================================== */
.logo-fixed {
  position: fixed;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}


.logo-block {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: fit-content;
}

.logo-line {
  font-size: var(--logo-font-size);
  line-height: var(--logo-line-height);
  text-align: center;
  white-space: nowrap;
  font-family: "PlanGrotesqueCond", system-ui, -apple-system, sans-serif;
}

.logo-letter {
  font-family: "PlanGrotesqueCond", system-ui, -apple-system, sans-serif;
  font-size: var(--logo-font-size);
  line-height: var(--logo-line-height);
}

.logo-letter--l,
.logo-letter--c {
  position: absolute;
  top: 0;
}

.logo-letter--l {
  right: calc(100% + var(--logo-lc-gap));
}

.logo-letter--c {
  left: calc(100% + var(--logo-lc-gap));
}

.logo-letter--a {
  display: block;
  text-align: center;
  line-height: 1;
  margin-top: calc(var(--logo-a-gap) - 0.45em);
  transform: scaleY(-1);
}
.logo-line--ghost {
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* ==========================================================================
   BASE TEXT STYLE (используется на весь сайт)
   ========================================================================== */
:root {
  --text-font-size: clamp(14px, calc(14px + (26 - 14) * ((100vw - 375px) / (1440 - 375))), 26px);
  --text-line-height: clamp(12px, calc(12px + (24 - 12) * ((100vw - 375px) / (1440 - 375))), 24px);
  --text-letter-spacing: 0.07em;
  --text-paragraph-indent: clamp(70px, calc(70px + (100 - 70) * ((100vw - 375px) / (1440 - 375))), 100px);
}

.text {
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}

/* ==========================================================================
   HERO
   ========================================================================== */
:root {
  --hero-image-height: clamp(350px, calc(350px + (450 - 350) * ((100vw - 375px) / (576 - 375))), 450px);
  --hero-caption-gap: clamp(40px, calc(40px + (64 - 40) * ((100vw - 375px) / (1440 - 375))), 64px);
  --hero-caption-max: clamp(300px, calc(300px + (670 - 300) * ((100vw - 375px) / (1440 - 375))), 670px);
  --arrow-w: clamp(12px, calc(12px + (15 - 12) * ((100vw - 375px) / (1440 - 375))), 15px);
  --arrow-h: clamp(22px, calc(22px + (27 - 22) * ((100vw - 375px) / (1440 - 375))), 27px);
  --arrow-edge-gap: clamp(41px, calc(41px + (217 - 41) * ((100vw - 375px) / (1440 - 375))), 217px);
  --hero-logo-reserve: calc(32px + (var(--logo-line-height) * 2) + var(--logo-a-gap) + var(--logo-font-size) - 50px);
}

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding-top: var(--hero-logo-reserve);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-content {
  position: relative;
  flex: 1;
  overflow: hidden;
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
}

.hero-stage-row {
  position: absolute;
  top: calc(50% - 20px);
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: var(--hero-image-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-stage {
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.hero-image {
  height: var(--hero-image-height);
  width: auto;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.hero-caption {
  position: absolute;
  top: calc(50% - 20px + (var(--hero-image-height) / 2) + var(--hero-caption-gap));
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  text-align: center;
  max-width: var(--hero-caption-max);
  user-select: none;
  letter-spacing: var(--text-letter-spacing);
}

/* ==========================================================================
   ARROWS
   ========================================================================== */
.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 10;
  flex-shrink: 0;
  user-select: none;
}

.arrow--prev {
  left: var(--arrow-edge-gap);
}

.arrow--next {
  right: var(--arrow-edge-gap);
}

.arrow-svg {
  width: var(--arrow-w);
  height: var(--arrow-h);
  display: block;
}

.hero.interacted .arrow {
  opacity: 0;
}

.hero.interacted .hero-stage:hover ~ .arrow,
.hero.interacted .hero-stage-row:hover .arrow {
  opacity: 1;
}
/* ==========================================================================
   SCROLL SNAP — общее для всех полноэкранных секций
   ========================================================================== */
.hero,
.intro,
.bio,
.upcoming,
.footer {
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.exhibition {
  scroll-snap-align: start;
}

/* ==========================================================================
   INTRO
   ========================================================================== */
:root {
  --intro-text-width: clamp(320px, calc(320px + (670 - 320) * ((100vw - 375px) / (1440 - 375))), 670px);
}

.intro {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-text-wrap {
  width: var(--intro-text-width);
}

.intro-text {
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  text-align: left;
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}
/* ==========================================================================
   BIO
   ========================================================================== */
:root {
  --bio-image-w: clamp(80px, calc(80px + (128 - 80) * ((100vw - 375px) / (1440 - 375))), 128px);
  --bio-image-h: clamp(120px, calc(120px + (192 - 120) * ((100vw - 375px) / (1440 - 375))), 192px);
  --bio-name-gap: 46px;
  --bio-role-gap: clamp(18px, calc(18px + (32 - 18) * ((100vw - 375px) / (1440 - 375))), 32px);
  --bio-text-first-gap: clamp(18px, calc(18px + (32 - 18) * ((100vw - 375px) / (1440 - 375))), 32px);
}

.bio {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.bio-wrap {
  width: var(--intro-text-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bio-image {
  width: var(--bio-image-w);
  height: var(--bio-image-h);
  object-fit: cover;
}

.bio-name {
  margin: 0;
  margin-top: var(--bio-name-gap);
  font-family: "PlanGrotesque", system-ui, -apple-system, sans-serif;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  font-weight: 500;
}

.bio-role {
  margin: 0;
  margin-top: var(--bio-role-gap);
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}

.bio-text {
  margin: 0;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}
.bio-role + .bio-text {
  margin-top: var(--bio-text-first-gap);
}

/* ==========================================================================
   EXHIBITION
   ========================================================================== */
:root {
  --exhibition-gap: clamp(10px, calc(10px + (17 - 10) * ((100vw - 375px) / (1440 - 375))), 17px);
  --exhibition-image-h: clamp(100px, calc(100px + (192 - 100) * ((100vw - 375px) / (1440 - 375))), 192px);
  --exhibition-top-offset: clamp(50px, calc(50px + (100 - 50) * ((100vw - 375px) / (1440 - 375))), 100px);
}

.exhibition {
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex-direction: column;
}

.exhibition-wrap {
  width: var(--intro-text-width);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: var(--exhibition-top-offset);
}

.exhibition-gallery {
  display: flex;
  gap: var(--exhibition-gap);
  align-items: flex-start;
   user-select: none;
  -webkit-user-select: none;
}
.exhibition-image-wrap {
  height: var(--exhibition-image-h);
  width: auto;
  flex-shrink: 0;
  display: block;
  position: relative;
}

.exhibition-image {
  height: 100%;
  width: auto;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transform-origin: center center;
  transition: transform 0.3s ease, z-index 0s linear 0.3s;
  user-select: none;
  -webkit-user-drag: none;
}

.exhibition-image.is-zoomed {
  transform: translate3d(var(--exh-tx, 0px), var(--exh-ty, 0px), 0) scale(3);
  z-index: 10;
  transition: transform 0.3s ease, z-index 0s linear;
}

.exhibition-title {
  margin: 0;
  margin-top: var(--bio-name-gap);
  font-family: "PlanGrotesque", system-ui, -apple-system, sans-serif;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  font-weight: 500;
}

.exhibition-dates {
  margin: 0;
  margin-top: var(--bio-role-gap);
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}

.exhibition-curator {
  margin: 0;
  margin-top: var(--bio-role-gap);
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}

.exhibition-curator + .exhibition-text {
  margin-top: var(--bio-role-gap);
}

.exhibition-text {
  margin: 0;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  text-indent: var(--text-paragraph-indent);
}
.exhibition-text--credit + .exhibition-text {
  margin-top: var(--bio-role-gap);
}
.exhibition-text--credit {
  margin-top: var(--bio-role-gap);
}
.exhibition-wrap + .exhibition-wrap {
  margin-top: 100px;
}

/* ==========================================================================
   UPCOMING
   ========================================================================== */
:root {
  --upcoming-caption-gap: clamp(26.67px, calc(26.67px + (32 - 26.67) * ((100vw - 375px) / (1440 - 375))), 32px);
  --upcoming-image-height: 400px;
  --upcoming-top-offset: clamp(50px, calc(50px + (65 - 50) * ((100vw - 375px) / (1440 - 375))), 65px);
}

@media (max-width: 1280px) {
  :root {
    --upcoming-image-height: clamp(400px, calc(480px - (100vw - 375px) * (80 / 905)), 480px);
  }
}

.upcoming {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.upcoming-content {
  position: relative;
  width: 100%;
  height: 100%;
}

.upcoming-stage-row {
  position: absolute;
  top: calc(50% + var(--upcoming-top-offset));
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: var(--upcoming-image-height);
  display: flex;
  align-items: center;
  justify-content: center;
}

.upcoming-stage {
  cursor: pointer;
  line-height: 0;
  flex-shrink: 0;
}

.upcoming-image {
  height: var(--upcoming-image-height);
  width: auto;
  display: block;
  flex-shrink: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.upcoming-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  max-width: var(--hero-caption-max);
  user-select: none;
}

.upcoming-caption--top {
  bottom: calc(50% - var(--upcoming-top-offset) + (var(--upcoming-image-height) / 2) + var(--upcoming-caption-gap));
}

.upcoming-caption--bottom {
  top: calc(50% + var(--upcoming-top-offset) + (var(--upcoming-image-height) / 2) + var(--upcoming-caption-gap));
}

.upcoming-caption-title,
.upcoming-caption-dates,
.upcoming-caption-credit,
.upcoming-caption-itinerary {
  margin: 0;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
}

.upcoming-caption-dates {
  margin-top: 10px;
}

.upcoming-caption-itinerary {
  margin-top: 10px;
}

.upcoming-caption-link {
  color: inherit;
  text-decoration: none;
}

.upcoming-caption-link:hover {
  color: #818181;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.footer-wrap {
  width: var(--intro-text-width);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.footer-title {
  margin: 0;
  align-self: flex-start;
  font-family: "PlanGrotesque", system-ui, -apple-system, sans-serif;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  font-weight: 500;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-title:hover {
  color: #818181;
}

.footer-links {
  margin-top: var(--bio-role-gap);
  width: fit-content;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-link {
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover {
  color: #818181;
}
.footer-link--right {
  align-self: flex-end;
}
.footer-legal {
  margin: 0;
  margin-top: calc(var(--bio-role-gap) * 2);
  align-self: flex-start;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
}