/* Shant Vartanian: Unreal cinematics and real-time 3D art.
   Layout idea: an edit room. Films sit next to their shot lists like an EDL; a red tally light marks the shot playing.
   Assets read like a turntable sheet: beauty first, then wireframe, textures and numbers. */
:root {
  --bg: #121314;
  --panel: #1A1B1D;
  --ink: #E8E7E3;
  --dim: #8E9093;
  --rule: #2A2C2F;
  --tally: #E5483B;           /* recording light: active shot, focus */
  --display: "Barlow Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --gutter: max(16px, 4vw);
  --fit-h: calc(100vh - 40px);
  color-scheme: dark;
}
@supports (height: 100svh) { :root { --fit-h: calc(100svh - 40px); } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; font-weight: 400; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
p + p { margin-top: .9em; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.04; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 10px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 20; }
.wrap { padding-inline: var(--gutter); max-width: 1680px; margin-inline: auto; }
.muted { color: var(--dim); }
.tc { font-variant-numeric: tabular-nums; }

/* Header */
.head { position: sticky; top: 0; z-index: 10; background: rgba(18,19,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 62px; }
.brand { font-family: var(--display); font-weight: 600; font-size: 21px; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.rec { width: 9px; height: 9px; border-radius: 50%; background: var(--tally); box-shadow: 0 0 0 3px rgba(229,72,59,.18); }
.nav { display: flex; gap: clamp(14px, 2.4vw, 30px); font-size: 16px; }
.nav a { text-decoration: none; color: var(--dim); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { position: relative; min-height: min(82vh, 860px); display: grid; align-items: end; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18,19,20,0) 35%, rgba(18,19,20,.82) 88%, var(--bg)); }
.hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: clamp(36px, 5vw, 72px); }
.hero h1 { font-size: clamp(40px, 6vw, 96px); max-width: 15ch; }
.hero p { font-size: clamp(18px, 1.5vw, 22px); color: #CFCFCB; max-width: 52ch; margin-top: 18px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { font-family: var(--display); font-size: 18px; font-weight: 600; text-decoration: none; padding: 11px 18px 10px; border: 1px solid #5A5C60; }
.btn:hover { border-color: var(--ink); }
.btn.solid { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 120px); border-top: 1px solid var(--rule); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(20px, 4vw, 64px); align-items: end; margin-bottom: clamp(28px, 4vw, 52px); }
.sec-head h2 { font-size: clamp(34px, 3.8vw, 60px); }
.sec-head p { color: #C9C9C5; max-width: 60ch; }

/* Film + shot list (edit room) */
.film-block + .film-block { margin-top: clamp(56px, 7vw, 100px); }
.film-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 20px; margin-bottom: 16px; }
.film-title h3 { font-size: clamp(28px, 2.6vw, 40px); }
.film-title span { color: var(--dim); font-size: 16px; }
.edit { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(300px, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.player { position: relative; aspect-ratio: var(--ar, 16 / 9); width: min(100%, calc(var(--fit-h) * var(--arn, 1.7778))); background: #000; }
.poster { all: unset; position: absolute; inset: 0; cursor: pointer; }
.poster img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s; }
.poster:hover img, .poster:focus-visible img { opacity: 1; }
.poster:focus-visible { outline: 2px solid var(--tally); outline-offset: 3px; }
.poster .play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 22px; text-shadow: 0 2px 14px rgba(0,0,0,.6); }
.poster svg { width: 76px; height: 76px; }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.shots { background: var(--panel); border: 1px solid var(--rule); }
.shots-head { display: flex; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 600; font-size: 17px; }
.shots-head span { color: var(--dim); font-weight: 500; }
.shots ol { list-style: none; margin: 0; padding: 0; }
.shot { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; width: 100%; padding: 11px 16px; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 15.5px; line-height: 1.4; }
.shots li:last-child .shot { border-bottom: 0; }
.shot:hover { background: #222326; }
.shot:focus-visible { outline: 2px solid var(--tally); outline-offset: -2px; }
.shot .t { font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.shot .t::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3A3C40; flex: none; }
.shot.live .t::before { background: var(--tally); box-shadow: 0 0 0 3px rgba(229,72,59,.2); }
.shot .move { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; }
.shot .what { display: block; color: #B9B9B5; }
.note { margin-top: 14px; font-size: 15px; color: var(--dim); }

/* Assets */
.asset { margin-top: clamp(20px, 3vw, 36px); }
.asset-hero { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); gap: clamp(16px, 2vw, 28px); align-items: start; }
.asset-hero > img { width: 100%; }
.specs { background: var(--panel); border: 1px solid var(--rule); padding: 20px 20px 8px; }
.specs h3 { font-size: 32px; }
.specs p { color: #C9C9C5; margin-top: 10px; font-size: 16px; }
.specs dl { margin: 18px 0 0; }
.specs dl div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--rule); font-size: 15.5px; }
.specs dt { color: var(--dim); }
.specs dd { margin: 0; font-variant-numeric: tabular-nums; }
.specs .link { display: inline-block; margin: 14px 0 10px; font-family: var(--display); font-weight: 600; }
.strip { display: grid; gap: 10px; margin-top: 10px; }
.strip.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #1a1a1a; }
.strip.square img { aspect-ratio: 1; }
.strip figcaption { font-size: 14.5px; color: var(--dim); padding-top: 7px; }
.zoom { all: unset; display: block; cursor: zoom-in; width: 100%; }
.zoom:focus-visible { outline: 2px solid var(--tally); outline-offset: 2px; }
.sub-h { font-size: 26px; margin: clamp(40px, 5vw, 64px) 0 6px; }
.sub-p { color: var(--dim); font-size: 16px; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 90px); }
.about-text p:first-child { font-size: clamp(21px, 1.7vw, 26px); line-height: 1.4; color: var(--ink); }
.about-text p { color: #C9C9C5; max-width: 62ch; }
.side h3 { font-size: 22px; color: var(--dim); margin: 0 0 12px; font-weight: 600; }
.side > * + h3 { margin-top: 34px; }
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.jobs li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.jobs .when { color: var(--dim); font-variant-numeric: tabular-nums; }
.jobs b { display: block; font-family: var(--display); font-weight: 600; font-size: 19px; }
.jobs span.d { color: #B9B9B5; }
.tools { margin: 0; display: grid; gap: 8px; font-size: 16px; }
.tools div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; }
.tools dt { color: var(--dim); }
.tools dd { margin: 0; }

/* Contact */
.contact { text-align: left; }
.contact h2 { font-size: clamp(36px, 4.4vw, 68px); max-width: 16ch; }
.contact .lines { display: flex; flex-wrap: wrap; gap: 14px 34px; margin-top: 26px; font-family: var(--display); font-weight: 600; font-size: clamp(20px, 1.8vw, 28px); }
.contact .lines a { text-decoration: none; border-bottom: 2px solid var(--tally); }
.foot { border-top: 1px solid var(--rule); padding-block: 26px 36px; font-size: 14px; color: var(--dim); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* Lightbox */
.lightbox { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(12,12,13,.97); color: var(--ink); }
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lb-bar, .lb-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px var(--gutter); font-size: 15px; color: var(--dim); }
.lb-stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-btn { all: unset; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); padding: 6px 4px; }
.lb-btn:hover { color: var(--tally); }
.lb-btn:focus-visible { outline: 2px solid var(--tally); }

@media (max-width: 980px) {
  .edit, .asset-hero, .about, .sec-head { grid-template-columns: 1fr; }
  .strip.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .strip.c3 { grid-template-columns: 1fr; }
  .jobs li, .tools div, .specs dl div { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
