/* =========================================================
   VideoDogs — dark cinematic theme
   Brand: black / white / logo red
   ========================================================= */
:root {
  --bg: #000000;
  --surface: #0f0f0f;
  --surface-2: #171717;
  --line: #262626;
  --text: #f5f5f5;
  --text-muted: #a3a3a3;
  --red: #ff0000;          /* logo eye */
  --red-hover: #ff3b3b;
  --on-red: #000000;

  --font-display: "Inter Tight", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-condensed: "Anton", "Impact", sans-serif;

  --radius: 14px;
  --gutter: clamp(16px, 4vw, 48px);
  --nav-h: 72px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 700ms;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }

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

img, video, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

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

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 1000;
  background: var(--red); color: var(--on-red); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--text-muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 20px; font-size: 14px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; font-size: 16px;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color var(--dur-fast), color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  touch-action: manipulation;
}
.btn:active { transform: scale(.97); }
.btn--primary { background: var(--red); color: var(--on-red); }
.btn--primary:hover { background: var(--red-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: #3a3a3a; }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  transition: background-color var(--dur), border-color var(--dur);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0, 0, 0, .78);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav__inner {
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { position: relative; width: 60px; height: 40px; overflow: hidden; flex: none; }
.brand__mark img {
  /* logo lines span ~71% x 47% of the square PNG: 78px keeps the whole frame inside 60x40 */
  position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; max-width: none;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen; /* drops the black square of the PNG */
}
.brand__name { font-family: var(--font-condensed); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; }

.nav__links { display: flex; gap: 32px; }
.nav__links a {
  position: relative; text-decoration: none; font-family: var(--font-display); font-weight: 500;
  color: var(--text-muted); padding: 8px 0; transition: color var(--dur-fast);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--text); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur) var(--ease-out);
}
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang__btn {
  min-width: 40px; min-height: 34px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text-muted); font-size: 13px; font-weight: 600; letter-spacing: .04em; cursor: pointer;
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { background: var(--text); color: var(--bg); }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: transparent; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 13px; right: 13px; height: 2px; background: var(--text);
  transition: transform var(--dur) var(--ease-out);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 24px; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 64px; text-align: center; background: #000;
}
.hero__stage { width: 100%; max-width: min(960px, calc((100vh - 340px) * 1.7778)); aspect-ratio: 16 / 9; }
.hero__video { width: 100%; height: 100%; object-fit: contain; background: #000; }

.hero__copy {
  max-width: 860px; margin-top: -2vh;
  opacity: 0; transform: translateY(24px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.hero__copy.is-in { opacity: 1; transform: none; }
.hero__title {
  margin: 0 auto 32px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(30px, 4.6vw, 60px); line-height: 1.06; letter-spacing: -.03em;
  text-wrap: balance;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.hero__replay {
  position: absolute; right: var(--gutter); bottom: 32px;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
  background: transparent; color: var(--text-muted); cursor: pointer;
  display: grid; place-items: center; transition: color var(--dur-fast), border-color var(--dur-fast);
}
.hero__replay:hover { color: var(--text); border-color: var(--text); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 18px 0; background: var(--bg); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track span {
  font-family: var(--font-condensed); font-size: clamp(28px, 4vw, 52px); text-transform: uppercase;
  letter-spacing: .01em; padding-right: .5em; white-space: nowrap; color: var(--text);
}
.marquee__track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px #6b6b6b; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section__title {
  margin: 0 0 16px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.035em; text-wrap: balance;
}
.section__lead { margin: 0; font-size: clamp(17px, 1.4vw, 19px); color: var(--text-muted); max-width: 60ch; }

/* ---------- Video grid (reference: card grid w/ "video" pill) ---------- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(16px, 2vw, 28px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}
.card { display: block; }
.card__btn {
  position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; cursor: pointer;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-align: left;
  background: var(--surface); color: #fff;
  transition: border-color var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
.card__btn::after { /* darkens the bottom so the title stays readable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.75) 100%);
}
.card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out), filter var(--dur) var(--ease-out);
  filter: saturate(.9) brightness(.85);
}
.card__btn:hover { border-color: #555; }
.card__btn:hover .card__img { transform: scale(1.04); filter: none; }
.card__btn:active { transform: scale(.985); }
.card__btn:focus-visible { outline-offset: 3px; }

.pill {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  padding: 3px 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 8px;
  font-size: 14px; line-height: 1.4; color: #fff; background: rgba(0,0,0,.35);
}
.card__play {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%) scale(.9);
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: var(--on-red); padding-left: 3px; opacity: 0;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.card__btn:hover .card__play, .card__btn:focus-visible .card__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
@media (hover: none) { .card__play { opacity: 1; transform: translate(-50%, -50%) scale(.85); } }

.card__meta {
  position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 2;
  display: flex; align-items: baseline; gap: 10px;
}
.card__desc { margin: 12px 4px 0; font-size: 15px; line-height: 1.5; color: var(--text-muted); }
.card__index { font-family: var(--font-condensed); font-size: 16px; color: var(--red); }
.card__title {
  font-family: var(--font-condensed); text-transform: uppercase; line-height: 1;
  font-size: clamp(22px, 2.1vw, 30px); letter-spacing: .01em;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ---------- Video player (lightbox) ---------- */
.player {
  padding: 0; border: 0; background: transparent; color: var(--text);
  width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0;
}
.player::backdrop { background: rgba(0, 0, 0, .92); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.player[open] { animation: player-in var(--dur) var(--ease-out); }
@keyframes player-in { from { opacity: 0; transform: scale(.97); } }

.player__inner {
  height: 100%; display: flex; flex-direction: column; align-items: center;
  padding: 16px var(--gutter) 24px; gap: 12px;
}
.player__bar {
  width: 100%; max-width: 1400px; display: flex; align-items: center; gap: 16px; min-height: 48px;
}
.player__title {
  margin: 0; flex: 1; font-family: var(--font-condensed); text-transform: uppercase;
  font-size: clamp(22px, 2.4vw, 32px); line-height: 1;
}
.player__count { color: var(--text-muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.player__close, .player__nav {
  width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid #3a3a3a; background: rgba(0,0,0,.5); color: var(--text); cursor: pointer;
  transition: border-color var(--dur-fast), background-color var(--dur-fast);
}
.player__close:hover, .player__nav:hover { border-color: var(--text); background: #111; }

.player__stage {
  flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 3vw, 40px);
}
.player__box {
  position: relative; overflow: hidden; background: #000; border-radius: var(--radius);
  border: 1px solid var(--line); flex: none;
}
.player__box video { width: 100%; height: 100%; object-fit: contain; background: #000; }

/* ---------- About: phases ---------- */
.phases {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px;
}
.phase {
  padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.phase__num { display: block; font-family: var(--font-condensed); font-size: 20px; color: var(--red); margin-bottom: 20px; }
.phase__title { margin: 0 0 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.01em; }
.phase ul { list-style: none; margin: 0; padding: 0; }
.phase ul li { color: var(--text-muted); padding: 2px 0; }

/* ---------- About ---------- */
.section--about { background: var(--bg); border-block: 1px solid var(--line); }
.about { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.4fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.about__photo {
  margin: 0; position: sticky; top: calc(var(--nav-h) + 24px);
  border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 3 / 4;
}
.about__photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 4%;
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.about__content { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.about__lead {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.35; letter-spacing: -.01em; max-width: 34ch;
}
.about__body { margin: 0 0 24px; color: var(--text-muted); max-width: 62ch; }
.about__side-job {
  display: inline-flex; align-items: center; gap: 12px; margin: 0;
  padding: 12px 20px; border: 1px solid #3a3a3a; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500;
}

.services { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.services li {
  padding: 8px 18px; border: 1px solid #3a3a3a; border-radius: 999px;
  font-family: var(--font-display); font-weight: 500; font-size: 15px;
}

.stat { }
.stat__num {
  display: block; font-family: var(--font-condensed); font-size: clamp(96px, 12vw, 168px);
  line-height: .9; color: var(--text); font-variant-numeric: tabular-nums;
}
.stat__num::after { content: "+"; color: var(--red); }
.stat__label { display: block; margin-top: 12px; color: var(--text-muted); }

.facts__title {
  margin: 0 0 12px; font-size: 14px; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-muted);
}
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.timeline__name { font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; letter-spacing: -.01em; }
.timeline__sub { display: block; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--text-muted); letter-spacing: 0; }

.work { margin: 0; }
.work__row {
  display: grid; grid-template-columns: 96px 1fr; gap: 16px;
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.work dt { color: var(--text-muted); font-size: 14px; padding-top: 3px; }
.work dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.35; }
.work__note { display: block; margin-top: 4px; font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--text-muted); }
.timeline__tag { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.timeline__tag--now {
  color: var(--text); display: inline-flex; align-items: center; gap: 8px;
}
.timeline__tag--now::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red);
  animation: rec 1.6s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: .25; } }

/* ---------- FAQ ---------- */
.section--faq { border-top: 1px solid var(--line); }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; min-height: 48px;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(17px, 1.5vw, 20px); letter-spacing: -.01em;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #fff; }
.faq__icon { position: relative; width: 16px; height: 16px; flex: none; }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--red);
  transition: transform var(--dur) var(--ease-out);
}
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0deg); }
.faq__a { margin: 0 0 22px; color: var(--text-muted); max-width: 62ch; }

/* ---------- Contact ---------- */
.contact { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact .eyebrow { justify-content: center; }
.contact__title {
  margin: 0 0 20px; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(42px, 8vw, 112px); line-height: .98; letter-spacing: -.045em; text-wrap: balance; max-width: 14ch;
}
.contact .section__lead { margin: 0 auto; }
.contact__region { margin: 12px auto 0; font-size: 15px; color: var(--text-muted); max-width: 60ch; }
.contact__mail {
  margin: 40px 0 32px; font-family: var(--font-condensed);
  font-size: clamp(30px, 7vw, 96px); line-height: 1; letter-spacing: .01em; text-decoration: none;
  overflow-wrap: normal; background: linear-gradient(var(--red), var(--red)) no-repeat 0 100% / 0 4px;
  padding-bottom: 6px; transition: background-size var(--dur) var(--ease-out);
}
.contact__mail:hover { background-size: 100% 4px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.toast { min-height: 24px; margin: 16px 0 0; color: var(--text); font-weight: 500; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--text-muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer__top { text-decoration: none; padding: 10px 0; }
.footer__top:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: 60ms; }
.grid .reveal:nth-child(3) { transition-delay: 120ms; }
.grid .reveal:nth-child(5) { transition-delay: 60ms; }
.grid .reveal:nth-child(6) { transition-delay: 120ms; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about { grid-template-columns: 1fr; }
  .about__photo { position: relative; top: 0; max-width: 420px; }
  .about__facts { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  :root { --nav-h: 64px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: var(--nav-h) 0 0 0; flex-direction: column; gap: 0;
    padding: 24px var(--gutter); background: #000;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out), visibility var(--dur);
  }
  .nav__links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__links a {
    font-size: 36px; font-weight: 600; color: var(--text); padding: 14px 0;
    border-bottom: 1px solid var(--line); letter-spacing: -.02em;
  }
  .nav__links a::after { display: none; }
  .nav.menu-open { background: #000; }
  .brand__name { display: none; }
  .lang__btn { min-width: 36px; }

  .hero { padding-bottom: 96px; }
  .hero__copy { margin-top: 8px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__replay { bottom: 24px; }

  .grid { grid-template-columns: 1fr; }
  .about__facts { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .about__side-job { border-radius: var(--radius); align-items: flex-start; }
  .about__side-job .dot { margin-top: 8px; }
  .player__inner { padding: 8px 12px 16px; }
  .player__stage { position: relative; }
  .player__box { max-width: 100%; }
  .player__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
  .player__nav--prev { left: 4px; }
  .player__nav--next { right: 4px; }
  .contact__actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
