/* ===============================
   RAED MASRI — VIDEO EDITOR PORTFOLIO
   Client-ready portfolio design system
================================= */

:root {
  color-scheme: light;
  --bg: #f6f8fc;
  --bg-soft: #eef3f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --text: #101828;
  --text-soft: #344054;
  --muted: #667085;
  --muted-2: #8a94a6;
  --line: rgba(16, 24, 40, 0.11);
  --line-strong: rgba(16, 24, 40, 0.17);
  --accent: #0ea5e9;
  --accent-2: #7c3aed;
  --accent-3: #f59e0b;
  --success: #16a34a;
  --danger: #e11d48;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 20px 55px rgba(16, 24, 40, 0.12);
  --shadow-lg: 0 34px 90px rgba(16, 24, 40, 0.16);
  --radius-md: 20px;
  --radius-xl: 36px;
  --container: 1160px;
  --section: 112px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #07090f;
    --bg-soft: #0d111c;
    --surface: rgba(255, 255, 255, 0.075);
    --surface-strong: rgba(255, 255, 255, 0.12);
    --text: #f8fafc;
    --text-soft: #dbeafe;
    --muted: #a7b0c3;
    --muted-2: #7d8798;
    --line: rgba(255, 255, 255, 0.14);
    --line-strong: rgba(255, 255, 255, 0.24);
    --accent: #22d3ee;
    --accent-2: #8b5cf6;
    --accent-3: #f59e0b;
    --success: #4ade80;
    --danger: #fb7185;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 16px 42px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-lg: 0 36px 110px rgba(0, 0, 0, 0.48);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 8% 8%, rgba(14, 165, 233, 0.13), transparent 32rem),
    radial-gradient(circle at 92% 7%, rgba(124, 58, 237, 0.12), transparent 34rem),
    radial-gradient(circle at 50% 98%, rgba(245, 158, 11, 0.11), transparent 36rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 34%, var(--bg) 100%);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  body {
    background:
      radial-gradient(circle at 12% 10%, rgba(34, 211, 238, 0.18), transparent 34rem),
      radial-gradient(circle at 88% 8%, rgba(139, 92, 246, 0.18), transparent 32rem),
      radial-gradient(circle at 50% 95%, rgba(245, 158, 11, 0.1), transparent 38rem),
      var(--bg);
  }
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img,
video {
  display: block;
  max-width: 100%;
}

::selection {
  color: #ffffff;
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  transform: translateY(-140%);
  padding: 12px 16px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--text);
  font-weight: 900;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.noise,
.site-glow {
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(16, 24, 40, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 24, 40, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}

@media (prefers-color-scheme: dark) {
  .noise {
    opacity: 0.13;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  }
}

.site-glow {
  position: fixed;
  z-index: -2;
  width: 440px;
  height: 440px;
  border-radius: 999px;
  filter: blur(86px);
  opacity: 0.22;
}

.site-glow-one {
  left: -180px;
  top: 260px;
  background: var(--accent-2);
}

.site-glow-two {
  right: -180px;
  top: 80px;
  background: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .site-glow {
    opacity: 0.34;
  }
}

/* Header */

.header {
  position: sticky;
  top: 16px;
  z-index: 100;
  width: min(var(--container), calc(100% - 32px));
  height: 68px;
  margin: 16px auto 0;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .header {
    background: rgba(7, 9, 15, 0.72);
  }
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 900;
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  box-shadow: 0 14px 34px rgba(14, 165, 233, 0.24);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .logo-mark {
    color: #06111f;
    background: linear-gradient(135deg, #67e8f9, #fbbf24);
    box-shadow: 0 14px 34px rgba(34, 211, 238, 0.28);
  }
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  padding: 10px 13px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--text);
  background: rgba(14, 165, 233, 0.09);
  transform: translateY(-1px);
}

@media (prefers-color-scheme: dark) {
  .nav a:hover,
  .nav a:focus-visible {
    background: rgba(255, 255, 255, 0.09);
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.62);
}

@media (prefers-color-scheme: dark) {
  .nav-toggle {
    background: rgba(255, 255, 255, 0.07);
  }
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.22s ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Common */

.section {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: var(--section) 0;
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 52px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 12px;
  border: 1px solid rgba(14, 165, 233, 0.24);
  border-radius: 999px;
  color: #0369a1;
  background: rgba(14, 165, 233, 0.08);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .eyebrow {
    border-color: rgba(34, 211, 238, 0.35);
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
  }
}

.section-heading h2,
.contact-section h2,
.about-card h2 {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 4.1rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.section-heading p,
.contact-section p,
.about-card p {
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.78;
}

.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s var(--ease),
    border-color 0.22s var(--ease),
    color 0.22s var(--ease);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  box-shadow: 0 18px 44px rgba(14, 165, 233, 0.23);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 24px 62px rgba(14, 165, 233, 0.3);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(14, 165, 233, 0.42);
  background: #ffffff;
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #06111f;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
  }

  .btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.07);
  }

  .btn-secondary:hover,
  .btn-secondary:focus-visible {
    border-color: rgba(34, 211, 238, 0.55);
    background: rgba(34, 211, 238, 0.12);
  }
}

/* Hero */

.hero {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  align-items: center;
  gap: 58px;
  padding-top: 92px;
}

.hero-content {
  max-width: 780px;
}

.status-pill,
.hero-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
}

.status-pill {
  gap: 10px;
  margin-bottom: 20px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow-xs);
  font-size: 0.9rem;
  font-weight: 800;
}

@media (prefers-color-scheme: dark) {
  .status-pill {
    background: rgba(255, 255, 255, 0.07);
  }
}

.status-dot {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.13);
  animation: statusPulse 1.9s ease-in-out infinite;
}

.hero-kicker {
  margin-bottom: 16px;
  color: #0369a1;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (prefers-color-scheme: dark) {
  .hero-kicker {
    color: var(--accent);
  }
}

.hero h1 {
  max-width: 900px;
  color: var(--text);
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.hero-text {
  max-width: 680px;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-points,
.trust-grid,
.best-for-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hero-points {
  margin-top: 44px;
  gap: 14px;
}

.hero-points article,
.trust-card,
.best-for-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.82)),
    rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-sm);
}

@media (prefers-color-scheme: dark) {
  .hero-points article,
  .trust-card,
  .best-for-card {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.035);
  }
}

.hero-points strong,
.hero-points span {
  display: block;
}

.hero-points strong,
.trust-card h3,
.best-for-card h3 {
  color: var(--text);
  font-size: 1.02rem;
  letter-spacing: -0.025em;
}

.hero-points span,
.trust-card p,
.best-for-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.hero-visual {
  position: relative;
}

.editor-card {
  position: relative;
  min-height: 610px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(240, 249, 255, 0.72) 48%, rgba(250, 245, 255, 0.76)),
    rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .editor-card {
    background:
      linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(139, 92, 246, 0.1) 48%, rgba(245, 158, 11, 0.08)),
      rgba(255, 255, 255, 0.05);
  }
}

.editor-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 12%, rgba(14, 165, 233, 0.16), transparent 18rem),
    radial-gradient(circle at 92% 28%, rgba(124, 58, 237, 0.13), transparent 18rem);
}

.editor-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 8px;
  padding: 10px 10px 16px;
}

.editor-topbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.18);
}

@media (prefers-color-scheme: dark) {
  .editor-topbar span {
    background: var(--surface-strong);
  }
}

.preview-screen {
  position: relative;
  z-index: 2;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #020617;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 390px;
  object-fit: cover;
}

.preview-screen::after,
.video-thumb::after,
.featured-reel-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at center, transparent, rgba(0, 0, 0, 0.28)),
    linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 64%);
  pointer-events: none;
}

.hero-play,
.featured-play,
.play-btn {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  transition:
    transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    background 0.22s ease;
}

.hero-play {
  inset: 50% auto auto 50%;
  width: 82px;
  height: 82px;
  transform: translate(-50%, -50%);
}

.hero-play:hover,
.hero-play:focus-visible {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 30px 86px rgba(0, 0, 0, 0.42);
}

.preview-caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 3;
}

.preview-caption span,
.preview-caption strong {
  display: block;
}

.preview-caption span {
  color: #67e8f9;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.preview-caption strong {
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.timeline {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 11px;
  margin-top: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .timeline {
    background: rgba(0, 0, 0, 0.22);
  }
}

.track {
  height: 20px;
  border-radius: 999px;
  background: rgba(16, 24, 40, 0.12);
}

@media (prefers-color-scheme: dark) {
  .track {
    background: var(--surface-strong);
  }
}

.track-one {
  width: 92%;
  background: linear-gradient(90deg, var(--accent), rgba(14, 165, 233, 0.16));
}

.track-two {
  width: 72%;
  margin-left: 20%;
  background: linear-gradient(90deg, var(--accent-2), rgba(124, 58, 237, 0.16));
}

.track-three {
  width: 80%;
  background: linear-gradient(90deg, var(--accent-3), rgba(245, 158, 11, 0.16));
}

.track-four {
  width: 55%;
  margin-left: 37%;
  background: linear-gradient(90deg, var(--danger), rgba(225, 29, 72, 0.14));
}

.playhead {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 28%;
  width: 2px;
  background: #0f172a;
  box-shadow: 0 0 18px rgba(15, 23, 42, 0.38);
  animation: playhead 4.5s ease-in-out infinite;
}

@media (prefers-color-scheme: dark) {
  .playhead {
    background: #ffffff;
    box-shadow: 0 0 22px rgba(255, 255, 255, 0.9);
  }
}

.floating-badge {
  position: absolute;
  z-index: 4;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
  font-size: 0.78rem;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .floating-badge {
    background: rgba(7, 9, 15, 0.72);
  }
}

.badge-one {
  left: -18px;
  top: 35%;
}

.badge-two {
  right: -28px;
  top: 49%;
}

.badge-three {
  left: 34%;
  bottom: 34px;
}

/* Proof strip */

.proof-strip {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 0;
}

.proof-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.proof-strip-inner span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-xs);
  font-size: 0.82rem;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .proof-strip-inner span {
    background: rgba(255, 255, 255, 0.055);
  }
}

/* Featured reel and work */

.featured-reel {
  padding-top: 86px;
}

.featured-reel-card,
.video-card {
  display: grid;
  gap: 34px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.86)),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.featured-reel-card {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
}

.video-grid {
  display: grid;
  gap: 48px;
}

.video-card {
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  align-items: stretch;
}

@media (prefers-color-scheme: dark) {
  .featured-reel-card,
  .video-card {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.032)),
      rgba(255, 255, 255, 0.04);
  }
}

.featured-reel-thumb,
.video-thumb {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--bg-soft);
  overflow: hidden;
  cursor: pointer;
}

.featured-reel-thumb {
  min-height: 420px;
}

.video-thumb {
  min-height: 330px;
}

.featured-reel-thumb img,
.video-thumb img,
.video-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.45s var(--ease),
    filter 0.45s var(--ease);
}

.video-card:hover .video-thumb img,
.video-card:hover .video-thumb-video {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.featured-play,
.play-btn {
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.featured-play {
  width: 84px;
  height: 84px;
}

.play-btn {
  width: 74px;
  height: 74px;
}

.featured-reel-thumb:hover .featured-play,
.featured-reel-thumb:focus-visible .featured-play,
.play-btn:hover,
.play-btn:focus-visible {
  transform: translate(-50%, -50%) scale(1.07);
  background: #ffffff;
}

.featured-reel-content,
.video-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 18px;
}

.featured-reel-content h3,
.video-info h3 {
  max-width: 650px;
  color: var(--text);
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.featured-reel-content p,
.video-info p {
  max-width: 640px;
  margin-top: 18px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.project-breakdown,
.project-mini-details {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.project-breakdown div,
.project-mini-details div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

@media (prefers-color-scheme: dark) {
  .project-breakdown div,
  .project-mini-details div {
    background: rgba(255, 255, 255, 0.045);
  }
}

.project-breakdown strong,
.project-mini-details strong {
  color: var(--text);
  font-size: 0.84rem;
}

.project-breakdown span,
.project-mini-details span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.video-card:nth-child(even) {
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}

.video-card:nth-child(even) .video-thumb {
  order: 2;
}

.video-meta,
.video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.video-meta {
  margin-bottom: 18px;
}

.video-meta span,
.video-tags span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

.video-meta span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  color: var(--text-soft);
  background: rgba(14, 165, 233, 0.07);
}

@media (prefers-color-scheme: dark) {
  .video-meta span {
    background: rgba(255, 255, 255, 0.055);
  }
}

.video-tags {
  margin-top: 22px;
}

.video-tags span {
  padding: 9px 11px;
  color: #075985;
  background: rgba(14, 165, 233, 0.09);
}

@media (prefers-color-scheme: dark) {
  .video-tags span {
    color: var(--text-soft);
    background: rgba(34, 211, 238, 0.1);
  }
}

.watch-link {
  width: fit-content;
  margin-top: 28px;
}

/* Cards */

.service-grid,
.case-study-grid,
.process-grid {
  display: grid;
  gap: 18px;
}

.service-grid,
.process-grid {
  grid-template-columns: repeat(4, 1fr);
}

.case-study-grid,
.trust-grid,
.best-for-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card,
.process-card,
.case-study-card,
.trust-card,
.best-for-card,
.about-card,
.toolbox,
.contact-section,
.faq-item {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.86)),
    rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(18px);
}

@media (prefers-color-scheme: dark) {
  .service-card,
  .process-card,
  .case-study-card,
  .trust-card,
  .best-for-card,
  .about-card,
  .toolbox,
  .contact-section,
  .faq-item {
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.028)),
      rgba(255, 255, 255, 0.04);
  }
}

.service-card,
.process-card,
.case-study-card,
.trust-card,
.best-for-card {
  padding: 26px;
  border-radius: 30px;
}

.service-card {
  min-height: 310px;
  transition:
    transform 0.22s var(--ease),
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.service-card:hover,
.case-study-card:hover,
.best-for-card:hover {
  transform: translateY(-5px);
  border-color: rgba(14, 165, 233, 0.3);
  background:
    linear-gradient(135deg, rgba(240, 249, 255, 1), rgba(250, 245, 255, 0.92)),
    #ffffff;
  box-shadow: var(--shadow-md);
}

@media (prefers-color-scheme: dark) {
  .service-card:hover,
  .case-study-card:hover,
  .best-for-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    background:
      linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(139, 92, 246, 0.06)),
      rgba(255, 255, 255, 0.05);
  }
}

.service-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 34px;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(135deg, #0284c7, #7c3aed);
  box-shadow: 0 12px 28px rgba(14, 165, 233, 0.22);
  font-size: 0.9rem;
  font-weight: 950;
}

@media (prefers-color-scheme: dark) {
  .service-icon {
    color: #06111f;
    background: linear-gradient(135deg, var(--accent), var(--accent-3));
  }
}

.service-card h3,
.process-card h3,
.case-study-card h3,
.trust-card h3,
.best-for-card h3 {
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.service-card p,
.process-card p,
.case-study-card p,
.trust-card p,
.best-for-card p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.7;
}

.case-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 22px;
  padding: 8px 10px;
  border-radius: 999px;
  color: #075985;
  background: rgba(14, 165, 233, 0.1);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (prefers-color-scheme: dark) {
  .case-label {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
  }
}

.case-study-card ul {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.process-section,
.faq-section {
  padding-top: 84px;
}

.process-card {
  min-height: 260px;
}

.process-card span {
  display: inline-flex;
  margin-bottom: 42px;
  color: #0369a1;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0.12em;
}

@media (prefers-color-scheme: dark) {
  .process-card span {
    color: var(--accent);
  }
}

/* About / FAQ / Contact */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: 24px;
}

.about-card,
.toolbox {
  border-radius: var(--radius-xl);
  padding: 34px;
}

.about-points {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.about-points div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(248, 250, 252, 0.84);
}

@media (prefers-color-scheme: dark) {
  .about-points div {
    background: rgba(255, 255, 255, 0.045);
  }
}

.about-points strong {
  color: var(--text);
  font-size: 0.95rem;
}

.about-points span {
  color: var(--muted);
  line-height: 1.55;
}

.toolbox h3 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.7rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.tool-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-grid span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-soft);
  background: rgba(248, 250, 252, 0.84);
  font-size: 0.82rem;
  font-weight: 900;
}

@media (prefers-color-scheme: dark) {
  .tool-grid span {
    background: rgba(255, 255, 255, 0.055);
  }
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.faq-item {
  border-radius: 24px;
  padding: 0;
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  color: #0369a1;
  font-size: 1.4rem;
  line-height: 1;
}

@media (prefers-color-scheme: dark) {
  .faq-item summary::after {
    color: var(--accent);
  }
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  padding: 0 22px 22px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 34px;
  padding: 46px;
  border-radius: 40px;
  background:
    radial-gradient(circle at 12% 12%, rgba(14, 165, 233, 0.13), transparent 25rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.88)),
    rgba(255, 255, 255, 0.9);
}

@media (prefers-color-scheme: dark) {
  .contact-section {
    background:
      radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.18), transparent 25rem),
      linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
      rgba(255, 255, 255, 0.05);
  }
}

.contact-section h2 {
  max-width: 780px;
}

.contact-section p {
  max-width: 680px;
}

.contact-panel {
  display: grid;
  gap: 12px;
}

.contact-panel .btn {
  width: 100%;
}

.contact-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 16px;
}

.footer a {
  color: var(--text-soft);
  font-weight: 800;
  transition: color 0.2s ease;
}

.footer a:hover,
.footer a:focus-visible {
  color: #0369a1;
}

@media (prefers-color-scheme: dark) {
  .footer a:hover,
  .footer a:focus-visible {
    color: var(--accent);
  }
}

/* Modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  place-items: center;
  padding: 24px;
}

.modal.is-open {
  display: grid;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(14px);
}

@media (prefers-color-scheme: dark) {
  .modal-backdrop {
    background: rgba(0, 0, 0, 0.78);
  }
}

.modal-content {
  position: relative;
  z-index: 2;
  width: min(980px, 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (prefers-color-scheme: dark) {
  .modal-content {
    background: #020617;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 18px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.modal-close {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  background: rgba(248, 250, 252, 0.9);
  font-size: 1.7rem;
  line-height: 1;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: rotate(4deg);
  background: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .modal-close {
    background: rgba(255, 255, 255, 0.08);
  }

  .modal-close:hover,
  .modal-close:focus-visible {
    background: rgba(255, 255, 255, 0.14);
  }
}

.modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.modal-player iframe,
.modal-player video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000000;
}

.youtube-fallback-link {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  padding: 10px 14px;
  border-radius: 999px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.94);
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.youtube-fallback-link:hover,
.youtube-fallback-link:focus-visible {
  background: #ffffff;
}

/* Animation */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.13);
  }

  50% {
    transform: scale(1.22);
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
  }
}

@keyframes playhead {
  0%,
  100% {
    left: 20%;
  }

  50% {
    left: 76%;
  }
}

/* Responsive */

@media (max-width: 1100px) {
  :root {
    --section: 92px;
  }

  .hero,
  .about-layout,
  .contact-section,
  .featured-reel-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 84px;
  }

  .hero-content {
    max-width: none;
  }

  .hero-visual {
    max-width: 720px;
    width: 100%;
    margin: 0 auto;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .video-card,
  .video-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .video-card:nth-child(even) .video-thumb {
    order: initial;
  }

  .contact-panel {
    max-width: 440px;
  }
}

@media (max-width: 820px) {
  .hero-points,
  .case-study-grid,
  .trust-grid,
  .best-for-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-points article,
  .trust-card,
  .best-for-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 92px;
  }

  .header {
    top: 10px;
    width: calc(100% - 20px);
    height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: grid;
    gap: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease;
  }

  @media (prefers-color-scheme: dark) {
    .nav {
      background: rgba(7, 9, 15, 0.94);
    }
  }

  .nav.nav-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  .nav a {
    justify-content: center;
    padding: 15px 16px;
    border-radius: 16px;
    text-align: center;
  }

  .section {
    width: min(100% - 24px, var(--container));
    padding: 78px 0;
  }

  .hero {
    gap: 36px;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 13vw, 4.7rem);
    line-height: 1.03;
    letter-spacing: -0.045em;
  }

  .service-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .editor-card {
    min-height: auto;
    border-radius: 30px;
  }

  .preview-screen,
  .featured-reel-thumb {
    min-height: 300px;
  }

  .hero-video {
    height: 300px;
  }

  .timeline {
    padding: 18px;
  }

  .floating-badge {
    display: none;
  }

  .video-grid {
    gap: 34px;
  }

  .video-card {
    gap: 20px;
  }

  .video-thumb {
    min-height: 250px;
  }

  .featured-reel-content,
  .video-info {
    padding: 12px;
  }

  .project-breakdown div,
  .project-mini-details div,
  .about-points div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .about-card,
  .toolbox,
  .contact-section {
    padding: 25px;
    border-radius: 30px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-actions,
  .contact-panel {
    width: 100%;
  }

  .hero-actions .btn,
  .contact-panel .btn {
    width: 100%;
  }

  .status-pill {
    align-items: center;
    gap: 9px;
    border-radius: 18px;
    line-height: 1.35;
  }

  .status-dot {
    flex: 0 0 auto;
    margin-top: 0;
  }

  .hero-play,
  .featured-play {
    width: 68px;
    height: 68px;
  }

  .preview-caption {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .video-card,
  .featured-reel-card {
    padding: 16px;
    border-radius: 28px;
  }

  .video-grid {
    gap: 30px;
  }

  .video-thumb {
    min-height: 220px;
    border-radius: 22px;
  }

  .modal {
    padding: 12px;
  }

  .modal-content {
    border-radius: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
