:root {
  --bg: #0a0a0b;
  --text: #e8e8ea;
  --text-strong: #ffffff;
  --muted: #9a9aa2;
  --muted-2: #7c7d85;
  --muted-3: #6f7078;
  --footer-text: #55565d;
  --border: #26262b;
  --border-2: #1c1c20;
  --card: #0e0e10;
  --card-2: #101013;
  --card-3: #0d0d0f;
  --placeholder: #131316;
  --placeholder-stripe: #1a1a1e;
  --accent: #2ea6ff;
  --accent-ink: #06121c;
  --green: #35d07f;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
}

body {
  color: var(--text);
  font-family: 'Commissioner', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text);
  text-decoration: none;
}

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

.mono {
  font-family: 'JetBrains Mono', monospace;
}

.muted-3 { color: var(--muted-3); }

.page {
  min-height: 100vh;
  padding: 0 24px 96px;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
}

/* header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 0;
  flex-wrap: wrap;
  gap: 10px;
}

.label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.link-hover:hover { color: var(--text-strong); }

/* hero */
.hero {
  padding: clamp(64px, 11vw, 120px) 0 clamp(56px, 10vw, 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 28px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  flex: none;
}

.hero-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(46px, 8.2vw, 104px);
  line-height: 0.94;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: var(--text-strong);
}

.hero-text {
  margin: 0;
  max-width: 620px;
  font-size: clamp(17px, 1.7vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.btn-primary {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: 0 12px 40px -14px var(--accent);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 50px -12px var(--accent);
  color: var(--accent-ink);
}

.arrow { font-size: 19px; }

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border-2);
  border: 1px solid var(--border-2);
  border-radius: 18px;
  overflow: hidden;
}

.stat {
  background: var(--card);
  padding: 26px 24px;
}

.stat-value {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: 34px;
  line-height: 1;
  color: var(--text-strong);
}

.stat-label {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.4;
}

/* about */
.about {
  padding: clamp(72px, 10vw, 110px) 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow.small { margin-bottom: 14px; }

.section-title {
  margin: 18px 0 26px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.section-title.no-margin-top { margin-top: 0; }

.about-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 18px;
  line-height: 1.6;
  color: #b4b4bb;
  max-width: 560px;
  text-wrap: pretty;
}

.about-text p { margin: 0; }
.about-text p.strong { color: var(--text); }

.skills {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill {
  padding: 9px 15px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}

.skill:hover {
  border-color: #3a3a42;
  color: var(--text);
}

.portrait-col {
  max-width: 420px;
  width: 100%;
}

.placeholder-block {
  background-color: var(--placeholder);
  background-image: repeating-linear-gradient(135deg, var(--placeholder-stripe) 0 10px, var(--placeholder) 10px 20px);
  display: flex;
  align-items: flex-end;
}

.placeholder-label {
  font-size: 12px;
  color: var(--muted-3);
}

.has-image {
  overflow: hidden;
  padding: 0 !important;
}

.portrait-img,
.work-shot-img,
.modal-shot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portrait {
  aspect-ratio: 3 / 4;
  border-radius: 20px;
  border: 1px solid var(--border);
  padding: 20px;
}

/* works */
.works {
  padding: clamp(76px, 11vw, 120px) 0 0;
}

.works-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.tabs {
  display: flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  background: var(--card);
}

.tab {
  border: 0;
  cursor: pointer;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  background: transparent;
  color: var(--muted);
  transition: background .18s ease, color .18s ease;
}

.tab.active {
  background: var(--accent);
  color: var(--accent-ink);
}

.works-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.work-card {
  display: block;
  width: 100%;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  cursor: pointer;
  transition: border-color .2s ease, transform .2s ease;
  text-align: left;
  font: inherit;
  color: inherit;
  padding: 0;
}

.work-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.work-card:hover {
  border-color: #3a3a42;
  transform: translateY(-3px);
}

.work-shot {
  aspect-ratio: 4 / 3;
  padding: 14px;
}

.work-body {
  padding: 16px 18px 18px;
}

.work-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-style: italic;
  color: var(--text-strong);
  line-height: 1.2;
}

.work-note {
  margin-top: 6px;
  font-size: 14px;
  color: var(--muted-2);
  line-height: 1.45;
}

.btn-ghost {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 17px;
  transition: border-color .18s ease, background .18s ease;
}

.btn-ghost:hover {
  border-color: #3a3a42;
  background: #15151a;
}

/* modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(6, 6, 8, 0.78);
  backdrop-filter: blur(8px);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(16px, 5vh, 64px) 20px;
  overflow-y: auto;
}

.modal-overlay.open { display: flex; }

.modal {
  width: 100%;
  max-width: 1000px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--card-3);
  box-shadow: 0 40px 120px -30px #000000;
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border-2);
  position: sticky;
  top: 0;
  background: var(--card-3);
}

.modal-title {
  margin-top: 8px;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 30px;
  line-height: 1;
  color: var(--text-strong);
}

.modal-close {
  cursor: pointer;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transition: color .15s ease, border-color .15s ease;
}

.modal-close:hover {
  color: var(--text-strong);
  border-color: #3a3a42;
}

.modal-cat {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-3);
}

.modal-cta-wrap {
  padding: 24px 28px 28px;
  display: flex;
  justify-content: center;
}

.work-modal-body {
  padding: 24px 28px 0;
}

.work-modal-media-wrap {
  position: relative;
}

.work-modal-media {
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.65);
  color: var(--text);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}

.media-nav:hover {
  border-color: #3a3a42;
  background: rgba(10, 10, 11, 0.9);
}

.media-nav[hidden] { display: none; }
.media-nav.prev { left: 12px; }
.media-nav.next { right: 12px; }

.media-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 14px;
}

.media-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: var(--border);
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.media-dot:hover { background: #3a3a42; }
.media-dot.active { background: var(--accent); transform: scale(1.2); }

.video-fullscreen-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 10, 11, 0.75);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s ease, background .15s ease;
}

.video-fullscreen-btn:hover {
  border-color: #3a3a42;
  background: rgba(10, 10, 11, 0.92);
}

.video-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 4, 5, 0.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.video-lightbox-overlay.open { display: flex; }

.video-lightbox-player-wrap {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  line-height: 0;
}

.video-lightbox-overlay video {
  max-width: 95vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 12px;
  display: block;
  background: #000;
  cursor: pointer;
}

.video-lightbox-close {
  position: absolute;
  top: 24px;
  right: 28px;
}

.video-custom-controls {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(10, 10, 11, 0.7);
  backdrop-filter: blur(4px);
  opacity: 1;
  transition: opacity .2s ease;
}

.video-custom-controls.controls-hidden {
  opacity: 0;
  pointer-events: none;
}

.video-play-btn {
  width: 28px;
  height: 28px;
  flex: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-progress-track {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  position: relative;
}

.video-progress-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  border-radius: 999px;
  background: var(--accent);
}

.video-time {
  flex: none;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.work-modal-media img,
.work-modal-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.work-modal-desc {
  margin: 22px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: #b4b4bb;
  white-space: pre-wrap;
}

.work-modal-desc:empty::before {
  content: 'Описание пока не добавлено.';
  color: var(--muted-3);
}

/* cta */
.cta {
  margin-top: clamp(80px, 11vw, 130px);
  border: 1px solid var(--border-2);
  border-radius: 26px;
  background: var(--card);
  padding: clamp(40px, 6vw, 76px) 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.cta-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
}

.cta-text {
  margin: 0;
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--muted);
  max-width: 480px;
  line-height: 1.5;
}

/* footer */
.footer {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--footer-text);
}
