/* =====================================================================
   Innovarify — Premium redesign layer
   Loaded AFTER style.css. Scoped mostly to `.iv-*` and `body.iv-home`
   so the base template (other pages, admin) stays untouched.
   Brand: deep black base · restrained violet accent (#AD2FF1)
   Concept: one team, two worlds — Software/Technology & Media/Social
   ===================================================================== */

:root {
  --iv-black: #050507;
  --iv-charcoal: #0a0a0f;
  --iv-graphite: #101018;
  --iv-surface: #14141e;
  --iv-surface-2: #191926;
  --iv-line: rgba(255, 255, 255, 0.08);
  --iv-line-strong: rgba(255, 255, 255, 0.14);
  --iv-text: #f5f4f9;
  --iv-muted: rgba(245, 244, 249, 0.60);
  --iv-faint: rgba(245, 244, 249, 0.38);
  --iv-accent: #ad2ff1;
  --iv-accent-soft: #7c3aed;
  --iv-accent-glow: rgba(173, 47, 241, 0.55);
  --iv-radius: 18px;
  --iv-radius-lg: 26px;
  --iv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --iv-container: 1320px;
}

/* ---------- Home page global dark canvas ---------- */
body.iv-home {
  background-color: var(--iv-black);
}
body.iv-home .mil-content,
body.iv-home #swupMain {
  background-color: var(--iv-black);
}
/* Neutralise template's white soft sections when reused on home */
body.iv-home .mil-soft-bg { background-color: transparent; }

/* Fixed frame (logo + hamburger) must read light over the dark hero */
body.iv-home .mil-frame-top .mil-logo { color: #fff; }
body.iv-home .mil-frame .mil-frame-top .mil-logo { color: #fff; }
body.iv-home .mil-menu-btn span,
body.iv-home .mil-menu-btn span:after,
body.iv-home .mil-menu-btn span:before { background: #fff; }
body.iv-home .mil-frame .mil-frame-bottom .mil-current-page { color: rgba(255,255,255,.5); }

/* Logo lockup in the frame */
.iv-logo { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 700;
  letter-spacing: -0.02em; font-size: 22px; line-height: 1; }
.iv-logo b { font-weight: 700; }
.iv-logo i { color: var(--iv-accent); font-style: normal; }

/* ---------- Shared layout primitives ---------- */
.iv-container { width: 100%; max-width: var(--iv-container); margin: 0 auto; padding: 0 40px; }
.iv-section { position: relative; padding: 120px 0; }
.iv-section--tight { padding: 90px 0; }
@media (max-width: 992px) { .iv-section { padding: 80px 0; } .iv-container { padding: 0 24px; } }

.iv-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--iv-muted); font-weight: 600; margin: 0 0 22px;
}
.iv-eyebrow::before {
  content: ""; width: 26px; height: 1px;
  background: linear-gradient(90deg, var(--iv-accent), transparent);
}
.iv-title {
  color: var(--iv-text); font-weight: 600; letter-spacing: -0.02em;
  font-size: clamp(30px, 4vw, 52px); line-height: 1.08; margin: 0 0 22px;
}
.iv-lead { color: var(--iv-muted); font-size: 18px; line-height: 1.7; max-width: 640px; margin: 0; }
.iv-accent-text { color: var(--iv-accent); }
.iv-section-head { max-width: 720px; margin: 0 0 64px; }
.iv-section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.iv-section-head--center .iv-eyebrow { justify-content: center; }
.iv-section-head--center .iv-lead { margin-left: auto; margin-right: auto; }

/* ---------- Breadcrumbs (inner premium pages) ---------- */
.iv-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 13px; letter-spacing: .2px; }
.iv-crumbs a { color: var(--iv-muted); text-decoration: none; transition: color .3s var(--iv-ease); }
.iv-crumbs a:hover { color: #fff; }
.iv-crumbs span[aria-hidden] { color: var(--iv-faint); }
.iv-crumbs__current { color: var(--iv-accent-soft); font-weight: 600; }

/* ---------- Buttons ---------- */
.iv-btn {
  --b: var(--iv-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 100px; font-size: 14px; font-weight: 600;
  letter-spacing: 0.3px; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .35s var(--iv-ease), box-shadow .35s var(--iv-ease), background .35s var(--iv-ease), border-color .35s var(--iv-ease);
  white-space: nowrap;
}
.iv-btn svg { width: 16px; height: 16px; transition: transform .35s var(--iv-ease); }
.iv-btn:hover svg { transform: translateX(4px); }
.iv-btn--primary {
  background: linear-gradient(120deg, var(--iv-accent), var(--iv-accent-soft));
  color: #fff; box-shadow: 0 10px 40px -12px var(--iv-accent-glow);
}
.iv-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 50px -12px var(--iv-accent-glow); color:#fff; }
.iv-btn--ghost {
  background: rgba(255, 255, 255, 0.04); color: var(--iv-text);
  border-color: var(--iv-line-strong); backdrop-filter: blur(6px);
}
.iv-btn--ghost:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); color:#fff; }

/* =====================================================================
   HERO
   ===================================================================== */
/* Hero wrapper is natural height (one viewport). GSAP ScrollTrigger pins the
   inner .iv-hero and creates its own pin-spacing for the scrub distance — no
   CSS sticky and no manual vh spacer (a single mechanism owns the pin). */
.iv-hero-scroll { position: relative; background: var(--iv-black); }

.iv-hero {
  position: relative;
  height: 100vh; height: 100svh; /* stable viewport unit; avoids mobile jump */
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--iv-black);
}
.iv-hero__media { position: absolute; inset: 0; z-index: 0; }
.iv-hero__poster,
.iv-hero__canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 60%;
}
.iv-hero__poster { z-index: 0; }
/* Canvas shows the scrubbed frames; fades in over the poster once ready. */
.iv-hero__canvas { z-index: 1; opacity: 0; transition: opacity .5s ease; display: block; }
.iv-hero__media.iv-canvas-ready .iv-hero__canvas { opacity: 1; }
/* The <video> is a decode source only — present but visually hidden. */
.iv-hero__video { position: absolute; width: 2px; height: 2px; top: 0; left: 0; opacity: 0.01; pointer-events: none; z-index: -1; }

/* Scrims: darken top (for frame) + center vertical band to protect text,
   while keeping the laptop (left) and camera (right) readable. */
.iv-hero__scrim { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.iv-hero__scrim--top {
  background: linear-gradient(180deg, rgba(5,5,7,.85) 0%, rgba(5,5,7,0) 22%,
              rgba(5,5,7,0) 62%, rgba(5,5,7,.55) 88%, rgba(5,5,7,.92) 100%);
}
.iv-hero__scrim--center {
  background: radial-gradient(120% 70% at 50% 42%, rgba(5,5,7,.72) 0%, rgba(5,5,7,.35) 42%, rgba(5,5,7,0) 70%);
}

.iv-hero__content {
  position: relative; z-index: 3; text-align: center;
  padding: 0 24px; width: 100%; max-width: 880px; margin-top: -4vh;
}
.iv-hero__tag {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px;
  padding: 8px 18px; border-radius: 100px; border: 1px solid var(--iv-line-strong);
  background: rgba(255,255,255,.04); backdrop-filter: blur(8px);
  font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--iv-muted); font-weight: 600;
}
.iv-hero__tag .iv-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--iv-accent); box-shadow: 0 0 12px var(--iv-accent-glow); }
.iv-hero__title {
  color: #fff; font-weight: 600; letter-spacing: -0.03em;
  font-size: clamp(40px, 8vw, 96px); line-height: 0.98; margin: 0 0 24px;
}
.iv-hero__title .iv-thin { font-weight: 200; color: rgba(255,255,255,.85); }
.iv-hero__sub { color: var(--iv-muted); font-size: clamp(16px, 2vw, 20px); line-height: 1.6; max-width: 560px; margin: 0 auto 40px; }
.iv-hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Two-world labels anchored to the sides, aligned with the video objects */
.iv-hero__worlds {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 12vh;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 0 6vw; pointer-events: none;
}
.iv-world { pointer-events: auto; max-width: 240px; }
.iv-world__k { font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--iv-faint); font-weight: 600; margin: 0 0 8px; display:flex; align-items:center; gap:8px; }
.iv-world__k::before { content:""; width:18px; height:1px; background: var(--iv-accent); }
.iv-world--right { text-align: right; }
.iv-world--right .iv-world__k { justify-content: flex-end; }
.iv-world--right .iv-world__k::before { order: 2; }
.iv-world__t { font-size: clamp(15px, 1.4vw, 19px); font-weight: 600; color: rgba(255,255,255,.92); line-height: 1.25; margin: 0; }

.iv-hero__scroll {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%); bottom: 34px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--iv-faint); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; text-decoration: none;
}
.iv-hero__scroll .iv-mouse { width: 22px; height: 34px; border: 1px solid var(--iv-line-strong); border-radius: 12px; position: relative; }
.iv-hero__scroll .iv-mouse::after { content:""; position:absolute; left:50%; top:7px; width:3px; height:6px; border-radius:2px; background: var(--iv-accent); transform: translateX(-50%); animation: iv-scroll 1.8s var(--iv-ease) infinite; }
@keyframes iv-scroll { 0%{opacity:0; transform:translate(-50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(-50%,10px);} 100%{opacity:0;} }

@media (max-width: 992px) {
  /* Hero is a row-flex on desktop (worlds are absolute). On mobile the worlds
     move into flow, so stack the hero vertically to avoid them sitting beside
     the content. */
  .iv-hero { flex-direction: column; justify-content: center; }
  .iv-hero__media video, .iv-hero__poster { object-position: center 42%; }
  .iv-hero__content { flex: 0 0 auto; max-width: 560px; }
  .iv-hero__worlds { position: static; width: 100%; padding: 0 20px; margin-top: 34px; gap: 14px; justify-content: center; box-sizing: border-box; }
  .iv-world, .iv-world--right { text-align: center; max-width: none; flex: 1 1 0; min-width: 0; }
  .iv-world--right .iv-world__k { justify-content: center; }
  .iv-world__k, .iv-world--right .iv-world__k { font-size: 9.5px; letter-spacing: 1.2px; }
  .iv-world__k::before, .iv-world--right .iv-world__k::before { display: none; }
  .iv-world__t { font-size: 13px; overflow-wrap: break-word; }
  .iv-hero__scroll { display: none; }
  .iv-hero__content { margin-top: 0; }
  /* On phones the desk objects sit low; push text a touch up and add a stronger bottom scrim */
  .iv-hero__scrim--center { background: radial-gradient(130% 60% at 50% 38%, rgba(5,5,7,.8) 0%, rgba(5,5,7,.4) 45%, rgba(5,5,7,.15) 75%); }
}

/* =====================================================================
   HERO SCROLL-STORY — content states driven by scroll progress (innovarify.js).
   Desktop: centred in the negative space. Mobile: top/bottom black zones.
   ===================================================================== */
.iv-hero__stages { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.iv-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 0 40px; }
.iv-stage__inner { opacity: 0; transform: translateY(24px); text-align: center; max-width: 620px; will-change: opacity, transform; }
.iv-stage__k { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--iv-muted); font-weight: 600; margin: 0 0 16px; }
.iv-stage__h { color: #fff; font-weight: 600; letter-spacing: -0.02em; font-size: clamp(30px, 4.4vw, 58px); line-height: 1.05; margin: 0 0 16px; }
.iv-stage__s { color: var(--iv-muted); font-size: clamp(15px, 1.5vw, 19px); line-height: 1.6; margin: 0 auto; max-width: 520px; }
.iv-stage__s--accent { color: rgba(245, 244, 249, 0.9); letter-spacing: 0.3px; }
.iv-stage__micro { color: rgba(245, 244, 249, 0.72); font-size: clamp(17px, 2vw, 23px); font-weight: 500; line-height: 1.4; margin: 0 auto; max-width: 440px; }
.iv-stage__cta { margin-top: 28px; pointer-events: auto; }

/* Minimal vertical scroll-progress indicator (desktop only). */
.iv-hero__progress { position: absolute; right: 46px; top: 50%; transform: translateY(-50%); z-index: 3; width: 2px; height: 180px; background: rgba(255,255,255,0.12); border-radius: 2px; overflow: hidden; pointer-events: none; }
.iv-hero__progress-fill { position: absolute; left: 0; top: 0; width: 100%; height: 0%; background: linear-gradient(180deg, var(--iv-accent), var(--iv-accent-soft)); }
@media (max-width: 1200px) { .iv-hero__progress { display: none; } }

@media (max-width: 768px) {
  .iv-stage { padding: 0 24px; }
  /* Top story: below the ~90px mobile header with responsive breathing room
     (svh so it adapts to phone height); safe on short phones (375x667). */
  .iv-stage--top {
    align-items: flex-start;
    padding-top: calc(90px + env(safe-area-inset-top, 0px) + clamp(34px, 7svh, 84px));
  }
  /* Bottom story: lifted well clear of the Safari toolbar / safe area. */
  .iv-stage--bottom {
    align-items: flex-end;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(96px, 15svh, 160px));
  }
  .iv-stage__h { font-size: clamp(26px, 7.4vw, 34px); }
  .iv-stage__s { font-size: 14px; max-width: 340px; }
  .iv-stage__micro { font-size: 18px; }
}

/* =====================================================================
   DUAL EXPERTISE — two equal pillars
   ===================================================================== */
.iv-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 900px) { .iv-dual { grid-template-columns: 1fr; } }

.iv-pillar {
  position: relative; padding: 44px 40px; border-radius: var(--iv-radius-lg);
  border: 1px solid var(--iv-line); background: var(--iv-graphite);
  overflow: hidden; transition: transform .5s var(--iv-ease), border-color .5s var(--iv-ease);
}
.iv-pillar::before {
  content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background: radial-gradient(90% 60% at var(--gx, 15%) 0%, rgba(173,47,241,.14), transparent 60%);
}
.iv-pillar--media::before { --gx: 85%; }
.iv-pillar:hover { transform: translateY(-4px); border-color: var(--iv-line-strong); }
.iv-pillar__ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(173,47,241,.12); border: 1px solid rgba(173,47,241,.25); margin-bottom: 26px; }
.iv-pillar__ico svg { width: 26px; height: 26px; stroke: var(--iv-accent); }
.iv-pillar__k { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--iv-accent); font-weight: 600; margin: 0 0 8px; }
.iv-pillar__t { font-size: 26px; font-weight: 600; color: #fff; letter-spacing: -0.01em; margin: 0 0 14px; }
.iv-pillar__d { color: var(--iv-muted); font-size: 15.5px; line-height: 1.7; margin: 0 0 28px; }
.iv-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.iv-chips li { font-size: 13.5px; color: rgba(245,244,249,.82); padding: 9px 16px; border-radius: 100px;
  border: 1px solid var(--iv-line); background: rgba(255,255,255,.02); transition: .35s var(--iv-ease); }
.iv-pillar:hover .iv-chips li { border-color: var(--iv-line-strong); }

.iv-bridge { text-align: center; color: var(--iv-faint); font-size: 13px; letter-spacing: 1px; margin: 34px auto 0; max-width: 600px; }

/* =====================================================================
   SELECTED WORK
   ===================================================================== */
.iv-work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 992px) { .iv-work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .iv-work-grid { grid-template-columns: 1fr; } }

.iv-work {
  position: relative; display: block; border-radius: var(--iv-radius);
  border: 1px solid var(--iv-line); background: var(--iv-surface);
  overflow: hidden; text-decoration: none; transition: transform .5s var(--iv-ease), border-color .5s var(--iv-ease);
}
.iv-work:hover { transform: translateY(-5px); border-color: var(--iv-line-strong); }
.iv-work__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--iv-charcoal); }
.iv-work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--iv-ease); filter: saturate(1.02); }
.iv-work:hover .iv-work__media img { transform: scale(1.06); }
.iv-work__media::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 45%, rgba(5,5,7,.55)); }
/* Showcase work cards (Selected Work): real imagery on a dark 16:10 frame.
   Landscape covers fill the frame; portrait app/reel screens are contained
   (centred, letterboxed) so nothing is cropped or faked. */
.iv-work--show .iv-work__media { aspect-ratio: 16 / 10; background: var(--iv-charcoal); }
.iv-work--show .iv-work__media::after { display: none; }
.iv-work--show .iv-work__media--cover img { width: 100%; height: 100%; object-fit: cover; object-position: center; filter: none; }
.iv-work--show .iv-work__media--portrait { display: flex; align-items: center; justify-content: center; background: radial-gradient(120% 120% at 50% 0, #16161d, #0b0b10); padding: 14px 0; }
.iv-work--show .iv-work__media--portrait img { width: auto; height: 100%; max-width: 62%; object-fit: contain; filter: none; border-radius: 8px; }
.iv-work--show:hover .iv-work__media img { transform: scale(1.04); }
.iv-work__body { padding: 22px 24px 26px; }
.iv-work__tag { display: inline-block; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--iv-accent); font-weight: 600; margin: 0 0 10px; }
.iv-work__t { font-size: 19px; font-weight: 600; color: #fff; margin: 0 0 8px; letter-spacing: -0.01em; }
.iv-work__d { font-size: 14px; line-height: 1.6; color: var(--iv-muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iv-work__arrow { position: absolute; top: 18px; right: 18px; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(5,5,7,.5); border: 1px solid var(--iv-line-strong);
  backdrop-filter: blur(6px); opacity: 0; transform: translateY(-6px); transition: .4s var(--iv-ease); }
.iv-work__arrow svg { width: 16px; height: 16px; stroke: #fff; }
.iv-work:hover .iv-work__arrow { opacity: 1; transform: translateY(0); }
.iv-work--static { cursor: default; }

/* =====================================================================
   REFERENCES / PARTNERS
   ===================================================================== */
.iv-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 40px; }
.iv-filter button {
  font: inherit; font-size: 13px; font-weight: 600; letter-spacing: .3px; cursor: pointer;
  padding: 9px 20px; border-radius: 100px; color: var(--iv-muted);
  border: 1px solid var(--iv-line); background: transparent; transition: .3s var(--iv-ease);
}
.iv-filter button:hover { color: #fff; border-color: var(--iv-line-strong); }
.iv-filter button.is-active { color: #fff; background: rgba(173,47,241,.14); border-color: rgba(173,47,241,.4); }

.iv-ref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 992px) { .iv-ref-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .iv-ref-grid { grid-template-columns: repeat(2, 1fr); } }

/* Logos keep their ORIGINAL colours (no grayscale/hue/invert). Client logos
   here are a mix of dark-on-transparent and white-background marks, so a light
   "chip" is the only treatment that keeps every brand readable and undistorted
   on the dark section — Innovarify purple stays on the border/label, not the logo. */
.iv-ref {
  font: inherit; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 150px; padding: 26px 22px 30px; border-radius: var(--iv-radius);
  border: 1px solid var(--iv-line); background: #f5f6f8;
  color: #14141e; text-decoration: none; transition: transform .4s var(--iv-ease), box-shadow .4s var(--iv-ease), border-color .4s var(--iv-ease); position: relative; overflow: hidden;
}
.iv-ref:hover, .iv-ref:focus-visible { border-color: rgba(173,47,241,.55); transform: translateY(-4px); box-shadow: 0 16px 34px -18px rgba(0,0,0,.7); outline: none; }
.iv-ref img { max-width: 90%; max-height: 92px; width: auto; height: auto; object-fit: contain; object-position: center; transition: transform .4s var(--iv-ease); }
.iv-ref:hover img { transform: scale(1.04); }
.iv-ref__name { font-size: 17px; font-weight: 700; color: #14141e; letter-spacing: -0.01em; line-height: 1.3; }
/* Text-only reference cards (no logo yet) — brand name reads as the mark */
.iv-ref--text { padding: 26px 20px 34px; }
/* "View details" hint — hidden until hover/focus so the card stays clean */
.iv-ref__hint {
  position: absolute; left: 0; right: 0; bottom: 10px; text-align: center;
  font-size: 11px; letter-spacing: .5px; font-weight: 700; color: var(--iv-accent-soft);
  opacity: 0; transform: translateY(4px); transition: .3s var(--iv-ease); pointer-events: none;
}
.iv-ref:hover .iv-ref__hint, .iv-ref:focus-visible .iv-ref__hint { opacity: 1; transform: none; }
.iv-ref.is-hidden { display: none; }

/* ---------- Service tags (Selected Work cards + drawer) ---------- */
.iv-work__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.iv-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .2px; color: rgba(245,244,249,.82);
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--iv-line); background: rgba(255,255,255,.02);
}

/* ============================================================
   REFERENCE DETAIL DRAWER
   ============================================================ */
.iv-drawer { position: fixed; inset: 0; z-index: 1000; display: none; }
.iv-drawer.is-open { display: block; }
.iv-drawer__overlay { position: absolute; inset: 0; background: rgba(4,4,7,.66); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s var(--iv-ease); }
.iv-drawer.is-open .iv-drawer__overlay { opacity: 1; }
/* Desktop / tablet: centered modal (scrollable, dark backdrop). */
.iv-drawer__panel {
  position: absolute; top: 50%; left: 50%; width: min(660px, 92vw); max-height: 86vh;
  background: var(--iv-graphite); border: 1px solid var(--iv-line); border-radius: var(--iv-radius-lg);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.85);
  transform: translate(-50%, -47%) scale(.98); opacity: 0;
  transition: transform .4s var(--iv-ease), opacity .3s var(--iv-ease);
  overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 34px 34px calc(34px + env(safe-area-inset-bottom, 0px));
}
.iv-drawer.is-open .iv-drawer__panel { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.iv-drawer__close {
  position: sticky; top: 0; margin-left: auto; margin-bottom: 6px;
  width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--iv-line-strong); background: rgba(255,255,255,.04); color: var(--iv-text);
  transition: .3s var(--iv-ease);
}
.iv-drawer__close:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }
.iv-drawer__close svg { width: 18px; height: 18px; }

.iv-rd__head { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.iv-rd__logo { flex: 0 0 auto; width: 76px; height: 76px; border-radius: 14px; background: #f5f6f8; display: grid; place-items: center; padding: 12px; }
.iv-rd__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.iv-rd__name { font-size: 24px; font-weight: 600; color: #fff; letter-spacing: -0.02em; margin: 0; }
.iv-rd__blurb { color: var(--iv-muted); font-size: 15px; line-height: 1.7; margin: 0 0 26px; }
.iv-rd__block { margin-bottom: 24px; }
.iv-rd__label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--iv-faint); font-weight: 700; margin: 0 0 12px; }
.iv-rd__tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.iv-rd__work { color: var(--iv-text); font-size: 15px; line-height: 1.65; margin: 0; }
/* Drawer gallery: real images only. Covers fill a 16:10 frame full-width;
   portrait app/reel screens are contained, fixed-height and wrap into a
   centred row (no crop, works for 1 or many). */
.iv-rd__gallery { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 0 0 26px; }
.iv-rd__shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--iv-line); background: var(--iv-charcoal); }
.iv-rd__shot--cover { flex: 1 1 100%; aspect-ratio: 16 / 10; }
.iv-rd__shot--cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.iv-rd__shot--portrait { flex: 0 1 auto; display: flex; align-items: center; justify-content: center; padding: 12px; background: radial-gradient(120% 120% at 50% 0, #16161d, #0b0b10); }
.iv-rd__shot--portrait img { width: auto; height: 260px; max-width: 100%; object-fit: contain; display: block; border-radius: 10px; }
.iv-rd__links { display: flex; flex-direction: column; gap: 10px; }
.iv-rd__link {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 18px; border-radius: 12px;
  border: 1px solid var(--iv-line-strong); background: rgba(255,255,255,.03); color: var(--iv-text);
  text-decoration: none; font-size: 14px; font-weight: 600; transition: .3s var(--iv-ease);
}
.iv-rd__link:hover { border-color: rgba(173,47,241,.5); background: rgba(173,47,241,.12); color: #fff; }
.iv-rd__link svg { width: 18px; height: 18px; flex: 0 0 auto; stroke: var(--iv-accent); }

/* Phones: keep the bottom-sheet (unchanged look). */
@media (max-width: 620px) {
  .iv-drawer__panel { width: 100%; left: 0; right: 0; top: auto; bottom: 0; max-height: none; height: 88vh; height: 88svh;
    border: none; border-top: 1px solid var(--iv-line); border-radius: 22px 22px 0 0; opacity: 1;
    transform: translateY(100%); box-shadow: 0 -30px 80px -30px rgba(0,0,0,.85);
    padding: 30px 24px calc(30px + env(safe-area-inset-bottom, 0px)); }
  .iv-drawer.is-open .iv-drawer__panel { transform: translateY(0); }
}

/* =====================================================================
   ABOUT + CONTACT CTA
   ===================================================================== */
.iv-about { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .iv-about { grid-template-columns: 1fr; gap: 36px; } }
.iv-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.iv-stat { padding: 26px; border-radius: var(--iv-radius); border: 1px solid var(--iv-line); background: var(--iv-graphite); }
.iv-stat__n { font-size: 30px; font-weight: 600; color: #fff; letter-spacing: -0.02em; margin: 0 0 6px; }
.iv-stat__n i { color: var(--iv-accent); font-style: normal; }
.iv-stat__l { font-size: 13px; color: var(--iv-muted); margin: 0; line-height: 1.5; }

.iv-cta {
  position: relative; overflow: hidden; border-radius: var(--iv-radius-lg);
  border: 1px solid var(--iv-line); background: var(--iv-graphite);
  padding: 72px 56px; text-align: center;
}
.iv-cta::before { content:""; position:absolute; inset:0; pointer-events:none;
  background: radial-gradient(70% 120% at 50% 0%, rgba(173,47,241,.20), transparent 60%); }
.iv-cta__inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.iv-cta .iv-btn { margin-top: 32px; }
@media (max-width: 620px) { .iv-cta { padding: 48px 24px; } }

/* Small "need" selector shown as premium segmented choice on contact CTA */
.iv-needs { display: inline-flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 26px; }
.iv-needs span { font-size: 13px; color: var(--iv-muted); padding: 8px 16px; border-radius: 100px; border: 1px solid var(--iv-line); }

/* =====================================================================
   BLOG (de-emphasised) — dark restyle of template cards on home
   ===================================================================== */
body.iv-home .mil-blog-card { border: 1px solid var(--iv-line); border-radius: var(--iv-radius); background: var(--iv-surface); overflow: hidden; }
body.iv-home .mil-blog-card .mil-post-descr { padding: 22px 24px 26px; }
body.iv-home .mil-blog-card h4, body.iv-home .mil-blog-card .mil-post-text { color: var(--iv-text); }
body.iv-home .mil-blog-card .mil-post-text { color: var(--iv-muted); }

/* =====================================================================
   FOOTER (and any .mil-dark-bg) on the dark homepage.
   The template fakes dark sections with `backdrop-filter: invert(100%)`,
   which inverts our BLACK page to WHITE. Kill the invert on iv-home and give
   the footer a real deep-black surface so the identity holds to the bottom.
   ===================================================================== */
body.iv-home .mil-dark-bg:before { display: none !important; }
body.iv-home footer.mil-dark-bg {
  background: var(--iv-black);
  border-top: 1px solid var(--iv-line);
}
body.iv-home footer .mil-light-soft,
body.iv-home footer .mil-light-soft a { color: var(--iv-muted) !important; }
body.iv-home footer h6,
body.iv-home footer .mil-muted { color: var(--iv-text) !important; }
body.iv-home footer .mil-footer-menu a,
body.iv-home footer .mil-menu-list a { color: var(--iv-muted) !important; transition: color .3s var(--iv-ease); }
body.iv-home footer .mil-footer-menu a:hover,
body.iv-home footer .mil-menu-list a:hover,
body.iv-home footer .mil-light-soft a:hover { color: var(--iv-accent) !important; }
body.iv-home footer .mil-footer-menu li.mil-active a { color: var(--iv-text) !important; }
body.iv-home footer .mil-divider { background: var(--iv-line); }
body.iv-home footer .mil-social-icons a { color: var(--iv-muted); transition: color .3s var(--iv-ease); }
body.iv-home footer .mil-social-icons a:hover { color: var(--iv-accent); }

/* =====================================================================
   Reveal on scroll (independent of GSAP; respects reduced motion)
   ===================================================================== */
.iv-reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--iv-ease), transform .7s var(--iv-ease); will-change: opacity, transform; }
.iv-reveal.iv-in { opacity: 1; transform: none; }
.iv-reveal[data-d="1"] { transition-delay: .08s; }
.iv-reveal[data-d="2"] { transition-delay: .16s; }
.iv-reveal[data-d="3"] { transition-delay: .24s; }
.iv-reveal[data-d="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .iv-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .iv-hero__media video { display: none !important; }
  .iv-hero__scroll .iv-mouse::after { animation: none; }
  .iv-btn, .iv-work, .iv-pillar, .iv-ref { transition: none; }
}

/* =====================================================================
   PREMIUM DARK — inner Ashley pages (Ürünlerimiz catalog + product detail)
   Scoped to body.iv-inner so the homepage is untouched. Only adapts the
   old light-theme mil-* components; content/images/links are unchanged.
   ===================================================================== */
/* Banner heading + down-arrow */
body.iv-inner .mil-inner-banner h1 { color: #fff; }
body.iv-inner .mil-link.mil-down-arrow span { color: var(--iv-muted); }
/* Breadcrumbs */
body.iv-inner .mil-breadcrumbs li a { color: var(--iv-muted); }
body.iv-inner .mil-breadcrumbs li:after { color: var(--iv-faint); }
body.iv-inner .mil-breadcrumbs li a:hover { color: var(--iv-accent); }
/* Generic headings/copy on these pages read on dark */
body.iv-inner h1, body.iv-inner h2, body.iv-inner h3,
body.iv-inner h4, body.iv-inner h5, body.iv-inner h6 { color: #fff; }
body.iv-inner .mil-p-0-120 p, body.iv-inner .mil-descr p { color: var(--iv-muted); }
/* Suptitle (CTA eyebrow) */
body.iv-inner .mil-suptitle { color: var(--iv-muted); }
body.iv-inner .mil-suptitle.mil-suptitle-dark:before,
body.iv-inner .mil-suptitle:before { background-color: rgba(255,255,255,.18); }

/* Product cover cards — light chip so logos/graphics stay readable on black,
   contained with padding (never cropped), premium border + radius. */
body.iv-inner .mil-portfolio-item .mil-cover-frame,
body.iv-inner .mil-image-frame {
  background: #f5f6f8; border: 1px solid var(--iv-line);
  border-radius: var(--iv-radius); overflow: hidden;
}
body.iv-inner .mil-portfolio-item .mil-cover { background: #f5f6f8; }
body.iv-inner .mil-portfolio-item .mil-cover img,
body.iv-inner .mil-image-frame img { object-fit: contain; padding: 30px; }
/* Card label + title */
body.iv-inner .mil-portfolio-item .mil-label { color: var(--iv-accent); }
body.iv-inner .mil-portfolio-item h4 { color: #fff; transition: color .3s var(--iv-ease); }
body.iv-inner .mil-portfolio-item:hover h4 { color: var(--iv-accent-soft); }

/* Prev / all / next nav + banner arrows (mil-dark = dark-on-light originally) */
body.iv-inner .mil-link.mil-dark { color: #fff; }
body.iv-inner .mil-link.mil-dark svg { background: rgba(255,255,255,.08); }
body.iv-inner .mil-link.mil-dark svg path { fill: #fff; }
body.iv-inner .mil-link.mil-disabled { opacity: .35; }
body.iv-inner .mil-works-nav { border-top: 1px solid var(--iv-line); padding-top: 40px; }

/* =====================================================================
   Homepage mobile tuning (task): Selected Work shows 5 curated cards on
   phones; References becomes a swipeable auto-scroll marquee.
   ===================================================================== */
/* Selected Work: hide the non-mobile cards on phones (desktop keeps all 10). */
@media (max-width: 768px) {
  .iv-work--mhide { display: none !important; }
}

/* Cloned marquee cards are hidden everywhere except the mobile marquee. */
[data-iv-clone] { display: none !important; }

/* References marquee: desktop = normal grid; phones = horizontal strip that
   the user can swipe, with JS auto-scroll (paused on touch, off when the user
   prefers reduced motion). */
@media (max-width: 768px) {
  .iv-ref-grid--marquee {
    display: flex; grid-template-columns: none; flex-wrap: nowrap;
    overflow-x: auto; overflow-y: hidden; gap: 12px; padding-bottom: 6px;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .iv-ref-grid--marquee::-webkit-scrollbar { display: none; }
  .iv-ref-grid--marquee .iv-ref {
    flex: 0 0 auto; width: 46%; min-height: 120px; scroll-snap-align: start;
  }
  .iv-ref-grid--marquee [data-iv-clone] { display: flex !important; }
}

/* Footer / contact map + tel links */
.iv-maplink { color: inherit; text-decoration: none; transition: color .3s var(--iv-ease); }
.iv-maplink:hover { color: #fff; }
.iv-maplink__cta { color: var(--iv-accent-soft); white-space: nowrap; font-weight: 600; }

/* =====================================================================
   Hero: do NOT hide the hero when its ScrollTrigger goes inactive. The pin
   ends at +=2600 but the pin-spacer is scrub(2600)+heroHeight(1 viewport), so
   the hero still occupies the last viewport of its own section as normal flow.
   Hiding it there (an earlier guard) left ONE empty black viewport before the
   next section arrived → the reported black gap. The unpinned hero is normal
   flow and sits ABOVE later sections, so it cannot bleed behind them; no hide
   is needed. `iv-hero-done` is still toggled by JS but intentionally paints
   nothing here. (Regression fix for the scroll-down black gap.)
   ===================================================================== */

/* =====================================================================
   Brand logo image (replaces the text wordmark). Two variants: white "inno"
   for dark surfaces, black "inno" for light. Proportions preserved (contain).
   ===================================================================== */
.iv-logoimg { display: inline-flex; align-items: center; line-height: 0; }
/* Sizing only — do NOT set display here (that would beat the variant swap on
   specificity and show BOTH logos). Also hard-guard against the template's
   dark-bg invert() which otherwise turns the purple mark green. */
.iv-logoimg img { height: 30px; width: auto; filter: none !important; }
/* Variant swap — selectors carry two classes so they always win over
   `.iv-logoimg img`. Default (light pages): black mark. Dark pages: white. */
.iv-logoimg .iv-logoimg__d { display: none; }   /* white — dark backgrounds */
.iv-logoimg .iv-logoimg__l { display: block; }  /* black — light backgrounds */
body.iv-home .iv-logoimg .iv-logoimg__d { display: block; }
body.iv-home .iv-logoimg .iv-logoimg__l { display: none; }
/* The slide-out menu overlay is dark on every page → always use the white mark. */
.mil-menu-frame .iv-logoimg .iv-logoimg__d { display: block; }
.mil-menu-frame .iv-logoimg .iv-logoimg__l { display: none; }
@media (max-width: 992px) { .iv-logoimg img { height: 26px; } }
/* Footer brand mark (footer is always dark). */
.iv-foot-logo img { height: 30px; width: auto; display: block; }

/* Legal identity line (footer) */
.iv-legal { font-size: 11px; letter-spacing: .3px; color: var(--iv-faint); margin-top: 6px; }

/* Global WhatsApp button — fixed, below the modal (z 1000) so it never covers it */
.iv-wa {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 100px; background: #25D366; color: #fff;
  text-decoration: none; font-weight: 600; font-size: 14px; line-height: 1;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.55); transition: transform .3s var(--iv-ease), box-shadow .3s var(--iv-ease);
}
.iv-wa:hover { transform: translateY(-2px); color: #fff; box-shadow: 0 16px 40px -10px rgba(37,211,102,.7); }
.iv-wa svg { width: 22px; height: 22px; fill: #fff; flex: 0 0 auto; }
.iv-wa__t { white-space: nowrap; }
/* Compact (icon-only) on phones so it never covers content/buttons */
@media (max-width: 620px) {
  .iv-wa { right: 14px; bottom: 14px; padding: 13px; }
  .iv-wa__t { display: none; }
}
@media print { .iv-wa { display: none; } }

/* Selected Work cards that have no photo — real brand logo on a light chip
   (used for logo-only references promoted into the showcase, e.g. Selçuk, Hitit). */
.iv-work--show .iv-work__media--logo { background: #f5f6f8; display: flex; align-items: center; justify-content: center; padding: 34px; }
.iv-work--show .iv-work__media--logo img { width: auto; height: auto; max-width: 72%; max-height: 58%; object-fit: contain; }
.iv-work--show .iv-work__media--logo .iv-work__name { color: #14141e; font-weight: 700; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.01em; }

/* Services grid (Ürünler ve Hizmetler page) */
.iv-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 992px) { .iv-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .iv-svc-grid { grid-template-columns: 1fr; } }
.iv-svc {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
  padding: 28px 26px 24px; border-radius: var(--iv-radius);
  border: 1px solid var(--iv-line); background: var(--iv-surface);
  transition: transform .4s var(--iv-ease), border-color .4s var(--iv-ease), background .4s var(--iv-ease);
}
.iv-svc:hover { transform: translateY(-4px); border-color: rgba(173,47,241,.45); background: var(--iv-surface-2); }
.iv-svc__t { color: #fff; font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.iv-svc__d { color: var(--iv-muted); font-size: 14px; line-height: 1.6; margin: 0; }
.iv-svc__ex { color: var(--iv-faint); font-size: 12.5px; letter-spacing: .2px; margin-top: 2px; }
.iv-svc__go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 8px; color: var(--iv-accent-soft); font-weight: 600; font-size: 13px; }
.iv-svc__go svg { width: 15px; height: 15px; transition: transform .35s var(--iv-ease); }
.iv-svc:hover .iv-svc__go svg { transform: translateX(4px); }

/* =====================================================================
   Form inputs: show the user's real letter case (template forced uppercase on
   the VALUE, which looked like it was capitalising their text). Placeholders/
   labels keep their own uppercase styling.
   ===================================================================== */
input, textarea, select { text-transform: none; }

/* Product detail + B2B content is pasted with Tailwind-ish classes
   (text-gray-800, dark:text-white that never activates) or the template's
   light-section text colors → dark text on the dark theme. Force readable
   colors across the whole description column AND the B2B feature/soft-bg cards.
   Using `*` (spec 0,1,0) as the baseline so EVERY descendant is covered;
   headings/strong (spec 0,1,1) win and stay white. */
body.iv-inner .mil-p-0-120 * { color: var(--iv-muted) !important; }
body.iv-inner .mil-p-0-120,
body.iv-inner .mil-p-0-120 h1, body.iv-inner .mil-p-0-120 h2, body.iv-inner .mil-p-0-120 h3,
body.iv-inner .mil-p-0-120 h4, body.iv-inner .mil-p-0-120 h5, body.iv-inner .mil-p-0-120 h6,
body.iv-inner .mil-p-0-120 strong, body.iv-inner .mil-p-0-120 b { color: #fff !important; }
body.iv-inner .mil-p-0-120 a { color: var(--iv-accent-soft) !important; }

/* B2B portal (and any inner) content cards: readable without hover. Cards get a
   dark surface + border so they're visible on the dark page; text is light and
   turns fully white on the accent (hover/active) state. */
body.iv-inner .mil-soft-bg p, body.iv-inner .mil-soft-bg li, body.iv-inner .mil-descr { color: var(--iv-muted) !important; }
body.iv-inner .mil-service-card-lg, body.iv-inner .mil-other-card, body.iv-inner .mil-price-card {
  background: var(--iv-surface); border: 1px solid var(--iv-line);
}
body.iv-inner .mil-service-card-lg *, body.iv-inner .mil-other-card *, body.iv-inner .mil-price-card * { color: rgba(255,255,255,.78) !important; }
body.iv-inner .mil-service-card-lg h1, body.iv-inner .mil-service-card-lg h2, body.iv-inner .mil-service-card-lg h3, body.iv-inner .mil-service-card-lg h4, body.iv-inner .mil-service-card-lg h5,
body.iv-inner .mil-other-card h1, body.iv-inner .mil-other-card h2, body.iv-inner .mil-other-card h3, body.iv-inner .mil-other-card h4, body.iv-inner .mil-other-card h5,
body.iv-inner .mil-price-card h1, body.iv-inner .mil-price-card h2, body.iv-inner .mil-price-card h3, body.iv-inner .mil-price-card h4, body.iv-inner .mil-price-card h5,
body.iv-inner .mil-service-card-lg strong, body.iv-inner .mil-other-card strong, body.iv-inner .mil-price-card strong { color: #fff !important; }
/* keep the accent-label pills purple, not overridden to grey */
body.iv-inner .mil-service-card-lg .mil-accent, body.iv-inner .mil-other-card .mil-accent, body.iv-inner .mil-price-card .mil-accent { color: var(--iv-accent) !important; }
/* hover/active (accent bg) → everything white */
body.iv-inner .mil-service-card-lg:hover, body.iv-inner .mil-other-card:hover,
body.iv-inner .mil-service-card-lg:hover *, body.iv-inner .mil-other-card:hover * { color: #fff !important; }

/* =====================================================================
   Form validation UX (contact + project-start): required marker, inline field
   errors, error summary, invalid highlight.
   ===================================================================== */
.iv-req { color: #ff5470; margin-left: 3px; }
.iv-field-error { display: block; color: #ff6b81; font-size: 12px; letter-spacing: .3px; margin: -20px 0 22px; }
.iv-field-error:empty { display: none; }
.iv-input-invalid { border-bottom-color: #ff5470 !important; }
.iv-form-summary { border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; font-size: 14px;
  background: rgba(255,84,112,.12); border: 1px solid rgba(255,84,112,.4); color: #ff6b81; }
.iv-form-summary:empty { display: none; }
.iv-form-success { border-radius: 12px; padding: 12px 16px; margin: 0 0 24px; font-size: 14px;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.4); color: #34d17a; }

/* Compact form field labels (with required *) — kept small/uppercase to match
   the template's placeholder aesthetic without redesigning the forms. */
.iv-flabel { display: block; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; color: rgba(0,0,0,.55); margin: 0 0 8px; }
body.iv-home .iv-flabel { color: var(--iv-muted); }
.iv-form-note { font-size: 12px; color: rgba(0,0,0,.5); margin: 0 0 24px; }
body.iv-home .iv-form-note { color: var(--iv-muted); }

/* =====================================================================
   Form success popup (contact + project-start) — centered modal shown on a
   successful submit instead of the inline top banner. Above the modal (1000)
   and WhatsApp (900).
   ===================================================================== */
.iv-popup { position: fixed; inset: 0; z-index: 1100; display: none; }
.iv-popup.is-open { display: block; }
.iv-popup__overlay { position: absolute; inset: 0; background: rgba(4,4,7,.66); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .3s var(--iv-ease); }
.iv-popup.is-open .iv-popup__overlay { opacity: 1; }
.iv-popup__card { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -47%) scale(.96); opacity: 0;
  width: min(440px, 92vw); background: var(--iv-graphite); border: 1px solid var(--iv-line);
  border-radius: var(--iv-radius-lg); box-shadow: 0 40px 120px -30px rgba(0,0,0,.85);
  padding: 44px 32px 32px; text-align: center;
  transition: transform .4s var(--iv-ease), opacity .3s var(--iv-ease); }
.iv-popup.is-open .iv-popup__card { transform: translate(-50%, -50%) scale(1); opacity: 1; }
.iv-popup__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  cursor: pointer; border-radius: 50%; border: 1px solid var(--iv-line-strong); background: rgba(255,255,255,.04);
  color: var(--iv-text); transition: .3s var(--iv-ease); }
.iv-popup__close:hover { background: rgba(255,255,255,.1); }
.iv-popup__close svg { width: 16px; height: 16px; }
.iv-popup__icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px;
  border-radius: 50%; background: rgba(37,211,102,.14); color: #34d17a; margin: 0 0 20px; }
.iv-popup__icon svg { width: 32px; height: 32px; }
.iv-popup__msg { color: var(--iv-text); font-size: 16px; line-height: 1.65; margin: 0 0 26px; }
.iv-popup .iv-btn { width: 100%; }

/* =====================================================================
   Mobile-only "scroll for more" hint inside the reference bottom-sheet, so the
   links below the fold are discoverable. Hidden on desktop; fades at the end.
   ===================================================================== */
.iv-drawer__more { display: none; }
@media (max-width: 620px) {
  .iv-drawer__more {
    display: flex; justify-content: center; align-items: flex-end;
    position: sticky; bottom: 8px; margin-top: -48px; height: 40px;
    pointer-events: none; transition: opacity .3s var(--iv-ease), visibility .3s var(--iv-ease);
  }
  .iv-drawer__more svg {
    width: 34px; height: 34px; color: #fff; background: var(--iv-accent-soft);
    border-radius: 50%; padding: 7px; box-shadow: 0 8px 22px -4px var(--iv-accent-glow);
    animation: iv-morebounce 1.5s infinite;
  }
  .iv-drawer.is-end .iv-drawer__more { opacity: 0; visibility: hidden; }
}
@keyframes iv-morebounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
