/* A Dobra: one stage, three acts. Static markup remains useful without JS. */
.hero-sequence {
  --approach: 0;
  --opening: 0;
  --reveal: 0;
  --intro-opacity: 1;
  --bridge-opacity: 0;
  --origami-opacity: 0;
  --caption-opacity: 0;
  --shade-opacity: 0;
  --stage-darkness: 0;
  --sculpture-opacity: 1;
  position: relative;
  background: #f5f5f7;
}

.hero-stage {
  position: relative;
  height: 100svh;
  min-height: 650px;
  overflow: clip;
  isolation: isolate;
  background: #f5f5f7;
}

.hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background: #080c15;
  opacity: var(--stage-darkness);
  z-index: -1;
}

.hero-intro {
  position: absolute;
  top: clamp(110px, 14svh, 160px);
  left: 5%;
  right: 5%;
  text-align: center;
  z-index: 4;
  opacity: var(--intro-opacity);
  transform: translateY(calc(var(--approach) * -80px)) scale(calc(1 - var(--approach) * .08));
  transform-origin: center top;
}

.hero-kicker {
  margin: 0 auto 17px;
  max-width: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  line-height: 1.5;
  color: #657083;
}

#hero-title {
  font-size: clamp(48px, 7.6vw, 108px);
  font-weight: 600;
  letter-spacing: -.065em;
  line-height: .99;
  color: #171a21;
}

#hero-title span { color: #171a21; }

.hero-description {
  margin: 22px auto 0;
  font-size: clamp(15px, 1.35vw, 18px);
  color: #677080;
  max-width: 540px;
}

.hero-sculpture {
  position: absolute;
  left: 50%;
  top: 76%;
  width: min(70vw, 760px);
  height: min(62svh, 600px);
  transform: translate(-50%, -50%);
  perspective: 1300px;
  pointer-events: none;
  z-index: 3;
  opacity: var(--sculpture-opacity);
}

.sculpture-body {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateY(calc(var(--approach) * -95px)) translateZ(calc(var(--approach) * 330px)) rotateX(calc(-8deg + var(--approach) * 8deg)) rotateY(calc(-12deg + var(--approach) * 12deg)) rotateZ(calc(-8deg + var(--approach) * 8deg)) scale(calc(1 + var(--approach) * .45));
}

.sculpture-piece { position: absolute; inset: 0; backface-visibility: hidden; }
.sculpture-piece svg { width: 100%; height: 100%; overflow: visible; filter: drop-shadow(8px 16px 12px #202e5022); }
.sculpture-wing { transform: translate3d(calc(var(--opening) * -630px), calc(var(--opening) * -330px), calc(var(--opening) * 200px)) rotateY(calc(var(--opening) * -42deg)) rotateZ(calc(var(--opening) * -24deg)); }
.sculpture-crown { transform: translate3d(calc(var(--opening) * 670px), calc(var(--opening) * -150px), calc(var(--opening) * 320px)) rotateY(calc(var(--opening) * 54deg)) rotateZ(calc(var(--opening) * 17deg)); }
.sculpture-stem { transform: translate3d(calc(var(--opening) * -230px), calc(var(--opening) * 650px), calc(var(--opening) * 360px)) rotateX(calc(var(--opening) * -30deg)) rotateZ(calc(var(--opening) * -25deg)); }

.sculpture-ground {
  position: absolute;
  width: 49%;
  height: 7%;
  left: 27%;
  bottom: 0;
  border-radius: 50%;
  background: #26385624;
  filter: blur(20px);
  opacity: calc(1 - var(--approach));
  transform: scaleX(1.3);
}

.hero-origami { position: absolute; inset: 0; z-index: 3; opacity: var(--origami-opacity); pointer-events: none; background: #f1f0ef; overflow: hidden; }
.origami-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bridge {
  position: absolute;
  top: 13%;
  left: 5%;
  right: 5%;
  z-index: 4;
  text-align: center;
  pointer-events: none;
  color: #17202f;
  opacity: var(--bridge-opacity);
  transform: translateY(calc((1 - var(--opening)) * 30px));
}

.hero-bridge > span { font-size: 12px; letter-spacing: .2em; }
.hero-bridge p { margin: 16px auto 0; max-width: none; font-size: clamp(38px, 6.3vw, 88px); line-height: 1.04; letter-spacing: -.05em; color: inherit; }

.hero-film {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #064bff;
  overflow: hidden;
  opacity: var(--reveal);
  clip-path: inset(calc((1 - var(--reveal)) * 31%) calc((1 - var(--reveal)) * 43%) round calc((1 - var(--reveal)) * 22px));
  transform: translateY(calc((1 - var(--reveal)) * 60px));
}

.hero-film video { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-film-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #03071225, transparent 70%), linear-gradient(180deg, #03071238, transparent 20%, #03071240 38%, #030712ad 62%, #030712ef); opacity: var(--shade-opacity); }
.hero-film-caption { position: absolute; left: max(6%, calc((100% - 1280px) / 2)); bottom: 110px; color: #fff; opacity: var(--caption-opacity); transform: translateY(calc((1 - var(--caption-opacity)) * 35px)); }
.hero-film-caption .hero-kicker { color: #e0e6f5; }
.hero-film-caption h2 { font-size: clamp(38px, 5vw, 72px); font-weight: 600; letter-spacing: -.05em; line-height: 1.03; }
.hero-project-link { display: inline-flex; align-items: center; gap: 35px; margin-top: 25px; padding-bottom: 9px; border-bottom: 1px solid #ffffff80; font-size: 15px; }
.hero-project-link:hover { border-color: #fff; }
.hero-project-link > span:last-child { font-size: 22px; }

.hero-film-controls { position: absolute; right: 5%; bottom: 110px; display: flex; flex-direction: column; align-items: flex-end; gap: 19px; opacity: var(--caption-opacity); color: #fff; }
.hero-play-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; border: 1px solid #ffffff65; border-radius: 30px; padding: 10px 18px; background: #08101c40; backdrop-filter: blur(10px); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.hero-play-toggle:hover { background: #08101c80; }
.hero-replay { font-size: 12px; text-underline-offset: 5px; }
.hero-replay:hover { text-decoration: underline; }
.hero-play-toggle[data-playing="false"] .film-pause-label,
.hero-play-toggle[data-playing="false"] .film-pause-icon,
.hero-play-toggle[data-playing="true"] .film-play-label,
.hero-play-toggle[data-playing="true"] .film-play-icon { display: none; }

.hero-intro-actions { position: absolute; bottom: 40px; right: 5%; z-index: 5; opacity: var(--intro-opacity); }
.hero-work-link { display: inline-flex; align-items: center; gap: 22px; border-bottom: 1px solid #b6bdc9; padding: 11px 0; font-size: 14px; }
.hero-work-link:hover { color: var(--brand-blue); border-color: currentColor; }
.hero-scroll-cue { position: absolute; left: 5%; bottom: 29px; display: flex; flex-direction: column; align-items: flex-start; gap: 13px; z-index: 5; opacity: var(--intro-opacity); color: #70798a; font-size: 11px; letter-spacing: .04em; white-space: nowrap; }
.hero-scroll-line { display: block; width: 1px; height: 26px; background: linear-gradient(#a0a9b9, #a0a9b933); }
.hero-chapters { position: absolute; bottom: 43px; left: 5%; right: 5%; display: flex; justify-content: center; gap: 26px; z-index: 5; color: #566176; opacity: calc(1 - var(--intro-opacity)); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.hero-sequence.is-dark .hero-chapters { color: #fff; }
.hero-chapters span { opacity: .5; padding-bottom: 8px; border-bottom: 1px solid transparent; }
.hero-chapters .is-active { opacity: 1; border-color: currentColor; }

.hero-sequence.is-enhanced { height: 520svh; }
.hero-sequence.is-enhanced .hero-stage { position: sticky; top: 0; }
.hero-sequence.is-enhanced .sculpture-body,
.hero-sequence.is-enhanced .sculpture-piece { will-change: transform; }

html[data-hero-theme="dark"] .nav-container { background: #080c15c9; border-color: #ffffff21; color: #fff; }
html[data-hero-theme="dark"] .brand-symbol { background-color: #fff; }
html[data-hero-theme="dark"] .brand,
html[data-hero-theme="dark"] .nav-links a:not(.btn-ghost),
html[data-hero-theme="dark"] .nav-links > .btn-ghost,
html[data-hero-theme="dark"] #current-lang-btn { color: #fff; }
html[data-hero-theme="dark"] .nav-links > .btn-ghost,
html[data-hero-theme="dark"] #current-lang-btn { border-color: #ffffff50 !important; }

/* The project action stays available while the audience watches the stage. */
@media (max-width: 768px) {
  .nav-container { height: 68px; }
  .nav-links { display: flex; gap: 0; }
  .nav-links > a:not(.btn-ghost), .nav-links .lang-dropdown-wrapper { display: none; }
  .nav-links > .btn-ghost { padding: 9px 13px; border-radius: 24px; font-size: 12px; }
  .brand { font-size: 19px; }
  .brand-link { gap: 7px; }
  .hero-sequence.is-enhanced { height: 520svh !important; }
  .hero-stage { min-height: 600px; }
  .hero-intro { top: clamp(105px, 16svh, 150px); left: 5%; right: 5%; }
  .hero-kicker { font-size: 9px; letter-spacing: .14em; margin-bottom: 17px; }
  #hero-title { font-size: clamp(32px, 9.7vw, 61px); letter-spacing: -.055em; line-height: 1.03; }
  .hero-description { max-width: 270px; font-size: 14px; margin-top: 17px; line-height: 1.55; }
  .hero-sculpture { top: 63%; width: 95vw; height: min(47svh, 430px); }
  .hero-intro-actions { bottom: 35px; right: 6%; }
  .hero-work-link { font-size: 12px; gap: 14px; }
  .hero-scroll-cue { left: 6%; transform: none; align-items: flex-start; bottom: 27px; font-size: 10px; }
  .hero-bridge { top: 16%; }
  .origami-video { position: absolute; left: -42.5%; top: 29%; object-fit: contain; width: 185%; max-width: none; height: auto; aspect-ratio: 16 / 9; margin: 0; mask-image: linear-gradient(transparent, #000 12%, #000 90%, transparent); }
  .hero-bridge p { font-size: clamp(30px, 7vw, 46px); max-width: 320px; }
  .hero-film video { object-position: 48% center; }
  .hero-film-caption { left: 6%; bottom: 184px; right: 6%; }
  .hero-film-caption h2 { font-size: clamp(38px, 9vw, 60px); }
  .hero-project-link { font-size: 13px; margin-top: 19px; }
  .hero-film-controls { left: 6%; right: 6%; bottom: 103px; flex-direction: row; align-items: center; justify-content: space-between; gap: 15px; }
  .hero-play-toggle { padding: 8px 12px; font-size: 11px; flex-shrink: 0; }
  .hero-replay { font-size: 11px; max-width: 120px; text-align: right; }
  .hero-chapters { gap: 20px; font-size: 9px; bottom: 38px; }
}

@media (max-height: 800px) and (min-width: 769px) {
  .hero-stage { min-height: 550px; }
  .hero-intro { top: 100px; }
  #hero-title { font-size: clamp(48px, 6vw, 78px); }
  .hero-description { margin-top: 14px; }
  .hero-sculpture { top: 80%; height: 62svh; }
}

/* A complete, linear alternative: no pinned scroll and no autoplay. */
.hero-sequence.is-static { height: auto !important; }
.hero-sequence.is-static .hero-stage { position: relative; height: auto; min-height: 0; padding-top: 120px; }
.hero-sequence.is-static .hero-intro { position: relative; inset: auto; margin: 0 5%; transform: none; opacity: 1; }
.hero-sequence.is-static .hero-sculpture { position: relative; inset: auto; transform: none; margin: 20px auto 45px; height: 400px; max-height: 55svh; }
.hero-sequence.is-static .hero-film { position: relative; inset: auto; height: 80svh; min-height: 620px; opacity: 1; clip-path: none; transform: none; }
.hero-sequence.is-static .hero-film-caption,
.hero-sequence.is-static .hero-film-controls,
.hero-sequence.is-static .hero-film-shade { opacity: 1; transform: none; }
.hero-sequence.is-static .hero-origami { position: relative; height: 85svh; min-height: 620px; opacity: 1; }
.hero-sequence.is-static .hero-bridge { opacity: 1; transform: none; }
.hero-sequence.is-static .hero-scroll-cue,
.hero-sequence.is-static .hero-chapters,
.hero-sequence.is-static .hero-intro-actions,
.hero-sequence.is-static .hero-replay { display: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
