.hx { --hx-ink:#0b1615; --hx-pine:#142a28; --hx-mist:#f5e8e4; --hx-shade:6 14 13; position: relative; height: 100vh; background: var(--hx-ink); }
.hx.hx--js { height: 560vh; }                 /* scroll distance = pacing */
.hx__stage {
  position: sticky; top: 0;
  height: 100vh; width: 100%;
  overflow: clip; isolation: isolate;
  background: var(--hx-pine);
}
.hx__layer { position: absolute; pointer-events: none; }
/* hold the shot behind a dark cover until the main images are decoded, so nothing pops in */
.hx__stage::after {
  content: ""; position: absolute; inset: 0; z-index: 10; pointer-events: none;
  background: var(--hx-ink); opacity: 0; transition: opacity 700ms ease;
}
.hx__stage.hx__stage--loading::after { opacity: 1; transition: none; }

/* depth planes: each is the full render's frame; without JS the valley plane covers the stage */
.hx__plane { position: absolute; inset: 0; pointer-events: none; }
.hx__plane > picture > img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hx__plane--bld, .hx__plane--forest { display: none; }
.hx--js .hx__plane { inset: auto; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.hx--js .hx__plane--bld, .hx--js .hx__plane--forest { display: block; }
.hx--js .hx__plane > picture > img { object-fit: fill; }
/* positions inside the 5504×3072 frame */
.hx__bld { position: absolute; left: 35.938%; top: 26.335%; width: 28.452%; height: 40.072%; }
.hx__bld img { display: block; width: 100%; height: 100%; max-width: none; }
.hx__glow {
  position: absolute; inset: 0;
  background: url("assets/harsukh-reveal/window-glow.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen; opacity: 0;
}
.hx__forest { position: absolute; left: 0; top: 42.318%; width: 100%; height: 57.682%; }
.hx__forest img { display: block; width: 100%; height: 100%; max-width: none; }
/* forest cloned into the two clearings: closes them while the trees are lifted, fades out as they land */
.hx__fill {
  position: absolute; inset: 0;
  background: url("assets/harsukh-reveal/forest-fill.webp") center / 100% 100% no-repeat;
}

.hx__dawn {
  inset: 0;
  background: radial-gradient(70% 55% at 58% 10%, rgb(255 196 170 / 0.45), transparent 72%);
  mix-blend-mode: screen; opacity: 0;
}
.hx__mist {
  left: -50vw; width: 200vw; top: 30vh; height: 60vh;
  background: url("assets/harsukh-reveal/mist.webp") center / 100% 100% no-repeat;
  opacity: 0; will-change: transform, opacity;
}
/* free fog banks drifting on the wind at treetop height; the textures tile sideways */
.hx__fogband {
  left: 0; top: 0; display: none;
  background-repeat: repeat-x; background-position: 0 0;
  opacity: 0; will-change: transform, opacity;
}
.hx--js .hx__fogband { display: block; }
.hx__fogband--a { background-image: url("assets/harsukh-reveal/fog-band-a.webp"); }
.hx__fogband--b { background-image: url("assets/harsukh-reveal/fog-band-b.webp"); }
/* cloud layers the camera climbs through */
.hx__cloud {
  left: 50%; top: 0; display: none;
  background: center / 100% 100% no-repeat;
  opacity: 0; will-change: transform, opacity;
}
.hx--js .hx__cloud { display: block; }
.hx__cloud--far { width: max(135vw, 240vh); aspect-ratio: 2048 / 1024; background-image: url("assets/harsukh-reveal/cloud-far.webp"); }
.hx__cloud--near { width: max(150vw, 267vh); aspect-ratio: 2048 / 1280; background-image: url("assets/harsukh-reveal/cloud-near.webp"); }
/* near-lens branches: the camera rises past these */
.hx__fg { top: -6vh; height: 118vh; will-change: transform, opacity; display: none; }
.hx--js .hx__fg { display: block; }
.hx__fg img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.hx__fg--l {
  left: 0; width: min(40vw, 76.8vh); transform-origin: 0 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to left, transparent, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to left, transparent, #000 40%);
  mask-composite: intersect;
}
.hx__fg--l img { object-position: right top; }
.hx__fg--r {
  right: 0; width: min(34vw, 48.2vh); transform-origin: 100% 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to right, transparent, #000 40%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent, #000 22%), linear-gradient(to right, transparent, #000 40%);
  mask-composite: intersect;
}
.hx__fg--r img { object-position: left top; }
@media (max-aspect-ratio: 4/5) {
  .hx__fg { top: -4vh; height: 112vh; }
  .hx__fg--l { width: 30vw; }
  .hx__fg--r { width: 26vw; }
}

.hx__shade {
  inset: 0; opacity: 0;
  background: radial-gradient(120% 95% at 50% 42%, rgb(var(--hx-shade) / 0.1), rgb(var(--hx-shade) / 0.8));
}
.hx__vignette {
  inset: 0;
  background: radial-gradient(130% 100% at 50% 45%, transparent 55%, rgb(var(--hx-shade) / 0.45));
}
.hx__grain {
  inset: 0; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}


.hx__hint {
  left: 50%; bottom: calc(clamp(20px, 5vh, 48px) + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--hx-mist);
  padding-left: 0.34em;
}
.hx--js .hx__hint { display: flex; }
.hx__hint i {
  position: relative; width: 1px; height: 52px; overflow: hidden;
  background: rgb(245 232 228 / 0.25);
}
.hx__hint i::after {
  content: ""; position: absolute; left: 0; top: 0; width: 1px; height: 40%;
  background: var(--hx-mist); animation: hx-drip 2.2s cubic-bezier(.6, 0, .2, 1) infinite;
}
@keyframes hx-drip { from { transform: translateY(-100%); } to { transform: translateY(260%); } }

@media (prefers-reduced-motion: reduce) {
  .hx__hint i::after { animation: none; transform: none; height: 100%; opacity: 0.6; }
}


/* The supplied reveal fills this project page without changing the shared site theme. */
.page-harsukh main{width:100%;max-width:none;margin:0}
.page-harsukh>header{position:absolute;top:0;left:0;width:100%;z-index:20;background:rgba(242,238,232,.9)}
.page-harsukh #navigation{position:absolute;top:max(76px,6.64vw);left:0;width:100%;z-index:21;background:var(--paper)}
.page-harsukh footer#connect{margin-top:0}
.hx__final-shade{position:absolute;inset:0;z-index:4;pointer-events:none;background:linear-gradient(0deg,rgba(8,18,15,.88),rgba(8,18,15,.25) 48%,transparent 82%);opacity:1;transition:opacity .65s ease}
.hx__project-copy{position:absolute;left:7vw;right:7vw;bottom:8vh;z-index:5;max-width:720px;color:#fff;opacity:1;visibility:visible;transition:opacity .65s ease}
.hx__project-copy .eyebrow{color:#fff;font-size:16px;line-height:1.4;margin:0 0 20px}
.hx__project-copy h1{font-family:'Ivy Journal',Georgia,serif;font-weight:300;text-transform:uppercase;font-size:clamp(32px,3.2vw,64px);line-height:1.12;letter-spacing:0;margin:0 0 22px}
.hx__project-copy .harsukh-description{font-size:18px;line-height:1.4;max-width:620px;margin:0 0 26px}
.hx__project-copy .text-link{color:#fff;border-bottom-color:currentColor;font-size:18px;line-height:1.4}
.hx--js .hx__project-copy{opacity:0;visibility:hidden;pointer-events:none}
.hx--js .hx__final-shade{opacity:0}
.hx--js.hx--complete .hx__project-copy{opacity:1;visibility:visible;pointer-events:auto}
.hx--js.hx--complete .hx__final-shade{opacity:1}
@media(max-width:700px){
  .page-harsukh #navigation{top:76px}
  .hx__project-copy{left:6vw;right:6vw;bottom:max(28px,6vh)}
  .hx__project-copy .eyebrow{font-size:14px;margin-bottom:14px}
  .hx__project-copy h1{font-size:clamp(30px,7vw,42px);margin-bottom:18px}
  .hx__project-copy .harsukh-description{font-size:16px;line-height:1.4;margin-bottom:22px}
  .hx__project-copy .text-link{font-size:16px}
}
@media(prefers-reduced-motion:reduce){.hx__project-copy,.hx__final-shade{transition:none}}
