/* =====================================================================
   NoVi — portfolio pages (index, collections, galleries, videos, 360° tours,
   interactive). Round 5, portfolio stream. Same language as homepage v2:
   dark editorial sections, gold hairlines, eyebrow + display headings.
   Tokens only (dark + light), scoped under .pf / .pf-*. Motion: transform /
   opacity only; prefers-reduced-motion gets final states.
   ===================================================================== */

.pf {
  --pf-ease: var(--novi-ease, cubic-bezier(0.2, 0.7, 0.2, 1));
  --pf-card: rgba(var(--novi-fg-rgb), 0.03);
  position: relative;
  display: block;
  color: var(--novi-text);
}
.pf ul, .pf ol { list-style: none; margin: 0; padding: 0; }
.pf p, .pf figure, .pf dl, .pf dd { margin: 0; }
.pf h2, .pf h3 { margin: 0; text-transform: none; }
.pf picture { display: block; }
.pf img { display: block; max-width: 100%; }
.pf .container { max-width: var(--container, 1320px); }

/* ------------------------------------------------------------ type */
.pf-eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin: 0 !important;
  font: 600 var(--fs-eyebrow)/1.4 var(--ff-head); letter-spacing: var(--ls-eyebrow); text-transform: var(--tt-eyebrow);
  color: var(--novi-gold-hi);
}
.pf-eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.7; }
.pf-h2 {
  margin-top: 16px !important; max-width: 24ch;
  font: 400 var(--fs-h2)/1.12 var(--ff-head); letter-spacing: -0.018em; color: var(--novi-strong); text-wrap: balance;
}
.pf-h3 { margin: 0 0 14px !important; font: 500 var(--fs-h3)/1.25 var(--ff-head); color: var(--novi-strong); }
.pf-lead { margin-top: 18px !important; max-width: 64ch; font-size: var(--fs-lead); line-height: 1.7; color: var(--novi-muted); }
.pf-p { margin-top: 18px !important; max-width: 68ch; font-size: var(--fs-body); line-height: 1.8; color: var(--novi-text-2); }
.pf-p--lead { font-size: var(--fs-lead); line-height: 1.75; color: var(--novi-text); }
.novi-rtl .pf-h2 { font-weight: 700; line-height: 1.35; letter-spacing: 0; }
.novi-rtl .pf-h3 { font-weight: 700; line-height: 1.45; }
.novi-rtl .pf-p { line-height: 2; }
.novi-rtl .pf-lead { line-height: 1.9; }
.pf-note { margin-top: 22px !important; font-size: var(--fs-small); color: var(--novi-muted); }

.pf-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 48px; margin-bottom: clamp(28px, 3.4vw, 52px); }
.pf-head__text { max-width: 860px; }
.pf-head.is-center { justify-content: center; text-align: center; }
.pf-head.is-center .pf-h2, .pf-head.is-center .pf-lead { margin-inline: auto; }

/* ------------------------------------------------------------ sections */
.pf-sec { position: relative; padding: var(--sec-pad) 0; background: var(--novi-bg); }
.pf-sec + .pf-sec { border-top: 1px solid var(--novi-line); }
.pf-sec:nth-of-type(even) { background: var(--novi-bg-2); }

/* ------------------------------------------------------------ buttons & links */
.pf-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: 600 15px/1 var(--ff-body); white-space: nowrap; text-decoration: none !important;
  background: var(--novi-gold); color: var(--novi-on-gold) !important;
  transition: background-color 0.35s var(--pf-ease), border-color 0.35s, color 0.35s;
}
.pf-btn:hover { background: var(--novi-gold-hi); }
.pf-btn.is-ghost { background: transparent; color: var(--novi-strong) !important; border-color: var(--novi-line-2); }
.pf-btn.is-ghost:hover { border-color: var(--novi-gold-hi); color: var(--novi-gold-hi) !important; }
.pf-btn .nh-arrow, .pf-link .nh-arrow, .pf-gcard__go .nh-arrow, .pf-mcard__go .nh-arrow, .pf-collections .nh-arrow, .pf-linkcard__go .nh-arrow { flex: none; transition: transform 0.45s var(--pf-ease); }
.pf-btn:hover .nh-arrow, .pf-link:hover .nh-arrow { transform: translateX(4px); }
[dir="rtl"] .pf .nh-arrow, [dir="rtl"] .pf-cta .nh-arrow { transform: scaleX(-1); }
[dir="rtl"] .pf-btn:hover .nh-arrow, [dir="rtl"] .pf-link:hover .nh-arrow { transform: scaleX(-1) translateX(4px); }
.pf .nh-arrow.pf-flip { transform: scaleX(-1); }
[dir="rtl"] .pf .nh-arrow.pf-flip { transform: none; }

.pf-link {
  position: relative; display: inline-flex; align-items: center; gap: 10px; padding-block: 6px;
  font-size: 15px; font-weight: 600; color: var(--novi-gold-hi) !important; text-decoration: none !important;
}
.pf-link::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0.3); transform-origin: left; transition: transform 0.5s var(--pf-ease); }
[dir="rtl"] .pf-link::after { transform-origin: right; }
.pf-link:hover::after { transform: scaleX(1); }
.pf-more { margin-top: 24px !important; }
.pf-markets { margin-top: 22px !important; font-size: 15px; color: var(--novi-muted); }
.pf-markets a { color: var(--novi-strong); border-bottom: 1px solid rgba(var(--novi-gold-rgb), 0.5); text-decoration: none; }
.pf-markets a:hover { color: var(--novi-gold-hi); }

.pf-tag {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  padding: 5px 10px; border-radius: 999px; background: rgba(8, 8, 8, 0.62); color: rgba(255, 255, 255, 0.88);
  font: 600 11px/1.2 var(--ff-head); letter-spacing: 0.14em; text-transform: uppercase; pointer-events: none;
}
.novi-rtl .pf-tag { font: 500 13px/1.2 var(--ff-head); letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------ hero */
.pf-hero.novi-hero {
  height: auto; max-height: none; min-height: clamp(540px, 84svh, 880px);
  display: flex; align-items: flex-end; background: #0a0a0a; color: #fff;
}
.pf-hero-wrap.is-compact .pf-hero.novi-hero { min-height: clamp(420px, 60svh, 620px); }
.pf-hero__media { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.pf-hero__media picture, .pf-hero__img { width: 100%; height: 100%; }
.pf-hero__img { object-fit: cover; animation: pf-kenburns 16s ease-out both; }
@keyframes pf-kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
.pf-hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 26%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 64%);
}
.novi-rtl .pf-hero__media::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.08) 26%, rgba(0, 0, 0, 0.2) 52%, rgba(0, 0, 0, 0.88) 100%),
    linear-gradient(270deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 64%);
}
.pf-hero .pf-tag { top: calc(var(--novi-header-h, 76px) + 16px); }
.pf-hero__inner { position: relative; z-index: 2; width: 100%; padding-top: calc(var(--novi-header-h, 76px) + 48px); padding-bottom: clamp(40px, 7vh, 80px); }
.pf-hero__inner > * { max-width: 900px; }
.pf-hero__title {
  margin: 18px 0 0 !important; color: #fff !important; text-wrap: balance;
  font: 400 clamp(36px, 2.8vw + 20px, 68px)/1.06 var(--ff-head) !important; letter-spacing: -0.022em !important;
}
.novi-rtl .pf-hero__title { font-weight: 700 !important; line-height: 1.3 !important; letter-spacing: 0 !important; }
.pf-hero__lead { margin-top: 20px !important; max-width: 60ch; font-size: var(--fs-lead); line-height: 1.65; color: rgba(255, 255, 255, 0.86); }
.novi-rtl .pf-hero__lead { line-height: 1.9; }
.pf-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.pf-hero .pf-btn.is-ghost { color: #fff !important; border-color: rgba(255, 255, 255, 0.42); background: rgba(0, 0, 0, 0.25); }
.pf-hero .pf-btn.is-ghost:hover { border-color: var(--novi-gold-hi); color: var(--novi-gold-hi) !important; }
.pf-crumbs { margin-top: 30px; }
.pf-crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 0; padding: 0; list-style: none; font: 400 var(--fs-small)/1.4 var(--ff-body); color: rgba(255, 255, 255, 0.72); }
.pf-crumbs li { display: inline-flex; align-items: center; gap: 10px; }
.pf-crumbs li:not(:last-child)::after { content: "/"; color: var(--novi-gold); }
.pf-crumbs a { color: #fff !important; text-decoration: none !important; }
.pf-crumbs a:hover { color: var(--novi-gold-hi) !important; }
.pf-hero__inner > :not(.pf-crumbs) { animation: pf-rise 0.8s var(--pf-ease) both; }
.pf-hero__inner > :nth-child(2) { animation-delay: 0.08s; }
.pf-hero__inner > :nth-child(3) { animation-delay: 0.16s; }
.pf-hero__inner > :nth-child(4) { animation-delay: 0.24s; }
@keyframes pf-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } }

/* ------------------------------------------------------------ intro + stats */
.pf-intro__grid, .pf-about__grid, .pf-process__grid, .pf-feature { display: grid; gap: clamp(36px, 5vw, 88px); align-items: start; }
.pf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; align-self: center; }
.pf-stat { display: flex; flex-direction: column; gap: 6px; padding-top: 18px; border-top: 1px solid var(--novi-line); }
.pf-stat__num { font: 400 var(--fs-stat)/1 var(--ff-head); letter-spacing: -0.02em; color: var(--novi-strong); font-variant-numeric: tabular-nums; }
.pf-stat__num .mb-count { display: inline-block; }
.pf-stat__label { font-size: 15px; color: var(--novi-muted); }
.pf-checks { display: grid; gap: 10px; margin-top: 26px !important; }
.pf-checks li { position: relative; padding-inline-start: 28px; color: var(--novi-text); line-height: 1.6; }
.pf-checks li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.62em; width: 14px; height: 1px; background: var(--novi-gold); }

/* ------------------------------------------------------------ chips */
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(24px, 3vw, 36px); }
.pf-chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--novi-line-2); border-radius: 999px; background: transparent; cursor: pointer;
  font: 500 14px/1 var(--ff-body); color: var(--novi-text) !important; text-decoration: none !important;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.pf-chip:hover { border-color: var(--novi-gold-hi); }
.pf-chip[aria-pressed="true"] { background: var(--novi-gold); border-color: var(--novi-gold); color: var(--novi-on-gold) !important; }
.pf-chip__n { font-size: 11px; opacity: 0.66; font-variant-numeric: tabular-nums; }
.pf-chip:focus-visible, .pf-btn:focus-visible, .pf-link:focus-visible { outline: 2px solid var(--novi-gold-hi); outline-offset: 3px; }
[data-tags][hidden] { display: none !important; }
@media (prefers-reduced-motion: no-preference) {
  [data-tags].is-in { animation: pf-rise 0.55s var(--pf-ease) both; }
}

/* ------------------------------------------------------------ signature projects */
.pf-sig__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-items: start; }
.pf-pcard { height: clamp(360px, 108vw, 460px); }
.pf-pcard__in { position: relative; height: 100%; overflow: hidden; background: #151412; }
.pf-pcard__media { position: absolute; inset: 0; }
.pf-pcard__media picture, .pf-pcard__media img { width: 100%; height: 100%; }
.pf-pcard__media img { object-fit: cover; transition: transform 1.4s var(--pf-ease); }
.pf-pcard__in::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.9) 100%); }
.pf-pcard__info { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; padding: clamp(18px, 2vw, 28px); color: #fff; }
.pf-pcard__meta { font: 600 var(--fs-eyebrow)/1.4 var(--ff-head); letter-spacing: var(--ls-eyebrow); text-transform: var(--tt-eyebrow); color: #e2c192; }
.pf-pcard__name { margin-top: 8px !important; font: 400 var(--fs-h3)/1.2 var(--ff-head) !important; color: #fff !important; }
.novi-rtl .pf-pcard__name { font-weight: 700 !important; line-height: 1.4 !important; }
.pf-pcard__link { color: #fff !important; text-decoration: none !important; }
.pf-pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.pf-pcard__in:focus-within { outline: 2px solid #e2c192; outline-offset: 3px; }
.pf-pcard__place { margin-top: 6px !important; font-size: 13.5px; color: rgba(255, 255, 255, 0.74); }
.pf-pcard__metric { margin-top: 12px !important; font: 500 17px/1.3 var(--ff-head); color: #fff; }
.pf-pcard__role { margin-top: 4px !important; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
@media (hover: hover) {
  .pf-pcard__in:hover .pf-pcard__media img { transform: scale(1.06); }
}
@media (min-width: 600px) {
  .pf-sig__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .pf-pcard { height: clamp(340px, 46vw, 460px); }
}
@media (min-width: 1100px) {
  .pf-sig__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(16px, 1.6vw, 24px); }
  .pf-pcard[data-size="l"] { grid-column: span 7; height: clamp(420px, 38vw, 580px); }
  .pf-pcard[data-size="m"] { grid-column: span 5; height: clamp(420px, 38vw, 580px); }
  .pf-pcard[data-size="s"], .pf-pcard[data-size="c"] { grid-column: span 4; height: clamp(340px, 28vw, 440px); }
}

/* ------------------------------------------------------------ project register */
.pf-reg__group + .pf-reg__group { margin-top: clamp(34px, 4vw, 56px); }
.pf-reg__scroll { border-top: 1px solid var(--novi-line-2); }
.pf-reg__table { width: 100%; border: 0 !important; border-collapse: collapse; font-size: 15px; background: transparent; }
.pf-reg__table th, .pf-reg__table td { padding: 16px 14px; text-align: start; vertical-align: top; border: 0 !important; border-bottom: 1px solid var(--novi-line) !important; background: transparent; color: var(--novi-text-2); line-height: 1.55; }
.pf-reg__table thead th { font: 600 12px/1.3 var(--ff-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--novi-gold-hi); }
.novi-rtl .pf-reg__table thead th { font-size: 13px; letter-spacing: 0; text-transform: none; }
.pf-reg__table tbody th { color: var(--novi-strong); font-weight: 600; min-width: 220px; }
.pf-reg__client { display: block; margin-top: 4px; font-weight: 400; font-size: 13.5px; color: var(--novi-muted); }
.pf-reg__table tbody tr { transition: background-color 0.3s; }
.pf-reg__table tbody tr:hover { background: rgba(var(--novi-gold-rgb), 0.06); }
@media (max-width: 899px) {
  .pf-reg__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pf-reg__table, .pf-reg__table tbody, .pf-reg__table tr, .pf-reg__table th, .pf-reg__table td { display: block; width: 100%; }
  .pf-reg__table tr { padding: 14px 0; border-bottom: 1px solid var(--novi-line); }
  .pf-reg__table th, .pf-reg__table td { padding: 4px 0; border: 0; }
  .pf-reg__table td::before { content: attr(data-label) " · "; color: var(--novi-gold-hi); font-size: 13px; }
}

/* ------------------------------------------------------------ collections + gallery cards */
.pf-collections { margin-bottom: 26px; }
.pf-collections ul { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.pf-collections a { display: inline-flex; align-items: center; gap: 8px; padding-block: 6px; font: 500 15px/1.3 var(--ff-head); color: var(--novi-strong) !important; text-decoration: none !important; border-bottom: 1px solid rgba(var(--novi-gold-rgb), 0.4); }
.pf-collections a:hover { color: var(--novi-gold-hi) !important; border-color: var(--novi-gold-hi); }

.pf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 600px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-gcard__in { display: flex; flex-direction: column; height: 100%; text-decoration: none !important; color: inherit !important; background: var(--pf-card); border: 1px solid var(--novi-line); transition: border-color 0.4s, transform 0.5s var(--pf-ease); }
.pf-gcard__in:hover { border-color: rgba(var(--novi-gold-rgb), 0.55); transform: translateY(-3px); }
.pf-gcard__in:focus-visible { outline: 2px solid var(--novi-gold-hi); outline-offset: 3px; }
.pf-gcard__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--novi-surface); }
.pf-gcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--pf-ease); }
.pf-gcard__in:hover .pf-gcard__media img { transform: scale(1.05); }
.pf-gcard__count { position: absolute; bottom: 12px; inset-inline-start: 12px; padding: 5px 10px; border-radius: 999px; background: rgba(8, 8, 8, 0.66); color: #fff; font: 600 12px/1.2 var(--ff-body); }
.pf-gcard__info { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px; flex: 1; }
.pf-gcard__meta { font: 600 var(--fs-eyebrow)/1.4 var(--ff-head); letter-spacing: var(--ls-eyebrow); text-transform: var(--tt-eyebrow); color: var(--novi-gold-hi); }
.pf-gcard__name { font: 500 var(--fs-h3)/1.25 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-gcard__name { font-weight: 700; line-height: 1.45; }
.pf-gcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: 14px; font-weight: 600; color: var(--novi-gold-hi); }
.pf-gcard__in:hover .pf-gcard__go .nh-arrow { transform: translateX(4px); }
[dir="rtl"] .pf-gcard__in:hover .pf-gcard__go .nh-arrow { transform: scaleX(-1) translateX(4px); }

/* ------------------------------------------------------------ photo wall + lightbox */
.pf-wall { columns: 1; column-gap: clamp(12px, 1.4vw, 20px); }
@media (min-width: 600px) { .pf-wall { columns: 2; } }
@media (min-width: 1100px) { .pf-wall { columns: 3; } }
.pf-wall__item { break-inside: avoid; margin-bottom: clamp(12px, 1.4vw, 20px); }
.pf-wall__link { position: relative; display: block; overflow: hidden; background: var(--novi-surface); border: 1px solid var(--novi-line); cursor: zoom-in; }
.pf-wall__link img { width: 100%; height: auto; transition: transform 1s var(--pf-ease), opacity 0.4s; }
.pf-wall__link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.35)); opacity: 0; transition: opacity 0.4s; }
.pf-wall__link:hover img { transform: scale(1.035); }
.pf-wall__link:hover::after { opacity: 1; }
.pf-wall__link:focus-visible { outline: 2px solid var(--novi-gold-hi); outline-offset: 3px; }

.pf-lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(6, 6, 6, 0.96); color: #fff; overflow: hidden; }
.pf-lb::backdrop { background: rgba(0, 0, 0, 0.8); }
.pf-lb[open] { display: grid; place-items: center; animation: pf-fade 0.3s var(--pf-ease, ease) both; }
@keyframes pf-fade { from { opacity: 0; } }
.pf-lb__fig { display: grid; justify-items: center; gap: 14px; max-width: min(92vw, 1600px); padding: 64px 72px 24px; }
.pf-lb__img { max-width: 100%; max-height: calc(100dvh - 150px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -30px #000; }
.pf-lb__cap { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; max-width: 80ch; text-align: center; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.8); }
.pf-lb__count { color: #e2c192; font-variant-numeric: tabular-nums; }
.pf-lb__btn, .pf-lb__close {
  position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3); background: rgba(0, 0, 0, 0.45); color: #fff; cursor: pointer;
  transition: border-color 0.3s, background-color 0.3s;
}
.pf-lb__btn:hover, .pf-lb__close:hover { border-color: #e2c192; background: rgba(190, 149, 101, 0.25); }
.pf-lb__btn:focus-visible, .pf-lb__close:focus-visible { outline: 2px solid #e2c192; outline-offset: 3px; }
.pf-lb__btn { top: 50%; margin-top: -26px; }
.pf-lb__btn.is-prev { inset-inline-start: 16px; }
.pf-lb__btn.is-next { inset-inline-end: 16px; }
.pf-lb__btn.is-prev .nh-arrow { transform: scaleX(-1); }
[dir="rtl"] .pf-lb__btn.is-prev .nh-arrow { transform: none; }
[dir="rtl"] .pf-lb__btn.is-next .nh-arrow { transform: scaleX(-1); }
.pf-lb__close { top: 16px; inset-inline-end: 16px; font-size: 28px; line-height: 1; }
html.pf-lb-open { overflow: hidden; }
@media (max-width: 767px) {
  .pf-lb__fig { padding: 64px 12px 90px; }
  .pf-lb__btn { top: auto; bottom: 18px; margin-top: 0; }
}

/* ------------------------------------------------------------ gallery page */
.pf-facts { display: grid; gap: 0; border-top: 1px solid var(--novi-line-2); }
.pf-facts > div { display: grid; grid-template-columns: minmax(110px, 0.4fr) 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--novi-line); }
.pf-facts dt { font: 600 12px/1.5 var(--ff-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--novi-gold-hi); }
.novi-rtl .pf-facts dt { font-size: 14px; letter-spacing: 0; text-transform: none; }
.pf-facts dd { color: var(--novi-text); line-height: 1.55; }
.pf-facts a { color: var(--novi-strong); text-decoration: none; border-bottom: 1px solid rgba(var(--novi-gold-rgb), 0.5); }
.pf-facts a:hover { color: var(--novi-gold-hi); }
.pf-facts__links { display: grid; gap: 6px; }
.pf-pager { padding: clamp(28px, 3vw, 44px) 0; }
.pf-pager__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pf-pager__link { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--novi-line); text-decoration: none !important; transition: border-color 0.4s, background-color 0.4s; }
.pf-pager__link:hover { border-color: rgba(var(--novi-gold-rgb), 0.55); background: var(--pf-card); }
.pf-pager__link.is-next { text-align: end; align-items: flex-end; }
.pf-pager__dir { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1.3 var(--ff-head); letter-spacing: 0.12em; text-transform: uppercase; color: var(--novi-gold-hi); }
.novi-rtl .pf-pager__dir { font-size: 13px; letter-spacing: 0; text-transform: none; }
.pf-pager__name { font: 500 var(--fs-h3)/1.25 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-pager__name { font-weight: 700; }
@media (max-width: 599px) { .pf-pager__row { grid-template-columns: 1fr; } .pf-pager__link.is-next { text-align: start; align-items: flex-start; } }

/* ------------------------------------------------------------ media cards (index) */
.pf-media__grid { display: grid; gap: clamp(14px, 1.6vw, 24px); }
@media (min-width: 768px) { .pf-media__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-mcard { position: relative; display: block; height: clamp(360px, 36vw, 480px); overflow: hidden; background: #151412; text-decoration: none !important; }
.pf-mcard__media, .pf-mcard__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.pf-mcard__media img { object-fit: cover; transition: transform 1.3s var(--pf-ease); }
.pf-mcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 30%, rgba(0, 0, 0, 0.88)); }
.pf-mcard:hover .pf-mcard__media img { transform: scale(1.06); }
.pf-mcard:focus-visible { outline: 2px solid #e2c192; outline-offset: 3px; }
.pf-mcard__info { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 8px; padding: clamp(20px, 2vw, 28px); color: #fff; }
.pf-mcard__name { font: 400 var(--fs-h3)/1.2 var(--ff-head); color: #fff; }
.novi-rtl .pf-mcard__name { font-weight: 700; }
.pf-mcard__text { font-size: 15px; line-height: 1.55; color: rgba(255, 255, 255, 0.82); }
.pf-mcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; font-weight: 600; color: #e2c192; }

/* ------------------------------------------------------------ related links */
.pf-links { display: grid; gap: 14px; }
@media (min-width: 600px) { .pf-links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-linkcard { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 22px 56px 22px 22px; border: 1px solid var(--novi-line); background: var(--pf-card); text-decoration: none !important; transition: border-color 0.4s; }
[dir="rtl"] .pf-linkcard { padding: 22px 22px 22px 56px; }
.pf-linkcard:hover { border-color: rgba(var(--novi-gold-rgb), 0.55); }
.pf-linkcard__kind { font: 600 11px/1.3 var(--ff-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--novi-gold-hi); }
.novi-rtl .pf-linkcard__kind { font-size: 13px; letter-spacing: 0; text-transform: none; }
.pf-linkcard__title { font: 500 18px/1.3 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-linkcard__title { font-weight: 700; }
.pf-linkcard__text { font-size: 14.5px; line-height: 1.6; color: var(--novi-muted); }
.pf-linkcard__go { position: absolute; top: 22px; inset-inline-end: 20px; color: var(--novi-gold-hi); }

/* ------------------------------------------------------------ CTA */
.pf-cta__box {
  position: relative; display: grid; gap: 28px; align-items: center; overflow: hidden;
  padding: clamp(32px, 4vw, 64px); border: 1px solid rgba(var(--novi-gold-rgb), 0.35);
  background: radial-gradient(80% 120% at 0% 0%, rgba(var(--novi-gold-rgb), 0.16), transparent 60%), var(--novi-surface);
}
.pf-cta__title { margin-top: 14px !important; font: 400 var(--fs-h2)/1.12 var(--ff-head); color: var(--novi-strong); text-wrap: balance; }
.novi-rtl .pf-cta__title { font-weight: 700; line-height: 1.35; }
.pf-cta__text { margin-top: 14px !important; max-width: 60ch; color: var(--novi-text-2); line-height: 1.7; }
.pf-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (min-width: 992px) { .pf-cta__box { grid-template-columns: minmax(0, 1.4fr) auto; } }

/* ------------------------------------------------------------ videos */
.pf-vids { display: grid; gap: clamp(18px, 2vw, 28px); }
@media (min-width: 600px) { .pf-vids { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-vids { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pf-vid__embed .novi-embed, .pf .pf-embed { max-width: none; border-radius: 0; }
.pf-vid__name { margin-top: 14px !important; font: 500 17px/1.35 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-vid__name { font-weight: 700; }
.pf-vid__text { margin-top: 6px !important; font-size: 14.5px; line-height: 1.6; color: var(--novi-muted); }
.pf-vid__place { margin-top: 8px !important; font: 600 11px/1.3 var(--ff-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--novi-gold-hi); }
.novi-rtl .pf-vid__place { font-size: 13px; letter-spacing: 0; text-transform: none; }
.pf-feature__film figcaption { display: flex; flex-direction: column; gap: 4px; }
.pf-jump { margin-top: 28px; }
.pf-jump__label { margin-bottom: 12px !important; font-size: 14px; color: var(--novi-muted); }
.pf-jump .pf-chips { margin-bottom: 0; }

/* ------------------------------------------------------------ 360° tours + interactive */
.pf-tours { display: grid; gap: clamp(18px, 2vw, 28px); }
@media (min-width: 700px) { .pf-tours { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pf-tour .novi-embed { aspect-ratio: 2 / 1; }
.pf-tour__name { margin-top: 14px !important; font: 500 18px/1.3 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-tour__name { font-weight: 700; }
.pf-tour__note { margin-top: 4px !important; font-size: 14.5px; color: var(--novi-muted); }
.pf-embed picture { position: absolute; inset: 0; }
/* 360° posters carry the tour's own centred badge: keep our launch control in the corner */
.pf-tour .novi-embed__btn { flex-direction: row; justify-content: flex-start; align-items: flex-end; gap: 12px; padding: 18px; text-align: start; }
.pf-tour .novi-embed__icon { width: 46px; height: 46px; flex: none; }
.pf-tour .novi-embed__note { align-self: flex-end; margin-inline-start: auto; }
.pf-howto { padding: clamp(24px, 2.4vw, 36px); border: 1px solid var(--novi-line); background: var(--pf-card); }
.pf-howto__list { counter-reset: pf; display: grid; gap: 14px; }
.pf-howto__list li { counter-increment: pf; position: relative; padding-inline-start: 44px; line-height: 1.6; color: var(--novi-text-2); }
.pf-howto__list li::before { content: counter(pf, decimal-leading-zero); position: absolute; inset-inline-start: 0; top: 0; font: 500 14px/1.6 var(--ff-head); color: var(--novi-gold-hi); }
.pf-steps { display: grid; gap: 0; }
.pf-step { display: grid; grid-template-columns: 56px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--novi-line); }
.pf-step__n { grid-row: span 2; font: 400 28px/1 var(--ff-head); color: var(--novi-gold-hi); }
.pf-step__t { font: 500 18px/1.35 var(--ff-head) !important; color: var(--novi-strong); }
.novi-rtl .pf-step__t { font-weight: 700 !important; }
.pf-step__d { margin-top: 4px !important; font-size: 15px; line-height: 1.6; color: var(--novi-muted); }
.pf-figure { position: relative; overflow: hidden; border: 1px solid var(--novi-line); }
.pf-figure img { width: 100%; height: auto; }
.pf-stage__frame { position: relative; }
.pf-stage__frame .novi-embed { aspect-ratio: 16 / 9; max-width: none; border-radius: 0; }
.pf-stage__frame .pf-tag { z-index: 4; }
.pf-features { display: grid; gap: 14px; }
@media (min-width: 700px) { .pf-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pf-features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pf-feature-card { padding: 24px; border: 1px solid var(--novi-line); background: var(--pf-card); }
.pf-feature-card__n { font: 400 26px/1 var(--ff-head); color: var(--novi-gold-hi); }
.pf-feature-card__t { margin-top: 16px !important; font: 500 18px/1.3 var(--ff-head); color: var(--novi-strong); }
.novi-rtl .pf-feature-card__t { font-weight: 700; }
.pf-feature-card__d { margin-top: 8px !important; font-size: 15px; line-height: 1.65; color: var(--novi-muted); }
.pf-why__item + .pf-why__item { margin-top: 26px; }
.pf-project__card { padding: clamp(28px, 3vw, 48px); border: 1px solid rgba(var(--novi-gold-rgb), 0.3); background: var(--pf-card); }
.pf-project__card .pf-facts { margin-top: 24px; max-width: 720px; }

/* ------------------------------------------------------------ layout breakpoints */
@media (min-width: 992px) {
  .pf-intro__grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .pf-about__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
  .pf-process__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .pf-feature { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; }
  .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .pf-head { margin-bottom: 26px; }
  .pf-hero__actions .pf-btn { width: 100%; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  .pf-hero__img, .pf-hero__inner > * { animation: none !important; }
  .pf *, .pf *::after { transition: none !important; }
}

/* ---------------------------------------------------------------- self-hosted 360° viewer (Pannellum) */
.pf-pano { position: relative; aspect-ratio: 2 / 1; overflow: hidden; background: #0c0c0c; border: 1px solid var(--novi-line); isolation: isolate; }
.pf-pano__poster, .pf-pano__poster picture, .pf-pano__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-pano__poster img { transition: transform 1.2s var(--pf-ease, ease), filter .6s; }
.pf-pano:not(.is-open):hover .pf-pano__poster img { transform: scale(1.04); }
.pf-pano.is-ready .pf-pano__poster { opacity: 0; transition: opacity .5s; pointer-events: none; }
.pf-pano__stage { position: absolute; inset: 0; z-index: 1; }
.pf-pano__stage .pnlm-container { background: transparent; }
.pf-pano__stage .pnlm-load-box { background: rgba(10, 10, 10, .7); border-radius: 12px; }
.pf-pano__stage .pnlm-lbar-fill { background: var(--novi-gold); }
.pf-pano__stage .pnlm-controls { background-color: rgba(245, 240, 232, .92); border-color: rgba(var(--novi-gold-rgb), .45); }
.pf-pano__stage .pnlm-control:hover { background-color: #fff; }
.pf-pano__stage .pnlm-panorama-info { display: none !important; }
.pf-pano__btn { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; gap: 12px; padding: 18px; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .62)); text-align: start; }
.pf-pano__icon { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; font: 600 13px/1 var(--ff-head); letter-spacing: .02em;
  background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .6); transition: background-color .3s, border-color .3s, transform .5s var(--pf-ease, ease); }
.pf-pano__btn:hover .pf-pano__icon, .pf-pano__btn:focus-visible .pf-pano__icon { background: var(--novi-gold); border-color: var(--novi-gold); color: #111; transform: rotate(-12deg); }
.pf-pano__btn:focus-visible { outline: 2px solid var(--novi-gold-hi); outline-offset: -4px; }
.pf-pano__label { font: 600 12.5px/1.2 var(--ff-head); letter-spacing: .12em; text-transform: uppercase; }
.novi-rtl .pf-pano__label { letter-spacing: 0; font-size: 15px; }
.pf-pano[data-state="loading"] .pf-pano__icon { animation: pfPanoSpin 1.4s linear infinite; }
@keyframes pfPanoSpin { to { transform: rotate(360deg); } }
.pf-pano__hint { position: absolute; z-index: 3; inset-inline-start: 12px; bottom: 10px; margin: 0; padding: 6px 10px; border-radius: 999px; pointer-events: none;
  font-size: 12px; color: #fff; background: rgba(0, 0, 0, .55); animation: pfPanoHint 5s ease forwards; }
@keyframes pfPanoHint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.pf-tour__project { margin-top: 14px !important; font: 600 11.5px/1.3 var(--ff-head); letter-spacing: .14em; text-transform: uppercase; color: var(--novi-gold); }
.novi-rtl .pf-tour__project { letter-spacing: 0; font-size: 13px; }
.pf-tour__project + .pf-tour__name { margin-top: 4px !important; }
@media (prefers-reduced-motion: reduce) { .pf-pano__poster img { transition: none; } .pf-pano[data-state="loading"] .pf-pano__icon { animation: none; } }
