/* MEDIA Video Factory — marketing site */
:root {
  --ink: #0f1c16;
  --ink-soft: #24352c;
  --paper: #f2f6f3;
  --mist: #dce8e0;
  --field: #1a6b4a;
  --field-deep: #0f4a33;
  --copper: #c65d2e;
  --copper-deep: #9a4520;
  --line: rgba(15, 28, 22, 0.12);
  --glow: rgba(26, 107, 74, 0.18);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --max: 1120px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--glow), transparent 55%),
    radial-gradient(900px 500px at -10% 30%, rgba(198, 93, 46, 0.08), transparent 50%),
    linear-gradient(180deg, #e8f0eb 0%, var(--paper) 28%, #eef3ef 100%);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 1.05rem;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, a.btn { cursor: pointer; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(242, 246, 243, 0.82);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  text-decoration: none;
  color: var(--ink);
}
.brand span { color: var(--field); }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--field);
}
.nav-cta {
  margin-left: 0.4rem;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.45rem 0.7rem;
  font: inherit;
  font-weight: 700;
  font-size: 0.85rem;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible {
  outline: 2px solid var(--field);
  outline-offset: 3px;
}
.btn-primary {
  background: var(--copper);
  color: #fff;
  border-color: var(--copper-deep);
}
.btn-primary:hover { background: var(--copper-deep); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: #fff; }
.btn-field {
  background: var(--field);
  color: #fff;
  border-color: var(--field-deep);
}
.btn-field:hover { background: var(--field-deep); }
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: grid;
  align-items: end;
  padding: 3.5rem 0 4rem;
  overflow: hidden;
}
.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, rgba(15, 28, 22, 0.88) 0%, rgba(15, 74, 51, 0.72) 42%, rgba(15, 28, 22, 0.55) 100%),
    repeating-linear-gradient(
      90deg,
      transparent 0 48px,
      rgba(255, 255, 255, 0.035) 48px 49px
    ),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(198, 93, 46, 0.35), transparent 60%);
}
.hero-plane::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to top, var(--paper), transparent);
}
.hero-frame {
  position: absolute;
  right: max(4vw, calc((100% - var(--max)) / 2));
  top: 18%;
  width: min(42vw, 480px);
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 40%),
    linear-gradient(180deg, #163528, #0c1812);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  z-index: 1;
  overflow: hidden;
}
.hero-frame .reel {
  position: absolute;
  inset: 12% 8%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.hero-frame .cell {
  background: linear-gradient(160deg, #2a5543, #152820);
  opacity: 0.9;
  animation: pulse-cell 4.8s var(--ease) infinite;
}
.hero-frame .cell:nth-child(2) { animation-delay: 0.4s; background: linear-gradient(160deg, #3d6b52, #1a3328); }
.hero-frame .cell:nth-child(3) { animation-delay: 0.8s; background: linear-gradient(160deg, #c65d2e55, #2a2018); }
.hero-frame .cell:nth-child(4) { animation-delay: 1.2s; }
.hero-frame .cell:nth-child(5) { animation-delay: 1.6s; background: linear-gradient(160deg, #4a7d62, #1e3a2c); }
.hero-frame .cell:nth-child(6) { animation-delay: 2s; }
.hero-frame .scan {
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.45);
  animation: scan 3.6s linear infinite;
}
@keyframes scan {
  from { top: 8%; opacity: 0; }
  10% { opacity: 1; }
  to { top: 90%; opacity: 0; }
}
@keyframes pulse-cell {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.18); }
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 34rem;
  color: #f5faf7;
  padding-bottom: 1rem;
}
.hero-copy .brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.5rem);
  letter-spacing: -0.05em;
  line-height: 0.92;
  margin: 0 0 1rem;
}
.hero-copy .brand-mark em {
  font-style: normal;
  color: #8fd4b0;
}
.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.85rem;
  max-width: 18ch;
}
.hero-copy p {
  margin: 0;
  max-width: 36ch;
  color: rgba(245, 250, 247, 0.82);
  font-size: 1.05rem;
}
.hero .btn-row .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

/* ——— Sections ——— */
.section {
  padding: 4.5rem 0;
}
.section-tight { padding: 3rem 0; }
.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
  max-width: 18ch;
}
.section .lead {
  margin: 0 0 2rem;
  max-width: 46ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }

.visual-block {
  min-height: 280px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(26, 107, 74, 0.12), transparent 50%),
    #fff;
  position: relative;
  overflow: hidden;
}
.visual-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 18px,
      rgba(15, 28, 22, 0.03) 18px 19px
    );
}
.visual-caption {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  right: 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  z-index: 1;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.feature-list li {
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0.25rem;
}
.feature-list li:last-child { border-bottom: 1px solid var(--line); }
.feature-list strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.feature-list span {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Capability grid — not “cards”; plain rows with divider */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.cap-item {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 180ms var(--ease);
}
.cap-item:nth-child(3n) { border-right: none; padding-right: 0; }
.cap-item:hover { background: rgba(255, 255, 255, 0.45); }
.cap-item h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}
.cap-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  max-width: 28ch;
}
.cap-item .more {
  display: inline-block;
  margin-top: 0.85rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--field);
}

/* Page hero (inner) */
.page-hero {
  padding: 3.5rem 0 2rem;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  max-width: 14ch;
}
.page-hero p {
  margin: 0;
  max-width: 42ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.step .n {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--field);
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--font-display);
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}
.step p { margin: 0; color: var(--ink-soft); max-width: 48ch; }

.cta-band {
  margin: 2rem 0 4rem;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(26, 107, 74, 0.08), transparent 60%);
}
.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
  max-width: 16ch;
}
.cta-band p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 40ch;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}
.site-footer .bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}
.site-footer a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.site-footer a:hover { color: var(--field); }

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .split, .split.reverse { grid-template-columns: 1fr; direction: ltr; }
  .hero-frame { display: none; }
  .hero { min-height: auto; padding: 5rem 0 3rem; align-items: center; }
  .cap-grid { grid-template-columns: 1fr; }
  .cap-item,
  .cap-item:nth-child(3n) {
    border-right: none;
    padding-right: 0;
  }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
  }
  .site-header.open .nav { display: flex; }
  .nav-cta { margin-left: 0; }
  .site-header .bar { flex-wrap: wrap; }
}
