/* =========================================================
   SOBHI GROUP — CREATIVE LAYER (round 3)
   Kinetic clip-text reveal, edge-to-edge reels filmstrip,
   device mockups (phone + laptop), backdrop testimonials,
   numbered stat blocks, Heider-grade editorial polish.
   ========================================================= */

/* ---------- HERO REBUILD: video + kinetic clip-text segment ---------- */

/* The hero is now a 200vh canvas: first 100vh = video/photo; second 100vh = kinetic text mask */
.hero-cinema {
  position: relative;
  width: 100%;
  height: 200vh;             /* two viewports — sticky stages */
}
.hero-cinema .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: var(--dark);
}
.hero-cinema .stage-1 .hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  will-change: transform, opacity;
  transition: transform 1.2s var(--ease), opacity 1.0s ease;
}
.hero-cinema .stage-1 video.hero-bg {
  width: 100%; height: 100%;
  object-fit: cover;
  background: var(--dark);
}
.hero-cinema .stage-1 .hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 35%, rgba(20,18,16,0.55) 100%),
    linear-gradient(180deg, rgba(20,18,16,0.30) 0%, transparent 25%, transparent 70%, rgba(20,18,16,0.60) 100%);
  z-index: 2;
}
.hero-cinema .hero-tag-cinema {
  position: absolute;
  inset: auto 0 18vh 0;
  text-align: center;
  z-index: 3;
  color: var(--ivory);
  padding: 0 24px;
}
.hero-cinema .hero-tag-cinema .accent-line { display: none; }
.hero-cinema .scroll-cue { bottom: 32px; height: 28px; opacity: 0.7; }
.hero-cinema .stage-1 .scroll-cue { z-index: 4; }
.hero-cinema .hero-tag-cinema .eyebrow {
  display: inline-block;
  color: var(--bronze-soft);
  letter-spacing: 0.42em;
  font-size: 11px;
}
.hero-cinema .hero-tag-cinema h1 {
  margin-top: 22px;
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(13px, 1.2vw, 18px);
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ivory);
  max-width: 720px;
  margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-cinema .hero-tag-cinema .accent-line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, transparent, var(--bronze));
  margin: 28px auto 0;
}

/* ---------- STAGE 2: KINETIC CLIP-TEXT (image filling letterforms) ---------- */
.hero-cinema .stage-2 {
  background: var(--ivory);
}
.hero-cinema .stage-2 .clip-text-wrap {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero-cinema .clip-text {
  font-family: var(--f-heading);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.92;
  text-align: center;
  /* Background-clip the property image INTO the letterforms */
  background-image: url('../images/red-car-estate.jpg');
  background-size: cover;
  background-position: center 40%;
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  /* Subtle bronze stroke so letters remain visible at all times */
  -webkit-text-stroke: 1px rgba(184, 149, 106, 0.18);
  filter: contrast(1.05) saturate(0.95);
  user-select: none;
  /* Slight float animation while pinned */
  animation: clipDrift 14s ease-in-out infinite;
}
@keyframes clipDrift {
  0%, 100% { background-position: center 40%; }
  50%      { background-position: center 55%; }
}
.hero-cinema .clip-text-line2 {
  display: block;
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 32px);
  letter-spacing: 0.08em;
  margin-top: 14px;
  background: none;
  -webkit-text-fill-color: var(--charcoal-mute);
  color: var(--charcoal-mute);
  -webkit-text-stroke: 0;
  text-transform: none;
  animation: none;
}
.hero-cinema .clip-text-eyebrow {
  position: absolute;
  top: 14vh; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.4em;
  color: var(--charcoal-mute);
  text-transform: uppercase;
  z-index: 2;
}
.hero-cinema .clip-text-credit {
  position: absolute;
  bottom: 8vh; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 14px;
  color: var(--bronze);
  letter-spacing: 0.08em;
  z-index: 2;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .hero-cinema .clip-text { font-size: clamp(54px, 22vw, 120px); }
  .hero-cinema .hero-tag-cinema h1 { letter-spacing: 0.32em; font-size: 12px; }
}

/* ---------- COMMERCIAL VIDEO SECTION (Heider-style cinematic frame) ---------- */
.commercial-section {
  position: relative;
  background: var(--dark);
  padding: 120px 0 140px;
  text-align: center;
}
.commercial-section .eyebrow { color: var(--bronze-soft); }
.commercial-section h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(20px, 2.2vw, 30px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 18px auto 56px;
  max-width: 920px;
  line-height: 1.4;
}
.commercial-frame {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.5);
  background: #000;
}
.commercial-frame video,
.commercial-frame .commercial-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.commercial-frame .commercial-fallback {
  background-size: cover;
  background-position: center;
  animation: kenBurns 22s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0)  translate(0%, 0%); }
  100% { transform: scale(1.12) translate(-2%, 1%); }
}
.commercial-frame .commercial-play {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  cursor: pointer;
  z-index: 3;
}
.commercial-frame .commercial-play .play-ring {
  width: 96px; height: 96px;
  border: 1px solid var(--bronze);
  border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
}
.commercial-frame .commercial-play:hover .play-ring { transform: scale(1.08); background: rgba(184,149,106,0.18); }
.commercial-frame .commercial-play .play-ring::after {
  content: '';
  width: 0; height: 0;
  border-left: 14px solid var(--ivory);
  border-top: 9px solid transparent;
  border-bottom: 9px solid transparent;
  margin-left: 4px;
}
.commercial-frame::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
  z-index: 2;
}
.commercial-caption {
  margin-top: 28px;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 16px;
  color: var(--bronze-soft);
  letter-spacing: 0.06em;
}

/* ---------- REELS FILMSTRIP — edge-to-edge, no gaps, mixed widths ---------- */
.reels-strip-section {
  background: var(--ivory);
  padding: 120px 0 0;
}
.reels-strip-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 0 24px;
}
.reels-strip-head .eyebrow { color: var(--bronze); }
.reels-strip-head h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 34px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  margin: 18px 0 22px;
  color: var(--charcoal);
  line-height: 1.4;
}
.reels-strip-head p {
  font-size: 15px;
  color: var(--charcoal-mute);
  line-height: 1.8;
}

/* The strip itself */
.reels-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;                        /* edge to edge, all tiles equal height */
  width: 100%;
  align-items: stretch;
}
.reel-tile {
  position: relative;
  aspect-ratio: 9 / 14;          /* portrait reel */
  overflow: hidden;
  background: #1a1816;
  cursor: pointer;
}
.reel-tile .reel-media {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(100%) contrast(1.05) brightness(0.92);
  transition: filter 0.6s var(--ease), transform 1.2s var(--ease);
}
.reel-tile.is-color .reel-media { filter: grayscale(0%) contrast(1.05) brightness(1.0); }
.reel-tile:hover .reel-media { filter: grayscale(0%) brightness(1); transform: scale(1.04); }

/* Diagonal "SOLD" stamp (Heider move) — bronze, not red */
.reel-tile .sold-stamp {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) rotate(-22deg);
  font-family: var(--f-heading);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 56px);
  letter-spacing: 0.18em;
  color: rgba(250, 247, 241, 0.92);
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
  text-transform: uppercase;
  z-index: 3;
  pointer-events: none;
}
.reel-tile .reel-duration {
  position: absolute;
  bottom: 16px; left: 16px;
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ivory);
  background: rgba(20,18,16,0.55);
  padding: 6px 10px;
  border: 1px solid rgba(250,247,241,0.25);
  backdrop-filter: blur(6px);
  z-index: 3;
}
.reel-tile .reel-meta {
  position: absolute;
  bottom: 18px; right: 18px;
  font-family: var(--f-heading);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--bronze-soft);
  text-transform: uppercase;
  z-index: 3;
  text-align: right;
}
.reel-tile .reel-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.0) 50%, rgba(20,18,16,0.55) 100%);
  z-index: 2;
  pointer-events: none;
}
.reel-tile.is-feature .reel-shade {
  background: linear-gradient(180deg, rgba(20,18,16,0.0) 40%, rgba(20,18,16,0.75) 100%);
}
.reel-tile.is-feature .reel-address {
  position: absolute;
  left: 18px; bottom: 56px;
  font-family: var(--f-heading);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--ivory);
  z-index: 3;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .reels-strip { grid-template-columns: 1fr 1fr 1fr; }
  .reels-strip .reel-tile:nth-child(n+4) { display: none; }
}
@media (max-width: 600px) {
  .reels-strip { grid-template-columns: 1fr 1fr; }
}

/* ---------- DEVICE MOCKUPS: PHONE & LAPTOP ---------- */
/* Phone frame holding a reel */
.device-section {
  position: relative;
  padding: 140px 6vw;
  background: var(--cream);
  overflow: hidden;
}
.device-section.dark { background: var(--dark); }
.device-section .device-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
}
.device-section.reverse .device-grid { direction: rtl; }
.device-section.reverse .device-grid > * { direction: ltr; }
.device-copy .eyebrow { color: var(--bronze); }
.device-section.dark .device-copy .eyebrow { color: var(--bronze-soft); }
.device-copy h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(28px, 3.4vw, 48px);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin: 18px 0 24px;
  color: var(--charcoal);
}
.device-section.dark .device-copy h2 { color: var(--ivory); }
.device-copy h2 em {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  color: var(--bronze);
}
.device-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--charcoal-mute);
  max-width: 460px;
  margin-bottom: 28px;
}
.device-section.dark .device-copy p { color: rgba(250,247,241,0.78); }

/* Phone (iPhone-ish) */
.phone-mock {
  position: relative;
  width: min(320px, 80%);
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(180deg, #1c1a18, #0e0d0b);
  border-radius: 44px;
  padding: 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.35),
    inset 0 0 0 1.5px rgba(184,149,106,0.4),
    inset 0 0 0 4px #0a0907;
  transform: rotate(-4deg);
  transition: transform 0.8s var(--ease);
  will-change: transform;
}
.phone-mock:hover { transform: rotate(0deg) scale(1.02); }
.phone-mock .phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 32px;
  overflow: hidden;
  background: #000;
}
.phone-mock .phone-screen video,
.phone-mock .phone-screen img,
.phone-mock .phone-screen .reel-still {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.phone-mock .phone-notch {
  position: absolute;
  top: 22px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 26px;
  background: #0a0907;
  border-radius: 14px;
  z-index: 4;
}
.phone-mock .phone-ui {
  position: absolute;
  inset: 14px;
  border-radius: 32px;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 18%, transparent 82%, rgba(0,0,0,0.5) 100%);
}
.phone-mock .phone-ui::before {
  /* IG-like top bar */
  content: 'Reels';
  position: absolute;
  top: 18px; left: 22px;
  color: rgba(255,255,255,0.92);
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.16em;
}

/* Laptop (MacBook-ish) */
.laptop-mock {
  position: relative;
  width: min(640px, 90%);
  margin: 0 auto;
}
.laptop-mock .laptop-lid {
  position: relative;
  background: #1c1a18;
  border-radius: 14px 14px 4px 4px;
  padding: 16px 16px 14px;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.4),
    inset 0 0 0 1px rgba(184,149,106,0.35);
}
.laptop-mock .laptop-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #000;
  border-radius: 6px;
}
.laptop-mock .laptop-screen video,
.laptop-mock .laptop-screen .laptop-fallback {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.laptop-mock .laptop-fallback {
  background-size: cover;
  background-position: center;
  animation: kenBurns 18s ease-in-out infinite alternate;
}
.laptop-mock .laptop-base {
  position: relative;
  margin: 0 auto;
  width: 108%;
  height: 14px;
  background: linear-gradient(180deg, #2a2724 0%, #14110f 70%, #0a0907 100%);
  border-radius: 0 0 20px 20px;
  transform: translateX(-3.7%);
  box-shadow: 0 30px 60px rgba(0,0,0,0.3);
}
.laptop-mock .laptop-base::after {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 4px;
  background: #0a0907;
  border-radius: 0 0 8px 8px;
}

@media (max-width: 900px) {
  .device-section .device-grid { grid-template-columns: 1fr; gap: 48px; }
  .device-section.reverse .device-grid { direction: ltr; }
  .device-copy { text-align: center; }
  .device-copy p { margin-left: auto; margin-right: auto; }
}

/* ---------- TESTIMONIALS ON IMAGE BACKDROP w/ FLOATING CARDS ---------- */
.testimonials-backdrop {
  position: relative;
  padding: 160px 6vw;
  overflow: hidden;
}
.testimonials-backdrop .tb-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.testimonials-backdrop .tb-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(20,18,16,0.62) 0%, rgba(20,18,16,0.40) 50%, rgba(20,18,16,0.78) 100%);
  z-index: 2;
}
.testimonials-backdrop .tb-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
  text-align: center;
}
.testimonials-backdrop .tb-head {
  margin-bottom: 80px;
  color: var(--ivory);
}
.testimonials-backdrop .tb-head .eyebrow { color: var(--bronze-soft); }
.testimonials-backdrop .tb-head {
  text-align: center;
}
.testimonials-backdrop .tb-head h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 34px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 18px auto 0;
  line-height: 1.45;
  max-width: 900px;
}
.testimonials-backdrop .tb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testimonials-backdrop .tb-card {
  background: var(--ivory);
  padding: 56px 38px 46px;
  text-align: left;
  position: relative;
  border-top: 2px solid var(--bronze);
}
.testimonials-backdrop .tb-card .tb-quote-mark {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 90px;
  line-height: 0.6;
  color: var(--bronze);
  position: absolute;
  top: 26px; left: 32px;
  opacity: 0.4;
}
.testimonials-backdrop .tb-card .tb-quote {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--charcoal);
  margin: 22px 0 28px;
}
.testimonials-backdrop .tb-card .tb-who {
  font-family: var(--f-heading);
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--charcoal-mute);
}
.testimonials-backdrop .tb-card .tb-who strong {
  display: block;
  color: var(--charcoal);
  font-weight: 400;
  letter-spacing: 0.22em;
  margin-bottom: 4px;
}
@media (max-width: 900px) {
  .testimonials-backdrop .tb-grid { grid-template-columns: 1fr; gap: 24px; }
  .testimonials-backdrop { padding: 100px 6vw; }
}

/* ---------- "#1" RANKING CARDS on backdrop ---------- */
.rank-backdrop {
  position: relative;
  padding: 180px 6vw 160px;
  overflow: hidden;
}
.rank-backdrop .rb-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
}
.rank-backdrop .rb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,18,16,0.55) 0%, rgba(20,18,16,0.65) 100%);
  z-index: 2;
}
.rank-backdrop .rb-content {
  position: relative;
  z-index: 3;
  max-width: 1280px;
  margin: 0 auto;
}
.rank-backdrop .rb-head {
  text-align: center;
  margin-bottom: 64px;
  color: var(--ivory);
}
.rank-backdrop .rb-head h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: clamp(22px, 2.6vw, 36px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  margin: 0 auto;
  line-height: 1.45;
  max-width: 900px;
}
.rank-backdrop .rb-head .rb-rule {
  width: 200px; height: 1px;
  background: var(--bronze);
  margin: 26px auto 0;
}
.rank-backdrop .rb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.rank-card {
  background: var(--ivory);
  padding: 56px 44px;
  position: relative;
}
.rank-card .rb-num {
  font-family: var(--f-heading);
  font-weight: 400;
  font-size: 56px;
  color: var(--bronze);
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 22px;
}
.rank-card h3 {
  font-family: var(--f-heading);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin: 0 0 32px;
  line-height: 1.35;
}
.rank-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--charcoal-mute);
  margin: 0;
}
.rank-card em { font-family: var(--f-display); font-style: italic; }
@media (max-width: 900px) {
  .rank-backdrop .rb-grid { grid-template-columns: 1fr; gap: 18px; }
  .rank-backdrop { padding: 100px 6vw; }
  .rank-card { padding: 44px 32px; }
}

/* ---------- New "phrase" treatment — replacing the old two phrases ---------- */
.phrase-editorial {
  background: var(--cream);
  padding: 140px 6vw;
  text-align: center;
  position: relative;
}
.phrase-editorial.dark { background: var(--dark); }
.phrase-editorial .phrase-rule {
  width: 80px; height: 1px;
  background: var(--bronze);
  margin: 0 auto 32px;
  opacity: 0.7;
}
.phrase-editorial .eyebrow { color: var(--bronze); letter-spacing: 0.5em; font-size: 10px; }
.phrase-editorial.dark .eyebrow { color: var(--bronze-soft); }
.phrase-editorial h2 {
  font-family: var(--f-heading);
  font-weight: 300;
  text-transform: uppercase;
  font-size: clamp(28px, 4.2vw, 60px);
  letter-spacing: 0.18em;
  line-height: 1.2;
  color: var(--charcoal);
  margin: 28px auto 0;
  max-width: 1000px;
}
.phrase-editorial.dark h2 { color: var(--ivory); }
.phrase-editorial h2 .accent {
  font-family: var(--f-display);
  font-style: italic;
  font-weight: 300;
  color: var(--bronze);
  text-transform: none;
  letter-spacing: 0.02em;
}
.phrase-editorial .phrase-rule-bot {
  width: 80px; height: 1px;
  background: var(--bronze);
  margin: 36px auto 0;
  opacity: 0.7;
}

/* ---------- Misc hardening ---------- */
img, video { image-rendering: -webkit-optimize-contrast; }
