/* ---------- Design tokens ---------- */
:root{
  --bg: #0F1115;
  --bg-alt: #14171C;
  --surface: #1A1D23;
  --surface-2: #22262E;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);

  --text-primary: #F2F1EC;
  --text-secondary: #A6A9B2;
  --text-muted: #6D707A;

  --accent-1: #9CC6F2;
  --accent-2: #378ADD;
  --accent-3: #0C447C;
  --accent-gradient: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --maxw: 1180px;
}

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }
ul,ol{ list-style: none; margin:0; padding:0; }
h1,h2,h3{ font-family: var(--font-display); font-weight: 600; margin: 0 0 0.5em; line-height: 1.15; }
p{ margin: 0 0 1em; color: var(--text-secondary); }

.wrap{ max-width: var(--maxw); margin: 0 auto; padding: 0 32px; }

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

/* subtle film-grain texture over everything */
.grain{
  position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-family: var(--font-body);
  font-weight: 600; font-size: 14.5px; letter-spacing: 0.2px;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:active{ transform: scale(0.97); }
.btn-primary{ background: var(--accent-gradient); color: #08131F; }
.btn-primary:hover{ filter: brightness(1.08); }
.btn-outline{ border-color: var(--border-strong); color: var(--text-primary); }
.btn-outline:hover{ border-color: var(--accent-1); }
.btn-ghost{ color: var(--text-primary); border-color: var(--border); padding: 10px 20px; font-size: 13.5px; }
.btn-ghost:hover{ border-color: var(--accent-1); }

/* ---------- Header ---------- */
.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}
.site-header.is-scrolled{
  background: rgba(15,17,21,0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.header-inner{
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 20px; padding-bottom: 20px; gap: 24px;
}
.logo{ display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark{ display: block; }
.logo-word{
  font-family: var(--font-display); font-weight: 300; font-size: 20px;
  letter-spacing: 0.5px; color: var(--text-primary); display: flex; flex-direction: column; line-height: 1.05;
}
.logo-sub{
  font-weight: 700; font-size: 9px; letter-spacing: 3px; color: var(--accent-1); margin-top: 2px;
}
.main-nav{ display: flex; gap: 34px; margin-left: auto; margin-right: 34px; }
.main-nav a{
  font-size: 14.5px; color: var(--text-secondary); font-weight: 500; position: relative; padding: 4px 0;
  transition: color 0.2s ease;
}
.main-nav a:hover{ color: var(--text-primary); }
.header-cta{ flex-shrink: 0; }

.nav-toggle{
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 38px; height: 38px; background: none; border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.nav-toggle span{ display: block; height: 1.5px; width: 18px; margin: 0 auto; background: var(--text-primary); }
.mobile-nav{
  display: none; flex-direction: column; gap: 2px; padding: 8px 32px 20px;
  background: rgba(15,17,21,0.96);
}
.mobile-nav a{ padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.mobile-nav.is-open{ display: flex; }

/* ---------- Hero ---------- */
.hero{
  position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: center;
  overflow: hidden; padding-top: 110px; padding-bottom: 80px;
}
.hero-media{
  position: absolute; inset: 0; z-index: 0; overflow: hidden; background: #0B0C0F;
}
.hero-media iframe{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 177.78vh; min-width: 100%;
  height: 100vh; min-height: 56.25vw;
  pointer-events: none; border: 0;
}
.hero-overlay{
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(15,17,21,0.35) 0%, rgba(15,17,21,0.6) 70%, var(--bg) 100%);
}
.hero-beam{
  position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 780px; max-height: 780px;
  background: radial-gradient(circle at 40% 40%, rgba(156,198,242,0.32), rgba(55,138,221,0.14) 45%, transparent 70%);
  filter: blur(10px); z-index: 1;
  animation: drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
.mute-toggle{
  position: absolute; bottom: 34px; right: 32px; z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong);
  background: rgba(15,17,21,0.5); backdrop-filter: blur(6px); color: var(--text-primary);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.mute-toggle:hover{ border-color: var(--accent-1); }
.mute-toggle .icon-unmuted{ display: none; }
.mute-toggle[aria-pressed="true"] .icon-muted{ display: none; }
.mute-toggle[aria-pressed="true"] .icon-unmuted{ display: block; }
@media (max-width: 760px){
  .mute-toggle{ bottom: 24px; right: 22px; width: 40px; height: 40px; }
}
.beam-small{ width: 40vw; height: 40vw; top: -10%; right: -15%; opacity: 0.6; }
@keyframes drift{
  0%{ transform: translate(0,0) scale(1); }
  100%{ transform: translate(-40px, 30px) scale(1.06); }
}
.hero-grid{
  position: absolute; inset: 0; pointer-events: none; opacity: 0.5; z-index: 1;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-inner{ position: relative; z-index: 2; max-width: 760px; }
.eyebrow{
  font-size: 13px; font-weight: 600; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent-1); margin: 0 0 18px;
}
.hero-headline{
  font-size: clamp(38px, 6vw, 68px); font-weight: 600; letter-spacing: -1px; color: var(--text-primary);
}
.hero-headline em{
  font-style: italic; font-weight: 300;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub{ font-size: 18px; max-width: 520px; margin-top: 22px; }
.hero-actions{ display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }

.scroll-cue{
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 36px; border: 1.5px solid var(--border-strong); border-radius: 20px;
}
.scroll-cue span{
  display: block; width: 3px; height: 7px; background: var(--accent-1); border-radius: 3px;
  margin: 6px auto 0; animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue{
  0%{ transform: translateY(0); opacity: 1; }
  70%{ transform: translateY(10px); opacity: 0; }
  100%{ opacity: 0; }
}

/* ---------- Section shared ---------- */
section{ padding: 120px 0; position: relative; }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-head h2{ font-size: clamp(28px, 3.6vw, 42px); }
.section-sub{ font-size: 16.5px; }

/* ---------- Work grid ---------- */
.work{ background: var(--bg-alt); }
.filter-row{ display: flex; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; }
.filter-btn{
  background: transparent; border: 1px solid var(--border); color: var(--text-secondary);
  padding: 9px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 500; cursor: pointer;
  transition: all 0.2s ease;
}
.filter-btn:hover{ border-color: var(--border-strong); color: var(--text-primary); }
.filter-btn.is-active{ background: var(--text-primary); color: var(--bg); border-color: var(--text-primary); }

.work-grid{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
}
.work-card{ display: block; }
.work-card[hidden]{ display: none; }
.work-media{
  position: relative; aspect-ratio: 4/3; border-radius: var(--radius-md); overflow: hidden;
  background: var(--surface); isolation: isolate;
}
/* Viewfinder corner brackets — the signature hover treatment, echoes the frame mark */
.work-media::before,.work-media::after,
.work-media .play-btn::before,.work-media .play-btn::after{ content: none; }
.work-media{
  --bracket: rgba(255,255,255,0);
}
.work-media .corner{ position: absolute; width: 22px; height: 22px; border-color: var(--accent-1); opacity: 0; transition: opacity 0.3s ease, transform 0.3s ease; z-index: 3; }
.media-placeholder{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform 0.5s ease;
}
.ph-1{ background: linear-gradient(135deg,#2b3a4a,#111418); }
.ph-2{ background: linear-gradient(135deg,#1f2c3d,#0c447c33); }
.ph-3{ background: linear-gradient(135deg,#233042,#101317); }
.ph-4{ background: linear-gradient(135deg,#182533,#0f1115); }
.ph-5{ background: linear-gradient(135deg,#20303f,#0c447c26); }
.ph-6{ background: linear-gradient(135deg,#1c2733,#111418); }

.work-media::after{
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid transparent; border-radius: var(--radius-md);
  box-shadow: inset 0 0 0 0 var(--accent-1);
  transition: box-shadow 0.3s ease;
  z-index: 2; pointer-events: none;
}
.work-card:hover .work-media::after{
  box-shadow: inset 0 0 0 2px var(--accent-1);
}
.work-card:hover .media-placeholder{ transform: scale(1.04); }

.play-btn{
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(0.85);
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(15,17,21,0.55); backdrop-filter: blur(6px);
  color: var(--text-primary); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 4;
}
.work-card:hover .play-btn{ opacity: 1; transform: translate(-50%,-50%) scale(1); }
.play-btn svg{ margin-left: 3px; }

.work-meta{ display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.work-meta h3{ font-size: 16.5px; font-weight: 500; margin: 0; }
.work-meta p{ font-size: 13px; color: var(--text-muted); margin: 0; }

/* ---------- Services ---------- */
.services-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.services-grid-3{ grid-template-columns: repeat(3, 1fr); }
.service-card{ background: var(--bg); padding: 34px 28px; }
.service-icon{
  display: block; width: 34px; height: 34px; margin-bottom: 20px; border-radius: 8px;
  background: var(--accent-gradient);
}
.service-card h3{ font-size: 18px; margin-bottom: 10px; }
.service-card p{ font-size: 14.5px; margin: 0; }

/* ---------- Stats ---------- */
.stats{ padding: 64px 0; border-bottom: 1px solid var(--border); }
.stats-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat{ display: flex; flex-direction: column; gap: 6px; text-align: center; }
.stat-num{
  font-family: var(--font-display); font-weight: 600; font-size: clamp(30px, 4vw, 44px);
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-label{ font-size: 13.5px; color: var(--text-secondary); }

/* ---------- Clients ---------- */
.clients{ padding: 56px 0 88px; }
.clients-label{ text-align: center; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 26px; }
.clients-row{ display: flex; flex-wrap: wrap; justify-content: center; gap: 44px; }
.client-logo{
  font-family: var(--font-display); font-weight: 500; font-size: 17px; color: var(--text-muted);
  opacity: 0.75; transition: opacity 0.2s ease, color 0.2s ease;
}
.client-logo:hover{ opacity: 1; color: var(--text-secondary); }

/* ---------- Team ---------- */
.team-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.team-card{ text-align: left; }
.team-photo{
  aspect-ratio: 1; border-radius: var(--radius-md); margin-bottom: 16px;
  background: linear-gradient(150deg, #232833, #14171c);
  border: 1px solid var(--border);
}
.team-card h3{ font-size: 16px; margin-bottom: 2px; }
.team-card p{ font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonials{ background: var(--bg-alt); }
.testimonial-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card{
  margin: 0; padding: 28px 26px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 20px;
}
.testimonial-card p{ font-size: 15px; color: var(--text-primary); margin: 0; line-height: 1.6; }
.testimonial-card footer{ display: flex; flex-direction: column; gap: 2px; }
.t-name{ font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.t-role{ font-size: 12.5px; color: var(--text-muted); }

/* ---------- Process ---------- */
.process{ background: var(--bg-alt); }
.process-list{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process-num{
  display: block; font-family: var(--font-display); font-weight: 300; font-size: 40px;
  background: var(--accent-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 18px;
}
.process-list h3{ font-size: 17px; margin-bottom: 8px; }
.process-list p{ font-size: 14px; margin: 0; }

/* ---------- Contact ---------- */
.contact{ overflow: hidden; }
.contact-inner{ position: relative; z-index: 2; max-width: 620px; }
.contact-form{ margin-top: 36px; display: flex; flex-direction: column; gap: 20px; }
.form-row{ display: flex; flex-direction: column; gap: 8px; }
.form-row label{ font-size: 13.5px; font-weight: 500; color: var(--text-secondary); }
.form-row input, .form-row textarea{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 13px 16px; color: var(--text-primary); font-family: var(--font-body); font-size: 15px;
  resize: vertical; transition: border-color 0.2s ease;
}
.form-row input:focus, .form-row textarea:focus{
  outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 3px rgba(156,198,242,0.15);
}
.contact-form .btn{ align-self: flex-start; margin-top: 6px; }
.form-note{ font-size: 13.5px; color: var(--accent-1); min-height: 1em; margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 48px 0; }
.footer-inner{ display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.logo-footer .logo-word{ font-size: 17px; }
.footer-links{ display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a{ font-size: 13.5px; color: var(--text-secondary); }
.footer-links a:hover{ color: var(--text-primary); }
.footer-copy{ font-size: 12.5px; color: var(--text-muted); margin: 0; width: 100%; text-align: center; order: 3; }

/* ---------- Responsive ---------- */
@media (max-width: 980px){
  .work-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .services-grid-3{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: repeat(2, 1fr); }
  .stats-grid{ grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .team-grid{ grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid{ grid-template-columns: 1fr; }
}
@media (max-width: 760px){
  .main-nav, .header-cta{ display: none; }
  .nav-toggle{ display: flex; }
  .wrap{ padding: 0 22px; }
  section{ padding: 84px 0; }
  .work-grid{ grid-template-columns: 1fr; }
  .services-grid{ grid-template-columns: 1fr; }
  .process-list{ grid-template-columns: 1fr; gap: 28px; }
  .footer-inner{ justify-content: center; text-align: center; }
  .stats-grid{ grid-template-columns: 1fr 1fr; }
  .team-grid{ grid-template-columns: 1fr 1fr; }
  .clients-row{ gap: 26px 32px; }
}
