/* ============================================================
   FIXER IN UKRAINE — Maxim Strygewski
   Editorial / documentary design system
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-2: #101012;
  --ink: #ece8df;
  --ink-dim: #99948a;
  --line: rgba(236, 232, 223, 0.14);
  --yellow: #ffd500;
  --blue: #4a7fe0;
  --font-display: "Anton", impact, sans-serif;
  --font-serif: "Instrument Serif", georgia, serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --pad: clamp(20px, 4vw, 64px);
}

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

html { scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--yellow); color: #111; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.serif { font-family: var(--font-serif); font-style: italic; font-weight: 400; }

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 9000;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(10) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); } 20% { transform: translate(-15%,5%); }
  30% { transform: translate(7%,-25%); } 40% { transform: translate(-5%,25%); }
  50% { transform: translate(-15%,10%); } 60% { transform: translate(15%,0%); }
  70% { transform: translate(0%,15%); } 80% { transform: translate(3%,35%); }
  90% { transform: translate(-10%,10%); }
}

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #060607;
  display: flex; align-items: center; justify-content: center;
}
.loader__inner { text-align: center; }
.loader__brand { color: var(--ink-dim); margin-bottom: 18px; }
.loader__count {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 140px);
  line-height: 1; color: var(--ink);
  letter-spacing: 0.02em;
}
.loader__status { color: var(--yellow); margin-top: 18px; }

/* ---------- cursor ---------- */
.cursor, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 9500;
  pointer-events: none; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.cursor { width: 6px; height: 6px; background: var(--yellow); }
.cursor-ring {
  width: 34px; height: 34px;
  border: 1px solid rgba(236,232,223,0.4);
  transition: width .25s ease, height .25s ease, border-color .25s ease, background .25s ease;
}
.cursor-ring.is-hover {
  width: 56px; height: 56px;
  border-color: var(--yellow);
  background: rgba(255, 213, 0, 0.08);
}
@media (hover: none), (max-width: 900px) { .cursor, .cursor-ring { display: none; } }

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
}
.header__brand { display: flex; align-items: center; gap: 10px; }
.header__mark {
  width: 12px; height: 12px; background: var(--yellow);
  clip-path: polygon(0 0, 100% 0, 100% 65%, 50% 100%, 0 65%);
}
.header__name { color: #fff; }
.header__name em { font-style: normal; color: rgba(255,255,255,0.5); margin-left: 6px; }
.header__nav { display: flex; gap: 26px; align-items: center; }
.header__nav a { color: #fff; position: relative; padding: 4px 0; }
.header__nav a::after {
  content: ""; position: absolute; bottom: 0; left: 0;
  width: 100%; height: 1px; background: #fff;
  transform: scaleX(0); transform-origin: right;
  transition: transform .35s cubic-bezier(.65,0,.35,1);
}
.header__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header__cta { border: 1px solid rgba(255,255,255,0.5); padding: 7px 14px !important; border-radius: 99px; }
.header__cta::after { display: none; }
.header__cta:hover { background: #fff; color: #000 !important; }
.header__burger {
  display: none; background: none; border: 0; cursor: pointer;
  width: 36px; height: 30px; position: relative;
}
.header__burger span {
  position: absolute; left: 4px; right: 4px; height: 2px; background: #fff;
  transition: transform .3s ease, top .3s ease;
}
.header__burger span:nth-child(1) { top: 10px; }
.header__burger span:nth-child(2) { top: 18px; }
body.menu-open .header__burger span:nth-child(1) { top: 14px; transform: rotate(45deg); }
body.menu-open .header__burger span:nth-child(2) { top: 14px; transform: rotate(-45deg); }

/* ---------- mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 900;
  background: #060607;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 var(--pad);
  transform: translateY(-100%);
  visibility: hidden;
}
.menu__links { display: flex; flex-direction: column; gap: 4px; }
.menu__links a {
  font-family: var(--font-display);
  font-size: clamp(40px, 11vw, 72px);
  text-transform: uppercase; line-height: 1.15;
  display: flex; align-items: baseline; gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.menu__links a:active { color: var(--yellow); }
.menu__idx { color: var(--yellow); }
.menu__foot { margin-top: 48px; display: flex; flex-direction: column; gap: 10px; color: var(--ink-dim); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 16px 28px; border-radius: 99px;
  transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
}
.btn--solid { background: var(--yellow); color: #111; }
.btn--solid:hover { background: var(--ink); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--yellow); color: var(--yellow); }
.btn__arrow { transition: transform .3s ease; }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--pad) 48px;
  overflow: hidden;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }

.hero__media {
  position: absolute; z-index: 2;
  top: 0; right: 0; bottom: 0;
  width: min(44vw, 620px);
}
.hero__media-inner {
  position: absolute; inset: 0; overflow: hidden;
  clip-path: inset(0 0 100% 0);
}
.hero__media img {
  width: 100%; height: 100%; object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(70%) contrast(1.05) brightness(0.82);
  transform: scale(1.15);
}
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, rgba(11,11,12,0.25) 35%, rgba(11,11,12,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(11,11,12,0) 38%);
}

.hero__content { position: relative; z-index: 3; }
.hero__meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  color: var(--ink-dim); margin-bottom: 3vh;
}
.hero__rec { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.hero__rec i {
  width: 8px; height: 8px; border-radius: 50%;
  background: #e8442e; animation: blink 1.6s infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 13.5vw, 220px);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: 0.005em;
  margin-left: -0.04em;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; will-change: transform; }
.hero__line--accent > span {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}
.hero__line--accent .word-accent { color: var(--yellow); -webkit-text-stroke: 0; }

.hero__bottom {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; margin-top: 4vh; flex-wrap: wrap;
}
.hero__sub {
  max-width: 520px; font-size: clamp(15px, 1.25vw, 19px);
  color: var(--ink-dim);
}
.hero__sub .serif { color: var(--ink); font-size: 1.15em; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; z-index: 3;
  left: var(--pad); top: 50%;
  transform: rotate(90deg) translateX(-50%);
  transform-origin: left center;
  color: var(--ink-dim);
  display: flex; align-items: center; gap: 12px;
}
.hero__scroll-line { width: 56px; height: 1px; background: var(--ink-dim); display: inline-block; position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--yellow);
  animation: scrollline 2s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes scrollline {
  0% { transform: translateX(-100%); } 50% { transform: translateX(0); } 100% { transform: translateX(100%); }
}

/* ============================================================
   MARQUEE / OUTLETS
   ============================================================ */
.outlets { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 0; position: relative; z-index: 4; background: var(--bg); }
.outlets__label { text-align: center; color: var(--ink-dim); margin-bottom: 20px; padding: 0 var(--pad); }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee__track { display: inline-flex; will-change: transform; }
.marquee__group {
  display: inline-flex; align-items: center; gap: 44px; padding-right: 44px;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 48px);
  text-transform: uppercase; color: var(--ink);
}
.marquee__group i { font-style: normal; color: var(--yellow); font-size: 0.5em; }

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: clamp(80px, 12vh, 160px) var(--pad); position: relative; }
.section__head {
  display: flex; align-items: center; gap: 18px;
  margin-bottom: clamp(40px, 7vh, 80px);
}
.section__idx { color: var(--yellow); }
.section__name { color: var(--ink); }
.section__rule { flex: 1; height: 1px; background: var(--line); }

/* ============================================================
   ABOUT
   ============================================================ */
.about__grid {
  display: grid; grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(36px, 6vw, 96px); align-items: start;
}
.about__media-frame {
  overflow: hidden; aspect-ratio: 4 / 5;
  clip-path: inset(0 0 100% 0);
}
.about__media-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
  transform: scale(1.12);
  transition: filter .6s ease;
}
.about__media:hover .about__media-frame img { filter: grayscale(0%); }
.about__media-caption { color: var(--ink-dim); margin-top: 14px; }

.about__lead {
  font-family: var(--font-body); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1.15; letter-spacing: -0.01em;
  margin-bottom: 32px;
}
.about__lead .serif { color: var(--yellow); }
.about__text { color: var(--ink-dim); max-width: 60ch; font-size: clamp(15px, 1.15vw, 18px); }

.about__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(36px, 6vh, 64px); padding-top: 8px;
}
.stat { padding: 24px 20px 0 0; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: 24px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.6vw, 72px); line-height: 1;
  color: var(--ink);
}
.stat__label { color: var(--ink-dim); margin-top: 10px; line-height: 1.7; }

/* ============================================================
   SERVICES
   ============================================================ */
.services__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 7vw, 110px);
  text-transform: uppercase; line-height: 1;
  margin-bottom: clamp(36px, 6vh, 72px);
}
.services__title .serif { text-transform: none; color: var(--yellow); font-size: 0.95em; }

.services__list { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service__row {
  display: grid; grid-template-columns: 80px 1fr 60px;
  align-items: center; gap: 16px;
  padding: clamp(22px, 3.4vh, 38px) 0;
  cursor: pointer; position: relative;
}
.service__idx { color: var(--yellow); }
.service__name {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(30px, 5vw, 72px);
  text-transform: uppercase; line-height: 1;
  transition: transform .4s cubic-bezier(.65,0,.35,1), color .4s ease;
}
.service:hover .service__name, .service.is-open .service__name { transform: translateX(16px); color: var(--yellow); }
.service__plus {
  font-family: var(--font-mono); font-size: 26px; text-align: right;
  color: var(--ink-dim); transition: transform .4s ease;
}
.service.is-open .service__plus { transform: rotate(45deg); color: var(--yellow); }
.service__body { overflow: hidden; height: 0; }
.service__body ul {
  list-style: none; padding: 0 0 36px 96px; max-width: 760px;
  color: var(--ink-dim); font-size: clamp(15px, 1.15vw, 18px);
}
.service__body li { padding: 7px 0 7px 22px; position: relative; }
.service__body li::before {
  content: "→"; position: absolute; left: 0; color: var(--yellow); font-size: 13px; top: 10px;
}

.service-preview {
  position: fixed; z-index: 800;
  width: 300px; height: 210px;
  pointer-events: none; overflow: hidden;
  opacity: 0; transform: scale(0.9);
  border-radius: 4px;
}
.service-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   WORK — horizontal scroll
   ============================================================ */
.work { padding-left: 0; padding-right: 0; }
.work .section__head, .work__header, .coverage { margin-left: var(--pad); margin-right: var(--pad); }
.work__header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: clamp(32px, 5vh, 56px); gap: 24px;
}
.work__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(40px, 7vw, 110px);
  text-transform: uppercase; line-height: 1;
}
.work__title .serif { text-transform: none; color: var(--yellow); font-size: 0.95em; }
.work__hint { color: var(--ink-dim); white-space: nowrap; padding-bottom: 12px; }

.work__track {
  display: flex; gap: clamp(20px, 2.5vw, 40px);
  padding: 0 var(--pad);
  width: max-content;
}
.card {
  width: clamp(300px, 30vw, 460px);
  flex-shrink: 0;
  display: flex; flex-direction: column;
}
.card__media {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--bg-2);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(35%);
  transition: transform .7s cubic-bezier(.25,1,.3,1), filter .7s ease;
}
.card__media:hover img { transform: scale(1.06); filter: grayscale(0%); }
.card__view {
  position: absolute; right: 14px; bottom: 14px;
  background: var(--yellow); color: #111;
  padding: 8px 14px; border-radius: 99px;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
}
.card__media:hover .card__view { opacity: 1; transform: translateY(0); }
.card__info { padding-top: 18px; }
.card__meta {
  display: flex; justify-content: space-between; gap: 12px;
  color: var(--ink-dim); margin-bottom: 12px;
}
.card__meta span:first-child { color: var(--yellow); }
.card__title {
  font-size: clamp(20px, 1.8vw, 27px); font-weight: 600;
  line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 10px;
}
.card__desc { color: var(--ink-dim); font-size: 14.5px; }

.card--cta { justify-content: center; }
.card--cta a {
  border: 1px dashed var(--line);
  display: flex; flex-direction: column; gap: 22px;
  align-items: center; justify-content: center;
  aspect-ratio: 4 / 3.6;
  text-align: center; transition: border-color .4s ease, background .4s ease;
}
.card--cta-big {
  font-family: var(--font-display); font-size: clamp(30px, 3vw, 46px);
  line-height: 1.05; color: var(--ink);
}
.card--cta .mono { color: var(--yellow); }
.card--cta a:hover { border-color: var(--yellow); background: rgba(255,213,0,0.04); }

/* coverage index */
.coverage { margin-top: clamp(60px, 10vh, 120px); }
.coverage__label { color: var(--ink-dim); margin-bottom: 18px; }
.coverage__row {
  display: grid;
  grid-template-columns: 220px 1fr 60px 40px;
  gap: 20px; align-items: center;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  transition: padding-left .35s cubic-bezier(.65,0,.35,1), background .35s ease;
}
.coverage__row:last-child { border-bottom: 1px solid var(--line); }
.coverage__row:hover { padding-left: 18px; background: rgba(255,255,255,0.02); }
.coverage__outlet { color: var(--yellow); }
.coverage__name { font-size: clamp(15px, 1.3vw, 19px); font-weight: 500; }
.coverage__year { color: var(--ink-dim); text-align: right; }
.coverage__arrow {
  font-size: 20px; color: var(--ink-dim); text-align: right;
  transition: transform .35s ease, color .35s ease;
}
.coverage__row:hover .coverage__arrow { transform: translateX(6px) rotate(-45deg); color: var(--yellow); }

/* ============================================================
   FIELD GALLERY
   ============================================================ */
.field { padding-left: 0; padding-right: 0; }
.field .section__head { margin-left: var(--pad); margin-right: var(--pad); }
.field__rows { display: flex; flex-direction: column; gap: clamp(14px, 2vw, 28px); }
.field__row { overflow: hidden; }
.field__track {
  display: flex; gap: clamp(14px, 2vw, 28px);
  width: max-content; will-change: transform;
}
.field__track img {
  height: clamp(180px, 26vw, 320px); width: auto;
  filter: grayscale(85%) contrast(1.03);
  transition: filter .5s ease;
}
.field__track img:hover { filter: grayscale(0%); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding-bottom: clamp(40px, 6vh, 80px); }
.contact__kicker { color: var(--ink-dim); margin-bottom: 4vh; }
.contact__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(56px, 11.5vw, 190px);
  line-height: 0.95; text-transform: uppercase;
  margin-left: -0.04em;
}
.contact__line { display: block; overflow: hidden; }
.contact__title .serif { color: var(--yellow); text-transform: none; }
.contact__title a { display: inline-block; transition: color .4s ease; }
.contact__title a:hover { color: var(--yellow); }
.contact__title a:hover .serif { color: var(--ink); }

.contact__grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: clamp(48px, 8vh, 96px);
}
.contact__item {
  padding: 28px 24px 28px 0;
  display: flex; flex-direction: column; gap: 10px;
  transition: background .3s ease, padding-left .3s ease;
}
.contact__item + .contact__item { border-left: 1px solid var(--line); padding-left: 24px; }
.contact__item:hover { background: rgba(255,255,255,0.025); padding-left: 12px; }
.contact__item + .contact__item:hover { padding-left: 32px; }
.contact__item-label { color: var(--yellow); }
.contact__item-value { font-size: clamp(15px, 1.25vw, 19px); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); }
.footer__marquee { padding: 20px 0; border-bottom: 1px solid var(--line); }
.footer__group { color: transparent; -webkit-text-stroke: 1px rgba(236,232,223,0.35); font-size: clamp(22px, 2.6vw, 36px); }
.footer__group i { -webkit-text-stroke: 0; }
.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 18px; flex-wrap: wrap;
  padding: 24px var(--pad) 28px;
  color: var(--ink-dim);
}
.footer__social { display: flex; gap: 22px; }
.footer__social a:hover, .footer__top a:hover { color: var(--yellow); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 440px; }
  .coverage__row { grid-template-columns: 150px 1fr 50px 30px; gap: 14px; }
}

@media (max-width: 900px) {
  .header { mix-blend-mode: normal; }
  .header__nav { display: none; }
  .header__burger { display: block; }
  .hero__media { width: 100%; opacity: 0.45; }
  .hero__media::after {
    background: linear-gradient(0deg, var(--bg) 8%, rgba(11,11,12,0.3) 60%, rgba(11,11,12,0.55) 100%);
  }
  .hero__scroll { display: none; }
  .hero__title { font-size: clamp(60px, 16.5vw, 130px); }
  .service__row { grid-template-columns: 44px 1fr 40px; }
  .service__body ul { padding-left: 60px; }
  .service-preview { display: none; }

  /* work: native horizontal scroll on mobile */
  .work__track {
    width: auto; overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    scrollbar-width: none;
  }
  .work__track::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: start; width: min(78vw, 360px); }

  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__item { border-top: 1px solid var(--line); padding-left: 0 !important; }
  .contact__item + .contact__item { border-left: 0; }
  .contact__item:nth-child(2n) { border-left: 1px solid var(--line) !important; padding-left: 20px !important; }
  .contact__grid { border-top: 0; }
}

@media (max-width: 560px) {
  .coverage__row { grid-template-columns: 1fr 40px; grid-template-areas: "outlet arrow" "name arrow" "year arrow"; row-gap: 4px; }
  .coverage__outlet { grid-area: outlet; }
  .coverage__name { grid-area: name; }
  .coverage__year { grid-area: year; text-align: left; }
  .coverage__arrow { grid-area: arrow; }
  .about__stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; margin-top: 8px; }
  .footer__bar { flex-direction: column; align-items: flex-start; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .grain, .hero__scroll-line::after, .hero__rec i { animation: none !important; }
  * { transition-duration: 0.01ms !important; }
}
