/* ============================================
   VIDEO AGENCY TEMPLATE — style.css
   Dark cinematic theme with warm orange accent
   ============================================ */

:root {
  --bg: #0a0708;
  --bg-2: #100b0c;
  --bg-3: #17110f;
  --surface: #1a1412;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f5ede1;
  --text-dim: #b8a898;
  --text-muted: #7d6f63;
  --accent: #f19a3e;
  --accent-2: #d9782a;
  --accent-glow: rgba(241, 154, 62, 0.35);
  --radius-pill: 999px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --max-w: 1200px;
  --shadow-btn: 0 10px 40px -10px rgba(241, 154, 62, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  overflow-x: hidden;
}

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

/* ---------- Layout container ---------- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: 1.5rem; font-weight: 700; }

.italic-serif {
  font-family: 'Playfair Display', 'Georgia', serif;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(241, 154, 62, 0.06);
}
.eyebrow svg { width: 14px; height: 14px; }

.section-title { text-align: center; margin-bottom: 20px; }
.section-title .eyebrow { margin-bottom: 24px; }
.section-title h2 { margin-bottom: 18px; }
.section-title p { color: var(--text-dim); max-width: 620px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 42px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 50px -10px rgba(241, 154, 62, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.btn-primary:active { transform: translateY(0); }

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 26px 0;
}
.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.logo .x-mark {
  width: 14px;
  height: 14px;
  display: inline-block;
  position: relative;
  margin: 0 -2px;
  transform: translateY(-1px);
}
.logo .x-mark::before,
.logo .x-mark::after {
  content: '';
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 2.5px;
  background: var(--text);
  transform-origin: center;
  border-radius: 1px;
}
.logo .x-mark::before { transform: translateY(-50%) rotate(45deg); }
.logo .x-mark::after  { transform: translateY(-50%) rotate(-45deg); }

.nav-email {
  color: var(--text-dim);
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 140px 0 60px;
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% -100px, var(--accent-glow), transparent 65%),
    linear-gradient(180deg, #1a0f0a 0%, var(--bg) 60%);
  z-index: -2;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 60px);
  z-index: -1;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-content h1 {
  margin: 30px 0 22px;
  color: #fbf3e6;
}
.hero-content h1 .italic-serif { color: #fbf3e6; }
.hero-sub {
  color: var(--text-dim);
  font-size: 1.15rem;
  margin-bottom: 40px;
}

/* Hero image tile row — floating, scattered composition */
.hero-tiles {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: center;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
  padding: 40px 0 20px;
  perspective: 1200px;
}
.hero-tile {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 3/4;
  border: 1px solid var(--border-strong);
  box-shadow: 0 30px 70px -25px rgba(0, 0, 0, 0.9),
              0 0 0 1px rgba(241, 154, 62, 0.08);
  transform-origin: center center;

  /* Entry state — tiles fade + rise into place */
  opacity: 0;
  transform: translateY(80px) rotate(0deg) scale(0.9);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.hero-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Landed state — each tile floats at its own resting offset + tilt.
   These per-tile transforms become the base for the idle float animation. */
.hero-tiles.is-visible .hero-tile:nth-child(1) {
  opacity: 1;
  animation: float-a 7s ease-in-out infinite;
  transition-delay: 0.05s;
}
.hero-tiles.is-visible .hero-tile:nth-child(2) {
  opacity: 1;
  animation: float-b 6.4s ease-in-out infinite;
  transition-delay: 0.18s;
}
.hero-tiles.is-visible .hero-tile:nth-child(3) {
  opacity: 1;
  animation: float-c 7.6s ease-in-out infinite;
  transition-delay: 0.3s;
  z-index: 3;
}
.hero-tiles.is-visible .hero-tile:nth-child(4) {
  opacity: 1;
  animation: float-d 6.8s ease-in-out infinite;
  transition-delay: 0.42s;
}
.hero-tiles.is-visible .hero-tile:nth-child(5) {
  opacity: 1;
  animation: float-e 7.2s ease-in-out infinite;
  transition-delay: 0.55s;
}

/* Idle floating loops — asymmetric so tiles look independently suspended */
@keyframes float-a {
  0%, 100% { transform: translateY(28px) rotate(-4deg) scale(0.94); }
  50%      { transform: translateY(14px) rotate(-3deg) scale(0.94); }
}
@keyframes float-b {
  0%, 100% { transform: translateY(-4px) rotate(-1.5deg) scale(0.98); }
  50%      { transform: translateY(-18px) rotate(-2deg) scale(0.98); }
}
@keyframes float-c {
  0%, 100% { transform: translateY(-30px) rotate(0.5deg) scale(1.08); }
  50%      { transform: translateY(-46px) rotate(-0.5deg) scale(1.08); }
}
@keyframes float-d {
  0%, 100% { transform: translateY(10px) rotate(2deg) scale(0.97); }
  50%      { transform: translateY(-6px) rotate(2.5deg) scale(0.97); }
}
@keyframes float-e {
  0%, 100% { transform: translateY(34px) rotate(4.5deg) scale(0.93); }
  50%      { transform: translateY(20px) rotate(4deg) scale(0.93); }
}

/* Respect users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  .hero-tile { transition: opacity 0.4s ease; transform: none; }
  .hero-tiles.is-visible .hero-tile { animation: none; transform: none; }
}

/* ---------- Trust bar ---------- */
.trust {
  padding: 80px 0 60px;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.trust-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}
.trust-stats .stat-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--accent) 0%, #f8c67a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.trust-stats .stat-label {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* ---------- Generic section ---------- */
section { padding: 110px 0; }
.section-narrow { max-width: 900px; margin: 0 auto; }

/* ---------- Why us grid ---------- */
.why-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.why-card {
  padding: 32px 26px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-3) 100%);
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.why-card:hover { border-color: rgba(241, 154, 62, 0.35); transform: translateY(-4px); }
.why-card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(241, 154, 62, 0.12);
  color: var(--accent);
  margin-bottom: 20px;
}
.why-card .icon svg { width: 22px; height: 22px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; font-weight: 700; }
.why-card p { color: var(--text-dim); font-size: 0.95rem; }

/* ---------- Custom (split) ---------- */
.custom-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
  margin-top: 40px;
}
.custom-split .eyebrow { margin-bottom: 22px; }
.custom-split h2 { margin-bottom: 20px; }
.custom-split p.lead { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 28px; }
.custom-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.custom-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 1rem; }
.custom-list .dot {
  flex: 0 0 24px; width: 24px; height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center; margin-top: 2px;
}
.custom-list .dot svg { width: 12px; height: 12px; stroke: #fff; }

.custom-visual {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
}
.custom-visual img { width: 100%; height: 100%; object-fit: cover; }
.custom-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.5) 100%);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pricing-card {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-3) 100%);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card.featured {
  border-color: rgba(241, 154, 62, 0.5);
  background: linear-gradient(180deg, rgba(241, 154, 62, 0.08) 0%, var(--bg-3) 60%);
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  border-radius: var(--radius-pill);
}
.pricing-card h3 { font-size: 1.35rem; margin-bottom: 8px; }
.pricing-card .plan-desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 28px; }
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}
.pricing-card .price-cycle { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 32px; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.plan-features li { display: flex; gap: 10px; color: var(--text-dim); font-size: 0.95rem; align-items: flex-start; }
.plan-features li svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.pricing-card .plan-note {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pricing-card .btn-primary { width: 100%; }

/* ---------- Founders ---------- */
.founders-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.founders-header .eyebrow { margin-bottom: 22px; }
.founders-header p { color: var(--text-dim); font-size: 1.05rem; }
.founders-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.founder-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  position: relative;
}
.founder-card .founder-img {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.founder-card .founder-img img { width: 100%; height: 100%; object-fit: cover; }
.founder-meta {
  padding: 22px 26px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.founder-meta h3 { font-size: 1.25rem; margin-bottom: 2px; }
.founder-meta p { color: var(--text-muted); font-size: 0.85rem; }
.founder-stat {
  text-align: right;
}
.founder-stat .n {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.founder-stat .s { font-size: 0.75rem; color: var(--text-muted); letter-spacing: 0.15em; text-transform: uppercase; }

/* ---------- Work ---------- */
.work-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 28px 32px;
  align-items: center;
}
.work-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  position: relative;
  transition: transform 0.3s ease;
}
.work-item:hover { transform: translateY(-4px); }
.work-item img { width: 100%; height: 100%; object-fit: cover; }
.work-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}
.work-item .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 62px; height: 62px;
  border-radius: 50%;
  background: rgba(241, 154, 62, 0.9);
  display: grid; place-items: center;
  box-shadow: 0 10px 30px -5px rgba(241, 154, 62, 0.5);
  z-index: 2;
}
.work-item .play svg { width: 24px; height: 24px; fill: #fff; margin-left: 4px; }
.work-large,
.work-landscape { aspect-ratio: 16/9; align-self: center; width: 100%; }
.work-portrait,
.work-portrait2 {
  aspect-ratio: 9/16;
  align-self: center;
  justify-self: center;
  max-height: 540px;
  width: 100%;
  max-width: 300px;
}
/* Row 1: landscape (col 1 wide) + portrait (col 2 narrow) — natural DOM order */
.work-grid > .work-large { grid-column: 1; grid-row: 1; }
.work-grid > .work-portrait { grid-column: 2; grid-row: 1; }
/* Row 2: portrait (col 2 narrow, right) + landscape (col 1 wide, left) */
.work-grid > .work-landscape { grid-column: 1; grid-row: 2; }
.work-grid > .work-portrait2 { grid-column: 2; grid-row: 2; }

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 780px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item[open] { border-color: rgba(241, 154, 62, 0.35); }
.faq-item summary {
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  color: var(--accent);
  font-size: 1.5rem;
  font-weight: 400;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer {
  padding: 0 26px 22px;
  color: var(--text-dim);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 120px 0;
  background:
    radial-gradient(ellipse 800px 400px at 50% 0%, rgba(241, 154, 62, 0.15), transparent 65%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.final-cta h2 { margin-bottom: 18px; }
.final-cta p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover { color: var(--accent); }

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
  .hero-tile { transform: none !important; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { padding: 110px 0 40px; }
  .hero-tiles {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 50px;
  }
  .hero-tile:nth-child(4), .hero-tile:nth-child(5) { display: none; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .custom-split { grid-template-columns: 1fr; gap: 40px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .founders-header { grid-template-columns: 1fr; gap: 20px; }
  .founders-grid { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; gap: 20px; }
  .work-grid > .work-large,
  .work-grid > .work-portrait,
  .work-grid > .work-portrait2,
  .work-grid > .work-landscape { grid-column: 1; grid-row: auto; aspect-ratio: 16/9; max-height: none; max-width: none; }
  .work-grid > .work-portrait,
  .work-grid > .work-portrait2 { aspect-ratio: 9/16; max-width: 260px; justify-self: center; }
  .nav-email { display: none; }
  section { padding: 80px 0; }
}

@media (max-width: 540px) {
  .hero-tiles { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .trust-stats { grid-template-columns: 1fr; gap: 30px; }
  .container { padding: 0 20px; }
  .btn-primary { padding: 16px 32px; font-size: 0.85rem; }
}
