@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;
  overflow-x: hidden;
  overflow-y: visible;
}
html {

  scroll-snap-type: y mandatory;
}

img {
  display: block;
}

p {
  margin: 0;
}


/* ==========================================================================
   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);
  
}
@media (max-width: 480px) {
  :root {
    --logo-lc-gap: 30px;
  }
}

/* ==========================================================================
   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);
  --caption-font-offset: clamp(2px, calc(2px + (4 - 2) * ((100vw - 375px) / (1440 - 375))), 4px);
}

.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: 100svh;
  padding-top: var(--hero-logo-reserve);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

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


.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: calc(var(--text-font-size) - var(--caption-font-offset));
  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: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
  user-select: none;
}
.arrow.is-visible {
  opacity: 1;
}

.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;
}


/* ==========================================================================
   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: 100svh;
  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: 100svh;
  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: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: visible;
}

.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;
  will-change: transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.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-zoom-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.exhibition-zoom-overlay img {
  max-height: 90vh;
  max-width: 90vw;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
}

.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);
  --caption-line-height-offset: calc(var(--text-line-height) * 0.8);
}

@media (max-width: 1280px) and (min-width: 400px) {
  :root {
    --upcoming-image-height: clamp(400px, calc(400px + (100vw - 400px) * (20 / 800)), 420px);
  }
}

@media (max-width: 400px) {
  :root {
    --upcoming-image-height: clamp(330px, calc(330px + (100vw - 375px) * (30 / 105)), 400px);
  }
}

.upcoming {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  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 {
  margin: 0;
  font-size: var(--text-font-size);
  line-height: var(--text-line-height);
  letter-spacing: var(--text-letter-spacing);
}

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

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

.upcoming-caption-itinerary {
  margin-top: 10px;
  line-height: var(--caption-line-height-offset);
}

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

.upcoming-caption-link:hover {
  color: #818181;
}
/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  width: 100%;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 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-title:active,
.footer-title:focus {
  color: inherit;
  outline: none;
}

.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);
}

@media (max-height: 500px) and (orientation: landscape) {
  html {
    scroll-snap-type: none;
  }

  .hero {
    height: auto;
    min-height: 100svh;
    padding-top: 24px;
    padding-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible;
  }

  .hero-content {
    position: static;
    display: block;
    width: 100%;
    overflow: visible;
  }

  .logo-fixed {
    position: static;
    top: auto;
    left: auto;
    transform: none;
    margin: 0 0 16px 0;
  }
  .hero-stage {
  display: inline-block !important;
}

 .hero-stage-row {
  position: static !important;
  transform: none !important;
  display: block !important;
  text-align: center !important;
  height: auto !important;
}

 .hero-image {
  height: clamp(180px, 45vh, 280px) !important;
  width: auto !important;
  display: inline-block !important;
}

  .hero-caption {
    position: static;
    transform: none;
    margin: 16px auto 0;
    max-width: 90vw;
  }

  .arrow {
    position: absolute;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .upcoming {
    position: relative !important;
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
    padding: 24px !important;
    display: block !important;
  }

 .upcoming-content {
  position: static !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
}
.upcoming-caption--top {
  order: -1 !important;
}

  .upcoming-stage-row {
    position: static !important;
    transform: none !important;
    display: block !important;
    text-align: center !important;
    height: auto !important;
    width: auto !important;
  }

  .upcoming-stage {
    display: inline-block !important;
  }

  .upcoming-image {
    height: clamp(160px, 40vh, 260px) !important;
    width: auto !important;
    display: inline-block !important;
  }

 .upcoming-caption {
  position: static !important;
  transform: none !important;
  display: block !important;
  text-align: center !important;
  margin: 16px auto !important;
  max-width: 90vw !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
}

  .arrow {
  display: block !important;
}
}

/* ==========================================================================
   ULTRA-WIDE SCALING (1440px → 1920px)
   ========================================================================== */
@media (min-width: 1440px) {
  :root {
    /* логотип */
    --logo-font-size: clamp(48px, calc(48px + (61 - 48) * ((100vw - 1440px) / (1920 - 1440))), 61px);
    --logo-line-height: clamp(40px, calc(40px + (51 - 40) * ((100vw - 1440px) / (1920 - 1440))), 51px);
    --logo-lc-gap: clamp(70px, calc(70px + (89 - 70) * ((100vw - 1440px) / (1920 - 1440))), 89px);

    /* базовый текст (весь сайт) */
    --text-font-size: clamp(26px, calc(26px + (33 - 26) * ((100vw - 1440px) / (1920 - 1440))), 33px);
    --text-line-height: clamp(24px, calc(24px + (31 - 24) * ((100vw - 1440px) / (1920 - 1440))), 31px);
    --text-paragraph-indent: clamp(100px, calc(100px + (128 - 100) * ((100vw - 1440px) / (1920 - 1440))), 128px);
    --caption-font-offset: clamp(4px, calc(4px + (5 - 4) * ((100vw - 1440px) / (1920 - 1440))), 5px);

    /* ширина текстовых блоков (intro, bio, exhibition, footer) */
    --intro-text-width: clamp(670px, calc(670px + (854 - 670) * ((100vw - 1440px) / (1920 - 1440))), 854px);

    /* hero */
    --hero-image-height: clamp(450px, calc(450px + (574 - 450) * ((100vw - 1440px) / (1920 - 1440))), 574px);
    --hero-caption-max: clamp(670px, calc(670px + (854 - 670) * ((100vw - 1440px) / (1920 - 1440))), 854px);
    --arrow-edge-gap: clamp(217px, calc(217px + (277 - 217) * ((100vw - 1440px) / (1920 - 1440))), 277px);

    /* bio */
    --bio-image-w: clamp(128px, calc(128px + (163 - 128) * ((100vw - 1440px) / (1920 - 1440))), 163px);
    --bio-image-h: clamp(192px, calc(192px + (245 - 192) * ((100vw - 1440px) / (1920 - 1440))), 245px);

    /* exhibition */
    --exhibition-image-h: clamp(192px, calc(192px + (245 - 192) * ((100vw - 1440px) / (1920 - 1440))), 245px);
    --exhibition-gap: clamp(17px, calc(17px + (22 - 17) * ((100vw - 1440px) / (1920 - 1440))), 22px);

    /* upcoming */
    --upcoming-image-height: clamp(400px, calc(400px + (510 - 400) * ((100vw - 1440px) / (1920 - 1440))), 510px);
  }
}


