/* ============================================================
   REFALCO HERO — SIGNAL (v24)
   Same full video background. Everything else rebuilt.
   ============================================================ */

.rf-page .rf-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background: #070807;
  color: #f4efe3;
  isolation: isolate;
}

.rf-page .rf-hero__video {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  filter: saturate(1.1) contrast(1.04) brightness(0.86);
}

.rf-page .rf-hero__overlay {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(circle at 66% 47%, rgba(225,198,116,0.16), transparent 25%),
    linear-gradient(90deg, rgba(5,6,5,0.88) 0%, rgba(5,6,5,0.58) 38%, rgba(5,6,5,0.16) 72%, rgba(5,6,5,0.62) 100%),
    linear-gradient(180deg, rgba(5,6,5,0.76), rgba(5,6,5,0.12) 40%, rgba(5,6,5,0.86));
}

.rf-page .rf-hero__noise {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(225,198,116,0.16) 46.12%, transparent 46.45%),
    linear-gradient(118deg, transparent 0 60%, rgba(244,239,227,0.1) 60.1%, transparent 60.25%);
}

.rf-script {
  --cream: #f4efe3;
  --muted: rgba(244,239,227,0.66);
  --soft: rgba(244,239,227,0.4);
  --gold: #dec674;
  --hot: #fff0a6;
  --line: rgba(222,198,116,0.25);
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(24px, 7vw) minmax(0, 0.88fr) minmax(420px, 0.9fr) minmax(42px, 8vw);
  grid-template-rows: minmax(40px, 6vh) auto auto 1fr;
  gap: 0 clamp(28px, 5vw, 86px);
}

.rf-script::before {
  content: "";
  position: absolute;
  left: min(55vw, 760px);
  top: 13vh;
  bottom: 13vh;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
  transform: rotate(14deg);
  transform-origin: center;
}

.rf-script [data-rev] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  animation: rfSignalIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.rf-script [data-rev="1"] { animation-delay: 0.10s; }
.rf-script [data-rev="2"] { animation-delay: 0.22s; }
.rf-script [data-rev="3"] { animation-delay: 0.40s; }
.rf-script [data-rev="4"] { animation-delay: 0.56s; }
.rf-script [data-rev="5"] { animation-delay: 0.70s; }

.rf-script__masthead { display: none !important; }

.rf-script__body {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: start;
  max-width: 680px;
  padding-top: 0;
  padding-bottom: clamp(20px, 4vh, 56px);
}

.rf-script__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-bottom: clamp(26px, 4vh, 46px);
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.34em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--gold);
}

.rf-script__kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold);
}

.rf-script__kicker-tag {
  color: var(--soft);
  letter-spacing: 0.22em;
}

/* Luxury serif display — Cormorant Garamond, light weight, with a single
   italic word ("era") as the only swerve. Feels editorial, premium,
   confident. Less tech, more "long-horizons capital". */
.rf-script__headline {
  margin: 0;
  max-width: 16ch;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
  font-size: clamp(48px, 6.6vw, 104px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.008em;
  color: var(--cream);
  text-shadow: 0 24px 72px rgba(0,0,0,0.58);
}

.rf-script__headline-em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: 0;
  /* Subtle gold drop so the eye lands on the italic */
  text-shadow: 0 0 32px rgba(222,198,116,0.32),
               0 24px 72px rgba(0,0,0,0.45);
}

.rf-script__deck {
  max-width: 46ch;
  margin: clamp(22px, 4vh, 34px) 0 0;
  font-family: "Open Sans", sans-serif;
  font-size: clamp(14.5px, 1.05vw, 17px);
  font-weight: 300;
  line-height: 1.7;
  color: rgba(244,239,227,0.74);
}

/* "Refalco Group" — the subject anchor. Cream + light tracking,
   small caps weight bump to lead the eye. */
.rf-script__deck-lead {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.94em;
  letter-spacing: 0.04em;
  color: var(--cream);
}

/* Sector keywords — gold, slightly heavier weight, and a subtle gold
   underline that fades on hover. Treat them as quiet links to the
   pillars without being links. */
.rf-script__deck-em {
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.005em;
  border-bottom: 1px solid rgba(222,198,116,0.28);
  padding-bottom: 1px;
  transition: color 0.4s ease, border-color 0.4s ease;
}
.rf-script__deck-em:hover {
  color: var(--hot);
  border-bottom-color: var(--hot);
}

.rf-script__actions {
  margin-top: clamp(28px, 5vh, 48px);
}

/* CTA — pill button, gold border, gold-tinted fill on hover.
   Small chevron icon nudges right on hover. Confident but quiet. */
.rf-script__cta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 13px 22px 13px 24px;
  font-family: "Montserrat", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  background: rgba(222,198,116,0.04);
  border: 1px solid rgba(222,198,116,0.42);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.4s ease, border-color 0.4s ease,
              color 0.3s ease, transform 0.3s ease;
}

.rf-script__cta-text { white-space: nowrap; }

.rf-script__cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: #0b0b09;
  transition: transform 0.35s cubic-bezier(0.16,1,0.3,1),
              background 0.3s ease;
}
.rf-script__cta-icon svg { display: block; }

.rf-script__cta:hover {
  background: rgba(222,198,116,0.10);
  border-color: var(--gold);
  color: var(--hot);
  transform: translateY(-1px);
}
.rf-script__cta:hover .rf-script__cta-icon {
  background: var(--hot);
  transform: translateX(3px);
}

.rf-script__stat-inline {
  grid-column: 3 / 4;
  grid-row: 2 / 3;
  align-self: start;
  justify-self: stretch;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding-top: clamp(260px, 44vh, 520px);
  overflow: visible;
}

.rf-script__stat-inline::before {
  content: "";
  position: absolute;
  right: 2%;
  top: 50%;
  width: min(44vw, 620px);
  height: min(44vw, 620px);
  border: 1px solid rgba(222,198,116,0.18);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 120px rgba(222,198,116,0.07);
}

.rf-script__stat-inline::after {
  content: "";
  position: absolute;
  left: -12%;
  right: 8%;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(222,198,116,0.45), transparent);
  transform: translateY(-50%);
}

.rf-script__stat-year {
  position: absolute;
  right: 3%;
  top: 8%;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(44px, 5.8vw, 92px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: 0;
  color: rgba(244,239,227,0.09);
}

.rf-script__stat-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.rf-script__stat-k,
.rf-script__stat-note {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.4;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--gold);
}

.rf-script__stat-note {
  max-width: 28ch;
  color: rgba(244,239,227,0.7);
  letter-spacing: 0.24em;
}

.rf-script__stat-v {
  display: flex;
  align-items: baseline;
  margin: clamp(14px, 2.4vh, 24px) 0;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(56px, 6.4vw, 124px);
  font-weight: 200;
  line-height: 0.82;
  letter-spacing: 0;
  color: var(--cream);
  white-space: nowrap;
  text-shadow: 0 0 38px rgba(222,198,116,0.2), 0 18px 60px rgba(0,0,0,0.6);
}

.rf-script__stat-euro {
  margin-right: -0.05em;
  font-weight: 160;
  color: rgba(244,239,227,0.72);
}

.rf-script__stat-b {
  margin-left: 0.02em;
}

.rf-script__stat-v-em {
  margin-left: 0.02em;
  color: var(--hot);
  font-weight: 460;
  text-shadow: 0 0 34px rgba(255,240,166,0.7);
  animation: rfSignalGlow 2.8s ease-in-out infinite;
}

.rf-script__foot {
  grid-column: 2 / 4;
  grid-row: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 64px);
  min-height: 86px;
  margin-top: clamp(48px, 10vh, 140px);
  padding: 22px 0 18px;
  border-top: 1px solid rgba(222,198,116,0.22);
  font-family: "Montserrat", sans-serif;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(244,239,227,0.62);
}

/* Sector chips (left) */
.rf-script__foot-sectors {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(14px, 2.4vw, 36px);
  min-width: 0;
}

.rf-script__foot-sector {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  position: relative;
  padding-right: clamp(14px, 2.4vw, 36px);
}

.rf-script__foot-sector + .rf-script__foot-sector::before {
  content: "";
  position: absolute;
  left: calc(-1 * clamp(14px, 2.4vw, 36px) / 2);
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(222,198,116,0.42);
  transform: translate(-50%, -50%);
}

.rf-script__foot-sector:last-child { padding-right: 0; }

.rf-script__foot-sector-num {
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.32em;
  color: var(--gold);
}

.rf-script__foot-sector-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: rgba(244,239,227,0.82);
}

/* Timeline (right) — 2000 ━━━●━━━ 2035 */
.rf-script__foot-timeline {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 260px;
}

.rf-script__foot-tl-year {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.32em;
  color: rgba(244,239,227,0.62);
  flex: 0 0 auto;
}
.rf-script__foot-tl-year--end { color: var(--gold); }

.rf-script__foot-tl-track {
  position: relative;
  display: block;
  flex: 1 1 auto;
  height: 1px;
  min-width: 80px;
  background: rgba(222,198,116,0.22);
}

.rf-script__foot-tl-fill {
  position: absolute;
  inset: 0 26% 0 0;          /* progress = 74% (year 2026 in a 2000→2035 span) */
  background: linear-gradient(90deg, rgba(222,198,116,0.22), var(--gold));
}

.rf-script__foot-tl-dot {
  position: absolute;
  top: 50%;
  left: 74%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--hot);
  box-shadow: 0 0 0 4px rgba(255,240,166,0.18),
              0 0 18px rgba(255,240,166,0.55);
  animation: rfSignalGlow 2.8s ease-in-out infinite;
}

/* Phones — stack and let the timeline span the row */
@media (max-width: 700px) {
  .rf-script__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 0;
  }
  .rf-script__foot-timeline { width: 100%; min-width: 0; }
}

.rf-page .site-header .navbar .nav-link { color: rgba(244,239,227,0.88) !important; }
.rf-page .site-header .navbar .nav-link:hover { color: var(--hot) !important; }
.rf-page .site-header .sidemenu_btn span { background: #f4efe3 !important; }
.rf-page .site-header .logo-default,
.rf-page .site-header .logo-scrolled { filter: none; }

@keyframes rfSignalIn {
  to { opacity: 1; transform: translate3d(0,0,0); }
}

@keyframes rfSignalGlow {
  0%, 100% { opacity: 0.78; text-shadow: 0 0 22px rgba(255,240,166,0.48); }
  50% { opacity: 1; text-shadow: 0 0 42px rgba(255,240,166,0.82); }
}

@media (max-width: 1120px) {
  .rf-script {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    grid-template-rows: 24px auto auto auto;
  }

  .rf-script::before { display: none; }

  .rf-script__body,
  .rf-script__stat-inline,
  .rf-script__foot {
    grid-column: 2 / 3;
  }

  .rf-script__body {
    grid-row: 2;
    padding-bottom: 20px;
  }

  .rf-script__stat-inline {
    grid-row: 3;
    min-height: 220px;
    padding-top: 16px;   /* override the desktop clamp(260, 44vh, 520) */
  }

  .rf-script__stat-v {
    font-size: clamp(86px, 18vw, 170px);
  }

  .rf-script__foot {
    grid-row: 4;
    margin-top: clamp(28px, 6vh, 60px);  /* override desktop's bigger gap */
  }
}

@media (max-width: 700px) {
  .rf-page .rf-hero { min-height: 900px; }

  .rf-page .rf-hero__overlay {
    background:
      radial-gradient(circle at 70% 34%, rgba(225,198,116,0.13), transparent 31%),
      linear-gradient(180deg, rgba(5,6,5,0.72), rgba(5,6,5,0.32) 40%, rgba(5,6,5,0.9));
  }

  .rf-script {
    grid-template-columns: 20px minmax(0, 1fr) 20px;
    grid-template-rows: 8px auto auto auto;
  }

  /* Hide the "Refalco Group · Cyprus holding" kicker on phones */
  .rf-script__kicker {
    display: none;
  }

  /* CTA on phones — keep the pill but tighten it; icon stays for affordance */
  .rf-script__cta {
    padding: 11px 18px 11px 20px;
    font-size: 10.5px;
    letter-spacing: 0.2em;
    gap: 12px;
  }
  .rf-script__cta-icon { width: 20px; height: 20px; }

  .rf-script__headline {
    font-size: clamp(30px, 9.5vw, 48px);
    max-width: 14ch;
  }

  .rf-script__deck {
    font-size: 14px;
    max-width: 32ch;
  }

  .rf-script__cta {
    font-size: 10px;
    letter-spacing: 0.18em;
  }

  .rf-script__stat-inline {
    min-height: 200px;
    margin: 18px 0 22px;
    padding-top: 8px;    /* override desktop padding on phone */
  }

  .rf-script__stat-v {
    font-size: clamp(60px, 17vw, 96px);
  }

  /* shrink the orbit ring so it doesn't dominate the phone screen */
  .rf-script__stat-inline::before {
    width: min(78vw, 360px);
    height: min(78vw, 360px);
    right: -8%;
  }
  .rf-script__stat-year { font-size: 38px; right: 6%; }

  .rf-script__stat-k,
  .rf-script__stat-note {
    font-size: 9px;
    letter-spacing: 0.2em;
  }

  .rf-script__stat-year {
    font-size: 48px;
  }

  .rf-script__foot {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
    min-height: 0;
    padding: 16px 0 22px;
    font-size: 9px;
    letter-spacing: 0.18em;
  }

  .rf-script__foot-pipe {
    display: none;
  }
}

/* Reduced-motion: only kill the looping glow on the "+" — keep the gentle
   one-shot entry fade-up because the user explicitly asked for it. */
@media (prefers-reduced-motion: reduce) {
  .rf-script__stat-v-em {
    animation: none !important;
  }
}

.rf-page .rf-ledger,
.rf-page .rf-strata,
.rf-page .rf-opulence,
.rf-page .rf-atlas,
.rf-page .rf-rise,
.rf-page .rf-apl,
.rf-page .rf-paint,
.rf-page .rf-flux,
.rf-page .rf-rv,
.rf-page .rf-cine,
.rf-page .rf-still,
.rf-page .rf-prism,
.rf-page .rf-hero__vault,
.rf-page .rf-hero__v6,
.rf-page .rf-hero__grid,
.rf-page .rf-hero__main,
.rf-page .rf-hero__anchor,
.rf-page .rf-hero__strip,
.rf-page .rf-hero__sideline,
.rf-page .rf-scroll-cue {
  display: none !important;
}

.rf-page .rf-hero,
.rf-page .rf-hero a,
.rf-page .rf-hero button { cursor: auto; }
.rf-page .rf-hero a,
.rf-page .rf-hero button { cursor: pointer; }
