/* ============================================================
   VIRALMEDIA — vanilla port of motionsites AI_Designer_Agency
   Pure black + Barlow + Instrument Serif italic + liquid glass
   7 sections: Nav · Hero · About · Work · Showcase · CTA · Footer
   ============================================================ */

:root {
  --bg: #000;
  --fg: #fff;
  --card: #171717;
  --muted: #262626;
  --muted-fg: rgba(255,255,255,.75);
  --border: #333;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { width: 100%; min-height: 100%; background: var(--bg); color: var(--fg); font-family: "Barlow", -apple-system, BlinkMacSystemFont, sans-serif; -webkit-font-smoothing: antialiased; }
img, video, svg { display: block; max-width: 100%; }
button, a { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; text-decoration: none; }
ul { list-style: none; }
.vm-italic { font-family: "Instrument Serif", serif; font-style: italic; font-weight: 400; }

/* Banner */
.vm-banner {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,.78); color: rgba(255,255,255,.78);
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  text-align: center; padding: 6px 16px; backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

/* Liquid Glass — spec exact */
.liquid-glass {
  background: rgba(255,255,255,.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: none;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.1);
  position: relative;
  overflow: hidden;
}
.liquid-glass::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.45) 0%,
    rgba(255,255,255,.15) 20%,
    transparent 40%, transparent 60%,
    rgba(255,255,255,.15) 80%,
    rgba(255,255,255,.45) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.liquid-glass-strong {
  background: rgba(255,255,255,.01);
  background-blend-mode: luminosity;
  backdrop-filter: blur(50px);
  -webkit-backdrop-filter: blur(50px);
  border: none;
  box-shadow: 4px 4px 4px rgba(0,0,0,.05), inset 0 1px 1px rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.liquid-glass-strong::before {
  content: ""; position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgba(255,255,255,.5) 0%,
    rgba(255,255,255,.2) 20%,
    transparent 40%, transparent 60%,
    rgba(255,255,255,.2) 80%,
    rgba(255,255,255,.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

/* NAVBAR */
.vm-nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 24px 32px;
  margin-top: 24px;
}
.vm-logo {
  font-size: 20px; font-weight: 600;
  letter-spacing: -.025em;
}
.vm-nav-links {
  display: flex; gap: 8px;
}
.vm-nav-links a {
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  border-radius: 4px;
  transition: background .2s;
}
.vm-nav-links a:hover { background: rgba(255,255,255,.10); }
.vm-cta-pill {
  padding: 10px 24px;
  font-size: 13px; font-weight: 500;
  border-radius: 999px;
  color: #fff;
}

/* HERO */
.vm-hero {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
}
.vm-hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: bottom;
}
.vm-hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 280px;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
  pointer-events: none;
}
.vm-hero-content {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 10;
  padding: 0 32px 80px;
  display: flex; flex-direction: column;
  max-width: 1100px;
  margin: 0 auto;
}
.vm-avatar-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.vm-avatars {
  display: flex;
}
.vm-avatars img {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  object-fit: cover;
}
.vm-avatars img + img { margin-left: -8px; }
.vm-avatar-text {
  color: var(--muted-fg);
  font-size: 14px;
}
.vm-hero-title {
  font-size: clamp(36px, 5.6vw, 80px);
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1.05;
  color: #fff;
  max-width: 1000px;
}
.vm-hero-sub {
  margin-top: 16px;
  color: var(--muted-fg);
  font-size: clamp(14px, 1.2vw, 18px);
  max-width: 540px;
}
.vm-hero-form {
  margin-top: 32px;
  border-radius: 999px;
  padding: 8px;
  display: flex; align-items: center;
  max-width: 520px;
  width: 100%;
}
.vm-hero-input {
  flex: 1;
  background: transparent;
  color: #fff;
  padding: 12px 18px;
  font-size: 14px;
  outline: none;
}
.vm-hero-input::placeholder { color: rgba(255,255,255,.4); }
.vm-hero-submit {
  background: #fff; color: #000;
  font-size: 12px; font-weight: 600;
  letter-spacing: .12em;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform .12s ease;
}
.vm-hero-submit:hover { transform: scale(1.03); }
.vm-hero-submit:active { transform: scale(.98); }

/* ABOUT */
.vm-about {
  background: var(--bg);
  padding: 128px 32px;
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.vm-about-text {
  font-size: clamp(28px, 3.4vw, 48px);
  font-weight: 500;
  letter-spacing: -.022em;
  line-height: 1.4;
}
.vm-about-text .vm-word {
  display: inline-block;
  margin: 0 .12em;
  color: rgba(255,255,255,.15);
  transition: color .35s ease;
  will-change: color;
}
.vm-about-text .vm-word.is-on { color: rgba(255,255,255,1); }

/* SELECTED WORK */
.vm-work {
  background: var(--bg);
  padding: 128px 32px 64px;
  max-width: 1280px;
  margin: 0 auto;
}
.vm-work-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -.025em;
  text-align: center;
  margin-bottom: 14px;
}
.vm-work-sub {
  color: var(--muted-fg);
  font-size: 17px;
  text-align: center;
  max-width: 540px;
  margin: 0 auto 64px;
}
.vm-work-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.vm-project {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s ease;
  transition-delay: calc(var(--i) * .1s);
}
.vm-project.is-on { opacity: 1; transform: translateY(0); }
.vm-project-img {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  background: #0c0c0c;
}
.vm-project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vm-project-title {
  margin-top: 16px;
  font-size: 20px; font-weight: 500;
}
.vm-project-cat {
  margin-top: 4px;
  color: var(--muted-fg);
  font-size: 14px;
}

/* VIDEO SHOWCASE — parallax overlap */
.vm-showcase {
  position: relative;
  width: 100%; height: 650px;
  overflow: hidden;
  margin-top: -325px;
  z-index: 0;
}
.vm-showcase-video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.vm-showcase-fade-top, .vm-showcase-fade-bot {
  position: absolute; left: 0; right: 0;
  height: 130px; z-index: 10;
  pointer-events: none;
}
.vm-showcase-fade-top {
  top: 0;
  background: linear-gradient(to bottom, var(--bg), transparent);
}
.vm-showcase-fade-bot {
  bottom: 0;
  background: linear-gradient(to top, var(--bg), transparent);
}

/* CTA */
.vm-cta {
  position: relative;
  width: 100%; height: 100vh;
  overflow: hidden;
  z-index: 10;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.vm-cta-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.vm-cta-overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background: rgba(0,0,0,.30);
}
.vm-cta-overlay::before, .vm-cta-overlay::after {
  content: ""; position: absolute; left: 0; right: 0;
  height: 160px;
  pointer-events: none;
}
.vm-cta-overlay::before { top: 0; background: linear-gradient(to bottom, var(--bg), transparent); }
.vm-cta-overlay::after  { bottom: 0; background: linear-gradient(to top, var(--bg), transparent); }
.vm-cta-content {
  position: relative;
  z-index: 10;
  max-width: 760px;
  padding: 0 32px;
}
.vm-cta-title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -.022em;
  margin-bottom: 24px;
  line-height: 1.05;
}
.vm-cta-sub {
  color: var(--muted-fg);
  font-size: clamp(15px, 1.2vw, 18px);
  margin-bottom: 40px;
}
.vm-cta-actions {
  display: flex; justify-content: center; gap: 16px;
  flex-wrap: wrap;
}
.vm-cta-primary, .vm-cta-secondary {
  padding: 16px 40px;
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: transform .15s ease;
}
.vm-cta-primary {
  background: #fff;
  color: #000;
}
.vm-cta-secondary {
  color: #fff;
}
.vm-cta-primary:hover, .vm-cta-secondary:hover { transform: scale(1.02); }

/* FOOTER */
.vm-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 32px;
}
.vm-foot-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
}
.vm-foot-brand p {
  margin-top: 12px;
  color: var(--muted-fg);
  font-size: 14px;
  line-height: 1.55;
}
.vm-foot-logo {
  font-size: 18px; font-weight: 600;
  letter-spacing: -.025em;
}
.vm-foot-col h4 {
  font-size: 14px; font-weight: 600;
  margin-bottom: 12px;
}
.vm-foot-col ul li {
  margin-bottom: 8px;
}
.vm-foot-col a {
  color: var(--muted-fg);
  font-size: 14px;
  transition: color .2s;
}
.vm-foot-col a:hover { color: #fff; }
.vm-foot-bar {
  max-width: 1280px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted-fg);
}
.vm-foot-legal { display: flex; gap: 24px; }
.vm-foot-legal a { color: var(--muted-fg); }
.vm-foot-legal a:hover { color: #fff; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .vm-nav-links { display: none; }
  .vm-work-grid { grid-template-columns: 1fr; }
  .vm-foot-grid { grid-template-columns: repeat(2, 1fr); }
  .vm-hero-video { transform: translateY(-100px); }
}
@media (max-width: 640px) {
  .vm-banner { font-size: 9px; padding: 5px 10px; }
  .vm-nav { padding: 16px 18px; margin-top: 12px; }
  .vm-cta-pill { padding: 8px 16px; font-size: 12px; }
  .vm-hero-content { padding: 0 18px 48px; }
  .vm-hero-title { font-size: clamp(28px, 7vw, 44px); }
  .vm-about { padding: 80px 18px; }
  .vm-work { padding: 80px 18px 32px; }
  .vm-showcase { height: 380px; margin-top: -180px; }
  .vm-cta-actions { flex-direction: column; align-items: stretch; }
  .vm-foot-grid { grid-template-columns: 1fr; gap: 32px; }
  .vm-foot-bar { flex-direction: column; gap: 12px; }
}
