:root {
  color-scheme: dark;
  --apple-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --bg: #070b14;
  --surface: rgba(10, 13, 22, 0.85);
  --surface-strong: rgba(12, 17, 30, 0.95);
  --glass-bg: rgba(9, 12, 22, 0.72);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.16);
  --purple: #9a4dff;
  --blue: #36d6ff;
  --cyan: #6bf6ff;
  --pink: #ff4dff;
  --text: #eef2ff;
  --muted: #9aa5c9;
  --border: rgba(135, 103, 255, 0.24);
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

img,
video,
iframe,
canvas,
svg {
  max-width: 100%;
}

.glass-panel,
.main-panel,
.portfolio-hero,
.portfolio-snapshot,
.section-panel,
.reel-card,
.experience-item,
.experience-skills,
.portfolio-cta,
.flash-message,
.mobile-menu-toggle,
.reel-rail__button,
.nav-links {
  background: rgba(12, 16, 26, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.glass-panel {
  border-radius: 24px;
  overflow: hidden;
}

.glass-panel:hover,
.glass-card:hover,
.btn:hover,
.reel-rail__button:hover,
.mobile-menu-toggle:hover,
.experience-item:hover,
.portfolio-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.8s ease forwards;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

html {
  scroll-behavior: smooth;
  min-height: 100%;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  padding-bottom: env(safe-area-inset-bottom);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, rgba(54,214,255,0.12), transparent 20%),
    radial-gradient(circle at 20% 20%, rgba(154,77,255,0.14), transparent 16%),
    linear-gradient(180deg, #04060d 0%, #070b14 100%);
  color: var(--text);
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  position: relative;
}

main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

section,
article,
aside,
div,
form,
nav,
header,
footer {
  max-width: 100%;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 10%, rgba(154,77,255,0.18), transparent 8%),
    radial-gradient(circle at 80% 20%, rgba(54,214,255,0.1), transparent 10%);
  pointer-events: none;
}

.loader-screen {
  position: fixed;
  inset: 0;
  background: #050813;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.hidden {
  display: none !important;
}

.loader-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.loader-dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--purple), var(--blue));
  animation: pulse 1.2s infinite ease-in-out;
}

.loader-dot:nth-child(2) { animation-delay: 0.15s; }
.loader-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes pulse {
  0%, 100% { transform: scale(0.75); opacity: 0.55; }
  50% { transform: scale(1.15); opacity: 1; }
}

.custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(54,214,255,0.9);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.12s ease, height 0.12s ease, background 0.12s ease;
  mix-blend-mode: difference;
  z-index: 999;
}

.topbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: calc(1rem + env(safe-area-inset-top)) clamp(2rem, 4vw, 4rem) 1rem;
  background: rgba(10, 14, 23, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-family: var(--apple-font);
}

.mobile-menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(12,17,30,0.85);
  position: relative;
  cursor: pointer;
}

.mobile-menu-toggle span,
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle span {
  top: 50%;
  transform: translateY(-50%);
}

.mobile-menu-toggle span::before {
  top: -10px;
}

.mobile-menu-toggle span::after {
  top: 10px;
}

.mobile-menu-toggle.is-open span {
  background: transparent;
}

.mobile-menu-toggle.is-open span::before {
  transform: rotate(45deg) translate(4px, 4px);
}

.mobile-menu-toggle.is-open span::after {
  transform: rotate(-45deg) translate(4px, -4px);
}

.brand-pill {
  display: inline-flex;
  flex-direction: column;
  gap: 0.18rem;
  font-weight: 700;
  line-height: 1.05;
}

.brand-pill span {
  letter-spacing: 0;
  font-size: 1.02rem;
  font-weight: 800;
}

.brand-pill small {
  color: rgba(238, 242, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  color: var(--text);
  text-decoration: none;
}

.nav-links a {
  position: relative;
  padding: 0.55rem 0.82rem;
  border-radius: 999px;
  font-family: var(--apple-font);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0;
  color: rgba(238, 242, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.nav-links a::after {
  display: none;
}

.nav-cta {
  padding: 0.9rem 1.2rem;
  border: 1px solid rgba(135,103,255,0.5);
  border-radius: 999px;
  background: rgba(12, 17, 30, 0.82);
  font-family: var(--apple-font);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  transition: background 0.25s ease;
}

.nav-cta:hover { background: rgba(54,214,255,0.12); }

main {
  position: relative;
  z-index: 1;
  padding-top: env(safe-area-inset-top);
}

main[class*="page-font-style-"] {
  --page-body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-heading-font: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-family: var(--page-body-font);
}

main.page-font-style-cinematic {
  --page-body-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --page-heading-font: 'Space Grotesk', Inter, system-ui, sans-serif;
}

main.page-font-style-apple {
  --page-body-font: var(--apple-font);
  --page-heading-font: var(--apple-font);
}

main.page-font-style-editorial {
  --page-body-font: Georgia, 'Times New Roman', serif;
  --page-heading-font: Georgia, 'Times New Roman', serif;
}

main.page-font-style-minimal {
  --page-body-font: 'Helvetica Neue', Arial, sans-serif;
  --page-heading-font: 'Helvetica Neue', Arial, sans-serif;
}

main.page-font-size-compact {
  font-size: 0.94rem;
}

main.page-font-size-large {
  font-size: 1.06rem;
}

main.page-font-size-xlarge {
  font-size: 1.13rem;
}

main[class*="page-font-style-"] p,
main[class*="page-font-style-"] li,
main[class*="page-font-style-"] input,
main[class*="page-font-style-"] textarea,
main[class*="page-font-style-"] .btn,
main[class*="page-font-style-"] .film-meta-row span,
main[class*="page-font-style-"] .badge-row span,
main[class*="page-font-style-"] .project-meta,
main[class*="page-font-style-"] .reel-card__body span {
  font-family: var(--page-body-font);
}

main[class*="page-font-style-"] h1,
main[class*="page-font-style-"] h2,
main[class*="page-font-style-"] h3,
main[class*="page-font-style-"] .eyebrow,
main[class*="page-font-style-"] .section-label,
main[class*="page-font-style-"] .film-tagline {
  font-family: var(--page-heading-font);
}

main.page-font-style-apple .section-label,
main.page-font-style-apple .eyebrow,
main.page-font-style-apple .film-tagline {
  letter-spacing: 0.04em;
}

main.page-font-style-editorial .section-label,
main.page-font-style-editorial .eyebrow,
main.page-font-style-editorial .film-tagline {
  letter-spacing: 0.08em;
  text-transform: none;
}

main.page-font-size-compact .film-hero h1 { font-size: clamp(3.5rem, 10vw, 8.4rem); }
main.page-font-size-compact .portfolio-hero__copy h1 { font-size: clamp(2.85rem, 4.7vw, 4.9rem); }
main.page-font-size-compact .hero-copy h1 { font-size: clamp(2.7rem, 4.6vw, 4rem); }
main.page-font-size-compact .section-header h2,
main.page-font-size-compact .film-copy h2 { font-size: clamp(2rem, 2.7vw, 3rem); }
main.page-font-size-compact .director-statement blockquote,
main.page-font-size-compact .credibility-card blockquote { font-size: clamp(1.7rem, 3.5vw, 3.2rem); }

main.page-font-size-large .film-hero h1 { font-size: clamp(4.4rem, 12.8vw, 10.2rem); }
main.page-font-size-large .portfolio-hero__copy h1 { font-size: clamp(3.55rem, 5.7vw, 5.95rem); }
main.page-font-size-large .hero-copy h1 { font-size: clamp(3.25rem, 5.4vw, 4.9rem); }
main.page-font-size-large .section-header h2,
main.page-font-size-large .film-copy h2 { font-size: clamp(2.5rem, 3.4vw, 3.85rem); }
main.page-font-size-large .director-statement blockquote,
main.page-font-size-large .credibility-card blockquote { font-size: clamp(2.2rem, 4.4vw, 4rem); }

main.page-font-size-xlarge .film-hero h1 { font-size: clamp(4.8rem, 13.6vw, 11rem); }
main.page-font-size-xlarge .portfolio-hero__copy h1 { font-size: clamp(3.9rem, 6.2vw, 6.5rem); }
main.page-font-size-xlarge .hero-copy h1 { font-size: clamp(3.5rem, 5.9vw, 5.4rem); }
main.page-font-size-xlarge .section-header h2,
main.page-font-size-xlarge .film-copy h2 { font-size: clamp(2.75rem, 3.8vw, 4.35rem); }
main.page-font-size-xlarge .director-statement blockquote,
main.page-font-size-xlarge .credibility-card blockquote { font-size: clamp(2.45rem, 4.9vw, 4.55rem); }

.section-font-size-compact {
  font-size: 0.92rem;
}

.section-font-size-large {
  font-size: 1.08rem;
}

.section-font-size-xlarge {
  font-size: 1.16rem;
}

.section-font-size-compact.film-hero h1,
.section-font-size-compact .portfolio-hero__copy h1 {
  font-size: clamp(2.85rem, 4.7vw, 4.9rem);
}

.section-font-size-large.film-hero h1,
.section-font-size-large .portfolio-hero__copy h1 {
  font-size: clamp(3.55rem, 5.7vw, 5.95rem);
}

.section-font-size-xlarge.film-hero h1,
.section-font-size-xlarge .portfolio-hero__copy h1 {
  font-size: clamp(3.9rem, 6.2vw, 6.5rem);
}

.section-font-size-compact .section-header h2,
.section-font-size-compact .film-copy h2,
.section-font-size-compact .short-film-body h3 {
  font-size: clamp(1.85rem, 2.6vw, 2.9rem);
}

.section-font-size-large .section-header h2,
.section-font-size-large .film-copy h2,
.section-font-size-large .short-film-body h3 {
  font-size: clamp(2.45rem, 3.4vw, 3.9rem);
}

.section-font-size-xlarge .section-header h2,
.section-font-size-xlarge .film-copy h2,
.section-font-size-xlarge .short-film-body h3 {
  font-size: clamp(2.75rem, 3.9vw, 4.4rem);
}

.section-font-size-compact .director-statement blockquote,
.section-font-size-compact .credibility-card blockquote {
  font-size: clamp(1.6rem, 3.3vw, 3rem);
}

.section-font-size-large .director-statement blockquote,
.section-font-size-large .credibility-card blockquote {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.section-font-size-xlarge .director-statement blockquote,
.section-font-size-xlarge .credibility-card blockquote {
  font-size: clamp(2.25rem, 4.6vw, 4.2rem);
}

.section-panel {
  padding: 5.75rem clamp(2.25rem, 4.5vw, 4.25rem);
  max-width: 1480px;
  margin: 0 auto;
}

.alt-panel {
  background: rgba(4, 7, 19, 0.85);
}

.section-header {
  display: grid;
  gap: 1rem;
  max-width: 940px;
  margin-bottom: 2.4rem;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--cyan);
  font-size: 0.77rem;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(2.25rem, 3vw, 3.35rem);
}

.section-header p { color: var(--muted); line-height: 1.8; }

.hero-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 4rem 2rem;
}

h1,
h2,
h3 {
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 700;
}

.portfolio-hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 0.82fr);
  gap: clamp(2.5rem, 4vw, 4rem);
  align-items: start;
  max-width: 1480px;
  margin: 0 auto;
  padding: 5.75rem clamp(2.25rem, 4.5vw, 4.25rem) 3.75rem;
}

.portfolio-hero__copy h1 {
  margin: 1rem 0;
  font-size: clamp(3.25rem, 5.25vw, 5.45rem);
  line-height: 1.02;
}

.portfolio-snapshot {
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  padding: 2.65rem;
  overflow: hidden;
}

.portfolio-snapshot strong {
  font-size: clamp(1.65rem, 2.2vw, 2.2rem);
  line-height: 1.3;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.hero-actions .btn {
  min-width: 180px;
}

.portfolio-snapshot::before {
  content: '';
  position: absolute;
  inset: 1.25rem;
  border: 1px solid rgba(54,214,255,0.2);
  border-radius: 24px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(54,214,255,0.16) 49%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.01));
  pointer-events: none;
}

.portfolio-snapshot span,
.portfolio-snapshot strong,
.portfolio-snapshot p {
  position: relative;
  z-index: 1;
}

.portfolio-snapshot span {
  color: var(--cyan);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.portfolio-snapshot strong {
  max-width: 18rem;
  font-size: 1.6rem;
  line-height: 1.25;
}

.portfolio-snapshot p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  max-width: 600px;
}

.eyebrow {
  color: var(--cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hero-copy h1 {
  margin: 1rem 0;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.hero-text {
  color: var(--muted);
  font-size: 1.18rem;
  max-width: 44rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  max-width: 100%;
  padding: 0.95rem 1.6rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 60px rgba(54,214,255,0.12); }

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #070b14;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(54,214,255,0.38);
}

.stats-pill {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.stats-pill span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(54,214,255,0.12);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
}

.glass-card {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(9, 12, 22, 0.72);
  box-shadow: 0 30px 80px rgba(0,0,0,0.18);
  border-radius: 32px;
  backdrop-filter: blur(22px);
  position: relative;
}

.glass-glow::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(154,77,255,0.3), rgba(54,214,255,0.16));
  filter: blur(22px);
  z-index: -1;
}

.hero-viz {
  padding: 2rem;
}

.hero-viz-top {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 1rem;
}

.hero-viz-body {
  min-height: 360px;
  background: linear-gradient(180deg, rgba(11,15,28,0.95), rgba(3,5,12,0.88));
  border-radius: 28px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hero-frame {
  flex: 1;
  border: 1px solid rgba(54,214,255,0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  margin-bottom: 1.5rem;
}

.project-grid,
.service-grid,
.script-grid,
.testimonial-grid,
.dashboard-grid,
.about-grid,
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

.project-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.reel-grid {
  display: flex;
  gap: 1.75rem;
  overflow-x: hidden;
  padding: 0.5rem 0.25rem 1.25rem;
  scroll-behavior: smooth;
  scroll-padding-inline: 0.25rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-y;
}

.reel-grid::-webkit-scrollbar {
  display: none;
}

.reel-rail {
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.reel-rail__button {
  position: absolute;
  top: 38%;
  z-index: 3;
  width: 44px;
  height: 64px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  background: rgba(4, 7, 19, 0.84);
  color: var(--text);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: background 0.2s ease, transform 0.2s ease;
}

.reel-rail__button:hover {
  background: rgba(54,214,255,0.18);
  transform: translateY(-2px);
}

.reel-rail__button--prev {
  left: 0;
}

.reel-rail__button--next {
  right: 0;
}

.reel-section-list,
.reel-subsection {
  display: grid;
  gap: 2rem;
}

.reel-section-list {
  gap: 3rem;
}

.reel-subsection__header {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
}

.reel-subsection__header p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.reel-card {
  flex: 0 0 clamp(260px, 21vw, 330px);
  overflow: hidden;
  scroll-snap-align: start;
}

.reel-card__media {
  aspect-ratio: 9 / 16;
  background: #000;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.reel-card__media iframe,
.reel-card__media video,
.reel-card__media img,
.reel-card__media .project-thumb,
.reel-card__media .reel-card__placeholder {
  inset: 0;
  position: absolute;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
}

.reel-card__media video,
.reel-card__media img {
  background: #000;
  object-fit: contain !important;
}

.reel-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 50%;
  background: rgba(4, 7, 19, 0.72);
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: background 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.reel-play-button::before {
  content: '';
  position: absolute;
  left: 27px;
  top: 21px;
  width: 0;
  height: 0;
  border-bottom: 13px solid transparent;
  border-left: 19px solid var(--text);
  border-top: 13px solid transparent;
}

.reel-play-button:hover {
  background: rgba(54,214,255,0.22);
  transform: translate(-50%, -50%) scale(1.04);
}

.reel-card__media.is-playing .reel-play-button {
  opacity: 0;
  pointer-events: none;
}

.reel-card__placeholder {
  display: grid;
  place-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(154,77,255,0.18), rgba(54,214,255,0.08));
}

.reel-card__placeholder span {
  color: var(--cyan);
  font-size: 3rem;
  font-weight: 800;
}

.reel-card__body {
  padding: 1.25rem;
  min-height: 190px;
}

.reel-card__body h3 {
  margin: 0 0 0.7rem;
  font-size: 1.1rem;
}

.reel-card__body p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

.reel-card__body span {
  display: block;
  margin-top: 1rem;
  color: #9aa5c9;
  font-size: 0.9rem;
}

.project-card {
  overflow: hidden;
}

.project-card__media {
  min-height: 220px;
  background: #050b19;
}

.project-card__media iframe,
.project-card__media .project-thumb {
  width: 100%;
  height: 100%;
  display: block;
}

.project-thumb {
  background-size: cover;
  background-position: center;
}

.project-card__body {
  padding: 1.6rem;
}

.project-meta {
  color: var(--cyan);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.project-card h3,
.service-card h3,
.script-card h3 {
  margin: 0 0 0.85rem;
}

.project-card p,
.service-card p,
.script-card p,
.testimonial-card p {
  color: var(--muted);
  line-height: 1.75;
}

.project-footer {
  margin-top: 1.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa5c9;
  font-size: 0.95rem;
}

.filter-pill {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.09);
  color: var(--text);
  background: rgba(255,255,255,0.03);
  transition: transform 0.2s ease, background 0.2s ease;
}

.filter-pill:hover,
.filter-pill.active {
  background: rgba(54,214,255,0.16);
  transform: translateY(-2px);
}

.about-grid {
  grid-template-columns: 1fr 0.9fr;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1.5rem;
  align-items: start;
}

.experience-list {
  display: grid;
  gap: 1rem;
}

.experience-item,
.experience-skills {
  padding: 2rem;
}

.experience-item span {
  color: var(--cyan);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.experience-item h3,
.experience-skills h3 {
  margin: 0.8rem 0;
}

.experience-item p,
.experience-skills li {
  color: var(--muted);
  line-height: 1.7;
}

.experience-skills ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.experience-skills li {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.portfolio-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.about-copy,
.skill-panel,
.service-card,
.script-card,
.testimonial-card,
.stat-card,
.dashboard-actions,
.contact-copy,
.contact-form {
  padding: 2rem;
}

.skill-panel ul {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}

.skill-panel li {
  margin-bottom: 0.75rem;
}

.service-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.script-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.script-card {
  min-height: 180px;
}

.testimonial-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.testimonial-card {
  min-height: 180px;
}

.contact-grid {
  grid-template-columns: 1fr 1fr;
}

.contact-panel {
  padding-bottom: 6rem;
}

.contact-copy ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.contact-copy li {
  margin-bottom: 0.9rem;
}

.contact-form form,
form.contact-form {
  display: grid;
  gap: 1rem;
}

form.contact-form input,
form.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  color: var(--text);
  padding: 1rem 1.1rem;
}

form.contact-form textarea {
  min-height: 220px;
  resize: vertical;
}

.flash-messages {
  position: fixed;
  top: 5.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: grid;
  gap: 0.75rem;
}

.flash-message {
  padding: 1rem 1.25rem;
  border-radius: 18px;
  background: rgba(10, 15, 28, 0.95);
  border: 1px solid rgba(54,214,255,0.18);
  color: var(--text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.22);
}

.flash-message.success {
  border-color: rgba(54,214,255,0.7);
}

.site-footer {
  padding: 2rem 2rem 4rem;
  text-align: center;
  color: var(--muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.footer-links a:hover {
  color: var(--cyan);
}

.dashboard-panel {
  padding: 5rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.dashboard-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.stat-card {
  text-align: center;
}

.stat-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1rem;
  color: var(--cyan);
}

.stat-card span {
  font-size: 3rem;
  display: block;
  margin-top: 0.5rem;
}

.dashboard-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.contact-success-panel {
  max-width: 720px;
  margin: 4rem auto;
  text-align: center;
}

.contact-success-panel a {
  display: inline-flex;
  margin-top: 2rem;
}

.empty-message {
  padding: 2rem;
  color: var(--muted);
}

.film-hero {
  --hero-image: url('https://images.unsplash.com/photo-1485846234645-a62644f84728?auto=format&fit=crop&w=1800&q=80');
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 7rem 2rem 4rem;
  background:
    radial-gradient(circle at 76% 34%, rgba(54,214,255,0.14), transparent 18%),
    linear-gradient(90deg, rgba(4,7,19,0.96), rgba(4,7,19,0.62), rgba(4,7,19,0.92)),
    linear-gradient(180deg, rgba(4,7,19,0.16), #070b14),
    var(--hero-image) center / cover;
  position: relative;
  overflow: hidden;
}

.film-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(7,11,20,0.96) 100%);
  pointer-events: none;
}

.film-hero__content {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
}

.reveal-on-load {
  animation: filmTitleIn 900ms ease both;
}

@keyframes filmTitleIn {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.film-hero h1 {
  margin: 0.6rem 0 1rem;
  font-size: clamp(4rem, 12vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.film-tagline {
  margin: 0 0 2rem;
  color: var(--cyan);
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.film-section {
  scroll-margin-top: 7rem;
}

.film-about-grid,
.featured-film-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.film-portrait {
  min-height: 620px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(7,11,20,0.08), rgba(7,11,20,0.86)),
    url('https://images.unsplash.com/photo-1500648767791-00dcc994a43e?auto=format&fit=crop&w=900&q=80') center / cover;
}

.film-copy {
  display: grid;
  gap: 1.1rem;
}

.film-copy h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
}

.film-copy p,
.journey-card p,
.credibility-card p,
.film-skill-card p {
  color: var(--muted);
  line-height: 1.8;
}

.film-note {
  color: var(--text) !important;
  border-left: 2px solid var(--cyan);
  padding-left: 1rem;
}

.film-skill-grid,
.bts-grid,
.journey-grid,
.short-film-feature-list {
  display: grid;
  gap: 1.4rem;
}

.director-statement {
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 12px;
}

.director-statement blockquote {
  width: 100%;
  max-width: 100%;
  margin: 0;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.2;
  white-space: pre-wrap;
  word-break: break-word;
}

.short-film-feature-list {
  gap: 1.4rem;
}

.short-film-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(min(100%, 360px), 0.9fr);
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.short-film-feature:nth-child(even) .short-film-media {
  order: 2;
}

.short-film-media {
  aspect-ratio: 16 / 9;
  min-height: 220px;
  background: #050b19;
}

.short-film-media iframe,
.short-film-media video,
.short-film-media img,
.poster-placeholder {
  width: 100%;
  height: 100%;
  display: block;
}

.short-film-media iframe {
  border: 0;
}

.short-film-media video {
  background: #000;
}

.short-film-media img {
  object-fit: cover;
  filter: brightness(0.78) saturate(0.8);
}

.poster-placeholder {
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: linear-gradient(180deg, rgba(154,77,255,0.2), rgba(54,214,255,0.08));
  color: var(--cyan);
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-align: center;
}

.short-film-body {
  display: grid;
  align-content: center;
  gap: 0.85rem;
  padding: clamp(1rem, 2.5vw, 1.8rem);
}

.short-film-body h3 {
  margin: 0;
  font-size: clamp(1.85rem, 2.8vw, 2.6rem);
}

.short-film-body p {
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-wrap;
  word-break: break-word;
}

.materials-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 12px;
}

.materials-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.film-skill-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.film-skill-card {
  min-height: 280px;
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.75rem;
  border-radius: 12px;
}

.film-skill-card span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54,214,255,0.35);
  color: var(--cyan);
  font-size: 1.3rem;
}

.film-skill-card h3,
.journey-card h3 {
  margin: 0;
}

.film-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 12px;
}

.film-video iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.film-video video {
  width: 100%;
  height: 100%;
  display: block;
  background: #000;
}

.film-meta-row,
.badge-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.film-meta-row span,
.badge-row span {
  display: inline-flex;
  border: 1px solid rgba(154,77,255,0.4);
  background: rgba(154,77,255,0.08);
  color: var(--cyan);
  padding: 0.55rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bts-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bts-card {
  overflow: hidden;
  border-radius: 12px;
  margin: 0;
  display: grid;
  grid-template-rows: auto min-content;
}

.bts-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  filter: brightness(0.72) saturate(0.75);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.bts-card:hover img {
  transform: scale(1.06);
  filter: brightness(0.9) saturate(0.9);
}

.bts-card figcaption {
  padding: 1rem;
  color: var(--muted);
}

.journey-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-card {
  padding: 1.5rem;
  border-left: 3px solid var(--cyan);
  border-radius: 12px;
}

.journey-card span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.credibility-card {
  display: grid;
  gap: 1.2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: 12px;
}

.credibility-card blockquote {
  margin: 0;
  max-width: 1040px;
  font-family: 'Space Grotesk', Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.12;
}

.contact-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-link {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(54,214,255,0.35);
  color: var(--cyan);
  font-weight: 900;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(54,214,255,0.12);
}

.reveal-section {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .portfolio-hero,
  .film-about-grid,
  .featured-film-grid,
  .about-grid,
  .contact-grid,
  .experience-layout {
    grid-template-columns: 1fr;
  }

  .portfolio-hero {
    min-height: auto;
    padding: 3rem 1.5rem 2rem;
    align-items: start;
    width: min(100%, 1200px);
  }

  .portfolio-snapshot {
    min-height: 280px;
    padding: 1.75rem;
    width: 100%;
  }

  .portfolio-snapshot strong {
    max-width: 100%;
    font-size: 1.45rem;
  }

  .portfolio-hero__copy h1 {
    font-size: clamp(2.4rem, 6vw, 3.4rem);
  }

  .hero-text {
    font-size: 1rem;
    max-width: 100%;
  }

  .hero-actions {
    justify-content: flex-start;
    gap: 0.85rem;
  }

  .hero-actions .btn {
    min-width: 180px;
  }

  .portfolio-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .film-skill-grid,
  .bts-grid,
  .journey-grid,
  .materials-card {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .short-film-feature,
  .materials-card {
    grid-template-columns: 1fr;
  }

  .short-film-feature:nth-child(even) .short-film-media {
    order: 0;
  }

  .materials-actions {
    justify-content: flex-start;
  }

  .section-panel {
    padding: 4rem 1.5rem;
  }

  .film-portrait {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  .topbar { flex-direction: row; align-items: center; padding: calc(0.8rem + env(safe-area-inset-top)) 1rem 0.8rem; }
  .mobile-menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: 68px 0 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 1rem 1rem env(safe-area-inset-bottom);
    background: rgba(7, 11, 20, 0.98);
    backdrop-filter: blur(24px);
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 59;
    overflow-y: auto;
    height: calc(100svh - 68px);
  }
  .nav-links a { padding: 1rem 1rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-cta { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.38);
    z-index: 50;
    backdrop-filter: blur(4px);
  }
  body.menu-open .nav-links { transform: translateY(0); opacity: 1; }
  .nav-links { width: 100%; justify-content: flex-start; }
  .nav-links { gap: 0.5rem; }
  .hero-panel { min-height: auto; padding: 5.5rem 0.75rem 2rem; }
  .hero-copy h1 { font-size: 2.45rem; }
  .portfolio-hero { padding: 2rem 0.75rem 1.25rem; gap: 1.5rem; min-height: calc(100svh - 5rem); width: 100%; max-width: 100%; margin: 0 auto; }
  .portfolio-snapshot { min-height: auto; padding: 1.4rem; width: 100%; max-width: 100%; }
  .portfolio-snapshot strong { font-size: 1.35rem; }
  .portfolio-snapshot p { font-size: 0.95rem; }
  .portfolio-snapshot span { letter-spacing: 0.16em; }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    margin: 1.2rem 0;
  }
  .hero-actions .btn { width: 100%; min-width: 0; }
  .portfolio-hero__copy h1 { word-break: break-word; }
  .section-panel { padding: 2.5rem 0.75rem; width: 100%; max-width: 100%; }
  .section-header h2,
  .film-copy h2,
  .director-statement blockquote,
  .credibility-card blockquote,
  .short-film-body h3 {
    overflow-wrap: anywhere;
    white-space: pre-wrap;
  }
  .reel-subsection__header {
    justify-items: start;
    text-align: left;
  }
  .reel-subsection__header p { max-width: 100%; }
  .reel-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-inline: 0.5rem;
    overflow-x: hidden;
    touch-action: pan-y;
  }
  .reel-card { flex: 0 0 100%; width: 100%; }
  .reel-card__body { min-height: auto; }
  .portfolio-cta { flex-direction: column; align-items: stretch; }
  .portfolio-cta a { width: 100%; }
  .film-hero { min-height: 92svh; padding: 7rem 0.75rem 3rem; }
  .film-hero h1 { font-size: clamp(3rem, 18vw, 5rem); overflow-wrap: anywhere; }
  main[class*="page-font-size-"] .film-hero h1 { font-size: clamp(3rem, 18vw, 5rem); }
  main[class*="page-font-size-"] .portfolio-hero__copy h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  main[class*="page-font-size-"] .section-header h2,
  main[class*="page-font-size-"] .film-copy h2 { font-size: clamp(2rem, 9vw, 3rem); }
  main[class*="page-font-size-"] .director-statement blockquote,
  main[class*="page-font-size-"] .credibility-card blockquote { font-size: clamp(1.65rem, 6vw, 2.7rem); }
  .section-font-size-compact,
  .section-font-size-large,
  .section-font-size-xlarge {
    font-size: 1rem;
  }
  .section-font-size-compact.film-hero h1,
  .section-font-size-large.film-hero h1,
  .section-font-size-xlarge.film-hero h1 { font-size: clamp(3rem, 18vw, 5rem); }
  .section-font-size-compact .portfolio-hero__copy h1,
  .section-font-size-large .portfolio-hero__copy h1,
  .section-font-size-xlarge .portfolio-hero__copy h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .section-font-size-compact .section-header h2,
  .section-font-size-large .section-header h2,
  .section-font-size-xlarge .section-header h2,
  .section-font-size-compact .film-copy h2,
  .section-font-size-large .film-copy h2,
  .section-font-size-xlarge .film-copy h2 { font-size: clamp(2rem, 9vw, 3rem); }
  .film-tagline { overflow-wrap: anywhere; }
  .film-skill-grid,
  .bts-grid,
  .journey-grid {
    grid-template-columns: 1fr;
  }
  .film-skill-card { min-height: auto; }
  .materials-actions,
  .footer-links,
  .film-meta-row,
  .badge-row,
  .social-row {
    justify-content: flex-start;
  }
  .materials-actions .btn,
  .contact-form .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .topbar {
    gap: 0.75rem;
  }

  .brand-pill span {
    max-width: calc(100vw - 6rem);
    overflow-wrap: anywhere;
  }

  .section-label,
  .eyebrow,
  .film-meta-row span,
  .badge-row span {
    letter-spacing: 0.08em;
  }

  .about-copy,
  .skill-panel,
  .service-card,
  .script-card,
  .testimonial-card,
  .stat-card,
  .dashboard-actions,
  .contact-copy,
  .contact-form,
  .experience-item,
  .experience-skills,
  .reel-card__body {
    padding: 1.25rem;
  }

  .reel-rail__button {
    display: none;
  }
}
