:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-rgb: 5, 5, 5;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.075);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --muted-2: #6e6e73;
  --cyan: #37d9ff;
  --magenta: #f04bd8;
  --header-offset: 88px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
}

* {
  box-sizing: border-box;
}

::selection {
  background: rgba(55, 217, 255, 0.25);
  color: #fff;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-offset) + var(--safe-top) + 12px);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, 0.105), transparent 34rem),
    radial-gradient(circle at 12% 26%, rgba(55, 217, 255, 0.055), transparent 26rem),
    radial-gradient(circle at 86% 18%, rgba(240, 75, 216, 0.052), transparent 25rem),
    linear-gradient(180deg, #090909 0%, var(--bg) 42%, #030303 100%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body.scroll-locked {
  overflow: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.032), transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), transparent 18rem);
  opacity: 0.5;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 100% 7px;
  opacity: 0.18;
}

.skip-link {
  position: fixed;
  top: calc(12px + var(--safe-top));
  left: calc(12px + var(--safe-left));
  z-index: 100;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: #fff;
  color: #050505;
  font-size: 0.82rem;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 220ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.film-grain {
  position: fixed;
  inset: -50%;
  z-index: 9999;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.025;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  10% { transform: translate(-5%, -10%); }
  20% { transform: translate(-15%, 5%); }
  30% { transform: translate(7%, -25%); }
  40% { transform: translate(-5%, 25%); }
  50% { transform: translate(-15%, 10%); }
  60% { transform: translate(15%, 0%); }
  70% { transform: translate(0%, 15%); }
  80% { transform: translate(3%, 35%); }
  90% { transform: translate(-10%, 10%); }
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

#atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.55;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #fff, var(--cyan), var(--magenta));
  box-shadow: 0 0 24px rgba(55, 217, 255, 0.34);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

.pointer-light {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.075) 0%, transparent 50%),
    radial-gradient(circle, rgba(55, 217, 255, 0.055) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 500ms ease;
  will-change: transform;
  transform: translate3d(-9999px, -9999px, 0);
}

body.has-pointer .pointer-light {
  opacity: 1;
}

.site-header {
  position: fixed;
  top: calc(14px + var(--safe-top));
  left: 50%;
  right: auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: min(1160px, calc(100% - 28px - var(--safe-left) - var(--safe-right)));
  margin: 0;
  padding: 8px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.62);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(22px) saturate(1.15);
  -webkit-backdrop-filter: blur(22px) saturate(1.15);
  transform: translateX(-50%) translateY(0);
  transition: background 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(var(--bg-rgb), 0.82);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.52);
}

.brand-mark,
.footer-mark {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.brand-mark {
  position: relative;
  overflow: hidden;
}

.brand-mark::after {
  position: absolute;
  inset: -40% auto -40% -70%;
  width: 65%;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(18deg);
  animation: brandShine 5.8s ease-in-out infinite;
}

.brand-mark span,
.footer-mark {
  background: linear-gradient(120deg, #fff, var(--cyan) 42%, var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.2rem;
  margin-inline: auto;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.nav-links a,
.header-cta,
.menu-toggle {
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nav-links a {
  position: relative;
  padding-block: 0.35rem;
}

.nav-links a::after {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: #fff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.header-cta {
  display: none;
  min-height: 40px;
  padding: 0.7rem 0.92rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.menu-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
  cursor: pointer;
}

.menu-toggle:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.menu-toggle-bar {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: translateX(-50%);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 200ms ease, width 260ms ease;
}

.menu-toggle-bar:nth-child(1) { transform: translate(-50%, -6px); }
.menu-toggle-bar:nth-child(2) { transform: translate(-50%, 0); }
.menu-toggle-bar:nth-child(3) { transform: translate(-50%, 6px); }

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  transform: translate(-50%, 0) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  width: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  transform: translate(-50%, 0) rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.mobile-menu.is-open {
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: opacity 320ms ease;
}

.mobile-menu.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: absolute;
  top: calc(72px + var(--safe-top));
  right: calc(14px + var(--safe-right));
  left: calc(14px + var(--safe-left));
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  opacity: 0;
  transform: translateY(-12px) scale(0.98);
  transition:
    opacity 320ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu.is-open .mobile-menu-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.mobile-menu-label {
  margin: 0 0 0.35rem;
  padding: 0 0.35rem;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  transition: background 180ms ease, transform 180ms ease;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-cta {
  width: 100%;
  margin-top: 0.5rem;
}

.section-shell {
  width: min(1160px, calc(100% - 32px - var(--safe-left) - var(--safe-right)));
  margin: 0 auto;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding: calc(118px + var(--safe-top)) 0 calc(64px + var(--safe-bottom));
  gap: 3rem;
  perspective: 1200px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--muted-2);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 780px;
  margin-bottom: 1rem;
  font-size: clamp(3rem, 12vw, 4.2rem);
  font-weight: 900;
  line-height: 0.9;
  text-wrap: balance;
}

h1 span {
  display: inline-block;
  background: linear-gradient(100deg, #fff 0%, #f5f5f7 34%, var(--cyan) 62%, var(--magenta) 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 54px rgba(55, 217, 255, 0.12));
}

h2 {
  max-width: 760px;
  margin-bottom: 1rem;
  font-size: clamp(1.85rem, 6vw, 2.35rem);
  font-weight: 800;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.02rem;
  font-weight: 800;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.section-lead {
  max-width: 560px;
  margin-bottom: 0;
  font-size: 1rem;
}

.hero-tagline {
  margin-bottom: 0.8rem;
  color: #fff;
  font-size: clamp(1.2rem, 4vw, 1.45rem);
  font-weight: 800;
}

.hero-description {
  max-width: 560px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.9rem 1.1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  transition: box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.magnetic {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  --hover-lift: 0px;
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) + var(--hover-lift)), 0);
  will-change: transform;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.magnetic:hover,
.magnetic:focus-visible {
  --hover-lift: -2px;
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #f5f5f7;
  color: #050505;
  box-shadow: 0 16px 40px rgba(255, 255, 255, 0.08), inset 0 -8px 18px rgba(0, 0, 0, 0.12);
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.primary-button:hover,
.primary-button:focus-visible {
  box-shadow: 0 18px 54px rgba(55, 217, 255, 0.18), inset 0 -8px 18px rgba(0, 0, 0, 0.12);
}

.ghost-button:hover,
.ghost-button:focus-visible {
  background: rgba(255, 255, 255, 0.085);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 0 20px rgba(240, 75, 216, 0.08);
}

.button-icon {
  margin-right: 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

.hero-visual::before {
  position: absolute;
  inset: 10% -8% auto;
  height: 68%;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at 35% 35%, rgba(55, 217, 255, 0.2), transparent 18rem),
    radial-gradient(circle at 72% 58%, rgba(240, 75, 216, 0.18), transparent 16rem);
  filter: blur(14px);
}

.profile-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025));
  box-shadow:
    0 35px 95px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  transform: translateZ(0);
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 700ms ease;
}

.profile-frame::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 34%),
    linear-gradient(135deg, rgba(55, 217, 255, 0.14), transparent 26%, transparent 72%, rgba(240, 75, 216, 0.14));
}

.profile-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  content: "";
  background: linear-gradient(105deg, transparent 26%, rgba(255, 255, 255, 0.13), transparent 42%);
  transform: translateX(-120%);
  animation: cinematicSweep 7.5s ease-in-out infinite;
}

.profile-frame img {
  width: 100%;
  aspect-ratio: 1 / 1.12;
  object-fit: cover;
  transform: scale(1.03);
  filter: contrast(1.04) saturate(0.98);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
}

.hero-visual:hover .profile-frame {
  transform: translateY(-6px) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: 0 42px 110px rgba(0, 0, 0, 0.7), 0 0 42px rgba(55, 217, 255, 0.08);
}

.hero-visual:hover .profile-frame img {
  transform: scale(1.065);
  filter: contrast(1.08) saturate(1.04);
}

.hero-meta {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  margin-top: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32);
}

.hero-meta div {
  padding: 1rem;
  background: rgba(10, 10, 10, 0.74);
}

.hero-meta span,
.tool-label,
.reel-tag {
  display: block;
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-meta strong {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.98rem;
  color: #fff;
}

.work-header {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.work-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.work-stat {
  min-width: 140px;
  padding: 0.95rem 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.work-stat strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1.35rem;
  font-weight: 900;
  background: linear-gradient(120deg, #fff, var(--cyan) 55%, var(--magenta));
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.work-stat span {
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.work-footer {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
}

.work-footer p {
  max-width: 520px;
  margin: 0;
}

.work-footer .ghost-button {
  width: fit-content;
}

.about,
.work,
.services {
  padding: clamp(72px, 10vw, 104px) 0;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.about-grid,
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--line-soft);
}

.glass-panel,
.service-card {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.042);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.glass-panel::before,
.service-card::before,
.reel-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    radial-gradient(circle at var(--card-x, 50%) var(--card-y, 0%), rgba(255, 255, 255, 0.12), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  opacity: 0;
  transition: opacity 240ms ease;
}

.glass-panel:hover::before,
.service-card:hover::before,
.reel-card:hover::before {
  opacity: 1;
}

.glass-panel {
  min-height: 190px;
  padding: 1.35rem;
}

.glass-panel p:last-child,
.service-card p:last-child {
  margin-bottom: 0;
}

.tool-panel {
  background:
    linear-gradient(150deg, rgba(55, 217, 255, 0.09), rgba(240, 75, 216, 0.045)),
    rgba(255, 255, 255, 0.045);
}

.tool-label {
  margin-bottom: 0.65rem;
}

.tool-panel strong {
  display: block;
  margin-bottom: 0.6rem;
  font-size: 1.5rem;
}

.service-card {
  min-height: 220px;
  padding: 1.3rem;
  transition: background 260ms ease, transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 360ms ease;
}

.service-card:hover {
  background: rgba(255, 255, 255, 0.065);
  transform: translateY(-5px);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.3);
}

.service-icon {
  display: block;
  margin-bottom: 2.4rem;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 900;
}

.reel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.reel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 360ms ease, border-color 260ms ease;
}

.reel-card:hover,
.reel-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38), 0 0 30px rgba(55, 217, 255, 0.08);
}

.reel-preview-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.reel-preview-btn:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: -2px;
}

.reel-thumb {
  position: relative;
  aspect-ratio: 9 / 12;
  overflow: hidden;
  background: #0a0a0c;
}

.reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 600ms ease;
}

.reel-card:hover .reel-thumb img,
.reel-card:focus-within .reel-thumb img,
.reel-preview-btn:hover img,
.reel-preview-btn:focus-visible img {
  transform: scale(1.08);
  filter: contrast(1.06) saturate(1.05);
}

.reel-thumb-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 28%, transparent 62%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2), transparent 18%, transparent 82%, rgba(0, 0, 0, 0.2));
}

.reel-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  padding: 0.35rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.65);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reel-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.55);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), background 260ms ease;
}

.reel-card:hover .reel-play-icon,
.reel-card:focus-within .reel-play-icon,
.reel-preview-btn:hover .reel-play-icon,
.reel-preview-btn:focus-visible .reel-play-icon {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(255, 255, 255, 0.14);
}

.reel-body {
  display: grid;
  gap: 0.55rem;
  padding: 1.1rem 1.15rem 1.2rem;
  background: rgba(10, 10, 10, 0.92);
}

.reel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.reel-tag {
  display: inline-block;
  padding: 0.28rem 0.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.64rem;
}

.reel-body h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.reel-body p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.reel-external-link {
  display: inline-flex;
  margin-top: 0.85rem;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: color 180ms ease, opacity 180ms ease;
}

.reel-external-link:hover,
.reel-external-link:focus-visible {
  color: var(--cyan);
}

.reel-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: calc(1rem + var(--safe-top)) calc(1rem + var(--safe-right)) calc(1rem + var(--safe-bottom)) calc(1rem + var(--safe-left));
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease;
}

.reel-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.reel-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.reel-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
  width: min(420px, 100%);
  padding: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.96);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65);
  transform: translateY(12px) scale(0.98);
  transition: transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reel-modal.is-open .reel-modal-dialog {
  transform: translateY(0) scale(1);
}

.reel-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.reel-modal-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.reel-modal-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.reel-modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

.reel-modal-frame-wrap {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #000;
  aspect-ratio: 9 / 16;
}

.reel-modal-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.reel-modal-cta {
  width: 100%;
}

.footer {
  display: grid;
  gap: 1.3rem;
  align-items: center;
  width: min(1160px, calc(100% - 32px - var(--safe-left) - var(--safe-right)));
  margin: 58px auto calc(18px + var(--safe-bottom));
  padding: 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.042);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.36);
}

.footer h2 {
  margin-bottom: 0.55rem;
  font-size: clamp(1.6rem, 5vw, 1.95rem);
}

.footer p {
  margin-bottom: 0;
}

.footer a:not(.primary-button) {
  color: #fff;
  font-weight: 800;
}

.contact-email {
  margin-top: 1rem !important;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

.email-link {
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900 !important;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.email-link:hover,
.email-link:focus-visible {
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  right: calc(1.25rem + var(--safe-right));
  bottom: calc(1.25rem + var(--safe-bottom));
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.75);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px) scale(0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), background 200ms ease, border-color 200ms ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-4px) scale(1.05);
}

.reveal {
  opacity: 0;
  transform: translateY(26px) scale(0.985);
  filter: blur(8px);
  transition:
    opacity 900ms ease,
    transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 900ms ease;
}

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

@media (scripting: none) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes brandShine {
  0%, 34% { transform: translateX(0) rotate(18deg); }
  56%, 100% { transform: translateX(340%) rotate(18deg); }
}

@keyframes cinematicSweep {
  0%, 48% { transform: translateX(-120%); }
  64%, 100% { transform: translateX(135%); }
}

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

  #atmosphere {
    display: none;
  }

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

@media (min-width: 560px) {
  .header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

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

  .work-header {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .work-stats {
    justify-content: flex-end;
  }
}

@media (min-width: 720px) {
  .menu-toggle {
    display: none;
  }

  .mobile-menu {
    display: none;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  }

  h1 {
    font-size: 6.8rem;
  }

  h2 {
    font-size: 3.6rem;
  }

  .hero-tagline {
    font-size: 1.85rem;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .footer {
    grid-template-columns: auto 1fr auto;
    padding: 1.25rem;
  }

  .footer h2 {
    font-size: 2.8rem;
  }
}

@media (min-width: 960px) {
  .reel-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (min-width: 1040px) {
  h1 {
    font-size: 9.4rem;
  }

  h2 {
    font-size: 4.45rem;
  }

  .hero-tagline {
    font-size: 2.05rem;
  }

  .footer h2 {
    font-size: 3.4rem;
  }
}

@media (max-width: 559px) {
  .reel-grid {
    display: flex;
    gap: 0.9rem;
    margin-inline: calc(-1 * var(--safe-left));
    padding-inline: calc(16px + var(--safe-left)) calc(16px + var(--safe-right));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc(16px + var(--safe-left));
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

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

  .reel-card {
    flex: 0 0 min(78vw, 300px);
    scroll-snap-align: start;
  }

  .work-footer .ghost-button {
    width: 100%;
  }
}

@media (max-width: 719px) {
  .hero-actions a {
    width: 100%;
  }

  .hero {
    padding-top: calc(104px + var(--safe-top));
    perspective: none;
  }

  .hero-visual {
    transform-style: flat;
  }

  .site-header {
    width: calc(100% - 20px - var(--safe-left) - var(--safe-right));
  }
}

@media (max-width: 768px) {
  .film-grain {
    display: none !important;
  }

  .site-header,
  .hero-meta,
  .glass-panel,
  .service-card,
  .footer,
  .back-to-top,
  .reel-play-icon,
  .mobile-menu-panel,
  .reel-modal-dialog {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  .site-header {
    background: rgba(8, 8, 8, 0.96);
  }

  .site-header.is-scrolled {
    background: rgba(5, 5, 5, 0.99);
  }

  .glass-panel,
  .service-card,
  .footer,
  .hero-meta,
  .reel-play-icon {
    background: rgba(16, 16, 16, 0.95);
  }

  .back-to-top {
    background: rgba(10, 10, 10, 0.95);
  }

  .reveal {
    filter: none !important;
    transition:
      opacity 700ms ease,
      transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
  }

  .service-card:hover,
  .glass-panel:hover,
  .reel-card:hover {
    transform: none;
  }

  .hero-visual:hover .profile-frame {
    transform: none;
  }
}

@media (hover: none) {
  .service-card:hover,
  .glass-panel:hover,
  .reel-card:hover,
  .hero-visual:hover .profile-frame {
    transform: none;
    box-shadow: inherit;
  }

  .hero-visual:hover .profile-frame img {
    transform: scale(1.03);
    filter: contrast(1.04) saturate(0.98);
  }
}
