@font-face {
  font-family: "KyivType Sans";
  src: url('./fonts/KyivType2020-14-12/KyivType-NoVariable/OTF/KyivTypeSans-Black-.otf') format('opentype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #1c1c1e;
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.84);
  --accent: #e1272f;
  --font-display: "KyivType Sans", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Mono", monospace;
}

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

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  overflow-x: hidden;
  background: #000;
}

body {
  font-family: var(--font-body);
  background: #000;
  color: var(--text);
  overflow-y: scroll;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 100%;
  flex: 1;
}

/* ─── HERO ─── */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.01);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.30) 6%,
    rgba(0, 0, 0, 0.10) 30%,
    rgba(0, 0, 0, 0.02) 70%
  );
  pointer-events: none;
}

/* ─── HERO CONTENT ─── */

.hero__content {
  position: fixed !important;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 50;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__lockup {
  display: inline-block;
}

.hero__title {
  position: relative;
  margin: 0 0 0 -0.06em;
  display: inline-block;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 3.1rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
}

.hero__role {
  margin: 0.42rem 0 0;
  display: block;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: clamp(0.64rem, 0.8vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero__i-anchor {
  position: relative;
  display: inline-block;
}

.hero__kicker {
  position: absolute;
  left: 58%;
  bottom: calc(100% + 0.12rem);
  transform: translateX(-50%);
  pointer-events: none;
}

.hero__kicker::before {
  content: "";
  display: block;
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 5px rgba(225, 39, 47, 0.22);
  animation: recPulse 2s ease-in-out infinite;
}

@keyframes recPulse {
  0%   { opacity: 0; }
  16%  { opacity: 0; }
  52%  { opacity: 1; }
  85%  { opacity: 0; }
  100% { opacity: 0; }
}

/* ─── SCROLL BUTTON ─── */

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  mix-blend-mode: difference;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero__scroll svg rect,
.hero__scroll svg polyline {
  stroke: white;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ─── WORK ─── */

.work {
  background: #000;
  padding: 2px;
}

.work__grid {
  display: grid;
  gap: 35px;
  padding: 35px;
}

.work__grid--horizontal {
  grid-template-columns: repeat(2, 1fr);
}

.work__grid--vertical {
  grid-template-columns: repeat(3, 1fr);
  padding-top: 0;
}

.work__item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  transition: transform 0.35s ease;
  transform-origin: center;
}

.work__item--horizontal {
  aspect-ratio: 16 / 9;
}

.work__item--vertical {
  aspect-ratio: 9 / 16;
}

.work__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: none;
}

.work__item:hover {
  transform: scale(1.02);
}

.work__info {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.work__item:hover .work__info {
  opacity: 1;
}

.work__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

/* ─── MODAL ─── */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  align-items: center;
  justify-content: center;
}

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

.modal__inner {
  position: relative;
  width: 90vw;
  max-width: 1100px;
  max-height: 90vh;
}

.modal__video {
  width: 100%;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.modal__close {
  position: fixed;
  top: 1.2rem;
  right: 1.4rem;
  background: rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  z-index: 101;
  line-height: 1;
  padding: 0.5rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  transition: background 0.2s;
}

.modal__close:hover {
  background: rgba(255,255,255,0.15);
}

.modal__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.4);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s, background 0.2s;
  pointer-events: auto;
}

.modal__play:hover {
  background: rgba(0,0,0,0.7);
}

.modal__play.is-hidden {
  display: none;
}

/* ─── CONTACT ─── */

.contact {
  background: #000;
  padding: 4rem 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 8rem);
  font-weight: 900;
  color: #fff;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 2rem;
  text-transform: uppercase;
}

.contact > div[data-tf-live] {
  width: 100%;
  min-height: 200px;
}

/* ─── FOOTER ─── */

.footer {
  background: #cdcdcd;
  padding: 4rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: flex-start;
  border-top: 1px solid rgba(22, 22, 22, 0.08);
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #1c1c1e;
}

.footer__col:nth-child(1) { text-align: left; }
.footer__col:nth-child(2) { text-align: center; align-items: center; }
.footer__col:nth-child(3) { text-align: right; align-items: flex-end; }

.footer__link {
  color: #1c1c1e;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer__link:hover {
  opacity: 0.6;
}

/* ─── RESPONSIVE ─── */

@media (min-width: 768px) {
  .hero__content {
    top: 1.8rem;
    left: 1.8rem;
    width: min(90vw, 38rem);
  }
  .hero__title {
    font-size: clamp(2.1rem, 3.6vw, 3.6rem);
  }
  .hero__role {
    letter-spacing: 0.54em;
  }
  .hero__kicker {
    left: 57%;
    bottom: calc(100% - 0.1rem);
  }
  .hero__kicker::before {
    width: 0.7rem;
    height: 0.7rem;
  }
}

@media (min-width: 1200px) {
  .hero__content {
    top: 2rem;
    left: 2rem;
  }
  .hero__title {
    font-size: clamp(2.2rem, 3.2vw, 3.8rem);
  }
}

@media (max-width: 900px) {
  .work__grid--horizontal {
    grid-template-columns: repeat(2, 1fr);
  }
  .work__grid--vertical {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .footer {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 3rem 1.5rem;
  }
  .footer__col:nth-child(1),
  .footer__col:nth-child(2),
  .footer__col:nth-child(3) {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 540px) {
  .work__grid--horizontal,
  .work__grid--vertical {
    grid-template-columns: 1fr;
  }
}