/* ════════════════════════════════════════════════════════════
   DMITRY SELIPANOV — SCORING STAGE (v2, decluttered)
   void / tungsten / brass · Geist · Geist Mono
   ════════════════════════════════════════════════════════════ */

:root {
  --void:     #0a0b0d;
  --tungsten: #ede6d6;
  --dim:      rgba(237, 230, 214, 0.45);
  --faint:    rgba(237, 230, 214, 0.18);
  --rule:     rgba(237, 230, 214, 0.10);
  --brass:    #c9a24b;
  --brass-hi: #e8c87a;

  --f-display: 'Geist', sans-serif;
  --f-mono:    'Geist Mono', monospace;

  --pad: clamp(20px, 5vw, 72px);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--void);
  color: var(--tungsten);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
::selection { background: var(--brass); color: var(--void); }
img { display: block; max-width: 100%; }

/* ─── utilities ─────────────────────────────────────────── */

.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
}
/* section and group headers carry more presence than inline labels */
.section-head .label,
.section > .label,
.work-group > .label,
.about-cols .label,
.page-hero .label {
  font-size: 13.5px;
  letter-spacing: 0.2em;
}

/* .reveal: visible by default — JS animates it in (progressive enhancement) */

/* ─── nav ───────────────────────────────────────────────── */

.transport {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--pad);
  height: 64px;
  border-bottom: 1px solid var(--rule);
  background: color-mix(in srgb, var(--void) 80%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* index hero: nav floats over the photo, no fill or rule (white-version style) */
body.home .transport {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: none;
}


.transport-logo {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}
.transport-logo span { color: var(--brass); }

.transport-nav { display: flex; gap: 32px; list-style: none; }
.transport-nav a {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(237, 230, 214, 0.72);   /* brighter than --dim so links read clearly */
  transition: color 0.25s;
}
/* home: nav sits over the photo — lift contrast and add a soft shadow */
body.home .transport-logo,
body.home .transport-nav a { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.6); }
body.home .transport-nav a { color: rgba(237, 230, 214, 0.86); }
.transport-nav a { position: relative; padding-bottom: 5px; }
.transport-nav a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: calc(100% - 0.16em); height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.transport-nav a:hover::after,
.transport-nav a:active::after,
.transport-nav a[aria-current="page"]::after { transform: scaleX(1); }
.transport-nav a:hover,
.transport-nav a:active,
.transport-nav a[aria-current="page"] { color: var(--tungsten); }
.transport-nav a.client { color: var(--brass); }
.transport-nav a.client:hover { color: var(--brass-hi); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--tungsten);
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 8px 0;
}

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .transport-nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--void);
    border-bottom: 1px solid var(--rule);
    display: none;
  }
  .transport-nav.open { display: flex; }
  .transport-nav li { border-top: 1px solid var(--rule); }
  .transport-nav a { display: block; padding: 18px var(--pad); font-size: 13px; }
}

/* ─── hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  min-height: 100svh;
}

.hero-content {
  position: relative;
  min-width: 0;
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 88px var(--pad) clamp(56px, 8vh, 88px);
}

.hero-eyebrow { margin-bottom: 28px; margin-left: -0.1em; }

/* the ensemble — voices stacked on two lines, weight as dynamics */
.hero-name {
  font-weight: 300;
  font-size: clamp(40px, 7vw, 116px);
  font-size: clamp(40px, 18.7cqw, 150px);   /* long line (SELIPANOV) fills the column so its right edge meets the page margin = nav edge */
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-left: -0.085em;        /* align the display D with the eyebrow C / tagline left edge (measured) */
  text-transform: uppercase;
  touch-action: pan-y;
  cursor: default;
}
.hero-name .ens-line { display: block; white-space: nowrap; }
.hero-name span span { display: inline-block; will-change: font-weight; }

.hero-tagline {
  margin-top: 36px;
  margin-left: -0.1em;          /* match the eyebrow/name left edge exactly */
  max-width: 400px;
  font-size: clamp(14px, 1.1vw, 16px);
  line-height: 1.7;
  color: var(--dim);
}
.hero-tagline strong { color: var(--tungsten); font-weight: 500; }

.hero-portrait {
  position: relative;
  overflow: hidden;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 22%;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
}
/* the dissolve canvas sits over the photo; it fades in once the engine is ready */
.hero-portrait-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}
.hero-portrait.canvas-on .hero-portrait-canvas { opacity: 1; }
.hero-portrait.canvas-on img { visibility: hidden; }   /* canvas owns the pixels; hide img so void shows through */
/* soften the seam so the dark photo edge never merges with the void */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-portrait { order: -1; height: 62vw; min-height: 300px; }
  .hero-portrait img { object-position: 50% 22%; }
  .hero-content { padding: 48px var(--pad) 56px; }
}

/* ─── sections ──────────────────────────────────────────── */

.section {
  padding: clamp(72px, 10vw, 140px) var(--pad);
  border-top: 1px solid var(--rule);
}
.section.no-rule {
  border-top: none;
  padding-top: clamp(32px, 5vw, 64px);
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head .more {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}
.section-head .more:hover { color: var(--brass); }

/* press */
.press-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 0;
  margin: 0 calc(-1 * var(--pad));   /* break out to full width so the columns line up with the hero's two columns */
}
.press-quote { padding: 0 var(--pad); }   /* col 1 left edge = page margin; col 2 left edge = under the hero tagline */
@media (max-width: 760px) {
  .press-grid { grid-template-columns: 1fr; margin: 0; }
  .press-quote { padding: 0; }
  .press-quote:last-child { margin-top: clamp(24px, 6vw, 40px); }
}
.press-quote blockquote {
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.press-quote blockquote em { color: var(--brass); font-style: normal; }
.press-quote cite {
  font-style: normal;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* second quote hangs to the right margin — its text ends where the
   photo and CLIENT ACCESS end, so the right edges agree */
.press-quote--end { text-align: right; }
.press-quote--end blockquote { margin-left: auto; }
@media (max-width: 760px) {
  .press-quote--end { text-align: left; }
}

/* ─── work cards ────────────────────────────────────────── */

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(24px, 3vw, 48px);
}
.work-grid.squares {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

.work-card { display: block; }
.work-card .frame {
  overflow: hidden;
  border-radius: 2px;
  margin-bottom: 16px;
}
.work-card img {
  width: 100%;
  aspect-ratio: 600 / 860;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
  filter: brightness(0.9);
}
.work-grid.squares .work-card img { aspect-ratio: 1; }
a.work-card:hover img { transform: scale(1.03); filter: brightness(1); }

.work-card .wc-title {
  font-weight: 600;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color 0.25s, font-weight 0.35s ease;
}
a.work-card:hover .wc-title,
a.work-card:active .wc-title { color: var(--brass-hi); font-weight: 780; }
.work-card .wc-meta {
  margin-top: 6px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  line-height: 1.8;
}
.work-card .wc-meta .award { color: var(--brass); display: block; }
.work-card .wc-links { margin-top: 8px; display: flex; gap: 16px; }
.work-card .wc-links a {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}
.work-card .wc-links a:hover { color: var(--brass); }

.work-group { margin-bottom: clamp(64px, 8vw, 110px); }
.work-group:last-child { margin-bottom: 0; }
.work-group .label { display: block; margin-bottom: 28px; }
.label .count { color: var(--faint); }

/* ─── about ─────────────────────────────────────────────── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

.portrait { overflow: hidden; border-radius: 2px; }
.portrait img { width: 100%; filter: grayscale(1) contrast(1.06) brightness(0.92); }

.about-copy p {
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.8;
  color: var(--dim);
  margin-bottom: 1.4em;
  max-width: 64ch;
}
.about-copy p strong { color: var(--tungsten); font-weight: 500; }
.about-copy .lede {
  font-weight: 300;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--tungsten);
  margin-bottom: 1.2em;
}
.about-copy .lede em { color: var(--brass); font-style: normal; }

.list-rows { border-top: 1px solid var(--rule); }
.list-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.list-row .lr-key {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--faint);
  letter-spacing: 0.1em;
}
.list-row .lr-main {
  font-weight: 500;
  font-size: clamp(16px, 1.6vw, 20px);
  letter-spacing: -0.01em;
}
.list-row .lr-sub {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  text-align: right;
}
a.list-row { transition: padding-left 0.3s ease; }
a.list-row:hover { padding-left: 12px; }
a.list-row .lr-main { transition: font-weight 0.3s ease, color 0.25s; }
a.list-row:hover .lr-main,
a.list-row:active .lr-main { color: var(--brass-hi); font-weight: 680; }
@media (max-width: 640px) {
  .list-row { grid-template-columns: 80px 1fr; }
  .list-row .lr-sub { grid-column: 2; text-align: left; }
}

.about-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
}
@media (max-width: 900px) { .about-cols { grid-template-columns: 1fr; } }
.about-cols .label { display: block; margin-bottom: 24px; }

/* ─── page heroes ───────────────────────────────────────── */

.page-hero { padding: 180px var(--pad) clamp(56px, 8vw, 100px); }
.page-hero h1 {
  font-weight: 300;     /* same resting dynamic as the homepage ensemble */
  font-size: clamp(48px, 9vw, 128px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.page-hero .page-intro {
  margin-top: 28px;
  max-width: 520px;
  color: var(--dim);
  font-size: clamp(15px, 1.3vw, 17px);
}

/* ─── contact ───────────────────────────────────────────── */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 120px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info p { color: var(--dim); max-width: 44ch; margin-bottom: 36px; }
.contact-figure { overflow: hidden; border-radius: 2px; }
.contact-figure img { width: 100%; filter: grayscale(1) brightness(0.85); }

.form-field { margin-bottom: 28px; }
.form-field label {
  display: block;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 10px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--faint);
  color: var(--tungsten);
  font-family: var(--f-display);
  font-weight: 300;
  font-size: 17px;
  padding: 10px 0 14px;
  transition: border-color 0.3s;
}
.form-field input:focus,
.form-field textarea:focus { outline: none; border-color: var(--brass); }
.form-field textarea { resize: vertical; min-height: 120px; }

.form-status {
  margin-top: 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  min-height: 16px;
}

.btn {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 14px 28px;
  border: 1px solid var(--brass);
  border-radius: 100px;
  background: var(--brass);
  color: var(--void);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
.btn:hover { background: var(--brass-hi); border-color: var(--brass-hi); }

/* ─── footer ────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--rule);
  padding: 40px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-links a {
  position: relative;
  padding-bottom: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  transition: color 0.25s;
}
.footer-links a::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: calc(100% - 0.16em); height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.footer-links a:hover, .footer-links a:active { color: var(--brass); }
.footer-links a:hover::after, .footer-links a:active::after { transform: scaleX(1); }
.footer-copy {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

a:focus-visible, button:focus-visible {
  outline: 1px solid var(--brass);
  outline-offset: 4px;
}

/* ─── reel ──────────────────────────────────────────────── */

.reel-project {
  padding: clamp(48px, 7vw, 96px) var(--pad);
  border-top: 1px solid var(--rule);
}
.reel-phead {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.reel-index {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--brass);
}
.reel-title {
  font-weight: 600;
  font-size: clamp(22px, 2.8vw, 38px);
  letter-spacing: -0.01em;
}
.reel-meta {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
}
.video-area { display: grid; grid-template-columns: 1fr; }
.video-area.has-playlist {
  grid-template-columns: 2.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.video-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 2px;
  overflow: hidden;
}
.video-frame-wrap iframe {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  border: 0;
}
.playlist {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  border-radius: 2px;
  overflow: hidden;
}
.playlist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}
.playlist-item:last-child { border-bottom: none; }
.playlist-item:hover { background: rgba(237, 230, 214, 0.05); }
.playlist-item.active { background: rgba(201, 162, 75, 0.14); }
.playlist-item .pi-num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--faint);
  flex-shrink: 0;
  width: 14px;
}
.playlist-item.active .pi-num { color: var(--brass); }
.playlist-item .pi-name {
  font-size: 13.5px;
  font-weight: 400;
  color: var(--dim);
  line-height: 1.3;
}
.playlist-item.active .pi-name { color: var(--tungsten); }
.playlist-item .pi-arrow {
  margin-left: auto;
  flex-shrink: 0;
  opacity: 0;
  transition: opacity 0.2s;
}
.playlist-item.active .pi-arrow,
.playlist-item:hover .pi-arrow { opacity: 1; }
@media (max-width: 900px) {
  .video-area.has-playlist { grid-template-columns: 1fr; }
  .playlist { flex-direction: row; flex-wrap: wrap; }
  .playlist-item { flex: 1 1 auto; border-bottom: none; border-right: 1px solid var(--rule); }
  .playlist-item:last-child { border-right: none; }
}
