/* ============================================
   HOMEPAGE.CSS — Editorial Issue (rebuild · 2026)
   Aligned with EVEN Brand Guidelines (design/brand)
   ============================================ */

/* Local recalibrations · v1.1 restraint */
body[data-page="home"] {
  --hp-ink: #1C2340;
  --hp-ink-soft: rgba(28, 35, 64, 0.78);
  --hp-ink-mute: rgba(28, 35, 64, 0.55);
  --hp-rule: rgba(28, 35, 64, 0.14);
  --hp-rule-soft: rgba(28, 35, 64, 0.07);

  --hp-sage: #7A9B92;
  --hp-paper: #FAF8F2;       /* card surface — mai luminos decât bg */
  --hp-linen: #F1F0EC;       /* răcit */
  --hp-pebble: #E8E5DC;      /* desaturat, doar plate/band */
  --hp-stone: #D6D2C7;       /* răcit */
  --hp-gold: #C8A96E;        /* rar — italic H1 + dark band stats */

  background: var(--hp-linen);
  position: relative;
  font-feature-settings: "kern", "liga";
}

/* ============================================
   BACKGROUND ATMOSPHERE
   ============================================ */
.hp-bg-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.6' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11   0 0 0 0 0.14   0 0 0 0 0.25   0 0 0 0.03 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* v1.1 — scos radial gold wash (sursa principală a senzației „pagină gălbuie").
   Păstrat doar un sage wash extrem de subtil în colțul opus pentru atmosferă. */
.hp-bg-light {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(900px 700px at -5% 110%, rgba(122, 155, 146, 0.05), transparent 60%);
}

/* Lift content above atmosphere */
.hp-masthead,
.hp-hero,
.hp-section-mark,
.hp-chapter,
.hp-figures,
.hp-letter {
  position: relative;
  z-index: 1;
}

/* ============================================
   SHARED ELEMENTS
   ============================================ */
.hp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hp-sage);
  line-height: 1;
}
.hp-eyebrow-light { color: rgba(241, 240, 236, 0.78); }
.hp-eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

/* Buttons */
.hp-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.3s ease,
    color 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
  white-space: nowrap;
}
.hp-btn i { font-size: 11px; transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.hp-btn:hover { transform: translateY(-2px); }
.hp-btn:hover i:last-child { transform: translateX(4px); }
.hp-btn:hover i:first-child { transform: translateX(-2px); }

.hp-btn-primary {
  background: var(--hp-ink);
  color: var(--hp-stone);
}
.hp-btn-primary:hover {
  background: #131932;
  color: var(--hp-stone);
  box-shadow: 0 22px 48px -18px rgba(28, 35, 64, 0.45);
}

.hp-btn-gold {
  background: var(--hp-gold);
  color: var(--hp-ink);
}
.hp-btn-gold:hover {
  background: #d6b97e;
  color: var(--hp-ink);
  box-shadow: 0 22px 48px -18px rgba(200, 169, 110, 0.55);
}

.hp-btn-ghost {
  background: transparent;
  color: var(--hp-stone);
  border-color: rgba(214, 210, 199, 0.42);
}
.hp-btn-ghost:hover {
  background: rgba(214, 210, 199, 0.1);
  border-color: var(--hp-stone);
  color: var(--hp-stone);
}
/* Light context variant */
.hp-letter .hp-btn-ghost,
.hp-philosophy-cta .hp-btn-ghost {
  color: var(--hp-ink);
  border-color: var(--hp-rule);
}
.hp-letter .hp-btn-ghost:hover,
.hp-philosophy-cta .hp-btn-ghost:hover {
  background: var(--hp-pebble);
  border-color: var(--hp-ink);
  color: var(--hp-ink);
}

/* Inline link with arrow */
.hp-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hp-ink);
  text-decoration: none;
  padding: 12px 0;
  border-top: 1px solid var(--hp-rule);
  border-bottom: 1px solid var(--hp-rule);
  padding-left: 18px;
  padding-right: 18px;
  transition: color 0.25s, gap 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-link-arrow i { font-size: 11px; color: var(--hp-sage); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1); }
.hp-link-arrow:hover { color: var(--hp-sage); gap: 18px; }
.hp-link-arrow:hover i { transform: translateX(4px); }

/* ============================================
   MASTHEAD
   ============================================ */
.hp-masthead {
  border-top: 1px solid var(--hp-rule);
  border-bottom: 1px solid var(--hp-rule);
  padding: 16px 0;
  background: rgba(241, 240, 236, 0.7);
  backdrop-filter: blur(6px);
}
.hp-masthead-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}
.hp-mast-mark {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--hp-sage);
  justify-self: start;
}
.hp-mast-title {
  justify-self: center;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--hp-ink);
}
.hp-mast-edition {
  justify-self: end;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  color: var(--hp-ink-mute);
}

/* ============================================
   HERO
   ============================================ */
.hp-hero {
  position: relative;
  min-height: calc(96vh - var(--nav-h, 74px));
  padding: 80px 0 96px;
  overflow: hidden;
  isolation: isolate;
}

/* Scroll-scrub pin: wrapper is tall, hero sticks for the duration of the video.
   Activated by JS on desktop only via .is-pinned class.
   Internal spacing uses clamp+vh so the composition breathes with viewport height
   (1080p stays generous; 768–900px compacts gracefully without clipping the trust strip). */
.hp-hero-pin { position: relative; }
@media (min-width: 769px) {
  .hp-hero-pin.is-pinned {
    height: 300vh; /* 1 viewport visible + 2 viewports of scroll → video plays through */
  }
  .hp-hero-pin.is-pinned > .hp-hero {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: 100vh;
    padding-top: clamp(72px, 8vh, 96px);
    padding-bottom: clamp(40px, 5vh, 72px);
  }
  .hp-hero-pin.is-pinned .hp-hero-grid {
    min-height: 0;
    height: 100%;
  }
  /* Tighten vertical rhythm inside hero-text so the trust strip never crowds the bottom edge */
  .hp-hero-pin.is-pinned .hp-hero-text .hp-eyebrow {
    margin-bottom: clamp(18px, 2.6vh, 32px);
  }
  .hp-hero-pin.is-pinned .hp-hero-h1 {
    font-size: clamp(2.2rem, 5.4vw, 5rem);
    margin-bottom: clamp(20px, 3vh, 36px);
  }
  .hp-hero-pin.is-pinned .hp-hero-lede {
    margin-bottom: clamp(20px, 3vh, 36px);
  }
  .hp-hero-pin.is-pinned .hp-hero-actions {
    margin-bottom: clamp(28px, 4.2vh, 56px);
  }
  .hp-hero-pin.is-pinned .hp-hero-trust {
    padding-top: clamp(18px, 2.6vh, 28px);
  }
}

/* Mobile cover — ascuns pe desktop, înlocuiește videoul pe mobile */
.hp-hero-cover {
  display: none;
}

/* Video background */
.hp-hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hp-hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: contrast(1.05) saturate(0.85) brightness(0.85);
  transform: scale(1.08);
  transform-origin: center top;
}
/* Readability scrim — strong darkening on the left (text column), light on the right (photo) */
.hp-hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg,
      rgba(28, 35, 64, 0.72) 0%,
      rgba(28, 35, 64, 0.58) 32%,
      rgba(28, 35, 64, 0.22) 65%,
      rgba(28, 35, 64, 0.10) 100%
    ),
    linear-gradient(to bottom,
      transparent 55%,
      rgba(28, 35, 64, 0.38) 100%
    );
  pointer-events: none;
}
/* Vignette — kept only the warm gold top-right accent (over feature card).
   Removed the bottom-left linen wash that was lightening the trust strip area. */
.hp-hero-vignette {
  position: absolute;
  inset: 0;
  /* v1.1: vignette-ul gold a fost scos. Hero rămâne curat. */
  background: transparent;
  pointer-events: none;
}

.hp-hero-grid {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.4fr 0.95fr;
  gap: 64px;
  align-items: center;
  min-height: calc(96vh - var(--nav-h, 74px) - 176px);
}

/* Hero text */
.hp-hero-text {
  color: var(--hp-stone);
  max-width: 640px;
  /* Soft halo behind text — invisible as a "shadow", but lifts type off any video frame */
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}
.hp-hero-text .hp-eyebrow {
  margin-bottom: 32px;
}
.hp-hero-h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.014em;
  color: var(--hp-stone);
  margin: 0 0 36px;
  font-feature-settings: "kern", "liga", "dlig";
}
.hp-hero-line { display: block; }
.hp-hero-h1 em {
  font-style: italic;
  color: var(--hp-gold);          /* singurul gold pe light — momentul de impact */
  font-weight: 500;
}
.hp-dropcap {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05em;              /* redus de la 1.18em */
  color: var(--hp-stone);          /* ink-soft pe dark hero — fără gold */
  letter-spacing: -0.025em;
  margin-right: 0.015em;
  display: inline-block;
}
.hp-hero-lede {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(214, 210, 199, 0.88);
  line-height: 1.78;
  max-width: 500px;
  margin: 0 0 36px;
}
.hp-hero-lede em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: inherit;                  /* forma face emfaza, nu culoarea */
  font-size: 1.06em;
}
.hp-hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hp-hero-trust {
  display: flex;
  align-items: center;
  gap: 32px;
  border-top: 1px solid rgba(214, 210, 199, 0.22);
  padding-top: 24px;
  max-width: 480px;
}
.hp-trust-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hp-trust-num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 2.4rem;
  color: var(--hp-stone);          /* v1.1: pe dark hero = stone, nu gold */
  line-height: 1;
  letter-spacing: -0.015em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hp-trust-num small {
  font-size: 0.55em;
  vertical-align: top;
  margin-left: 2px;
}
.hp-trust-label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(214, 210, 199, 0.62);
}
.hp-trust-rule {
  width: 1px;
  height: 38px;
  background: rgba(214, 210, 199, 0.22);
}

/* Hero feature card (editorial plate) */
.hp-hero-feature {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.hp-feature-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  background: var(--hp-paper);     /* v1.1: paper (luminous) — hârtie pe masă */
  border-radius: 2px;
  box-shadow:
    0 36px 80px -28px rgba(0, 0, 0, 0.45),
    0 1px 2px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-feature-card::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(28, 35, 64, 0.10);
  pointer-events: none;
  z-index: 1;
  border-radius: 1px;
}
.hp-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11   0 0 0 0 0.14   0 0 0 0 0.25   0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.4;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hp-feature-card:hover {
  transform: translateY(-4px) rotate(-0.3deg);
}

.hp-feature-eyebrow {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px;
  border-bottom: 1px solid rgba(28, 35, 64, 0.10);
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--hp-ink-mute);
}
.hp-feature-mark { color: var(--hp-gold); font-size: 8px; }

.hp-feature-image {
  position: relative;
  z-index: 2;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(135deg, rgba(28, 35, 64, 0.06), rgba(122, 155, 146, 0.10)),
    var(--hp-paper);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.hp-feature-image::before {
  content: '';
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(28, 35, 64, 0.06);
  pointer-events: none;
}
/* Real photo variant — used when a property is bound to the hero from admin. */
.hp-feature-image.has-photo {
  background-size: cover;
  background-position: center;
}
.hp-feature-image.has-photo::after { display: none; }
.hp-feature-image.has-photo::before { border-color: rgba(241, 240, 236, 0.35); }
/* Decorative stones inside the empty image (când nu există foto) */
.hp-feature-image::after {
  content: '';
  position: absolute;
  top: 38%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background:
    radial-gradient(circle at 50% 25%, rgba(28, 35, 64, 0.10) 0 8px, transparent 9px),
    radial-gradient(circle at 50% 50%, var(--hp-sage) 0 10px, transparent 11px),
    radial-gradient(circle at 50% 80%, var(--hp-ink) 0 12px, transparent 13px);
  opacity: 0.4;
}
.hp-feature-tag {
  position: relative;
  z-index: 2;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hp-ink);
  background: rgba(241, 240, 236, 0.92);
  padding: 6px 12px;
  border-radius: 2px;
}

.hp-feature-body {
  position: relative;
  z-index: 2;
  padding: 22px 24px 26px;
}
.hp-feature-title {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--hp-ink);
  letter-spacing: -0.005em;
  margin: 0 0 18px;
}
.hp-feature-title em {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  color: var(--hp-sage);
}
.hp-feature-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--hp-ink-soft);
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hp-feature-meta span:not(.hp-meta-rule) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-feature-meta i { color: var(--hp-sage); font-size: 10px; }
.hp-meta-rule {
  width: 1px;
  height: 12px;
  background: var(--hp-rule);
}
.hp-feature-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 1px solid rgba(28, 35, 64, 0.10);
  padding-top: 18px;
}
.hp-feature-price {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--hp-ink);
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
}
.hp-feature-cta {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--hp-sage);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hp-feature-cta i { font-size: 9px; }

/* —— Hero entrance choreography */
.hp-enter {
  opacity: 0;
  transform: translateY(24px);
  animation: hpFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hp-enter-1 { animation-delay: 0.18s; }
.hp-enter-2 { animation-delay: 0.30s; }
.hp-enter-3 { animation-delay: 0.45s; }
.hp-enter-4 { animation-delay: 0.58s; }
.hp-enter-5 { animation-delay: 0.70s; }

.hp-hero-feature.hp-enter {
  animation: hpFeatureIn 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.50s;
}

@keyframes hpFadeUp { to { opacity: 1; transform: none; } }
@keyframes hpFeatureIn {
  from { opacity: 0; transform: translateY(28px) rotate(-1deg); }
  to   { opacity: 1; transform: translateY(0) rotate(-0.4deg); }
}

/* ============================================
   SECTION MARK
   ============================================ */
.hp-section-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 64px 0;
}
.hp-section-mark::before,
.hp-section-mark::after {
  content: '';
  width: 130px;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--hp-rule) 40%, var(--hp-rule) 60%, transparent);
}
.hp-stones {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.hp-stone {
  display: block;
  border-radius: 50%;
}
.hp-stone-top {
  width: 7px;
  height: 5px;
  background: var(--hp-pebble);
  border: 1px solid rgba(28, 35, 64, 0.18);
}
.hp-stone-mid {
  width: 11px;
  height: 7px;
  background: var(--hp-sage);
}
.hp-stone-base {
  width: 15px;
  height: 9px;
  background: var(--hp-ink);
}

/* ============================================
   CHAPTER HEAD (shared)
   ============================================ */
.hp-chapter {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 64px;
}
.hp-chapter-head {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}
.hp-chapter-head .hp-eyebrow {
  display: inline-flex;
  margin-bottom: 24px;
}
.hp-chapter-h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.012em;
  color: var(--hp-ink);
  margin: 0 0 18px;
}
.hp-chapter-h2 em {
  font-style: italic;
  color: var(--hp-sage);
}
.hp-chapter-lede {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--hp-ink-soft);
  line-height: 1.7;
  margin: 0 auto;
  max-width: 540px;
}

.hp-chapter-head-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  text-align: left;
  max-width: none;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--hp-rule);
  padding-bottom: 28px;
}
.hp-chapter-head-row .hp-eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
}
.hp-chapter-head-row .hp-chapter-lede {
  margin: 12px 0 0;
  max-width: 520px;
}

/* ============================================
   Nº I — CATALOG
   ============================================ */
.hp-catalog {
  padding-top: 16px;
}
.hp-catalog-card {
  position: relative;
  background: var(--hp-paper);

  border-radius: 2px;
  padding: 32px 36px 36px;
  box-shadow:
    0 30px 80px -28px rgba(28, 35, 64, 0.16),
    0 1px 2px rgba(28, 35, 64, 0.04);
  overflow: hidden;
}
.hp-catalog-card::before {
  content: '';
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(28, 35, 64, 0.08);
  pointer-events: none;
  border-radius: 1px;
}
.hp-catalog-tabs {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 28px;
}
.flux-tab {
  background: transparent;
  border: 1px solid transparent;
  padding: 18px 18px 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-body);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
  color: var(--hp-ink-mute);
  position: relative;
}
.flux-tab .hp-tab-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--hp-sage);
  opacity: 0.8;
  transition: opacity 0.3s, color 0.3s;
}
.flux-tab .hp-tab-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}
.flux-tab:hover {
  color: var(--hp-ink);
}
.flux-tab:hover .hp-tab-num { opacity: 1; }
.flux-tab.active {
  color: var(--hp-ink);
  border-color: var(--hp-ink);
  background: rgba(241, 240, 236, 0.5);
}
.flux-tab.active .hp-tab-num {
  color: var(--hp-ink);
  opacity: 1;
}
.hp-catalog-rule {
  position: relative;
  z-index: 2;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(28, 35, 64, 0.18), transparent);
  margin-bottom: 28px;
}

/* Catalog filters — inherits .form-group from main.css but rebrands inputs */
.hp-catalog-filters {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  align-items: end;
}
.hp-catalog-filters .form-group { margin: 0; }
.hp-catalog-filters .form-group label {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hp-ink-mute);
  margin-bottom: 8px;
}
.hp-catalog-filters input,
.hp-catalog-filters select {
  background: rgba(241, 240, 236, 0.6);
  border: 1px solid rgba(28, 35, 64, 0.14);
  border-radius: 2px;
  padding: 13px 14px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--hp-ink);
  transition: border-color 0.25s, background 0.25s;
}
.hp-catalog-filters input:focus,
.hp-catalog-filters select:focus {
  outline: none;
  border-color: var(--hp-ink);
  background: var(--hp-linen);
  box-shadow: none;
}
.hp-catalog-filters .btn {
  background: var(--hp-ink);
  color: var(--hp-stone);
  border-radius: 2px;
  padding: 14px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  border: 1px solid var(--hp-ink);
  transition: background 0.3s, color 0.3s;
}
.hp-catalog-filters .btn:hover {
  background: #131932;
  color: var(--hp-stone);
  transform: none;
  box-shadow: 0 18px 40px -16px rgba(28, 35, 64, 0.4);
}
.hp-catalog-filters .btn-gold {
  background: var(--hp-ink);
  color: var(--hp-stone);
  border-color: var(--hp-ink);
}
.hp-catalog-filters .btn-gold:hover {
  background: var(--hp-gold);
  color: var(--hp-ink);
  border-color: var(--hp-gold);
}

/* ============================================
   Nº II — FEATURED
   ============================================ */
.hp-featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
/* Cards rendered by JS as .prop-card — minimalist, see listings.css */

/* ============================================
   Nº III — PHILOSOPHY (principles)
   ============================================ */
.hp-philosophy {
  padding-bottom: 80px;
}
.hp-principle {
  display: grid;
  grid-template-columns: 144px 1fr 280px;
  gap: 64px;
  padding: 64px 0;
  border-top: 1px solid var(--hp-rule);
  align-items: start;
}
.hp-principle:last-of-type {
  border-bottom: 1px solid var(--hp-rule);
}
.hp-principle-numeral {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 5.6rem;
  line-height: 0.9;
  color: var(--hp-sage);
  letter-spacing: -0.025em;
  user-select: none;
  padding-top: 6px;
  position: sticky;
  top: 110px;
}
.hp-principle-body { padding-top: 14px; min-width: 0; }
.hp-principle-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.4vw, 1.95rem);
  line-height: 1.18;
  color: var(--hp-ink);
  letter-spacing: -0.008em;
  margin: 0 0 28px;
}
.hp-principle-text {
  column-count: 2;
  column-gap: 40px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--hp-ink-soft);
  line-height: 1.78;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.hp-principle-text p {
  margin: 0 0 16px;
  break-inside: avoid;
}
.hp-principle-text p:last-child { margin-bottom: 0; }

.hp-principle-pull {
  position: relative;
  padding: 8px 0 8px 28px;
  border-left: 1px solid var(--hp-rule);
  margin-top: 32px;
}
.hp-pull-mark {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 4.5rem;
  line-height: 0.4;
  color: var(--hp-sage);
  display: block;
  margin-bottom: 14px;
}
.hp-principle-pull p {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.18;
  color: var(--hp-ink);
  letter-spacing: -0.005em;
  margin: 0;
}
.hp-principle-pull em {
  font-style: italic;
  color: var(--hp-sage);
}

.hp-philosophy-cta {
  text-align: center;
  margin-top: 56px;
}

/* ============================================
   Nº IV — PROJECTS
   ============================================ */
.hp-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.hp-projects-grid .project-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--hp-linen, #fff);
  border: 1px solid var(--hp-rule, #e7e3da);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.hp-projects-grid .project-card:hover {
  box-shadow: 0 18px 40px rgba(28, 35, 64, 0.12);
  transform: translateY(-3px);
}
.hp-projects-grid .project-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--gray-100, #f0eee9);
}
.hp-projects-grid .project-card-img img,
.hp-projects-grid .project-card-img .img-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hp-projects-grid .project-card-img .status-tag,
.hp-projects-grid .project-card-img .available-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--pj-ink, #1c2340);
  backdrop-filter: blur(4px);
}
.hp-projects-grid .project-card-img .status-tag { top: 12px; left: 12px; }
.hp-projects-grid .project-card-img .available-tag {
  bottom: 12px; left: 12px;
  background: rgba(28, 35, 64, 0.85);
  color: #fff;
}
.hp-projects-grid .project-card-body { padding: 18px 20px 22px; }
.hp-projects-grid .project-dev {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hp-sage, #8a8472);
  margin-bottom: 6px;
}
.hp-projects-grid .project-card-body h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0 0 8px;
  color: var(--pj-ink, #1c2340);
}
.hp-projects-grid .project-loc {
  font-size: 13px;
  color: var(--gray-500, #6b6760);
  margin-bottom: 14px;
}
.hp-projects-grid .project-loc i { color: var(--pj-gold, #b89b5e); margin-right: 6px; }
.hp-projects-grid .project-price-range {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--pj-ink, #1c2340);
  border-top: 1px solid var(--hp-rule, #e7e3da);
  padding-top: 14px;
  margin-bottom: 12px;
}
.hp-projects-grid .project-price-range span {
  display: block;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--hp-sage, #8a8472);
  margin-top: 2px;
}
.hp-projects-grid .project-meta {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--gray-500, #6b6760);
}
.flux-inline { margin-top: 28px; }
.flux-inline-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 22px;
}
.flux-inline-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 32px;
  color: var(--hp-sage, #8a8472);
  font-size: 14px;
}

/* ============================================
   Nº V — PROCESS
   ============================================ */
.hp-process {
  padding-bottom: 80px;
}
.hp-process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.hp-process-track::before {
  content: '';
  position: absolute;
  top: 64px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(to right,
    transparent,
    var(--hp-rule) 8%,
    var(--hp-rule) 92%,
    transparent
  );
  z-index: 0;
}
.hp-process-step {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hp-process-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--hp-linen);
  border: 1px solid var(--hp-rule);
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 1.8rem;
  color: var(--hp-sage);
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  position: relative;
  transition: border-color 0.4s, color 0.4s, transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.hp-process-step:hover .hp-process-num {
  border-color: var(--hp-ink);
  color: var(--hp-ink);
  transform: translateY(-4px);
}
.hp-process-num::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.18;
}
.hp-process-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--hp-ink);
  letter-spacing: -0.005em;
  margin: 0 0 12px;
}
.hp-process-desc {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--hp-ink-soft);
  line-height: 1.7;
  max-width: 240px;
  margin: 0 auto;
}

/* ============================================
   Nº VI — FIGURES (dark band)
   ============================================ */
.hp-figures {
  padding: 112px 0 128px;
  background: var(--hp-ink);
  position: relative;
  overflow: hidden;
}
.hp-figures::before,
.hp-figures::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(72%, 760px);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(214, 210, 199, 0.28), transparent);
}
.hp-figures::before { top: 32px; }
.hp-figures::after  { bottom: 32px; }
.hp-figures-frame {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
  z-index: 1;
}
.hp-figures-frame::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
.hp-figures-frame .hp-eyebrow {
  display: inline-flex;
  margin-bottom: 32px;
}
.hp-figures-h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  color: var(--hp-stone);
  margin: 0 0 24px;
}
.hp-figures-h2 em {
  font-style: italic;
  color: var(--hp-gold);
}
.hp-figures-lede {
  font-family: var(--font-body);
  font-size: 1rem;
  color: rgba(214, 210, 199, 0.72);
  line-height: 1.75;
  margin: 0 auto 64px;
  max-width: 540px;
}

.hp-figures-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 56px;
  margin-bottom: 32px;
}
.hp-figure { text-align: center; }
.hp-figure-row { display: inline-flex; align-items: flex-start; line-height: 1; }
.hp-figure-num {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(4.2rem, 9vw, 7.2rem);
  color: var(--hp-gold);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums tabular-nums;
}
.hp-figure-plus {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: var(--hp-gold);
  line-height: 1;
  padding-top: 0.42em;
  margin-left: 4px;
}
.hp-figure-label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: rgba(214, 210, 199, 0.6);
  margin-top: 22px;
}
.hp-figure-rule {
  width: 1px;
  height: 96px;
  background: rgba(214, 210, 199, 0.18);
}
.hp-figures-note {
  margin-top: 32px;
  margin-bottom: 48px;
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(214, 210, 199, 0.5);
  letter-spacing: 0.02em;
}

/* ============================================
   Nº VII — VOICES (testimonials)
   ============================================ */
.hp-voices {
  padding-bottom: 80px;
}
.hp-voices-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
}
.hp-voice {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--hp-paper);
  border-radius: 2px;
  box-shadow: 0 24px 64px -28px rgba(28, 35, 64, 0.16);
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.hp-voice::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(28, 35, 64, 0.08);
  pointer-events: none;
}
.hp-voice:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px -28px rgba(28, 35, 64, 0.22);
}

/* Asymmetric magazine spread */
.hp-voice:nth-child(1) { grid-column: 1 / 8; }
.hp-voice:nth-child(2) { grid-column: 8 / 13; }
.hp-voice:nth-child(3) { grid-column: 1 / 6; }
.hp-voice:nth-child(4) { grid-column: 6 / 13; }
.hp-voice-lg .hp-voice-text {
  font-size: 1.45rem;
  line-height: 1.4;
}

.hp-voice-mark {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 500;
  font-size: 4.5rem;
  line-height: 0.4;
  color: var(--hp-sage);
  display: block;
  position: relative;
  z-index: 1;
}
.hp-voice-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.45;
  color: var(--hp-ink);
  letter-spacing: -0.003em;
  margin: 0;
  border: none;
  padding: 0;
  position: relative;
  z-index: 1;
}
.hp-voice-text em {
  font-style: italic;
  color: var(--hp-sage);
}
.hp-voice-author {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--hp-ink-mute);
  margin-top: auto;
  padding-top: 8px;
}
.hp-voice-line {
  flex: 0 0 28px;
  height: 1px;
  background: var(--hp-ink-mute);
}
.hp-voice-name {
  color: var(--hp-ink);
}

/* ============================================
   LETTER / CTA
   ============================================ */
.hp-letter {
  padding: 112px 0 144px;
}
.hp-letter-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
  text-align: center;
}
.hp-letter-inner > .hp-eyebrow {
  display: inline-flex;
  margin-bottom: 32px;
}
.hp-letter-h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.04;
  color: var(--hp-ink);
  letter-spacing: -0.014em;
  margin: 0 0 28px;
}
.hp-letter-h2 em {
  font-style: italic;
  color: var(--hp-sage);
}
.hp-letter-body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--hp-ink-soft);
  line-height: 1.78;
  margin: 0 auto 48px;
  max-width: 540px;
}
.hp-letter-sig {
  font-family: 'Mrs Saint Delafield', cursive;
  font-weight: 400;
  font-size: 3rem;
  line-height: 1;
  color: var(--hp-ink);
  margin: 0 auto 40px;
  letter-spacing: 0.005em;
}

.hp-letter-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hp-letter-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 88px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.30em;
  color: var(--hp-ink-mute);
}
.hp-foot-line {
  width: 64px;
  height: 1px;
  background: var(--hp-rule);
}

/* ============================================
   REVEAL ON SCROLL
   ============================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .hp-enter { opacity: 1; transform: none; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1180px) {
  .hp-hero-grid {
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
  }
  .hp-featured-grid { grid-template-columns: repeat(2, 1fr); }
  .hp-projects-grid { grid-template-columns: repeat(2, 1fr); }

  .hp-principle {
    grid-template-columns: 110px 1fr;
    gap: 40px;
  }
  .hp-principle-pull {
    grid-column: 2;
    border-left: none;
    border-top: 1px solid var(--hp-rule);
    padding: 28px 0 0;
    margin-top: 32px;
    max-width: 480px;
  }
  .hp-principle-numeral {
    font-size: 4.6rem;
    position: static;
  }

  .hp-process-track {
    grid-template-columns: repeat(2, 1fr);
    gap: 56px 32px;
  }
  .hp-process-track::before { display: none; }

  .hp-voice:nth-child(1),
  .hp-voice:nth-child(2),
  .hp-voice:nth-child(3),
  .hp-voice:nth-child(4) {
    grid-column: span 6;
  }
}

@media (max-width: 880px) {
  /* Masthead compact pe mobile — doar titlul central, o singură linie */
  .hp-masthead {
    padding: 10px 0;
  }
  .hp-masthead-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0;
    padding: 0 18px;
  }
  .hp-mast-mark,
  .hp-mast-edition {
    display: none;             /* scoatem „Ediția curentă" și „București · MMXXVI" */
  }
  .hp-mast-title {
    justify-self: center;
    font-size: 10px;
    letter-spacing: 0.26em;
  }

  /* === MOBILE EDITORIAL COVER · v5 ===
     Imaginea = fundal complet al hero-ului. TOT conținutul (eyebrow, H1, lede,
     butoane, trust) e suprapus peste imagine pe layer-ul de deasupra. */
  .hp-hero {
    /* svh = small viewport height (stabil când iOS ascunde URL-bar).
       Elimină „zoom-ul brusc" pe scroll rapid. Fallback 100vh dacă svh nu e suportat. */
    min-height: calc(100vh - var(--nav-h, 74px));
    min-height: calc(100svh - var(--nav-h, 74px));
    padding: 0;
    isolation: auto;
    position: relative;
    overflow: hidden;
  }
  .hp-hero-video,
  .hp-hero-scrim,
  .hp-hero-vignette {
    display: none !important;
  }

  /* Cover image = BACKGROUND absolute, acoperă tot hero-ul */
  .hp-hero-cover {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    overflow: hidden;
    margin: 0;
    z-index: 0;
  }
  .hp-hero-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
    display: block;
    /* Zoom-in discret la scroll: tranziție netedă între 2 stări fixe.
       NU urmărește poziția scroll-ului (ar fi choppy). Doar state on/off. */
    transform: scale(1);
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    transform-origin: center 60%;
    will-change: transform;
  }
  .hp-hero-cover.is-zoomed img {
    transform: scale(1.08);
  }
  /* Smoky gradient — întunecă suficient pentru legibility, dar lasă atmosferă */
  .hp-hero-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
      linear-gradient(to bottom,
        rgba(28, 35, 64, 0.55) 0%,
        rgba(28, 35, 64, 0.42) 35%,
        rgba(28, 35, 64, 0.55) 65%,
        rgba(28, 35, 64, 0.82) 100%);
    pointer-events: none;
    z-index: 1;
  }
  .hp-hero-cover::after { display: none; }

  /* Conținut: layer 2, distribuit vertical cu space-between pentru ritm generos */
  .hp-hero-grid {
    position: relative;
    z-index: 2;
    grid-template-columns: 1fr;
    gap: 0;
    min-height: calc(100vh - var(--nav-h, 74px));
    min-height: calc(100svh - var(--nav-h, 74px));
    padding: 36px 24px 44px;
  }
  .hp-hero-text {
    color: #F5F3EE;
    max-width: 540px;
    width: 100%;
    margin: 0 auto;
    text-align: center;
    text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  /* Eyebrow — sus */
  .hp-hero-text .hp-eyebrow {
    position: static;
    color: rgba(245, 243, 238, 0.92);
    justify-content: center;
    margin: 0;
    transform: none;
  }
  .hp-hero-text .hp-eyebrow .hp-eyebrow-rule {
    background: rgba(245, 243, 238, 0.7);
  }

  /* Spacer flex între eyebrow și H1 */
  .hp-hero-text::before {
    content: '';
    flex: 1 1 auto;
    min-height: 24px;
  }

  /* H1 — bloc central principal */
  .hp-hero-h1 {
    position: static;
    color: #F5F3EE;
    text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
    font-size: clamp(2.5rem, 10vw, 3.8rem);
    line-height: 1.04;             /* compact ca în varianta dinainte */
    letter-spacing: -0.014em;
    margin: 0 auto;
    max-width: 14ch;
  }

  /* Disable entrance animations pe mobile (choppy pe overlay imagine) */
  .hp-enter {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  /* Grain global folosește mix-blend-mode → repaint scump pe scroll mobile.
     Reduc opacity și scot mix-blend ca să elimin choppiness-ul. */
  .hp-bg-grain {
    opacity: 0.15;
    mix-blend-mode: normal;
  }
  .hp-hero-h1 em {
    color: var(--hp-gold);
  }
  .hp-dropcap {
    color: #F5F3EE;
    font-size: 1.04em;
  }

  /* Lede sub H1 */
  .hp-hero-lede {
    color: rgba(245, 243, 238, 0.88);
    max-width: 380px;
    margin: 20px auto 0;
    font-size: 0.95rem;
    line-height: 1.65;
  }
  .hp-hero-lede em {
    color: inherit;
    font-style: italic;
  }

  /* Spacer flex între lede și butoane (împinge restul jos, garantează aer suficient) */
  .hp-hero-text::after {
    content: '';
    flex: 1 1 auto;
    min-height: 64px;          /* era 28px — distanță reală între „Fără surprize" și butoane */
  }

  /* Butoane — în partea de jos */
  .hp-hero-actions {
    justify-content: center;
    margin: 0 0 22px;
    gap: 10px;
    flex-wrap: wrap;
  }
  .hp-hero-actions .hp-btn-primary {
    background: var(--hp-paper);
    color: var(--hp-ink);
  }
  .hp-hero-actions .hp-btn-primary:hover {
    background: #fff;
    color: var(--hp-ink);
  }
  .hp-hero-actions .hp-btn-ghost {
    color: #F5F3EE;
    border-color: rgba(245, 243, 238, 0.45);
    background: transparent;
  }
  .hp-hero-actions .hp-btn-ghost:hover {
    background: rgba(245, 243, 238, 0.12);
    border-color: #F5F3EE;
    color: #F5F3EE;
  }

  /* Trust strip — jos de tot */
  .hp-hero-trust {
    border-top: 1px solid rgba(245, 243, 238, 0.22);
    padding-top: 18px;
    max-width: 320px;
    margin: 0 auto;
    justify-content: center;
    gap: 28px;
  }
  .hp-trust-item {
    align-items: center;
    text-align: center;
  }
  .hp-trust-num {
    color: var(--hp-gold);
    font-size: 1.8rem;
  }
  .hp-trust-label {
    color: rgba(245, 243, 238, 0.65);
  }
  .hp-trust-rule {
    background: rgba(245, 243, 238, 0.22);
  }

  /* Feature card — ascunsă pe mobile */
  .hp-hero-feature {
    display: none;
  }

  .hp-section-mark { padding: 48px 0; }
  .hp-section-mark::before, .hp-section-mark::after { width: 80px; }

  .hp-chapter { padding: 16px 24px 56px; }
  .hp-chapter-head { margin-bottom: 48px; }
  .hp-chapter-head-row {
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    text-align: left;
  }
  .hp-chapter-head-row .hp-link-arrow {
    justify-self: start;
  }

  .hp-catalog-card {
    padding: 24px 22px 28px;
  }
  .hp-catalog-tabs {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }
  .flux-tab { padding: 14px 10px 12px; }

  .hp-featured-grid { grid-template-columns: 1fr; }
  .hp-projects-grid { grid-template-columns: 1fr; }

  .hp-principle {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 48px 0;
  }
  .hp-principle-numeral {
    font-size: 4rem;
    color: rgba(122, 155, 146, 0.6);
  }
  .hp-principle-text { column-count: 1; }
  .hp-principle-pull { padding-top: 22px; margin-top: 24px; }
  .hp-principle-pull p { font-size: 1.4rem; }

  .hp-process-track {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hp-figures { padding: 80px 0 96px; }
  .hp-figures::before { top: 20px; }
  .hp-figures::after  { bottom: 20px; }
  .hp-figures-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hp-figure-rule {
    width: 64px;
    height: 1px;
    margin: 0 auto;
  }

  .hp-voices-grid { grid-template-columns: 1fr; }
  .hp-voice:nth-child(1),
  .hp-voice:nth-child(2),
  .hp-voice:nth-child(3),
  .hp-voice:nth-child(4) {
    grid-column: 1;
  }
  .hp-voice-lg .hp-voice-text { font-size: 1.2rem; }

  .hp-letter { padding: 80px 0 104px; }
  .hp-letter-actions { flex-direction: column; align-items: stretch; }
  .hp-letter-foot { margin-top: 64px; }
  .hp-letter-foot .hp-foot-line { width: 40px; }
}

@media (max-width: 520px) {
  .hp-hero-grid { padding: 0 18px; }
  .hp-hero-actions {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  .hp-hero-actions .hp-btn { justify-content: center; }
  .hp-hero-trust {
    flex-wrap: nowrap;
    gap: 24px;
    justify-content: center;
  }
  .hp-trust-rule { display: block; }
  .hp-trust-num { font-size: 1.8rem; }
  /* H1 — scale mai compactă pe ecrane <520px */
  .hp-hero-h1 {
    font-size: clamp(2.2rem, 10vw, 3rem);
    max-width: 12ch;
  }
  .hp-hero-lede { font-size: 0.92rem; }
  .hp-hero-actions { flex-direction: column; }
  .hp-hero-actions .hp-btn { width: 100%; max-width: 300px; margin: 0 auto; }
  .hp-trust-num { font-size: 1.7rem; }

  .hp-mast-mark { font-size: 12px; }

  .hp-section-mark { padding: 40px 0; }
  .hp-section-mark::before, .hp-section-mark::after { width: 48px; }

  .hp-chapter { padding: 8px 18px 48px; }
  .hp-catalog-card { padding: 22px 16px 24px; }
  .hp-catalog-card::before { inset: 8px; }
  .flux-tab .hp-tab-num { font-size: 1.2rem; }
  .flux-tab .hp-tab-label { font-size: 10px; letter-spacing: 0.14em; }

  .hp-voice { padding: 28px 22px 24px; }
  .hp-voice-text { font-size: 1.05rem; }

  .hp-letter { padding: 64px 0 88px; }
  .hp-letter-inner { padding: 0 22px; }
}
