/* Artem Sokolov — video editor one-pager */

:root {
  --bg: #0f100e;
  --bg-soft: #151712;
  --bg-card: #14160f;
  --text: #f0efe7;
  --muted: #a6a79b;
  --line: rgba(240, 239, 231, 0.14);
  --line-soft: rgba(240, 239, 231, 0.08);
  --accent: #d8ff5e;
  --accent-ink: #10120b;
  --radius: 16px;
  --wrap: 1120px;
  --font-sans: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", "Roboto Mono", Menlo,
    Consolas, monospace;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia,
    "Times New Roman", serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

img,
svg {
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 16, 14, 0.78);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 0.98rem;
  white-space: nowrap;
}

.wordmark-mark {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.58rem;
  padding-left: 1px;
}

.site-nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 0.86rem;
  color: var(--muted);
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-cta {
  padding: 8px 16px;
  border: 1px solid rgba(216, 255, 94, 0.45);
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 11vw, 136px) 0 clamp(64px, 8vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240, 239, 231, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 239, 231, 0.032) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(90% 80% at 70% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(90% 80% at 70% 0%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -220px;
  right: -180px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(216, 255, 94, 0.13), transparent 62%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.eyebrow,
.label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.status-dot {
  width: 7px;
  height: 7px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(216, 255, 94, 0.55);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(216, 255, 94, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(216, 255, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(216, 255, 94, 0); }
}

.hero h1 {
  max-width: 1020px;
  margin: 26px 0 28px;
  font-size: clamp(2.65rem, 6.6vw, 5.15rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.025em;
  color: var(--accent);
}

.lead {
  max-width: 58ch;
  font-size: clamp(1.02rem, 1.5vw, 1.16rem);
  color: #bcbdb2;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 10px 32px -14px rgba(216, 255, 94, 0.55);
}

.btn-primary:hover {
  background: #e4ff8a;
  box-shadow: 0 14px 36px -12px rgba(216, 255, 94, 0.5);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: rgba(240, 239, 231, 0.4);
  background: rgba(240, 239, 231, 0.05);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: clamp(52px, 7vw, 78px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.hero-facts li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-facts strong {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hero-facts span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Ticker ---------- */

.ticker {
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  padding: 14px 0;
  background: var(--bg-soft);
}

.ticker-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.ticker-track span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker-track span::after {
  content: "·";
  margin: 0 26px;
  color: var(--accent);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(64px, 8vw, 96px) 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: grid;
  grid-template-columns: 210px 1fr;
  align-items: end;
  gap: 20px;
  padding-bottom: 26px;
  margin-bottom: clamp(36px, 5vw, 52px);
  border-bottom: 1px solid var(--line);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.label {
  color: var(--accent);
}

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.about-text p {
  color: #b9bab0;
  max-width: 62ch;
}

.about-text p + p {
  margin-top: 18px;
}

.about-text .lead-sm {
  font-size: clamp(1.1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
  color: var(--text);
}

.card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.skills-card h3 {
  font-size: 1.06rem;
  font-weight: 600;
  margin-bottom: 18px;
}

.checklist {
  display: grid;
  gap: 12px;
}

.checklist li {
  position: relative;
  padding-left: 18px;
  font-size: 0.92rem;
  color: #c1c2b8;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.63em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.card-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Work ---------- */

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 28px;
}

.work-card {
  min-width: 0;
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: #1a1c16;
  isolation: isolate;
}

.thumb svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover .thumb svg {
  transform: scale(1.035);
}

.thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.13;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(8, 9, 7, 0.35));
}

.play {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: auto;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(15, 16, 14, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.22s ease, border-color 0.22s ease;
}

.play::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 12px solid #fff;
  transition: border-left-color 0.22s ease;
}

.work-card:hover .play {
  background: var(--accent);
  border-color: var(--accent);
}

.work-card:hover .play::before {
  border-left-color: var(--accent-ink);
}

.duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(10, 11, 9, 0.72);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: #e9e8df;
}

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

.tags {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

.work-body h3 {
  margin: 8px 0 6px;
  font-size: 1.24rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.work-body p:last-child {
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 48ch;
}

.grid-note {
  margin-top: 40px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Services ---------- */

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

.price-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.price-list h3 {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.price-list p {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}

.price {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--accent);
}

.price-note {
  max-width: 64ch;
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--muted);
}

.process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: clamp(44px, 6vw, 64px);
  padding-top: 38px;
  border-top: 1px solid var(--line-soft);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.step h3 {
  margin: 10px 0 6px;
  font-size: 1.04rem;
  font-weight: 600;
}

.step p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */

.contact-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 62px);
  border: 1px solid rgba(216, 255, 94, 0.22);
  border-radius: 24px;
  background:
    radial-gradient(80% 140% at 100% 0%, rgba(216, 255, 94, 0.09), transparent 60%),
    var(--bg-soft);
}

.contact-panel h2 {
  margin: 14px 0 16px;
  font-size: clamp(2rem, 5vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.contact-lead {
  max-width: 56ch;
  color: #bcbdb2;
}

.contact-note {
  margin-top: 26px;
  font-size: 0.84rem;
  color: var(--muted);
}

.contact-note strong {
  color: var(--text);
  font-weight: 500;
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 26px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .skills-card {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 10px;
  }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .process {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hero-facts li {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line-soft);
  }

  .hero-facts span {
    text-align: right;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .site-nav {
    display: none;
  }

  .header-inner {
    height: 60px;
  }

  .hero h1 {
    margin-top: 20px;
  }

  .ticker-track span::after {
    margin: 0 18px;
  }

  .price-list li {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
