/* ==========================================================================
   KAIS VISUALS , design tokens
   Direction: Negative Space Editorial
   Pure black / off-white, no accent color. Confidence through restraint.
   The KV mark (a black square) is the one recurring device , used as a
   badge, a bullet, and a cursor , rather than a color, a gradient or motion.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --ink: #000000;
  --paper: #f2f0ea;
  --paper-dim: rgba(242,240,234,0.58);
  --paper-faint: rgba(242,240,234,0.32);
  --line: rgba(242,240,234,0.16);
  --accent: #ff2b1f;

  --font-display: 'Sora', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --edge: clamp(20px, 4.5vw, 64px);
  --ease: cubic-bezier(.16,1,.3,1);
}

*, *::before, *::after{ box-sizing: border-box; }

[hidden]{ display: none !important; }

html{ background: var(--ink); overflow-x: hidden; }

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

body{
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
  overflow-x: hidden;
}

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

::selection{ background: var(--paper); color: var(--ink); }

:focus-visible{ outline: 2px solid var(--paper); outline-offset: 3px; }

.mono{ font-family: var(--font-mono); letter-spacing: 0.01em; }

/* ==========================================================================
   The mark , used as nav badge, bullet, section marker
   ========================================================================== */

.mark{ width: 34px; height: 34px; flex: none; display: block; }
.mark img{ width: 100%; height: 100%; }

.sq{ display: inline-block; width: 7px; height: 7px; background: var(--paper); flex: none; }
.sq--outline{ background: transparent; border: 1px solid var(--paper-faint); }

/* Index badge , a small square frame around a number, echoing the mark */
.idx{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  flex: none;
}

/* ==========================================================================
   Custom cursor , a square outline that fills solid over links (desktop only)
   ========================================================================== */

.cursor-sq{
  position: fixed;
  top: 0; left: 0;
  width: 16px; height: 16px;
  border: 1px solid var(--paper);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 999;
  transition: width 0.2s var(--ease), height 0.2s var(--ease), background 0.2s var(--ease);
  display: none;
}

.has-fine-pointer .cursor-sq{ display: block; }
.has-fine-pointer{ cursor: none; }
.has-fine-pointer a, .has-fine-pointer button{ cursor: none; }

.cursor-sq.is-active{
  width: 34px;
  height: 34px;
  background: transparent;
  border-color: var(--accent);
}

/* ==========================================================================
   Layout shell
   ========================================================================== */

.shell{ max-width: 1360px; margin: 0 auto; padding: 0 var(--edge); }

/* ==========================================================================
   Nav
   ========================================================================== */

.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--edge);
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}

.nav-left{ display: flex; align-items: center; gap: 12px; }
.nav-name{ font-weight: 700; font-size: 1rem; letter-spacing: -0.01em; }

.nav-links{
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.nav-links a{ position: relative; padding-bottom: 2px; }

.nav-links a::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after{ right: 0; }

.lang-toggle{
  position: relative;
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.lang-toggle::after{
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transition: right 0.3s var(--ease);
}

.lang-toggle:hover::after{ right: 0; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero{ min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-top: 90px; }

.rec-indicator{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--paper-dim);
  margin-bottom: clamp(20px, 4vw, 36px);
}

.rec-dot{
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255,43,31,0.5);
  animation: pulse 1.8s infinite;
}

@keyframes pulse{
  0%{ box-shadow: 0 0 0 0 rgba(255,43,31,0.45); }
  70%{ box-shadow: 0 0 0 8px rgba(255,43,31,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,43,31,0); }
}

.hero-grid{ display: grid; grid-template-columns: 1fr; gap: clamp(24px, 4vw, 40px); }

@media (min-width: 860px){
  .hero-grid{ grid-template-columns: 1.5fr 1fr; align-items: end; }
}

.hero-title{
  font-weight: 800;
  letter-spacing: -0.045em;
  font-size: clamp(3.2rem, 10vw, 8rem);
  line-height: 0.94;
  margin: 0;
}

.hero-title .line{
  display: block;
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.8s var(--ease) forwards;
}

.hero-title .line:nth-child(1){ animation-delay: 0.05s; }
.hero-title .line:nth-child(2){ animation-delay: 0.14s; }
.hero-title .line:nth-child(3){ animation-delay: 0.23s; }

@keyframes rise{ to{ opacity: 1; transform: translateY(0); } }

.hero-side{ display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 20px; }
.hero-side p{ color: var(--paper-dim); font-size: 1.05rem; max-width: 34ch; margin: 0; }

/* ==========================================================================
   Section scaffolding
   ========================================================================== */

section{ padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }

.section-head{ display: flex; align-items: baseline; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-title{ font-weight: 700; letter-spacing: -0.03em; font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0; }

/* ==========================================================================
   Work list , full-width editorial rows, not a card grid
   ========================================================================== */

.work-list{ display: flex; flex-direction: column; }

.work-row{
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}

@media (min-width: 860px){
  .work-row{ grid-template-columns: 2.4fr 1.3fr; align-items: center; }
}

.work-row:first-child{ padding-top: 0; }

.work-info{ display: flex; flex-direction: column; gap: 10px; }
.work-tag{ font-family: var(--font-mono); font-size: 0.75rem; color: var(--paper-faint); }
.work-title{ font-weight: 700; letter-spacing: -0.02em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.02; margin: 0; }
.work-desc{ color: var(--paper-dim); max-width: 48ch; font-size: 0.98rem; }

.frame{
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1c1c1c 0%, #050505 60%, #000 100%);
  aspect-ratio: 4/3;
}

.frame video,
.frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

@media (min-width: 860px){
  .work-row .frame{ order: 2; }
  .work-row .work-info{ order: 1; }
}

/* ==========================================================================
   Services
   ========================================================================== */

.services-list{ border-top: 1px solid var(--line); }

.service-row{
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: clamp(16px, 4vw, 40px);
  padding: clamp(24px, 3.6vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

@media (min-width: 760px){
  .service-row{ grid-template-columns: 2.4rem minmax(0,16ch) 1fr; align-items: baseline; }
}

.service-name{ font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.service-desc{ color: var(--paper-dim); max-width: 52ch; font-size: 1rem; }
@media (max-width: 759px){
  .service-desc{
    grid-column: 2;
  }
}

/* ==========================================================================
   About
   ========================================================================== */

.about-grid{ display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); }

@media (min-width: 860px){
  .about-grid{ grid-template-columns: 1fr 1fr; align-items: center; }
}

.about-copy p{ font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 34ch; margin: 0 0 20px; }
.about-copy p:last-child{ margin-bottom: 0; }

.about-meta{ margin-top: 24px; display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 0.8rem; color: var(--paper-faint); }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */

.cta-title{ font-weight: 800; letter-spacing: -0.04em; font-size: clamp(2.2rem, 6.5vw, 5rem); line-height: 1; margin: 0 0 28px; }
.cta-title a{ border-bottom: 2px solid var(--accent); transition: color 0.25s var(--ease); }
.cta-title a:hover{ color: var(--accent); }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--paper-dim);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.cta-row a:hover{ color: var(--paper); }

footer{
  padding: 22px var(--edge) 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--paper-faint);
}

footer a{ transition: color 0.25s var(--ease); }
footer a:hover{ color: var(--paper); }

.footer-links,
.footer-social{
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.breadcrumbs{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--paper-faint);
  margin-bottom: clamp(24px, 4vw, 40px);
}

.breadcrumbs a{ transition: color 0.25s var(--ease); }
.breadcrumbs a:hover{ color: var(--paper); }
.breadcrumbs [aria-current="page"]{ color: var(--paper-dim); }

/* ==========================================================================
   Work index page
   ========================================================================== */

.work-header{ padding-top: 130px; padding-bottom: clamp(40px, 6vw, 64px); border-top: none; }
.work-header-title{ font-weight: 800; letter-spacing: -0.045em; font-size: clamp(2.6rem, 7.5vw, 6rem); line-height: 0.96; margin: 14px 0 0; }
.work-count{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--paper-faint); }

/* ==========================================================================
   Reel grid, video only, no captions or metadata
   ========================================================================== */

.reel-grid{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(8px, 1.6vw, 16px);
}

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

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

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

.reel-frame,
.work-row .frame,
.hero-grid > *,
.about-grid > *,
.work-row > *{
  min-width: 0;
}

.reel-frame{
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, #1c1c1c 0%, #050505 60%, #000 100%);
  aspect-ratio: 9/16;
}

.reel-frame video,
.reel-frame img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ==========================================================================
   Wide row, horizontal clips only, kept out of the vertical grid entirely
   so they never share a row with a differently-shaped tile
   ========================================================================== */

.wide-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(8px, 1.6vw, 16px);
  margin-top: clamp(8px, 1.6vw, 16px);
  padding-bottom: clamp(64px, 9vw, 110px);
}

@media (min-width: 900px){
  .wide-grid{ grid-template-columns: repeat(2, 1fr); }
}

.reel-frame.is-wide{
  aspect-ratio: 16/9;
}

.reel-frame {
  cursor: pointer;
}

.play-indicator {
  position: absolute;
  left: 16px;
  bottom: 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--paper);
  border: 1px solid var(--paper);
  padding: 6px 9px;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.reel-frame.is-playing .play-indicator {
  opacity: 0;
}

.has-fine-pointer .reel-frame,
.has-fine-pointer .reel-frame video {
  cursor: none;
}