:root { --shell: min(1280px, calc(100vw - 64px)); --forest: #182d30; --gallery-gap: 16px; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
.skip-link { z-index: 60; }
.ferrata-progress { position: fixed; inset: 0 0 auto; z-index: 50; height: 3px; background: #c6aa78; transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ferrata-nav { position: absolute; inset: 16px 0 auto; z-index: 2; gap: 16px; color: white; border-color: #ffffff40; }
.ferrata-nav .site-nav__back { font-size: .72rem; }
.ferrata-nav .site-language { justify-self: end; background: #182d304d; border-color: #ffffff50; }
.ferrata-nav .site-language a { color: white; min-height: 34px; }
.ferrata-nav .site-language a[aria-current="page"] { color: var(--forest); background: var(--paper); }
.ferrata-hero { position: relative; display: flex; align-items: flex-end; min-height: 650px; height: min(900px, 92svh); margin: 16px; color: #fff; background: var(--forest); overflow: hidden; isolation: isolate; }
.ferrata-hero__image, .ferrata-hero__image img, .ferrata-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.ferrata-hero__image { z-index: -2; transform: translateY(var(--hero-shift, 0px)) scale(1.12); }
.ferrata-hero__image img { display: block; object-fit: cover; object-position: center; }
.ferrata-hero::after { z-index: -1; content: ""; background: linear-gradient(90deg, #0e242a8c, #10282a0a 85%), linear-gradient(0deg, #0d2429d9, transparent 75%), linear-gradient(180deg, #10292b8c, transparent 24%); }
.ferrata-hero__copy { width: var(--shell); margin: 0 auto; padding: 160px 0 64px; }
.ferrata-hero .eyebrow { color: #e4e9de; }
.ferrata-hero h1 { margin: 26px 0; max-width: 10ch; font-family: var(--display); font-size: clamp(5rem, 10.2vw, 10rem); font-weight: 500; line-height: .9; letter-spacing: -.065em; }
.ferrata-hero h1 > span, .ferrata-hero h1 em { display: block; }
.ferrata-hero h1 em { margin-top: .1em; font-weight: 500; }
.ferrata-hero__subtitle { font-size: clamp(.85rem, 1.3vw, 1rem); color: #ffffffd9; }
.ferrata-hero__scroll { display: inline-flex; align-items: center; gap: 14px; margin-top: 36px; text-decoration: none; font-size: .65rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.ferrata-hero__arrow { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #ffffff70; border-radius: 50%; font-size: 1.2rem; transition: transform 250ms ease; }
.ferrata-hero__scroll:hover .ferrata-hero__arrow { transform: translateY(4px); }
.ferrata-hero__note { position: absolute; right: max(32px, calc((100% - 1280px) / 2)); bottom: 72px; max-width: 22ch; color: #ffffffb3; font-size: .68rem; text-align: right; }
.ferrata-story, .ferrata-film, .ferrata-day, .ferrata-lulu { width: var(--shell); margin: 0 auto; }
.ferrata-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); padding: clamp(80px, 10vw, 150px) 0 72px; }
.ferrata-story h2, .ferrata-film h2, .ferrata-day h2, .ferrata-lulu h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.05em; font-size: clamp(2.8rem, 4.6vw, 4.8rem); line-height: 1.06; }
.ferrata-story h2 { margin-top: 24px; max-width: 14ch; }
.ferrata-intro { max-width: 52ch; color: #52605b; font-size: .96rem; line-height: 1.95; }
.ferrata-facts { display: flex; gap: clamp(24px, 5vw, 64px); margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.ferrata-facts > div { display: flex; flex-direction: column-reverse; }
.ferrata-facts dt { margin-top: 6px; color: var(--muted); font-size: .6rem; letter-spacing: .13em; text-transform: uppercase; }
.ferrata-facts dd { font-family: var(--display); font-size: 2rem; line-height: 1; }
.ferrata-chapters { position: sticky; top: 16px; z-index: 30; display: flex; justify-content: center; gap: 4px; width: max-content; max-width: calc(100% - 24px); margin: 0 auto 48px; padding: 5px; border: 1px solid #c5cec18c; border-radius: 40px; background: #f7f5f0ed; backdrop-filter: blur(16px); box-shadow: 0 6px 28px #182d3012; }
.ferrata-chapters a { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 22px; border-radius: 30px; font-size: .7rem; font-weight: 700; text-decoration: none; transition: color 220ms, background 220ms; }
.ferrata-chapters a > span:first-child { color: #788272; font-size: .6rem; }
.ferrata-chapters a:hover { background: #e6e8e1; }
.ferrata-chapters a[aria-current="location"] { color: white; background: var(--forest); }
.ferrata-chapters a[aria-current="location"] > span:first-child { color: #d0c2a0; }
/* Keep the film section free of transforms and clipping for fullscreen fallback. */
.ferrata-film { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: clamp(32px, 8vw, 110px); align-items: center; padding: clamp(32px, 7vw, 96px); color: var(--paper); background: var(--forest); }
.ferrata-film .eyebrow { color: #b9c6b4; }
.ferrata-film h2 { max-width: 12ch; margin: 28px 0; font-size: clamp(3rem, 5.2vw, 5.6rem); }
.ferrata-film__copy > p:not(.eyebrow), .ferrata-day__heading > div > p:not(.eyebrow), .ferrata-lulu p:not(.eyebrow) { max-width: 46ch; color: #52605b; font-size: .9rem; line-height: 1.9; }
.ferrata-film__copy > p:not(.eyebrow) { color: #c1ceca; max-width: 35ch; }
.ferrata-source { display: inline-block; padding: 14px 0 6px; margin-top: 12px; border-bottom: 1px solid var(--moss); font-size: .68rem; font-weight: 700; text-decoration: none; }
.ferrata-film .ferrata-source { border-color: #b7c2ac; }
.ferrata-day { padding-top: clamp(88px, 10vw, 140px); }
.ferrata-day__heading { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 8vw, 120px); align-items: end; padding-bottom: 48px; }
.ferrata-day h2 { max-width: 13ch; margin-top: 22px; }
.ferrata-day__heading > div:last-child { padding-bottom: 4px; }
.ferrata-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: calc((var(--shell) - 3 * var(--gallery-gap)) / 3); gap: var(--gallery-gap); }
.ferrata-photo { position: relative; display: block; min-width: 0; min-height: 0; background: var(--cream); overflow: hidden; }
.ferrata-photo:nth-child(1), .ferrata-photo:nth-child(8) { grid-column: span 2; grid-row: span 2; }
#ziua-1 .ferrata-photo:nth-child(n+15) { grid-column: span 2; }
#ziua-2 .ferrata-photo:last-child { grid-column: 1 / -1; }
.ferrata-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 700ms cubic-bezier(.2,.65,.3,1); }
.ferrata-photo:hover img { transform: scale(1.035); }
.ferrata-photo__number { position: absolute; bottom: 16px; left: 16px; padding: 3px 9px; color: white; background: #182d30b8; border: 1px solid #ffffff40; font-size: .6rem; letter-spacing: .12em; pointer-events: none; }
#ziua-1 .ferrata-photo:nth-child(15) img { object-position: center 62%; }
#ziua-1 .ferrata-photo:nth-child(16) img { object-position: center 52%; }
#ziua-2 .ferrata-photo:last-child img { object-position: center 55%; }
.ferrata-lulu { display: grid; grid-template-columns: minmax(220px, .85fr) 1fr; gap: clamp(32px, 8vw, 110px); align-items: center; padding: clamp(36px, 6vw, 80px); margin-top: clamp(88px, 10vw, 140px); background: #eee9df; }
.ferrata-lulu img { display: block; width: 100%; height: auto; }
.ferrata-lulu h2 { margin: 24px 0; }
.ferrata-footer { display: flex; justify-content: space-between; gap: 24px; margin-top: 100px; padding-top: 36px; text-align: left; }
.ferrata-footer a { text-decoration: none; }
.ferrata-motion-ready [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 850ms cubic-bezier(.16,1,.3,1), transform 850ms cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay, 0ms); }
.ferrata-motion-ready .ferrata-photo[data-reveal] { clip-path: inset(0 0 8% 0); transition: opacity 850ms ease, transform 1000ms cubic-bezier(.16,1,.3,1), clip-path 1000ms cubic-bezier(.16,1,.3,1); transition-delay: var(--reveal-delay, 0ms); }
.ferrata-motion-ready [data-reveal].is-visible { opacity: 1; transform: none; clip-path: inset(0); }
body.is-lightbox-open { overflow: hidden; }
.ferrata-lightbox { position: fixed; inset: 0; width: min(1200px, 100% - 24px); max-width: none; height: min(940px, 100% - 24px); max-height: none; margin: auto; padding: 16px 20px; border: 0; color: #f7f5f0; background: #182326; }
.ferrata-lightbox::backdrop { background: #10191be8; }
.ferrata-lightbox[open] { display: flex; flex-direction: column; }
.ferrata-lightbox__toolbar { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; }
.ferrata-lightbox button { display: grid; place-items: center; width: 44px; height: 44px; flex-shrink: 0; color: white; background: transparent; border: 1px solid #ffffff50; border-radius: 50%; font-size: 1.4rem; cursor: pointer; }
.ferrata-lightbox__stage { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex: 1; min-height: 0; margin: 12px 0; }
.ferrata-lightbox__stage img { display: block; min-width: 0; max-width: calc(100% - 120px); max-height: 100%; object-fit: contain; }
.ferrata-lightbox__caption { font-size: .8rem; text-align: center; }
.ferrata-lightbox__original { align-self: center; margin-top: 10px; font-size: .7rem; }

@media (max-width: 1000px) {
  .ferrata-hero__note { display: none; }
  .ferrata-film { padding: 48px 36px; gap: 40px; }
  .ferrata-film h2 { font-size: 3.4rem; }
}
@media (max-width: 760px) {
  :root { --shell: calc(100vw - 40px); --gallery-gap: 10px; }
  .ferrata-nav { inset-block-start: 8px; min-height: 76px; grid-template-columns: 1fr auto; }
  .ferrata-nav .site-nav__brand { display: none; }
  .ferrata-nav .site-nav__back { font-size: .65rem; }
  .ferrata-hero { margin: 8px; min-height: 580px; height: 90svh; max-height: 860px; }
  .ferrata-hero__image { transform: none; }
  .ferrata-hero__image img { object-position: center 40%; }
  .ferrata-hero__copy { padding: 128px 8px 40px; }
  .ferrata-hero h1 { max-width: none; font-size: clamp(3.05rem, 14vw, 6.5rem); margin: 24px 0; }
  .ferrata-hero__subtitle { max-width: 28ch; }
  .ferrata-hero__scroll { margin-top: 28px; font-size: .6rem; }
  .ferrata-story { grid-template-columns: 1fr; gap: 32px; padding: 72px 0 42px; }
  .ferrata-story h2 { max-width: 16ch; }
  .ferrata-intro { max-width: none; font-size: .9rem; }
  .ferrata-facts { justify-content: space-between; padding-right: 16px; }
  .ferrata-chapters { top: 10px; margin-bottom: 32px; }
  .ferrata-chapters a { gap: 8px; padding: 10px 16px; font-size: .65rem; }
  .ferrata-film { grid-template-columns: 1fr; padding: 36px 20px; gap: 36px; }
  .ferrata-film h2 { max-width: 14ch; font-size: clamp(2.6rem, 9vw, 4rem); margin: 22px 0; }
  .ferrata-day { padding-top: 76px; }
  .ferrata-day__heading { grid-template-columns: 1fr; gap: 24px; padding-bottom: 30px; }
  .ferrata-day h2 { font-size: clamp(2.7rem, 10vw, 4rem); }
  .ferrata-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .ferrata-photo { aspect-ratio: 3 / 4; }
  .ferrata-photo:nth-child(1), .ferrata-photo:nth-child(8) { grid-column: 1 / -1; grid-row: auto; }
  #ziua-1 .ferrata-photo:nth-child(n+15) { grid-column: auto; }
  .ferrata-photo__number { bottom: 10px; left: 10px; }
  .ferrata-lulu { grid-template-columns: 1fr; margin-top: 76px; padding: 28px 24px 40px; gap: 32px; }
  .ferrata-lulu img { max-width: 440px; justify-self: center; }
  .ferrata-lulu h2 { font-size: 3rem; }
  .ferrata-footer { flex-direction: column; gap: 20px; margin-top: 72px; }
  .ferrata-lightbox { padding: 12px; }
  .ferrata-lightbox__stage { position: relative; justify-content: center; padding-bottom: 54px; }
  .ferrata-lightbox__stage img { max-width: 100%; }
  .ferrata-lightbox__stage button { position: absolute; bottom: 0; }
  .ferrata-lightbox__stage [data-prev] { left: calc(50% - 54px); }
  .ferrata-lightbox__stage [data-next] { right: calc(50% - 54px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ferrata-hero__image { transform: none; }
  .ferrata-photo img, .ferrata-chapters a, .ferrata-hero__arrow { transition: none; }
  .ferrata-motion-ready [data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
}
