﻿/* Single-project detail system â€” rebuilt from zero (Phase A + B).
   Scope: .pj-* only. Between header and footer on /projects/[slug] routes. */

.pj-page {
  background: var(--paper);
  color: var(--text-paper);
  overflow-x: clip;
}

/* ------------------------------ hero */

.pj-hero {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  background: var(--ink);
  color: var(--text-ink);
}

.pj-hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.pj-hero__img {
  object-fit: cover;
}

.pj-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15, 13, 10, 0.62) 0%,
    rgba(15, 13, 10, 0.18) 38%,
    rgba(15, 13, 10, 0) 62%
  );
}

.pj-hero__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: calc(var(--header-h) + 26px);
  padding-bottom: clamp(36px, 7vh, 76px);
}

.pj-hero__eyebrow {
  align-self: flex-start;
  margin-bottom: auto;
  color: var(--text-ink-soft);
}

.pj-hero__cluster {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  max-width: 100%;
  padding-right: 12px;
}

.pj-hero[data-align="center-left"] .pj-hero__eyebrow {
  margin-bottom: 0;
}

.pj-hero[data-align="center-left"] .pj-hero__cluster {
  margin-top: auto;
  margin-bottom: auto;
}

.pj-hero[data-align="lower-center"] .pj-hero__cluster {
  align-self: center;
  align-items: center;
  text-align: center;
}

.pj-hero[data-align="edge-right"] .pj-hero__cluster {
  align-self: flex-end;
  align-items: flex-end;
  text-align: right;
}

.pj-hero__index {
  color: var(--text-ink-soft);
}

.pj-hero__title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(4.4rem, 8vw, 8.5rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.pj-hero__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.pj-hero__line {
  display: block;
  will-change: transform;
}

.pj-hero__cue {
  position: absolute;
  right: var(--gutter);
  bottom: calc(clamp(36px, 7vh, 76px) + 6px);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-ink-soft);
}

.pj-hero__cue-line {
  display: block;
  width: 64px;
  height: 1px;
  background: var(--text-ink);
  transform-origin: left center;
}

/* ------------------------------ shared links */

.pj-item-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono), monospace;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: inherit;
  padding: 6px 0;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size var(--dur-micro) var(--ease-out);
}

.pj-item-link:hover,
.pj-item-link:focus-visible {
  background-size: 100% 1px;
}

.pj-item-link:focus-visible {
  outline: 1px solid var(--lumen);
  outline-offset: 6px;
}

.pj-item-link__arrow {
  transition: transform var(--dur-micro) var(--ease-out);
}

.pj-item-link:hover .pj-item-link__arrow,
.pj-item-link:focus-visible .pj-item-link__arrow {
  transform: translateX(-4px);
}

/* ------------------------------ intro */

.pj-intro {
  position: relative;
  z-index: 3;
  margin-top: -7svh;
  background: var(--paper);
  border-top: 1px solid var(--line-paper);
  padding: clamp(76px, 12vh, 140px) 0 clamp(64px, 10vh, 116px);
}

.pj-intro__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.pj-intro__left {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.pj-intro__num {
  color: var(--text-paper-soft);
}

.pj-intro__rule {
  display: block;
  width: min(140px, 100%);
  height: 1px;
  background: var(--line-paper-strong);
  transform-origin: left center;
}

.pj-intro__right {
  grid-column: 6 / 13;
}

.pj-intro__statement {
  margin: 0;
  font-weight: 500;
  font-size: clamp(1.9rem, 2.9vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.pj-intro__body {
  margin: 26px 0 0;
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-paper-soft);
  max-width: 46ch;
}

/* ------------------------------ modules */

.pj-mod {
  position: relative;
}

.pj-mod--pair,
.pj-mod--offset,
.pj-mod--detail,
.pj-mod--enquiry {
  background: var(--paper);
  color: var(--text-paper);
}

.pj-mod--pair {
  padding: clamp(70px, 11vh, 132px) 0 clamp(52px, 8vh, 104px);
}

.pj-mod--detail {
  padding: clamp(64px, 10vh, 124px) 0 clamp(96px, 15vh, 170px);
}

.pj-mod--enquiry {
  border-top: 1px solid var(--line-paper);
  padding: clamp(84px, 14vh, 152px) 0;
}

/* ------------------------------ full scene */

.pj-mod--full {
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.pj-full {
  position: absolute;
  inset: 0;
  transform: scale(1.14);
}

.pj-full__img {
  object-fit: cover;
  will-change: transform;
}

.pj-mod--full--capped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(14, 12, 9, 0.5), transparent);
  z-index: 1;
  pointer-events: none;
}

.pj-full__cap {
  position: absolute;
  left: var(--gutter);
  bottom: clamp(26px, 4.5vh, 48px);
  z-index: 2;
  color: var(--text-ink);
}

/* ------------------------------ figures */

.pj-fig {
  margin: 0;
  position: relative;
}

.pj-fig__btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: inherit;
}

.pj-fig__btn:focus-visible {
  outline: 1px solid var(--lumen);
  outline-offset: 6px;
}

.pj-fig__shutter {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
}

.pj-fig__img {
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}

.pj-fig__btn:hover .pj-fig__img,
.pj-fig__btn:focus-visible .pj-fig__img {
  transform: scale(1.025);
}

.pj-fig--a .pj-fig__shutter,
.pj-fig--b .pj-fig__shutter {
  aspect-ratio: 4 / 5;
}

.pj-fig--offset .pj-fig__shutter {
  aspect-ratio: 5 / 6;
}

.pj-fig--detail .pj-fig__shutter {
  aspect-ratio: 4 / 3;
}

/* ------------------------------ pair */

.pj-pair {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(22px, 3vw, 46px);
  align-items: start;
}

.pj-pair--6-5 .pj-fig--a {
  grid-column: 1 / 7;
}

.pj-pair--6-5 .pj-fig--b {
  grid-column: 8 / 13;
}

.pj-pair--7-5 .pj-fig--a {
  grid-column: 1 / 8;
}

.pj-pair--7-5 .pj-fig--b {
  grid-column: 9 / 13;
}

.pj-pair--7-4 .pj-fig--a {
  grid-column: 1 / 8;
}

.pj-pair--7-4 .pj-fig--b {
  grid-column: 10 / 13;
}

@media (min-width: 769px) {
  .pj-fig--b {
    margin-top: clamp(56px, 11vh, 150px);
  }

  .pj-pair--drop-a .pj-fig--a {
    margin-top: clamp(56px, 11vh, 150px);
  }

  .pj-pair--drop-a .pj-fig--b {
    margin-top: 0;
  }
}

/* ------------------------------ offset */

.pj-offset {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}

.pj-offset--left .pj-fig--offset {
  grid-column: 1 / 8;
}

.pj-offset--right .pj-fig--offset {
  grid-column: 6 / 13;
}

.pj-offset__statement {
  margin: 0;
  font-size: clamp(1.6rem, 2.2vw, 2.3rem);
  line-height: 1.2;
  font-weight: 500;
}

.pj-offset--left .pj-offset__statement {
  grid-column: 9 / 13;
}

.pj-offset--right .pj-offset__statement {
  grid-column: 1 / 5;
}

/* ------------------------------ detail */

.pj-detail {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
}

.pj-fig--detail {
  grid-column: 4 / 10;
}

.pj-detail__meta {
  grid-column: 4 / 10;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 28px;
  margin-top: 20px;
}

.pj-detail__statement {
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

.pj-detail__cap {
  color: var(--text-paper-soft);
}

/* ------------------------------ signature */

.pj-mod--sig {
  background: var(--ink);
  color: var(--text-ink);
}

.pj-sig {
  height: calc(100svh + (var(--sig-steps, 2) - 1) * 85svh);
}

.pj-sig__stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  background: var(--ink);
}

.pj-sig__stage::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 32%;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.55), transparent);
  z-index: 1;
  pointer-events: none;
}

.pj-sig__frame {
  position: absolute;
  inset: 0;
}

.pj-sig__img {
  object-fit: cover;
  will-change: transform;
}

.pj-sig__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.pj-sig__label {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  left: var(--gutter);
  color: var(--text-ink);
}

.pj-sig__foot {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(28px, 5vh, 52px);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}

.pj-sig__note {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text-ink-soft);
  max-width: 38ch;
}

.pj-sig__count {
  color: var(--text-ink);
  white-space: nowrap;
}

/* ------------------------------ enquiry */

.pj-enq {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.pj-enq__label {
  color: var(--text-paper-soft);
}

.pj-enq__statement {
  margin: 20px 0 0;
  font-weight: 500;
  font-size: clamp(2.2rem, 4.4vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.pj-enq__cta {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
  font-family: var(--font-mono), monospace;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: inherit;
  padding: 8px 0;
}

.pj-enq__cta:focus-visible {
  outline: 1px solid var(--lumen);
  outline-offset: 6px;
}

.pj-enq__rule {
  display: block;
  width: clamp(64px, 9vw, 150px);
  height: 1px;
  background: currentColor;
  transform-origin: left center;
  transition: transform var(--dur-micro) var(--ease-out);
}

.pj-enq__arrow {
  display: block;
  transition: transform var(--dur-micro) var(--ease-out);
}

.pj-enq__cta:hover .pj-enq__rule,
.pj-enq__cta:focus-visible .pj-enq__rule {
  transform: scaleX(1.3);
}

.pj-enq__cta:hover .pj-enq__arrow,
.pj-enq__cta:focus-visible .pj-enq__arrow {
  transform: translateX(10px);
}

/* ------------------------------ next project */

.pj-mod--next {
  height: 96svh;
  min-height: 560px;
  position: relative;
  overflow: hidden;
  background: var(--ink);
}

.pj-next {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text-ink);
}

.pj-next:hover,
.pj-next:focus-visible {
  color: var(--text-ink);
}

.pj-next:focus-visible {
  outline: 1px solid var(--lumen);
  outline-offset: -8px;
}

.pj-next__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pj-next__img {
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms var(--ease-out);
}

.pj-next:hover .pj-next__img,
.pj-next:focus-visible .pj-next__img {
  transform: scale(1.06);
}

.pj-next__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(14, 12, 9, 0.6) 0%,
    rgba(14, 12, 9, 0.12) 45%,
    rgba(14, 12, 9, 0) 70%
  );
}

.pj-next__inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: calc(var(--header-h) + 26px);
  padding-bottom: clamp(40px, 8vh, 88px);
}

.pj-next__label {
  color: var(--text-ink-soft);
}

.pj-next__index {
  margin-top: 12px;
  color: var(--text-ink-soft);
}

.pj-next__name {
  margin: 10px 0 0;
  font-weight: 500;
  font-size: clamp(2.8rem, 6.6vw, 7rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pj-next__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.pj-next__line {
  display: block;
  transition: transform var(--dur-short) var(--ease-out);
}

.pj-next:hover .pj-next__line,
.pj-next:focus-visible .pj-next__line {
  transform: translateX(8px);
}

.pj-next__arrow {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(40px, 8vh, 88px);
  font-size: clamp(1.6rem, 2.6vw, 2.6rem);
  line-height: 1;
  transition: transform var(--dur-micro) var(--ease-out);
}

.pj-next:hover .pj-next__arrow,
.pj-next:focus-visible .pj-next__arrow {
  transform: translateX(10px);
}

/* ------------------------------ responsive */

@media (max-width: 1024px) {
  .pj-hero__cue {
    display: none;
  }

  .pj-intro__left {
    grid-column: 1 / 5;
  }

  .pj-intro__right {
    grid-column: 5 / 13;
  }

  .pj-pair--6-5 .pj-fig--a,
  .pj-pair--7-5 .pj-fig--a,
  .pj-pair--7-4 .pj-fig--a {
    grid-column: 1 / 8;
  }

  .pj-pair--6-5 .pj-fig--b,
  .pj-pair--7-5 .pj-fig--b,
  .pj-pair--7-4 .pj-fig--b {
    grid-column: 8 / 13;
  }

  .pj-fig--detail,
  .pj-detail__meta {
    grid-column: 3 / 11;
  }

  .pj-sig {
    height: auto;
  }

  .pj-sig__stage {
    position: relative;
    height: auto;
  }

  .pj-sig__frame {
    position: relative;
    inset: auto;
    height: 86svh;
  }

  .pj-sig__stage::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .pj-hero {
    min-height: 520px;
  }

  .pj-hero__title {
    max-width: 100%;
  }

  .pj-intro {
    margin-top: -5svh;
  }

  .pj-intro__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .pj-intro__left,
  .pj-intro__right {
    grid-column: auto;
  }

  .pj-pair {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .pj-pair--6-5 .pj-fig--a,
  .pj-pair--6-5 .pj-fig--b,
  .pj-pair--7-5 .pj-fig--a,
  .pj-pair--7-5 .pj-fig--b,
  .pj-pair--7-4 .pj-fig--a,
  .pj-pair--7-4 .pj-fig--b {
    grid-column: auto;
  }

  .pj-offset {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .pj-offset--left .pj-fig--offset,
  .pj-offset--right .pj-fig--offset,
  .pj-offset--left .pj-offset__statement,
  .pj-offset--right .pj-offset__statement {
    grid-column: auto;
  }

  .pj-detail {
    grid-template-columns: 1fr;
  }

  .pj-fig--detail,
  .pj-detail__meta {
    grid-column: auto;
  }

  .pj-detail__meta {
    flex-direction: column;
    gap: 12px;
  }

  .pj-mod--full {
    min-height: 480px;
  }

  .pj-mod--next {
    min-height: 480px;
  }

  .pj-sig__frame {
    height: 76svh;
  }
}

@media (max-width: 480px) {
  .pj-hero__title {
    font-size: clamp(2.9rem, 13vw, 4.2rem);
  }

  .pj-next__name {
    font-size: clamp(2.2rem, 11vw, 3.4rem);
  }

  .pj-enq__statement {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pj-fig__img,
  .pj-next__img,
  .pj-next__line,
  .pj-next__arrow,
  .pj-enq__rule,
  .pj-enq__arrow,
  .pj-item-link,
  .pj-item-link__arrow {
    transition: none;
  }

  .pj-sig {
    height: auto;
  }

  .pj-sig__stage {
    position: relative;
    height: auto;
  }

  .pj-sig__frame {
    position: relative;
    inset: auto;
    height: 80svh;
  }

  .pj-sig__stage::after {
    display: none;
  }
}

/* ============================================================
   SPA-GARÃZS V3 â€” natural-flow cinematic sequence (spa only)
   LIGHT â†’ WATER â†’ MACHINE â†’ SPACE. No sticky, no pinning.
   ============================================================ */

.pj-tag {
  font-size: 12.5px;
}

.pj-fig__depth {
  position: absolute;
  inset: 0;
  will-change: transform;
}

/* hero â€” cinematic threshold */

.pj-hero--cine .pj-hero__media {
  inset: -11svh 0 auto 0;
  height: 122svh;
}

.pj-hero--cine .pj-hero__inner {
  z-index: 3;
}

.pj-hero__rise {
  position: absolute;
  inset: -1px 0 auto 0;
  height: calc(100% + 2px);
  background: var(--paper);
  z-index: 2;
  transform: translateY(101%);
  will-change: transform;
}

.pj-hero--cine .pj-hero__title {
  font-size: clamp(5rem, 9vw, 9rem);
}

.pj-hero__drawn {
  display: block;
  width: min(300px, 42vw);
  height: 1px;
  background: currentColor;
  opacity: 0.9;
  transform-origin: left center;
}

.pj-hero--cine + .pj-intro {
  margin-top: 0;
  border-top: 0;
}

/* intro â€” taller editorial moment, leads into water */

.pj-intro--led {
  border-top: 0;
  min-height: clamp(430px, 62svh, 680px);
  padding: clamp(84px, 13vh, 150px) 0 clamp(60px, 9vh, 104px);
}

.pj-intro--led .pj-intro__left {
  gap: 20px;
}

.pj-intro__no {
  margin: 0;
  font-weight: 500;
  font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.pj-intro__name {
  font-size: 17px;
  letter-spacing: 0.14em;
  color: var(--text-paper-soft);
}

.pj-intro--led .pj-intro__rule {
  width: min(280px, 100%);
}

.pj-intro--led .pj-intro__statement {
  font-size: clamp(2.2rem, 3.3vw, 3.2rem);
}

/* water â€” the second hero */

.pj-mod--water {
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--ink);
}

.pj-water {
  position: absolute;
  inset: 0;
}

.pj-water__plane {
  position: absolute;
  inset: -11% 0;
}

.pj-water__img {
  object-fit: cover;
  will-change: transform;
}

.pj-water__label {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  left: var(--gutter);
  z-index: 2;
  color: var(--text-ink-soft);
}

.pj-water__rule {
  position: absolute;
  left: var(--gutter);
  width: min(520px, 38vw);
  bottom: 17%;
  height: 1px;
  background: rgba(242, 238, 230, 0.5);
  transform-origin: left center;
  z-index: 2;
}

/* arrival â€” one editorial composition */

.pj-mod--arr {
  position: relative;
  z-index: 2;
  margin-top: -14svh;
  background: var(--paper);
  padding: clamp(64px, 9vh, 112px) 0 clamp(56px, 8vh, 100px);
}

.pj-arr {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: start;
  max-width: 1740px;
}

.pj-arr__a {
  grid-column: 1 / 9;
}

.pj-arr__a .pj-fig__shutter {
  aspect-ratio: auto;
  height: clamp(480px, 76svh, 880px);
}

.pj-arr__b {
  grid-column: 9 / 13;
  margin-top: 26svh;
}

.pj-arr__b .pj-fig__shutter {
  aspect-ratio: auto;
  height: clamp(320px, 52svh, 640px);
}

.pj-arr__line {
  grid-column: 1 / 13;
  height: 1px;
  background: var(--line-paper-strong);
  margin-top: clamp(22px, 3svh, 36px);
}

/* garage â€” three natural full-screen scenes */

.pj-mod--grg {
  position: relative;
  background: var(--ink);
  color: var(--text-ink);
}

.pj-grg__scene {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.pj-grg__scene--1 {
  margin-top: -24svh;
  z-index: 2;
}

.pj-grg__scene--2 {
  margin-top: -24svh;
  z-index: 3;
}

.pj-grg__plane {
  position: absolute;
  inset: -12% 0;
  display: block;
}

.pj-grg__shutter {
  position: absolute;
  inset: -1px;
  display: block;
  overflow: hidden;
}

.pj-grg__shutter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 30%;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.5), transparent);
  pointer-events: none;
}

.pj-grg__img {
  object-fit: cover;
  will-change: transform;
}

.pj-grg__under {
  object-fit: cover;
  pointer-events: none;
}


.pj-grg__dim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
}

.pj-grg__lightline {
  position: absolute;
  top: 16.5%;
  left: var(--gutter);
  width: min(56vw, 980px);
  height: 1px;
  background: linear-gradient(to right, var(--lumen), rgba(226, 178, 120, 0));
  opacity: 0.85;
  transform-origin: left center;
  z-index: 3;
  pointer-events: none;
}

.pj-grg__overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.pj-grg__label {
  position: absolute;
  top: calc(var(--header-h) + 26px);
  left: var(--gutter);
  color: var(--text-ink-soft);
}

.pj-grg__statement {
  position: absolute;
  right: clamp(60px, 14vw, 300px);
  top: 56%;
  margin: 0;
  max-width: 24ch;
  font-weight: 500;
  font-size: clamp(1.875rem, 2.6vw, 2.625rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--text-ink);
  text-align: right;
}

.pj-grg__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.pj-grg__maskline {
  display: block;
}

.pj-grg__count {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(26px, 4.5vh, 48px);
  z-index: 3;
  color: var(--text-ink);
}

/* closing â€” major editorial resolution */

.pj-mod--close {
  position: relative;
  z-index: 4;
  margin-top: -12svh;
  background: var(--paper);
  color: var(--text-paper);
  padding: clamp(72px, 11vh, 140px) 0 clamp(48px, 7vh, 84px);
}

.pj-close {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}

.pj-close__meta {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 8px;
}

.pj-close__label {
  color: var(--text-paper-soft);
}

.pj-close__rule {
  display: block;
  width: min(140px, 100%);
  height: 1px;
  background: var(--line-paper-strong);
  transform-origin: left center;
}

.pj-fig--close {
  grid-column: 4 / 13;
}

.pj-fig--close .pj-fig__shutter {
  aspect-ratio: auto;
  height: clamp(460px, 66svh, 830px);
}

/* enquiry â€” significant editorial moment */

.pj-mod--enquiry--grand {
  padding: 0;
}

.pj-enq--grand {
  min-height: clamp(430px, 58svh, 730px);
  justify-content: center;
}

.pj-enq--grand .pj-enq__label {
  color: var(--text-paper-soft);
}

.pj-enq--grand .pj-enq__statement {
  margin: 26px 0 0;
  font-size: clamp(3rem, 5vw, 5.5rem);
  line-height: 1.04;
  transition: transform var(--dur-short) var(--ease-out);
}

.pj-enq--grand:has(.pj-enq__cta:hover) .pj-enq__statement,
.pj-enq--grand:has(.pj-enq__cta:focus-visible) .pj-enq__statement {
  transform: translateX(10px);
}

.pj-enq__mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}

.pj-enq__maskline {
  display: block;
}

.pj-enq--grand .pj-enq__cta {
  display: flex;
  width: min(100%, 760px);
  margin-top: clamp(34px, 5vh, 56px);
}

.pj-enq--grand .pj-enq__cta-text {
  transition: transform var(--dur-micro) var(--ease-out);
}

.pj-enq--grand .pj-enq__cta:hover .pj-enq__cta-text,
.pj-enq--grand .pj-enq__cta:focus-visible .pj-enq__cta-text {
  transform: translateX(4px);
}

.pj-enq--grand .pj-enq__rule {
  flex: 1;
  width: auto;
}

/* next project â€” cinematic full-viewport */

.pj-mod--next--cine {
  height: 100svh;
}

.pj-next--cine .pj-next__img {
  transform: scale(1);
}

.pj-next--cine:hover .pj-next__img,
.pj-next--cine:focus-visible .pj-next__img {
  transform: scale(1.05);
}

.pj-next--cine .pj-next__name {
  font-size: clamp(4rem, 7vw, 7rem);
}

.pj-next--cine:hover .pj-next__line,
.pj-next--cine:focus-visible .pj-next__line {
  transform: translateX(8px);
}

.pj-next__rule {
  display: block;
  width: min(260px, 32vw);
  height: 1px;
  background: currentColor;
  margin-top: 22px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--dur-short) var(--ease-out);
}

.pj-next--cine:hover .pj-next__rule,
.pj-next--cine:focus-visible .pj-next__rule {
  transform: scaleX(1);
}

.pj-next--cine:hover .pj-next__arrow,
.pj-next--cine:focus-visible .pj-next__arrow {
  transform: translateX(12px);
}

/* spa v3 â€” tablet / mobile recomposition */

@media (max-width: 1024px) {
  .pj-hero--cine .pj-hero__media {
    inset: 0;
    height: 100%;
  }

  .pj-hero--cine .pj-hero__title {
    font-size: clamp(3.6rem, 11vw, 6rem);
  }

  .pj-intro--led {
    min-height: 0;
  }

  .pj-mod--water {
    height: 92svh;
  }

  .pj-mod--arr {
    margin-top: 0;
  }

  .pj-arr {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pj-arr__a,
  .pj-arr__b {
    grid-column: auto;
    margin-top: 0;
  }

  .pj-arr__a .pj-fig__shutter {
    height: 64svh;
  }

  .pj-arr__b .pj-fig__shutter {
    height: 52svh;
  }

  .pj-arr__line {
    display: none;
  }

  .pj-grg__scene--1,
  .pj-grg__scene--2 {
    margin-top: 0;
  }

  .pj-grg__statement {
    left: var(--gutter);
    right: auto;
    top: auto;
    bottom: 18%;
    max-width: 22ch;
    font-size: clamp(1.75rem, 4.2vw, 2.25rem);
    text-align: left;
  }

  .pj-grg__lightline {
    display: none;
  }

  .pj-mod--close {
    margin-top: 0;
  }

  .pj-close {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pj-close__meta,
  .pj-fig--close {
    grid-column: auto;
  }

  .pj-close__meta {
    flex-direction: row;
    align-items: center;
    gap: 24px;
    padding-bottom: 0;
  }

  .pj-close__rule {
    display: none;
  }

  .pj-fig--close .pj-fig__shutter {
    height: 64svh;
  }

  .pj-enq--grand .pj-enq__statement {
    font-size: clamp(2.6rem, 6.5vw, 4rem);
  }

  .pj-enq--grand .pj-enq__cta {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .pj-hero--cine .pj-hero__title {
    font-size: clamp(3rem, 13vw, 4.6rem);
  }

  .pj-hero__drawn {
    width: min(200px, 60vw);
  }

  .pj-mod--water {
    min-height: 480px;
  }

  .pj-grg__scene {
    height: 86svh;
  }

  .pj-grg__statement {
    bottom: 14%;
    max-width: 20ch;
  }

  .pj-arr__a .pj-fig__shutter {
    height: 56svh;
  }

  .pj-arr__b .pj-fig__shutter {
    height: 46svh;
  }

  .pj-fig--close .pj-fig__shutter {
    height: 58svh;
  }

  .pj-enq--grand .pj-enq__statement {
    font-size: clamp(2.2rem, 9.5vw, 3.1rem);
  }

  .pj-next--cine .pj-next__name {
    font-size: clamp(2.4rem, 11vw, 3.6rem);
  }
}

/* ---------- short-height viewports (landscape phones, small windows) ----------
   Without this the 620px hero floor pushes the title below the fold. */

@media (max-height: 640px) {
  .pj-hero:not(.pj-hero--cine) {
    height: 100svh;
    min-height: 100svh;
  }

  .pj-hero:not(.pj-hero--cine) .pj-hero__inner {
    padding-top: calc(var(--header-h) + 10px);
    padding-bottom: 22px;
  }

  .pj-hero:not(.pj-hero--cine) .pj-hero__cluster {
    gap: 10px;
  }

  .pj-hero:not(.pj-hero--cine) .pj-hero__title {
    font-size: clamp(2rem, 7.4vh, 3.2rem);
  }

  .pj-hero:not(.pj-hero--cine) .pj-hero__cue {
    bottom: 20px;
  }
}

/* focus over photography (3:1+ against dark imagery) */

.pj-fig__btn:focus-visible,
.pj-next:focus-visible,
.pj-hero .pj-item-link:focus-visible {
  outline-color: var(--lumen);
}


/* Nyergesujfalu mobile pair asymmetry (page-scoped) */

@media (max-width: 768px) {
  .pj-page[data-slug="nyergesujfalu"] .pj-pair {
    gap: 36px;
  }

  .pj-page[data-slug="nyergesujfalu"] .pj-pair .pj-fig--b {
    width: min(84%, 440px);
    margin-left: auto;
  }
}


/* Tarsashaz 3.ker mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="tarsashaz-3-ker"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        180deg,
        rgba(12, 11, 9, 0.5) 0%,
        rgba(12, 11, 9, 0.08) 30%,
        rgba(12, 11, 9, 0.12) 55%,
        rgba(12, 11, 9, 0.62) 100%
      ),
      radial-gradient(
        130% 72% at 10% 102%,
        rgba(12, 11, 9, 0.52) 0%,
        rgba(12, 11, 9, 0) 62%
      );
  }
}

@media (max-width: 768px) {
  .pj-page[data-slug="tarsashaz-3-ker"] .pj-pair {
    gap: 36px;
  }

  .pj-page[data-slug="tarsashaz-3-ker"] .pj-pair .pj-fig--b {
    width: min(78%, 420px);
    margin-right: auto;
  }

  .pj-page[data-slug="tarsashaz-3-ker"] .pj-next__name {
    text-wrap: balance;
  }
}


/* Budapest dio-mesz mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="budapest-dio-mesz"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        180deg,
        rgba(15, 13, 10, 0.8) 0%,
        rgba(15, 13, 10, 0.3) 32%,
        rgba(15, 13, 10, 0) 48%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.62) 0%,
        rgba(15, 13, 10, 0.18) 38%,
        rgba(15, 13, 10, 0) 62%
      );
  }

  .pj-page[data-slug="budapest-dio-mesz"] .pj-sig__stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
      to bottom,
      rgba(12, 10, 8, 0.58) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="budapest-dio-mesz"] .pj-sig__stage::after {
    display: block;
  }
}

@media (max-width: 768px) {
  .pj-page[data-slug="budapest-dio-mesz"] .pj-pair .pj-fig--b .pj-fig__shutter {
    aspect-ratio: 6 / 5;
  }
}


/* Iroda Nagykoros mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="iroda-nagykoros"] .pj-hero .pj-hero__veil {
    background: radial-gradient(
        115% 68% at 0% 62%,
        rgba(15, 13, 10, 0.6) 0%,
        rgba(15, 13, 10, 0.26) 46%,
        rgba(15, 13, 10, 0) 70%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.62) 0%,
        rgba(15, 13, 10, 0.18) 38%,
        rgba(15, 13, 10, 0) 62%
      );
  }

  .pj-page[data-slug="iroda-nagykoros"] .pj-sig__stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
      to bottom,
      rgba(12, 10, 8, 0.58) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="iroda-nagykoros"] .pj-sig__stage::after {
    display: block;
  }
}

@media (max-width: 1024px) and (max-height: 480px) {
  .pj-page[data-slug="iroda-nagykoros"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        135deg,
        rgba(15, 13, 10, 0.72) 0%,
        rgba(15, 13, 10, 0.42) 22%,
        rgba(15, 13, 10, 0) 48%
      ),
      radial-gradient(
        115% 68% at 0% 62%,
        rgba(15, 13, 10, 0.6) 0%,
        rgba(15, 13, 10, 0.26) 46%,
        rgba(15, 13, 10, 0) 70%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.62) 0%,
        rgba(15, 13, 10, 0.18) 38%,
        rgba(15, 13, 10, 0) 62%
      );
  }
}

@media (max-width: 768px) {
  .pj-page[data-slug="iroda-nagykoros"] .pj-hero__img {
    object-position: 42% 55% !important;
  }

  .pj-page[data-slug="iroda-nagykoros"] .pj-pair {
    gap: 36px;
  }

  .pj-page[data-slug="iroda-nagykoros"] .pj-pair .pj-fig--b {
    width: min(86%, 560px);
    margin-inline: auto;
  }
}


/* Vac mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="vac"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        180deg,
        rgba(15, 13, 10, 0.55) 0%,
        rgba(15, 13, 10, 0.28) 14%,
        rgba(15, 13, 10, 0) 30%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.62) 0%,
        rgba(15, 13, 10, 0.18) 38%,
        rgba(15, 13, 10, 0) 62%
      );
  }

  .pj-page[data-slug="vac"] .pj-sig__stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
      to bottom,
      rgba(12, 10, 8, 0.5) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="vac"] .pj-sig__stage::after {
    display: block;
  }
}


/* Budapest 12 mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="budapest-12"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        180deg,
        rgba(15, 13, 10, 0.5) 0%,
        rgba(15, 13, 10, 0.24) 12%,
        rgba(15, 13, 10, 0) 28%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.76) 0%,
        rgba(15, 13, 10, 0.34) 34%,
        rgba(15, 13, 10, 0) 66%
      );
  }

  .pj-page[data-slug="budapest-12"] .pj-sig__stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 220px;
    background: linear-gradient(
      to bottom,
      rgba(12, 10, 8, 0.58) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="budapest-12"] .pj-sig__stage::after {
    display: block;
    height: 30%;
    background: linear-gradient(
      to top,
      rgba(12, 10, 8, 0.75) 0%,
      rgba(12, 10, 8, 0) 100%
    );
  }
}

@media (max-width: 768px) {
  .pj-page[data-slug="budapest-12"] .pj-hero__img {
    object-position: 42% 50% !important;
  }

  .pj-page[data-slug="budapest-12"] .pj-mod--full {
    height: 64svh;
    min-height: 420px;
  }

  .pj-page[data-slug="budapest-12"] .pj-full__img {
    object-position: 40% 50% !important;
  }

  .pj-page[data-slug="budapest-12"] .pj-pair .pj-fig--a .pj-fig__shutter {
    aspect-ratio: 6 / 5;
  }
}

@media (max-width: 1024px) and (max-height: 480px) {
  .pj-page[data-slug="budapest-12"] .pj-hero .pj-hero__veil {
    background: linear-gradient(
        135deg,
        rgba(15, 13, 10, 0.64) 0%,
        rgba(15, 13, 10, 0.3) 24%,
        rgba(15, 13, 10, 0) 52%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.76) 0%,
        rgba(15, 13, 10, 0.34) 34%,
        rgba(15, 13, 10, 0) 66%
      );
  }
}

/* PillisvÃ¶rÃ¶svÃ¡r mobile refinements (page-scoped) */

@media (max-width: 1024px) and (orientation: portrait) {
  .pj-page[data-slug="pillisvorosvar"] .pj-hero__img {
    object-position: 12% 50% !important;
  }

  .pj-page[data-slug="pillisvorosvar"] .pj-hero__veil {
    background: linear-gradient(
      to top,
      rgba(15, 13, 10, 0.78) 0%,
      rgba(15, 13, 10, 0.3) 40%,
      rgba(15, 13, 10, 0) 66%
    );
  }
}

@media (max-width: 768px) {
  .pj-page[data-slug="pillisvorosvar"] .pj-pair .pj-fig--a .pj-fig__shutter {
    aspect-ratio: 6 / 5;
  }
}

@media (max-width: 1024px) {
  .pj-page[data-slug="pillisvorosvar"] .pj-next__veil {
    background: linear-gradient(
      to top,
      rgba(14, 12, 9, 0.88) 0%,
      rgba(14, 12, 9, 0.55) 36%,
      rgba(14, 12, 9, 0.16) 64%,
      rgba(14, 12, 9, 0) 82%
    );
  }
}

@media (max-width: 430px) {
  .lb[data-project="pillisvorosvar"] {
    background: rgb(21, 19, 16);
  }

  .lb[data-project="pillisvorosvar"] .lb__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 18px;
  }

  .lb[data-project="pillisvorosvar"] .lb__caption {
    max-width: none;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .lb[data-project="pillisvorosvar"] .lb__frame img {
    max-height: 63svh;
  }

  .lb[data-project="pillisvorosvar"] .lb__controls {
    justify-content: space-between;
    gap: 20px;
  }

  .lb[data-project="pillisvorosvar"] .lb__controls .lb__btn {
    padding: 8px 0;
  }
}

@media (max-width: 340px) {
  .pj-page[data-slug="pillisvorosvar"] .pj-enq__cta {
    gap: 12px;
  }

  .pj-page[data-slug="pillisvorosvar"] .pj-enq__cta-text {
    white-space: nowrap;
  }

  .pj-page[data-slug="pillisvorosvar"] .pj-enq__rule {
    width: 50px;
  }
}

/* Erd csaladihaz mobile refinements (page-scoped) */

@media (max-width: 1024px) {
  .pj-page[data-slug="erd-csaladihaz"] .pj-hero__veil {
    background: linear-gradient(
        to bottom,
        rgba(15, 13, 10, 0.72) 0%,
        rgba(15, 13, 10, 0.26) 22%,
        rgba(15, 13, 10, 0) 42%
      ),
      linear-gradient(
        to top,
        rgba(15, 13, 10, 0.84) 0%,
        rgba(15, 13, 10, 0.36) 38%,
        rgba(15, 13, 10, 0) 66%
      );
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-mod--full--capped::after {
    height: 38%;
    background: linear-gradient(
      to top,
      rgba(14, 12, 9, 0.8) 0%,
      rgba(14, 12, 9, 0.34) 55%,
      rgba(14, 12, 9, 0) 100%
    );
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-sig__stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 230px;
    background: linear-gradient(
      to bottom,
      rgba(12, 10, 8, 0.62) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-sig__stage::after {
    display: block;
    height: 34%;
    background: linear-gradient(
      to top,
      rgba(12, 10, 8, 0.72) 0%,
      rgba(12, 10, 8, 0) 100%
    );
    z-index: 1;
    pointer-events: none;
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-full__cap {
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.85);
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-sig__label,
  .pj-page[data-slug="erd-csaladihaz"] .pj-sig__note,
  .pj-page[data-slug="erd-csaladihaz"] .pj-sig__count {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85), 0 1px 2px rgba(0, 0, 0, 0.8);
  }
}

@media (max-width: 430px) {
  .lb[data-project="erd-csaladihaz"] {
    background: rgb(21, 19, 16);
  }

  .lb[data-project="erd-csaladihaz"] .lb__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-bottom: 18px;
  }

  .lb[data-project="erd-csaladihaz"] .lb__caption {
    max-width: none;
    font-size: 13.5px;
    line-height: 1.45;
  }

  .lb[data-project="erd-csaladihaz"] .lb__frame img {
    max-height: 63svh;
  }

  .lb[data-project="erd-csaladihaz"] .lb__controls {
    justify-content: space-between;
    gap: 20px;
  }

  .lb[data-project="erd-csaladihaz"] .lb__controls .lb__btn {
    padding: 8px 0;
  }
}

@media (max-width: 1024px) and (orientation: portrait) {
  .pj-page[data-slug="erd-csaladihaz"] .pj-hero__img {
    object-position: 72% 58% !important;
  }
}

@media (max-width: 430px) {
  .pj-page[data-slug="erd-csaladihaz"] .pj-intro__statement {
    text-wrap: balance;
  }
}

@media (max-width: 1024px) and (max-height: 500px) {
  .pj-page[data-slug="erd-csaladihaz"] .pj-mod--next {
    height: 100svh;
    min-height: 100svh;
  }
}

@media (max-width: 340px) {
  .pj-page[data-slug="erd-csaladihaz"] .pj-enq__cta {
    gap: 12px;
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-enq__cta-text {
    white-space: nowrap;
  }

  .pj-page[data-slug="erd-csaladihaz"] .pj-enq__rule {
    width: 50px;
  }
}

