/* ============================================================
   Alprovid.com — Avraham Levi · Video Editor
   RTL Hebrew · Dark cinematic · v2 facelift
   ============================================================ */

@font-face {
  font-family: "Hand";
  src: url("assets/hand.otf") format("opentype");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg-primary: #0A0A0F;
  --bg-secondary: #101017;
  --bg-elevated: #16161F;
  --bg-card: #1A1A24;
  --text-primary: #F5F5F7;
  --text-secondary: #A2A2AE;
  --text-muted: #62626F;
  --accent: #FF6B35;
  --accent-soft: #FF8A5E;
  --accent-dim: rgba(255, 107, 53, 0.14);
  --border-subtle: #23232E;
  --border-faint: #1A1A22;
  --wa-green: #25D366;

  --font-display: "Heebo", "Assistant", system-ui, sans-serif;
  --font-hand: "Hand", "Heebo", serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
html, body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-display);
  direction: rtl;
  text-align: right;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: #0A0A0F; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.ltr { direction: ltr; unicode-bidi: isolate; }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 200; pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- Layout ---------- */
.section { padding: 150px 6vw; position: relative; }
@media (max-width: 768px) { .section { padding: 86px 22px; } }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.22em;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 500;
}

/* ---------- Typewriter ---------- */
.tw-cursor { white-space: nowrap; }
.tw-cursor::after {
  content: "";
  display: inline-block;
  width: 3px; height: 0.92em;
  margin-inline-start: 6px;
  background: var(--accent);
  vertical-align: -0.08em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 6vw;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,10,15,0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--border-subtle);
  padding-block: 14px;
}
.nav-brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 19px; letter-spacing: -0.01em;
}
.nav-brand .mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent);
  display: grid; place-items: center;
  color: #0A0A0F; font-weight: 800; font-size: 16px;
  box-shadow: 0 6px 20px -6px rgba(255,107,53,0.6);
}
.nav-links { display: flex; gap: 34px; list-style: none; align-items: center; }
.nav-links a {
  font-size: 15px; color: var(--text-secondary); position: relative;
  padding: 5px 0; transition: color .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a.active::after {
  content: ""; position: absolute; bottom: -2px; right: 0;
  width: 16px; height: 2px; background: var(--accent); border-radius: 2px;
}
.nav-links a.nav-cta {
  display: inline-flex; align-items: center; line-height: 1;
  font-size: 14px; font-weight: 600;
  padding: 10px 20px; border-radius: 999px;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary) !important;
  transition: border-color .2s, background .2s;
}
.nav-links a.nav-cta:hover { border-color: var(--accent); background: var(--accent-dim); }
.nav-links a.nav-cta::after { display: none !important; }

.nav-hamburger { display: none; width: 38px; height: 38px; flex-direction: column; justify-content: center; align-items: flex-end; gap: 5px; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; background: rgba(10,10,15,0.97); z-index: 75;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  transform: translateY(-100%); transition: transform .45s cubic-bezier(.2,.8,.2,1);
  backdrop-filter: blur(8px);
}
.nav-mobile.open { transform: none; }
.nav-mobile a { font-size: 34px; font-weight: 600; }
.nav-mobile .nav-cta { font-size: 18px; padding: 14px 28px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding: 150px 6vw 110px;
}
.hero-wall { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.hero-wall-track {
  display: flex; gap: 18px; height: 118%; align-items: center; width: max-content;
  position: absolute; top: 50%; transform: translateY(-50%);
  animation: wallScroll 80s linear infinite;
  filter: saturate(0.85) brightness(0.72) blur(4px);
}
@keyframes wallScroll { from { transform: translate(0,-50%); } to { transform: translate(50%,-50%); } }
.hero-reel {
  flex: 0 0 auto; width: clamp(160px, 17vw, 250px); aspect-ratio: 9/16;
  border-radius: 12px; overflow: hidden; position: relative; background: var(--bg-card);
}
.hero-reel img, .hero-reel .poster { width: 100%; height: 100%; object-fit: cover; }

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 38%, rgba(10,10,15,0.30) 0%, rgba(10,10,15,0.78) 55%, rgba(10,10,15,0.96) 100%),
    linear-gradient(180deg, rgba(10,10,15,0.85) 0%, rgba(10,10,15,0.45) 30%, rgba(10,10,15,0.6) 72%, rgba(10,10,15,0.98) 100%);
}
.hero-glow {
  position: absolute; z-index: 1; top: 26%; left: 50%;
  width: 60vw; height: 60vw; max-width: 720px; max-height: 720px;
  background: radial-gradient(circle, rgba(255,107,53,0.16) 0%, rgba(255,107,53,0) 68%);
  filter: blur(20px); pointer-events: none; translate: -50% -50%;
}

.hero-content { position: relative; z-index: 2; max-width: 1180px; text-align: center; width: 100%; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 34px;
  padding: 8px 16px; border: 1px solid var(--border-subtle); border-radius: 999px;
  background: rgba(20,20,28,0.5); backdrop-filter: blur(6px);
}
.hero-eyebrow .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.6); opacity: 1; }
  50% { box-shadow: 0 0 0 8px rgba(255,107,53,0); opacity: 0.7; }
}

.hero-headline {
  font-size: clamp(46px, 8.4vw, 116px); line-height: 1.0; letter-spacing: -0.03em;
  margin: 0 auto; max-width: 15ch;
}
.hero-headline .line1 { display: block; font-weight: 400; opacity: 0.95; }
.hero-headline .line2 { display: block; font-weight: 800; margin-top: 0.12em; }
.hero-headline .smile { color: var(--accent); font-weight: 500; display: inline-block; transform: translateY(-0.04em); }

.hero-cta-row { margin-top: 56px; display: flex; flex-direction: column; align-items: center; gap: 26px; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 21px 46px; background: var(--accent); color: #0A0A0F;
  font-size: 22px; font-weight: 700; border-radius: 999px;
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 12px 44px -12px rgba(255,107,53,0.65);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 56px -12px rgba(255,107,53,0.8); }
.btn-primary .arrow { display: inline-block; transition: transform .28s cubic-bezier(.2,.7,.2,1); }
.btn-primary:hover .arrow { transform: translateX(-7px); }

.hero-secondary-cta { font-size: 19px; color: var(--text-secondary); min-height: 28px; display: inline-flex; align-items: center; transition: color .2s; }
.hero-secondary-cta:hover { color: var(--accent-soft); }

.scroll-indicator {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--text-muted); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.28em;
}
.scroll-indicator .chev { width: 13px; height: 13px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); animation: bob 1.9s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: rotate(45deg) translate(0,0); opacity: .4; } 50% { transform: rotate(45deg) translate(3px,3px); opacity: 1; } }

/* ============================================================
   ABOUT
   ============================================================ */
.about-grid {
  display: grid; grid-template-columns: 1.25fr 0.85fr; gap: 90px; align-items: center;
  max-width: var(--maxw); margin: 0 auto;
}
@media (max-width: 920px) { .about-grid { grid-template-columns: 1fr; gap: 52px; } }

.about-text .eyebrow { color: var(--accent); margin-bottom: 30px; }

.about-text { font-family: var(--font-hand); }

.about-hook {
  font-family: var(--font-hand);
  font-size: clamp(23px, 2.5vw, 34px); line-height: 1.5;
  color: var(--text-primary); max-width: 620px; margin-bottom: 50px;
  transform: skewX(-4deg); transform-origin: right; font-weight: 700;
}
.about-hook .qm { color: var(--accent); }
.about-hook .smile { color: var(--accent); }

.about-paragraph { font-family: var(--font-hand); font-size: clamp(21px, 1.7vw, 27px); line-height: 1.5; color: var(--text-primary); margin-bottom: 26px; max-width: 600px; }
.about-paragraph .lead-line { display: block; font-size: clamp(26px, 2.3vw, 36px); font-weight: 700; margin-bottom: 4px; letter-spacing: 0; color: var(--accent); }
.about-paragraph .dim { color: var(--text-secondary); }
.about-paragraph .hl { color: var(--accent); font-weight: 700; }
.about-paragraph .smile { color: var(--accent); }

.about-portrait { position: relative; perspective: 1100px; }
.about-portrait .frame {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 4/5;
  background: var(--bg-card); box-shadow: 0 40px 90px -30px rgba(0,0,0,0.7);
  border: 1px solid var(--border-subtle);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d; transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.about-portrait .frame img { width: 100%; height: 100%; object-fit: cover; animation: kenburns 22s ease-in-out infinite alternate; }
@keyframes kenburns {
  0% { transform: scale(1.03) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2.5%, -2%); }
}
.about-portrait .frame::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(10,10,15,0.5); pointer-events: none; z-index: 1; }
.about-portrait .scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 2px; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--accent) 42%, var(--accent-soft) 58%, transparent);
  box-shadow: 0 0 16px 3px rgba(255,107,53,0.55);
  mix-blend-mode: screen; opacity: 0;
  animation: sweep 7s ease-in-out infinite;
}
@keyframes sweep {
  0% { left: -2%; opacity: 0; }
  10% { opacity: 0.95; }
  48% { left: 100%; opacity: 0.95; }
  56% { left: 100%; opacity: 0; }
  100% { left: -2%; opacity: 0; }
}
.about-portrait .cbrkt { position: absolute; width: 26px; height: 26px; z-index: 3; border-color: var(--accent); pointer-events: none; animation: cpulse 2.6s ease-in-out infinite; }
.about-portrait .cbrkt.tl { top: 12px; left: 12px; border-top: 2px solid; border-left: 2px solid; border-top-left-radius: 5px; }
.about-portrait .cbrkt.brr { bottom: 12px; right: 12px; border-bottom: 2px solid; border-right: 2px solid; border-bottom-right-radius: 5px; }
@keyframes cpulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.about-portrait .rec {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: #fff;
  background: rgba(10,10,15,0.5); padding: 5px 10px; border-radius: 6px; backdrop-filter: blur(4px);
}
.about-portrait .rec .d { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.about-portrait .tc { position: absolute; bottom: 14px; left: 14px; z-index: 3; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: rgba(255,255,255,0.7); }
.about-portrait .editing {
  position: absolute; bottom: -34px; left: -34px; width: 56%; z-index: 4;
  border-radius: 10px; overflow: hidden; border: 1px solid var(--border-subtle);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.8); aspect-ratio: 16/10;
}
.about-portrait .editing img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 920px) { .about-portrait { max-width: 420px; } .about-portrait .editing { width: 46%; left: -18px; bottom: -24px; } }

/* ============================================================
   CLIENTS
   ============================================================ */
.clients { background: var(--bg-secondary); padding: 100px 0; border-block: 1px solid var(--border-faint); overflow: hidden; position: relative; }
.clients::before { content: ""; position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 80vw; max-width: 1000px; height: 280px; background: radial-gradient(circle, rgba(255,107,53,0.07), transparent 70%); filter: blur(30px); pointer-events: none; }
.clients-headline {
  text-align: center; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; line-height: 1.4;
  max-width: 660px; margin: 0 auto 58px; padding: 0 22px; letter-spacing: -0.01em; position: relative;
}
.clients-headline .accent { color: var(--accent); }
.marquee { position: relative; mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent); }
.logos-track { display: flex; gap: 24px; width: max-content; align-items: center; animation: logoScroll 46s linear infinite; padding: 10px 12px; }
.marquee:hover .logos-track { animation-play-state: paused; }
@keyframes logoScroll { from { transform: translateX(0); } to { transform: translateX(50%); } }

.logo-chip {
  flex: 0 0 auto; height: 116px; width: auto; min-width: 150px; max-width: 320px;
  display: grid; place-items: center; padding: 0 40px;
  background: linear-gradient(180deg, #ffffff, #f2f2f6);
  border-radius: 18px;
  box-shadow: 0 14px 34px -18px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.9);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease;
}
.logo-chip:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 22px 44px -16px rgba(255,107,53,0.45), 0 0 0 2px rgba(255,107,53,0.55); }
.logo-chip img { width: auto; max-width: 240px; object-fit: contain; }

/* ============================================================
   MIDRAG
   ============================================================ */
.midrag {
  text-align: center; padding: 110px 22px; background: var(--bg-primary);
  /* Purple & white theme — Midrag brand, scoped to this section only */
  --accent: #A855F7;
  --accent-soft: #C77DFF;
  --accent-dim: rgba(168, 85, 247, 0.16);
}
.midrag h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 600; line-height: 1.35; margin-bottom: 46px; max-width: 720px; margin-inline: auto; letter-spacing: -0.01em; }
.midrag h2 .accent { color: var(--accent); font-weight: 800; }
.midrag-badge {
  display: inline-flex; align-items: center; gap: 22px; padding: 22px 34px;
  border: 1.5px solid var(--accent); border-radius: 16px; background: var(--accent);
  transition: background .3s ease, transform .25s ease, box-shadow .3s ease;
}
.midrag-badge:hover { background: #9333EA; border-color: #9333EA; transform: translateY(-2px); box-shadow: 0 16px 44px -14px rgba(168,85,247,0.6); }
.midrag-badge .score { font-family: var(--font-mono); font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.03em; color: #fff; transition: color .3s; }
.midrag-badge:hover .score { color: #fff; }
.midrag-badge .sep { width: 1px; height: 42px; background: rgba(255,255,255,0.3); }
.midrag-badge:hover .sep { background: rgba(255,255,255,0.3); }
.midrag-badge .stack { text-align: right; display: flex; flex-direction: column; gap: 3px; }
.midrag-badge .stack .big { font-size: 17px; font-weight: 700; color: #fff; transition: color .3s; }
.midrag-badge .stack .small { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.82); transition: color .3s; }
.midrag-badge:hover .stack .big, .midrag-badge:hover .stack .small { color: #fff; }
.midrag-stars { margin-top: 22px; color: var(--accent); font-size: 18px; letter-spacing: 4px; }
.midrag-sub { margin-top: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-muted); }

/* ============================================================
   SERVICES
   ============================================================ */
.services h2, .portfolio h2, .testimonials h2 {
  font-size: clamp(38px, 5.2vw, 70px); font-weight: 800; letter-spacing: -0.025em; text-align: center;
}
.services h2 { margin-bottom: 70px; }
.services h2 .smile, .portfolio h2 .smile, .testimonials h2 .smile { color: var(--accent); font-weight: 500; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 1320px; margin: 0 auto; }
@media (max-width: 880px) and (min-width: 641px) { .services-grid { grid-template-columns: 1fr; gap: 18px; max-width: 460px; } }
@media (max-width: 640px) {
  .services-grid {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 22px 14px; margin: 0 -22px; scrollbar-width: none;
  }
  .services-grid::-webkit-scrollbar { display: none; }
  .service-card { flex: 0 0 76%; scroll-snap-align: start; }
}

.service-card {
  position: relative; aspect-ratio: 9/12; border-radius: 18px; overflow: hidden;
  cursor: pointer; isolation: isolate; transition: transform .4s cubic-bezier(.2,.7,.2,1);
  border: 1px solid var(--border-subtle);
}
.service-card:hover { transform: translateY(-6px); }
.service-card .media { position: absolute; inset: 0; z-index: 0; }
.service-card .media img, .service-card .media .poster { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, filter .4s; filter: saturate(0.9); }
.service-card:hover .media img { transform: scale(1.05); filter: saturate(1.05); }
.service-card .gradient { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,10,15,0) 30%, rgba(10,10,15,0.55) 65%, rgba(10,10,15,0.96) 100%); transition: background .4s; }
.service-card .label { position: absolute; inset-inline: 26px; bottom: 26px; z-index: 2; font-size: clamp(26px, 2.5vw, 36px); font-weight: 800; letter-spacing: -0.01em; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.service-card:hover .label { transform: translateY(-6px); }
.service-card .arrow-tag { position: absolute; inset-inline: 26px; bottom: 22px; z-index: 2; opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s; font-size: 14px; color: var(--accent-soft); font-weight: 600; }
.service-card:hover .arrow-tag { opacity: 1; transform: none; }
.service-card .badge { position: absolute; top: 20px; right: 20px; z-index: 2; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: #fff; background: rgba(10,10,15,0.5); border: 1px solid rgba(255,255,255,0.16); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(6px); }

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio { background: var(--bg-secondary); }
.portfolio h2 { margin-bottom: 40px; min-height: 1.15em; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 54px; }
.filter-pill { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-secondary); font-size: 15px; font-weight: 600; transition: all .2s ease; background: transparent; }
.filter-pill:hover { background: var(--bg-card); color: var(--text-primary); border-color: var(--bg-card); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #0A0A0F; }

.portfolio-grid { display: grid; gap: 16px; max-width: 1340px; margin: 0 auto; transition: opacity .28s ease; }
.portfolio-grid.vertical { grid-template-columns: repeat(3, 1fr); }
.portfolio-grid.horizontal { grid-template-columns: repeat(2, 1fr); }
.portfolio-grid.mixed { grid-template-columns: repeat(6, 1fr); grid-auto-rows: 78px; grid-auto-flow: dense; }
.portfolio-grid.fading { opacity: 0; }
@media (max-width: 900px) {
  .portfolio-grid.vertical { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid.horizontal { grid-template-columns: 1fr; }
  .portfolio-grid.mixed { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 560px) {
  .portfolio-grid.vertical { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid.mixed { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 64px; }
}

.pf-card { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-card); cursor: pointer; transition: transform .3s ease; border: 1px solid var(--border-subtle); }
.pf-card:hover { transform: translateY(-3px); }
.pf-card.v { aspect-ratio: 9/16; }
.pf-card.h { aspect-ratio: 16/9; }
.pf-media { position: absolute; inset: 0; }
.pf-media img, .pf-media .poster { width: 100%; height: 100%; object-fit: cover; }
.pf-hover-bg { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(10,10,15,0.9) 100%); opacity: 0; transition: opacity .25s; z-index: 1; }
.pf-card:hover .pf-hover-bg { opacity: 1; }
.pf-card .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.88); width: 54px; height: 54px; border-radius: 50%; background: rgba(255,107,53,0.92); display: grid; place-items: center; opacity: 0; transition: opacity .25s, transform .25s; z-index: 2; }
.pf-card:hover .play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.pf-card .play::before { content: ""; width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; border-right: 13px solid #0A0A0F; margin-right: -3px; }
.pf-hover { position: absolute; inset-inline: 15px; bottom: 14px; z-index: 2; display: flex; flex-direction: column; gap: 3px; opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .25s; }
.pf-card:hover .pf-hover { opacity: 1; transform: none; }
.pf-hover .t { font-size: 15px; font-weight: 700; }
.pf-hover .c { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; color: var(--accent-soft); }

.pf-more { display: flex; justify-content: center; margin-top: 40px; }
.pf-more button { padding: 14px 32px; border-radius: 999px; border: 1px solid var(--border-subtle); color: var(--text-primary); font-size: 15px; font-weight: 600; transition: border-color .2s, background .2s; }
.pf-more button:hover { border-color: var(--accent); background: var(--accent-dim); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8,8,12,0.92); z-index: 150; display: flex; align-items: center; justify-content: center; padding: 5vw; backdrop-filter: blur(18px); animation: lbFade .25s ease; }
@keyframes lbFade { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner { position: relative; max-width: 1100px; width: 100%; display: flex; align-items: center; justify-content: center; }
.lightbox-media { width: 100%; max-height: 78vh; aspect-ratio: 16/9; border-radius: 14px; overflow: hidden; position: relative; background: var(--bg-card); border: 1px solid var(--border-subtle); }
.lightbox-media.v { aspect-ratio: 9/16; max-width: 420px; margin: 0 auto; }
.lightbox-media img, .lightbox-media .poster { width: 100%; height: 100%; object-fit: cover; }
.lightbox-close { position: absolute; top: 20px; left: 20px; width: 44px; height: 44px; border-radius: 50%; background: rgba(22,22,31,0.85); border: 1px solid var(--border-subtle); font-size: 20px; display: grid; place-items: center; z-index: 160; transition: background .2s, color .2s; }
.lightbox-close:hover { background: var(--accent); color: #0A0A0F; }
.lightbox-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 54px; height: 54px; border-radius: 50%; background: rgba(22,22,31,0.8); border: 1px solid var(--border-subtle); font-size: 22px; display: grid; place-items: center; z-index: 160; transition: background .2s, color .2s; }
.lightbox-arrow:hover { background: var(--accent); color: #0A0A0F; }
.lightbox-arrow.prev { right: -6px; }
.lightbox-arrow.next { left: -6px; }
@media (max-width: 700px) { .lightbox-arrow.prev { right: 4px; } .lightbox-arrow.next { left: 4px; } }
.lightbox-meta { position: absolute; bottom: 22px; inset-inline: 24px; z-index: 155; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.lightbox-meta .t { font-size: 19px; font-weight: 700; text-shadow: 0 2px 12px rgba(0,0,0,0.8); }
.lightbox-meta .c { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; color: var(--text-secondary); }

/* ============================================================
   PROCESS
   ============================================================ */
.process { text-align: center; background: var(--bg-primary); }
.process h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 80px; }

.proc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1080px; margin: 0 auto; }
.proc-cell { text-align: right; padding: 0 38px; position: relative; }
.proc-cell + .proc-cell { border-right: 1px solid var(--border-subtle); }
.proc-rule { height: 2px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 34px; }
.proc-rule span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .9s cubic-bezier(.2,.7,.2,1); }
.proc-cell.in .proc-rule span { width: 44px; }
.proc-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.proc-n { font-family: var(--font-mono); font-size: clamp(56px, 6vw, 84px); font-weight: 700; line-height: 0.8; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1.5px var(--border-subtle); }
.proc-cell.in .proc-n { -webkit-text-stroke-color: rgba(255,107,53,0.45); transition: -webkit-text-stroke-color .8s ease; }
.proc-k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.24em; color: var(--text-muted); text-transform: uppercase; }
.proc-body { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; font-weight: 500; color: var(--text-primary); max-width: 240px; }
.proc-body .punch { color: var(--accent); }
.proc-body .em { color: var(--text-muted); margin-inline: 4px; }

.process-signoff { margin-top: 14px; font-family: var(--font-hand); font-size: clamp(24px, 2.6vw, 34px); color: var(--text-primary); transform: skewX(-5deg); }
.process-signoff .smile { color: var(--accent); }

.proc-arrow { margin: 44px auto 0 16%; width: 180px; height: 104px; }
.proc-arrow svg { width: 100%; height: 100%; overflow: visible; }
.proc-arrow .pa-line { stroke-dasharray: 340; stroke-dashoffset: 340; transition: stroke-dashoffset 1.1s cubic-bezier(.5,0,.2,1); }
.proc-arrow .pa-head { stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset .4s ease .9s; }
.proc-arrow.in .pa-line { stroke-dashoffset: 0; }
.proc-arrow.in .pa-head { stroke-dashoffset: 0; }
@media (max-width: 760px) { .proc-arrow { margin: 30px auto 0; width: 150px; height: 86px; } }

@media (max-width: 760px) {
  .process h2 { margin-bottom: 52px; }
  .proc-grid { grid-template-columns: 1fr; gap: 38px; max-width: 420px; }
  .proc-cell { padding: 0; }
  .proc-cell + .proc-cell { border-right: none; }
  .proc-body { max-width: none; }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials { background: var(--bg-secondary); }
.testimonials h2 { margin-bottom: 66px; min-height: 1.15em; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 1240px; margin: 0 auto; }
@media (max-width: 980px) and (min-width: 641px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .testimonial-grid {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    padding: 4px 22px 14px; margin: 0 -22px; scrollbar-width: none;
  }
  .testimonial-grid::-webkit-scrollbar { display: none; }
  .t-card { flex: 0 0 82%; scroll-snap-align: start; }
}
.t-card { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 16px; padding: 34px 32px; position: relative; transition: border-color .25s, transform .25s; display: flex; flex-direction: column; }
.t-card:hover { border-color: var(--accent); transform: translateY(-4px); }
.t-card .qmark { font-family: var(--font-hand); font-size: 72px; line-height: 0.6; color: var(--accent); opacity: 0.32; height: 34px; }
.t-stars { color: var(--accent); font-size: 14px; letter-spacing: 3px; margin-bottom: 14px; }
.t-quote { font-size: 18px; line-height: 1.55; color: var(--text-primary); margin-bottom: 26px; flex: 1; }
.t-divider { height: 1px; background: var(--border-subtle); margin-bottom: 20px; }
.t-meta { display: flex; align-items: center; gap: 13px; }
.t-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-dim); border: 1px solid var(--accent); display: grid; place-items: center; color: var(--accent-soft); font-size: 15px; font-weight: 700; }
.t-name { font-size: 15px; font-weight: 700; }
.t-role { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { min-height: 84vh; background: var(--bg-primary); display: flex; flex-direction: column; justify-content: center; text-align: center; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; top: 20%; left: 50%; transform: translateX(-50%); width: 70vw; max-width: 800px; height: 400px; background: radial-gradient(circle, rgba(255,107,53,0.1), transparent 70%); filter: blur(30px); pointer-events: none; }
.contact h2 { font-size: clamp(46px, 6.6vw, 86px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 70px; position: relative; }
.contact h2 .smile { color: var(--accent); font-weight: 500; }
.contact h2 .soft { font-weight: 400; opacity: 0.8; display: block; margin-bottom: 8px; }
.contact-buttons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1040px; margin: 0 auto; width: 100%; position: relative; }
@media (max-width: 880px) { .contact-buttons { grid-template-columns: 1fr; max-width: 460px; } }
.contact-btn { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 32px 30px; display: flex; flex-direction: column; gap: 16px; align-items: flex-start; transition: border-color .25s, transform .25s, background .25s; text-align: right; }
.contact-btn:hover { border-color: var(--accent); transform: translateY(-4px); background: var(--bg-elevated); }
.contact-btn .ico { width: 50px; height: 50px; border-radius: 13px; background: var(--accent-dim); display: grid; place-items: center; color: var(--accent); transition: background .25s, color .25s; }
.contact-btn:hover .ico { background: var(--accent); color: #0A0A0F; }
.contact-btn .ico svg { width: 24px; height: 24px; }
.contact-btn .label-row { display: flex; flex-direction: column; gap: 4px; }
.contact-btn .label { font-size: 13px; font-family: var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-secondary); }
.contact-btn .value { font-size: 21px; font-weight: 700; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-primary); border-top: 1px solid var(--border-subtle); text-align: center; padding: 56px 22px; }
.footer-brand { font-size: 19px; font-weight: 600; margin-bottom: 14px; }
.footer-brand .sep { color: var(--text-muted); margin-inline: 11px; }
.footer-copy { font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); letter-spacing: 0.04em; }

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-float { position: fixed; bottom: 26px; left: 26px; width: 62px; height: 62px; border-radius: 50%; background: var(--wa-green); display: grid; place-items: center; color: #fff; z-index: 90; box-shadow: 0 12px 36px -8px rgba(37,211,102,0.55); transition: transform .25s ease, box-shadow .25s ease; animation: waPulse 2.8s ease-in-out infinite; }
.wa-float:hover { transform: scale(1.07); animation: none; box-shadow: 0 18px 50px -8px rgba(37,211,102,0.75); }
@keyframes waPulse { 0%,100% { box-shadow: 0 12px 36px -8px rgba(37,211,102,0.55), 0 0 0 0 rgba(37,211,102,0.45); } 50% { box-shadow: 0 12px 36px -8px rgba(37,211,102,0.55), 0 0 0 13px rgba(37,211,102,0); } }
.wa-float svg { width: 31px; height: 31px; }
@media (max-width: 600px) { .wa-float { width: 56px; height: 56px; bottom: 20px; left: 16px; } .wa-float svg { width: 27px; height: 27px; } }

/* ============================================================
   POSTER (refined placeholder for video thumbs not yet supplied)
   ============================================================ */
.poster { position: relative; display: grid; place-items: center; background: linear-gradient(155deg, var(--p1, #1d1d2a) 0%, #0e0e14 100%); overflow: hidden; }
.poster::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px); background-size: 16px 16px; opacity: 0.5; }
.poster .pmark { font-size: clamp(34px, 5vw, 64px); color: rgba(255,255,255,0.12); font-weight: 800; }
.poster .pcorner { position: absolute; width: 14px; height: 14px; border-color: rgba(255,255,255,0.18); }
.poster .pcorner.tl { top: 10px; left: 10px; border-top: 1.5px solid; border-left: 1.5px solid; }
.poster .pcorner.br { bottom: 10px; right: 10px; border-bottom: 1.5px solid; border-right: 1.5px solid; }

/* ============================================================
   SWIPE HINT (mobile carousels)
   ============================================================ */
.swipe-hint { display: none; }
@media (max-width: 640px) {
  .swipe-hint {
    display: block; text-align: center; margin-top: 20px;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em;
    color: var(--text-muted);
  }
  .swipe-hint::after { content: ""; display: inline-block; }
}

/* ============================================================
   MOBILE FACELIFT (<= 640px)
   ============================================================ */
@media (max-width: 640px) {
  .section { padding: 64px 22px; }

  /* Hero */
  .hero { padding: 120px 22px 92px; min-height: 92svh; }
  .hero-eyebrow { padding: 7px 13px; gap: 9px; }
  .hero-eyebrow .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .hero-headline { letter-spacing: -0.02em; }
  .hero-cta-row { margin-top: 42px; gap: 20px; }
  .btn-primary { padding: 18px 38px; font-size: 20px; }

  /* About — must fit one screen, no scroll */
  .section.about { padding: 36px 20px; display: flex; align-items: center; min-height: 100svh; }
  .about-grid { display: flex; flex-direction: column; gap: 14px; align-items: center; width: 100%; }
  .about-portrait { order: -1; width: 116px; max-width: 116px; margin: 0 auto; }
  .about-portrait .frame { aspect-ratio: 1/1; border-radius: 50%; box-shadow: 0 14px 34px -14px rgba(0,0,0,0.7), 0 0 0 1px var(--border-subtle); }
  .about-portrait .cbrkt, .about-portrait .rec, .about-portrait .tc { display: none; }
  .about-text { text-align: center; }
  .about-text .eyebrow { margin-bottom: 8px; text-align: center; font-size: 11px; }
  .about-hook { font-size: 16.5px; line-height: 1.38; margin-bottom: 16px; transform: skewX(-3deg); margin-inline: auto; }
  .about-paragraph { font-size: 15px; line-height: 1.4; margin-bottom: 11px; margin-inline: auto; }
  .about-paragraph:last-child { margin-bottom: 0; }
  .about-paragraph .lead-line { font-size: 20px; margin-bottom: 1px; }

  /* Clients */
  .clients { padding: 56px 0; }
  .clients-headline { font-size: 21px; margin-bottom: 36px; }
  .logos-track { gap: 12px; padding: 8px; }
  .logo-chip { height: 62px; min-width: 92px; max-width: 220px; padding: 0 18px; border-radius: 12px; }
  .logo-chip img { height: auto !important; max-height: 38px; max-width: 124px; transform: none; }

  /* Midrag */
  .midrag { padding: 64px 22px; }
  .midrag h2 { margin-bottom: 34px; }
  .midrag-badge { padding: 18px 26px; gap: 16px; }
  .midrag-badge .score { font-size: 38px; }

  .hero-secondary-cta { font-size: 16px; white-space: nowrap; }

  /* Services */
  .services h2 { margin-bottom: 34px; }

  /* Portfolio */
  .portfolio h2 { margin-bottom: 32px; font-size: 24px; white-space: nowrap; min-height: 1.3em; }
  .filters { gap: 8px; margin-bottom: 36px; }
  .filter-pill { padding: 9px 18px; font-size: 14px; }

  /* Process */
  .proc-grid { gap: 30px; }

  /* Testimonials */
  .testimonials h2 { margin-bottom: 36px; font-size: 24px; white-space: nowrap; min-height: 1.3em; }
  .t-card { flex: 0 0 74%; padding: 24px 22px; border-radius: 14px; }
  .t-card .qmark { font-size: 56px; height: 26px; }
  .t-stars { font-size: 13px; margin-bottom: 10px; }
  .t-quote { font-size: 16px; line-height: 1.5; margin-bottom: 20px; }
  .t-divider { margin-bottom: 16px; }
  .t-avatar { width: 38px; height: 38px; font-size: 14px; }
  .t-name { font-size: 14px; }
  .t-role { font-size: 11px; }

  /* Contact */
  .contact { min-height: auto; padding: 64px 22px 76px; }
  .contact h2 { margin-bottom: 36px; }
  .contact-buttons { gap: 12px; }
  .contact-btn { padding: 18px 20px; border-radius: 14px; gap: 12px; flex-direction: row; align-items: center; }
  .contact-btn .ico { width: 42px; height: 42px; border-radius: 11px; flex: 0 0 auto; }
  .contact-btn .ico svg { width: 20px; height: 20px; }
  .contact-btn .value { font-size: 18px; }
  .contact-btn .label { font-size: 12px; }

  /* Footer */
  .footer { padding: 44px 22px; }
}
