/*
Theme Name: FRM Studio
Theme URI: https://example.com/
Author: OpenAI
Author URI: https://openai.com/
Description: Premium cinematic WordPress theme for a video production service.
Version: 2.0
Text Domain: frm-studio
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400&display=swap');

/* ─── Tokens ─── */
:root {
  --ink:        #f2f4f8;
  --ink-2:      #7a8494;
  --ink-3:      #424c5c;
  --bg:         #070809;
  --bg-2:       #0d0f12;
  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.12);
  --accent:     #4f89c7;
  --accent-dim: rgba(79,137,199,0.12);
  --max:        1120px;
  --r:          16px;
  --ease:       cubic-bezier(0.4,0,0.2,1);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ─── Layout ─── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,8,9,0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.site-header .custom-logo-link,
.site-header .site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.site-header .custom-logo {
  height: 36px;
  width: auto;
  display: block;
}
.site-header .site-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}
.main-nav .menu li { list-style: none; }
.main-nav .menu a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}
.main-nav .menu a:hover,
.main-nav .menu .current-menu-item > a { color: var(--ink); background: rgba(255,255,255,0.04); }
.header-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.header-cta:hover { opacity: 0.88; transform: translateY(-1px); }

/* ─── Hero ─── */
.hero {
  padding: 88px 0 80px;
  position: relative;
}
.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 32px;
}
.hero-kicker-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--ink-3);
  flex-shrink: 0;
}
.hero-headline {
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -.04em;
  color: var(--ink);
  margin-bottom: 36px;
  max-width: 14ch;
}
.hero-headline em {
  font-style: italic;
  font-weight: 300;
  color: var(--ink-2);
}
.hero-body {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-body p {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 42ch;
}

/* ─── Hero Reel Card ─── */
.hero-reel {
  position: relative;
}
.hero-reel-trigger {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 780px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.hero-reel-trigger:hover {
  border-color: var(--line-2);
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
}
.hero-reel-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 28px 32px;
  min-height: 180px;
}
.hero-reel-play {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  transition: transform 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.hero-reel-trigger:hover .hero-reel-play {
  transform: scale(1.08);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}
.hero-reel-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
  letter-spacing: .01em;
  transition: color 0.18s var(--ease);
}
.hero-reel-trigger:hover .hero-reel-label { color: var(--ink); }
.hero-reel-caption {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 32px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ─── Brand Row ─── */
.section-divider {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.brand-row-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}
.brand-row-logos {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-wrap: wrap;
}
.brand-row-logos svg {
  color: var(--ink-3);
  transition: color 0.18s var(--ease);
  display: block;
}
.brand-row-logos svg:hover { color: var(--ink-2); }

/* ─── Sections ─── */
.section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
}
.section-overline {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 20px;
}

/* ─── Work Grid ─── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border-radius: var(--r);
  overflow: hidden;
}
.work-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
}
.work-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0c10;
  width: 100%;
  border: none;
  padding: 0;
  cursor: pointer;
}
.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease), opacity 0.3s var(--ease);
}
.work-thumb:hover img { transform: scale(1.04); opacity: 0.85; }
.work-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(7,8,9,0);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.22s var(--ease), background 0.22s var(--ease);
}
.work-thumb:hover .work-thumb-overlay {
  opacity: 1;
  background: rgba(7,8,9,0.45);
}
.work-meta {
  padding: 20px 24px 24px;
  flex: 1;
  border-top: 1px solid var(--line);
}
.work-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 6px;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s var(--ease);
}
.work-title:hover { color: var(--ink-2); }
.work-meta p {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
}

/* ─── Process ─── */
.section-process .container { max-width: 860px; }
.process-intro { margin-bottom: 64px; }
.process-intro h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.1;
  margin-top: 12px;
}
.text-muted { color: var(--ink-2); }
.process-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.process-step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.process-step:last-child { border-bottom: 1px solid var(--line); }
.process-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--ink-3);
  padding-top: 4px;
}
.process-content h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.process-content p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 52ch;
}
.process-connector { display: none; }

/* ─── Services ─── */
.section-services .container { max-width: 860px; }
.services-list {
  display: flex;
  flex-direction: column;
}
.service-item {
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}
.service-divider {
  height: 1px;
  background: var(--line);
}
.service-item h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.025em;
  color: var(--ink);
}
.service-item p {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ─── CTA ─── */
.section-cta { border-bottom: none; }
.cta-block {
  padding: 80px 0;
  max-width: 560px;
}
.cta-block h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.0;
  margin-bottom: 16px;
}
.cta-block p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.7;
  margin-bottom: 36px;
}

/* ─── Button ─── */
.button {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  border: none;
  white-space: nowrap;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
  box-shadow: 0 0 0 0 rgba(79,137,199,0);
}
.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(79,137,199,0.28);
}
.button:active { transform: translateY(0); }

/* ─── Lightbox ─── */
.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(5,6,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 9999;
}
.lightbox.is-open { display: flex; }
.lightbox-dialog {
  position: relative;
  width: min(1100px,100%);
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: #000;
  box-shadow: 0 40px 120px rgba(0,0,0,0.7);
}
.lightbox-frame, .lightbox-dialog iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}
.lightbox-close {
  position: absolute;
  top: -46px;
  right: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,0.16); }

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 12px; color: var(--ink-3); }

/* ─── Content pages ─── */
.content-wrap { padding: 72px 0; }
.entry-title {
  font-size: clamp(32px,4vw,56px);
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}
.entry-content p, .archive-list p { color: var(--ink-2); font-size: 15px; line-height: 1.75; }
.archive-list article { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.archive-list article:last-child { border-bottom: none; }
.archive-list h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.02em; }
.archive-list h2 a:hover { color: var(--ink-2); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px; font-weight: 500;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover { color: var(--ink); border-color: var(--line-2); }

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero-headline { font-size: clamp(42px,8vw,72px); }
  .hero-body { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work-grid { grid-template-columns: 1fr; gap: 2px; }
  .service-item { grid-template-columns: 1fr; gap: 12px; }
  .brand-row { gap: 20px; }
  .brand-row-logos { gap: 20px; }
}
@media (max-width: 600px) {
  .container { padding: 0 20px; }
  .hero { padding: 60px 0 56px; }
  .section { padding: 64px 0; }
  .hero-reel-inner { padding: 20px 24px; min-height: 140px; }
  .hero-reel-caption { padding: 10px 24px; }
  .cta-block { padding: 60px 0; }
  .service-item { padding: 24px 0; }
  .process-step { padding: 24px 0; }
}
