/* supersmirnov.com — стили. Дизайн «Микс» (с 2026-11-18): чёрный фон, магнитная сетка из точек, красная точка
   и таймкод у имени, тёплое наведение, свой плеер. Структура — по референсу antontammi.com: во всю ширину, 3 колонки */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700.woff2") format("woff2"); }

:root {
  --bg: #000;
  --fg: #e6f3f6;          /* основной текст */
  --soft: #9db4bb;        /* почта, меню, ссылки внизу */
  --mute: #6f8b94;        /* подпись внизу */
  --line: var(--fg);
  --warm: #ff8a1f;        /* тёплый цвет при наведении */
  --warm-rgb: 255, 138, 31;
  --rec: #ff2b1c;         /* лампочка у имени */
  --glow: 0 0 0 1px rgba(var(--warm-rgb), .45), 0 0 28px rgba(var(--warm-rgb), .28), 0 0 72px rgba(var(--warm-rgb), .12);
  --gutter: clamp(16px, 2.5vw, 48px);   /* поля по краям: ~2.5% ширины экрана */
  --gap-x: 10px;
  --gap-y: 32px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  background: var(--bg);
  color: var(--fg);
  font: 400 13px/1.45 "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
.wrap { position: relative; z-index: 1; width: 100%; padding: 0 var(--gutter); }

/* фон: сетка из точек (рисует site.js), точки слегка притягиваются к курсору */
canvas.dots { position: fixed; top: 0; left: 0; z-index: 0; pointer-events: none; }

/* наведение на текст — тёплый цвет */
a, .item h2 { transition: color .25s, text-shadow .25s, border-color .25s; }
.nav a:hover, .contact a:hover, .footer a:hover, .pager a:hover, .item:hover h2 {
  color: var(--warm); border-color: var(--warm); text-shadow: 0 0 10px rgba(var(--warm-rgb), .45); }

/* шапка */
.header { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 30px; }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { display: inline-block; color: #f4fdff; transition: color .25s, filter .25s; }
.logo svg { display: block; height: 12px; width: auto; }
.logo:hover { color: var(--warm); filter: drop-shadow(0 0 6px rgba(var(--warm-rgb), .5)); }
.rec { display: inline-flex; align-items: center; gap: 8px; font-size: 9px; font-weight: 700; line-height: 1; user-select: none; }
.rec i { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 4px var(--rec), 0 0 12px rgba(255, 43, 28, .75); animation: rec-pulse 1.6s ease-in-out infinite; }
.rec .tc { font-style: normal; color: var(--fg); opacity: .8; font-variant-numeric: tabular-nums; letter-spacing: .08em; }
@keyframes rec-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .18; box-shadow: none; } }
.contact { margin-top: 8px; }
.contact a { color: var(--soft); }
.nav { display: flex; gap: 28px; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1; padding-top: 4px; }
.nav a { color: var(--soft); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.nav a.on { color: var(--fg); border-color: var(--fg); }

main.wrap { flex: 1; margin-top: 72px; }

/* сетка проектов; наведение на видео — тёплое свечение */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-y) var(--gap-x); }
.grid.vertical { grid-template-columns: repeat(4, 1fr); }
.item h2 { font: inherit; font-size: 13px; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #071015; transition: box-shadow .35s; }
.vertical .thumb { aspect-ratio: 9 / 16; }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { opacity: 0; transition: opacity .3s; }
.thumb.playing video { opacity: 1; }
.item:hover .thumb { box-shadow: var(--glow); }

/* страница проекта */
.project h1 { font: inherit; font-size: 13px; margin: 9px 0 26px; }
.project .desc { margin: -12px 0 26px; }
.project .stills { margin-top: 0; }
.player { position: relative; background: #000; aspect-ratio: 16 / 9; transition: box-shadow .35s; }
.player video { width: 100%; height: 100%; background: #000; }
/* видео не 16:9 (4:3, 3:2, вертикальные): по центру и целиком на экране, название и описание — ровно под видео.
   --w — ширина окна видео; 16:9 идёт во всю ширину, вровень с текстом */
.project.fit { --w: min(100%, calc((100vh - 170px) * var(--ar))); }
.project.vertical { --w: min(100%, calc(min(82vh, 900px) * 9 / 16)); }
.player.fit { aspect-ratio: var(--ar); width: var(--w, 100%); margin: 0 auto; }
.project.fit > h1, .project.fit > .desc, .project.vertical > h1, .project.vertical > .desc { margin-left: calc((100% - var(--w)) / 2); }
.player.vertical { aspect-ratio: auto; background: transparent; display: flex; justify-content: center; }
.player.vertical video { width: auto; height: min(82vh, 900px); aspect-ratio: 9 / 16; }
.player:not(.vertical):hover, .player.vertical .vp:hover { box-shadow: var(--glow); }
.pending { position: relative; aspect-ratio: 16 / 9; background: #000; }
.pending img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.pending span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; text-transform: uppercase; font-weight: 700; text-align: center; padding: 20px; }
.desc { max-width: 640px; margin-top: 18px; font-size: 14px; line-height: 1.55; }
.stills { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-x); margin-top: var(--gap-x); }
.still { border: 0; padding: 0; background: #071015; cursor: zoom-in; display: block; width: 100%; transition: box-shadow .35s; }
.still:hover { box-shadow: var(--glow); }
.still img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pager { display: flex; justify-content: center; gap: 40px; margin: 56px 0 8px; text-transform: uppercase; }

/* свой плеер: большая кнопка Play, тонкая линия прогресса, текстовые кнопки как в меню */
.vp { position: relative; width: 100%; height: 100%; background: #000; overflow: hidden; transition: box-shadow .35s; }
.player.vertical .vp { width: auto; height: auto; background: transparent; }
.vp video { display: block; cursor: pointer; }
.vp.started.idle, .vp.started.idle video { cursor: none; }
.vp-big { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .85); background: rgba(0, 0, 0, .28); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s, opacity .3s; }
.vp-big span { position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff; transition: border-color .25s; }
.vp-big:hover { border-color: var(--warm); box-shadow: 0 0 18px rgba(var(--warm-rgb), .5), inset 0 0 12px rgba(var(--warm-rgb), .25); transform: scale(1.05); }
.vp-big:hover span { border-left-color: var(--warm); }
.vp.started .vp-big { opacity: 0; pointer-events: none; }
.vp-load { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--rec); box-shadow: 0 0 8px var(--rec); opacity: 0; pointer-events: none; }
.vp.started.loading .vp-load { opacity: 1; animation: rec-pulse 1s ease-in-out infinite; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 18px; padding: 30px 18px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .7)); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .3s, transform .3s; }
.vp.started .vp-bar, .vp.paused .vp-bar { opacity: 1; transform: none; pointer-events: auto; }
.vp.started.idle .vp-bar { opacity: 0; transform: translateY(6px); pointer-events: none; }
.vp-bar button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0;
  padding: 6px 0; cursor: pointer; transition: color .25s, text-shadow .25s; }
.vp-bar button:hover, .vp-bar button:focus-visible { color: var(--warm); text-shadow: 0 0 10px rgba(var(--warm-rgb), .45); outline: none; }
.vp-play { width: 46px; text-align: left; }
.vp-time { font-variant-numeric: tabular-nums; letter-spacing: .06em; opacity: .85; white-space: nowrap; }
.vp-track { position: relative; flex: 1; height: 16px; cursor: pointer; touch-action: none; }
.vp-track::before, .vp-buf, .vp-prog { content: ""; position: absolute; left: 0; top: 50%; height: 2px; margin-top: -1px;
  transition: height .2s, margin .2s, background-color .25s; }
.vp-track::before { right: 0; background: rgba(255, 255, 255, .22); }
.vp-buf { width: 0; background: rgba(255, 255, 255, .32); }
.vp-prog { width: 0; background: #fff; }
.vp-head { position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--warm); box-shadow: 0 0 8px var(--warm); opacity: 0; transition: opacity .2s; }
.vp-track:hover::before, .vp-track:hover .vp-buf, .vp-track:hover .vp-prog,
.vp.seeking .vp-track::before, .vp.seeking .vp-buf, .vp.seeking .vp-prog { height: 4px; margin-top: -2px; }
.vp-track:hover .vp-prog, .vp.seeking .vp-prog { background: var(--warm); }
.vp-track:hover .vp-head, .vp.seeking .vp-head { opacity: 1; }
.vp:fullscreen { width: 100vw; height: 100vh; background: #000; }
.vp:-webkit-full-screen { width: 100vw; height: 100vh; background: #000; }
.vp:fullscreen video, .vp:-webkit-full-screen video { width: 100% !important; height: 100% !important; max-height: none; aspect-ratio: auto; object-fit: contain; }
.vp:fullscreen .vp-bar { padding: 40px 32px 24px; font-size: 11px; }

/* контактная форма: окно поверх страницы и страница /contact/ («Видоискатель»: ● REC · New message + таймкод) */
:root { --dot: 226, 234, 238; }                     /* цвет точек фона — им же подсвечены строки и кнопка */
dialog.cdlg { padding: 0; border: 0; margin: auto; background: transparent; color: var(--fg); width: min(600px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 32px); }
dialog.cdlg::backdrop { background: rgba(0, 0, 0, .74); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog.cdlg[open] { animation: cdlg-in .35s cubic-bezier(.2, .8, .2, 1); }
@keyframes cdlg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cdlg-in { background: #020304;
  border: 1px solid rgba(var(--dot), .12); box-shadow: 0 30px 90px rgba(0, 0, 0, .7); padding: 30px 34px 28px; }
.cdlg-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 26px; }
.cdlg-head h2 { display: flex; align-items: center; gap: 10px; font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.cdlg-rec { width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: 0 0 4px var(--rec), 0 0 12px rgba(255, 43, 28, .75);
  animation: rec-pulse 1.6s ease-in-out infinite; }
.cdlg-tc { color: var(--soft); font-variant-numeric: tabular-nums; letter-spacing: .08em; }
.contact-page h1 { font: inherit; font-size: 13px; margin-bottom: 26px; }
.cdlg-x, .cf-copy { font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft);
  background: none; border: 0; padding: 4px 0; cursor: pointer; transition: color .25s, text-shadow .25s; }
.cdlg-x:hover, .cf-copy:hover { color: var(--warm); text-shadow: 0 0 10px rgba(var(--warm-rgb), .45); }
.cf { display: grid; gap: 20px; }
.cf-field { position: relative; display: grid; gap: 4px; }
.cf-field span { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.cf input, .cf textarea { width: 100%; font: inherit; font-size: 15px; color: var(--fg); background: transparent; border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2); border-radius: 0; padding: 8px 0 10px; outline: none; caret-color: rgb(var(--dot));
  transition: border-color .25s; }
.cf textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
/* выбор поля: по строке проносится светлая вспышка (в стиле «Трона»), строка остаётся подсвеченной */
.cf-field::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: rgba(var(--dot), .85);
  box-shadow: 0 0 6px rgba(var(--dot), .45); transform: scaleX(0); transform-origin: left; pointer-events: none;
  transition: transform .6s cubic-bezier(.3, .7, .2, 1); }
.cf-field:focus-within::after { transform: scaleX(1); }
.cf-field::before { content: ""; position: absolute; left: 0; bottom: -1px; width: 0; height: 3px; border-radius: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(var(--dot), .8) 70%, #fff); box-shadow: 0 0 10px rgba(var(--dot), .8), 0 0 24px rgba(var(--dot), .4); }
.cf-field:focus-within::before { animation: cf-streak .95s both; }
@keyframes cf-streak {                              /* появляется в начале строки, в конце хвост догоняет голову и свет плавно гаснет */
  0%   { left: 0; width: 0; opacity: 0; animation-timing-function: ease-out; }
  14%  { left: 0; width: 90px; opacity: 1; animation-timing-function: cubic-bezier(.4, .1, .4, 1); }
  66%  { left: calc(100% - 90px); width: 90px; opacity: 1; animation-timing-function: cubic-bezier(.2, .6, .3, 1); }
  100% { left: calc(100% - 4px); width: 4px; opacity: 0; } }
.cf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-ts:empty { display: none; }
.cf-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.cf-send { font: inherit; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg); background: transparent;
  border: 1px solid rgba(var(--dot), .5); padding: 13px 26px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.cf-send:hover { border-color: rgb(var(--dot)); background: rgba(var(--dot), .08); }
.cf-send:disabled { opacity: .5; cursor: default; }
.cf-status { flex: 1; min-width: 180px; font-size: 12px; color: var(--soft); }
.cf-status.ok { color: var(--fg); }
.cf-status.err { color: #ff9a8a; }
.cf-alt { font-size: 12px; color: var(--mute); }
.cf-alt a { color: var(--soft); }
.cf-alt a:hover { color: var(--warm); }
.cf-copy { margin-left: 10px; }
.contact-page { max-width: 560px; }

/* подвал */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 64px 0 32px; color: var(--mute); }
.footer .links { display: flex; gap: 24px; text-transform: uppercase; }
.footer a { color: var(--soft); }

/* увеличение кадров */
.lb { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .96); display: flex; align-items: center; justify-content: center; cursor: zoom-out; }
.lb img { max-width: 94vw; max-height: 90vh; object-fit: contain; }
.lb button { position: absolute; top: 50%; transform: translateY(-50%); border: 0; background: none; font: 400 40px/1 "Inter", Arial, sans-serif; color: var(--fg); padding: 24px; cursor: pointer; transition: color .25s; }
.lb button:hover { color: var(--warm); }
.lb .prev { left: 4px; } .lb .next { right: 4px; }
.lb .close { top: 28px; right: 8px; transform: none; font-size: 13px; font-weight: 700; text-transform: uppercase; }

/* пометка черновика */
.draft-badge { position: fixed; left: 12px; bottom: 12px; z-index: 40; background: #fff; color: #000; padding: 6px 10px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; }

@media (max-width: 1100px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .grid.vertical { grid-template-columns: repeat(3, 1fr); }
  .stills { grid-template-columns: 1fr 1fr; }
  .stills .still:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 786px) {
  :root { --gutter: 16px; --gap-y: 28px; }
  .project.vertical { --w: 100%; }
  .header { flex-direction: column; gap: 14px; padding-top: 20px; }
  .nav { gap: 10px 18px; flex-wrap: wrap; }
  .logo svg { height: 11px; }
  main.wrap { margin-top: 36px; }
  .grid { grid-template-columns: 1fr; }
  .grid.vertical { grid-template-columns: 1fr 1fr; }
  .stills { grid-template-columns: 1fr; gap: 4px; margin-top: 4px; }
  .player.vertical video { height: auto; width: 100%; max-height: 85vh; }
  .player.vertical .vp { width: 100%; }
  .vp-bar { gap: 14px; padding: 26px 12px 10px; }
  .vp-big { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
  .footer { flex-direction: column; align-items: flex-start; padding-top: 48px; }
  .cdlg-in { padding: 22px 18px 20px; }
}
@media (max-width: 480px) { .vp-time { display: none; } }

/* «меньше движения» в настройках системы — без анимаций */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* кастинг для клиента (/unyp-casting/ и т.п.): карточки 4:5, крупный номер, несколько фото в карточке
   (мышь листает по положению над фото, телефон — свайпом), нажатие — увеличение */
.nav .nav-label { color: var(--fg); }
.casting-intro { max-width: 640px; margin-bottom: 44px; }
.casting-intro .kicker { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
.casting-intro h1 { font: inherit; font-size: 30px; font-weight: 500; letter-spacing: -.01em; line-height: 1.15; margin: 14px 0 12px; }
.casting-intro .lead { font-size: 14px; line-height: 1.55; }
.casting-intro .hint { font-size: 12px; color: var(--mute); margin-top: 6px; }
.cast-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px var(--gap-x); }
.cand { min-width: 0; }
.cand-ph { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #071015; transition: box-shadow .35s; }
.cand:hover .cand-ph { box-shadow: var(--glow); }
.cand-track { display: flex; width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.cand-track::-webkit-scrollbar { display: none; }
.cand-track .still { flex: 0 0 100%; height: 100%; scroll-snap-align: start; background: none; }
.cand-track .still:hover { box-shadow: none; }
.cand-track .still img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.cand-dots { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.cand-dots i { width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .45); box-shadow: 0 0 3px rgba(0, 0, 0, .5); transition: background-color .2s; }
.cand-dots i.on { background: #fff; }
.cand-meta { display: flex; gap: 12px; align-items: flex-start; margin-top: 11px; }
.cand-n { font-size: 22px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: .02em; transition: color .25s, text-shadow .25s; }
.cand:hover .cand-n { color: var(--warm); text-shadow: 0 0 10px rgba(var(--warm-rgb), .45); }
.cand-who { min-width: 0; padding-top: 1px; }
.cand-who h2 { font: inherit; font-size: 13px; }
.cand-who p { font-size: 12px; color: var(--soft); overflow-wrap: anywhere; }
.cand-who a { color: var(--soft); }
.cand-who a:hover { color: var(--warm); text-shadow: 0 0 10px rgba(var(--warm-rgb), .45); }
@media (max-width: 1100px) { .cast-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 786px) { .cast-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px var(--gap-x); } .casting-intro h1 { font-size: 24px; } }
@media (max-width: 560px) { .cast-grid { grid-template-columns: minmax(0, 1fr); } }
