/* ============================================================
   YGTM — Yurii Veremchuk
   A premium short film in three sections.
   Matte black · white · #FF6A00
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-deep: #050506;
  --ink: #f5f4f2;
  --ink-dim: rgba(245, 244, 242, 0.55);
  --ink-faint: rgba(245, 244, 242, 0.22);
  --accent: #ff6a00;
  --green: #3ddc84;
  --font-display: 'Clash Display', system-ui, sans-serif;
  --font-body: 'General Sans', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

em { font-style: normal; color: var(--accent); }
.accent { color: var(--accent); }
::selection { background: var(--accent); color: #000; }

/* ---------- grain + vignette ---------- */
.grain {
  position: fixed; inset: 0; z-index: 900;
  pointer-events: none; opacity: 0.07;
  mix-blend-mode: overlay;
  width: 100%; height: 100%;
}
.vignette {
  position: fixed; inset: 0; z-index: 890; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,0.5) 100%);
}

/* ---------- cursor ---------- */
.cursor, .cursor-ring { display: none; }
@media (hover: hover) and (pointer: fine) {
  body { cursor: none; }
  a, button { cursor: none; }
  .cursor {
    display: block; position: fixed; z-index: 950; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    transform: translate(-50%, -50%);
  }
  .cursor-ring {
    display: block; position: fixed; z-index: 949; pointer-events: none;
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(255, 106, 0, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), background 0.3s;
  }
  .cursor-ring.is-hover {
    width: 64px; height: 64px;
    background: rgba(255, 106, 0, 0.08);
    backdrop-filter: blur(2px);
  }
}

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 56px);
}
.nav__logo {
  display: block;
  width: clamp(86px, 10vw, 132px);
  height: 38px;
  overflow: hidden;
  text-decoration: none;
}
.nav__logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.nav__links { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  transition: color 0.3s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta {
  padding: 10px 22px; border: 1px solid rgba(255, 106, 0, 0.5); border-radius: 999px;
  color: var(--ink) !important;
}
.nav__cta:hover { background: rgba(255, 106, 0, 0.12); }

/* ---------- shared ---------- */
.section-index {
  font-size: 0.78rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 26px; display: block;
}
[data-reveal] { will-change: transform, opacity; }

/* ============ 01 · HERO — the orbit ============ */
.hero { height: 320vh; position: relative; }
.hero__stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

.hero__brand {
  position: absolute; top: 10vh; left: 50%; transform: translateX(-50%);
  width: min(78vw, 760px);
  height: clamp(120px, 22vw, 230px);
  z-index: 4;
  overflow: hidden;
}
.hero__brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__portrait {
  position: relative; z-index: 3;
  margin-top: -4vh;
}
.hero__portrait img {
  display: block; width: min(34vw, 380px); max-width: 100%; height: auto;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 72%);
  mask-image: radial-gradient(circle, #000 62%, transparent 72%);
}
.hero__portrait-glow {
  position: absolute; inset: -20%;
  background: radial-gradient(circle, rgba(255,106,0,0.2), transparent 62%);
  filter: blur(10px);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* orbiting message cards — positioned per frame by JS */
/* no z-index here: cards set their own so they can orbit in front of and behind the portrait */
.orbit { position: absolute; inset: 0; pointer-events: none; }
.msg {
  position: absolute; top: 50%; left: 50%;
  width: 220px; padding: 12px 16px;
  border-radius: 14px;
  background: rgba(20, 21, 24, 0.82);
  border: 1px solid rgba(245, 244, 242, 0.12);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  will-change: transform, opacity, filter;
}
.msg__head { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.msg__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(61, 220, 132, 0.8);
  flex-shrink: 0;
}
.msg--email .msg__dot { background: var(--accent); box-shadow: 0 0 8px rgba(255, 106, 0, 0.8); }
.msg__from {
  font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.msg__text { font-size: 0.82rem; line-height: 1.45; color: rgba(245, 244, 242, 0.85); }

.hero__copy {
  position: absolute; bottom: 9vh; left: 50%; transform: translateX(-50%);
  z-index: 4; text-align: center; width: min(92vw, 640px);
}
.hero__sub {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.15rem, 2.4vw, 1.7rem); line-height: 1.3;
}
.hero__sub strong { color: var(--accent); font-weight: 600; }
.hero__body { margin-top: 16px; color: var(--ink-dim); font-size: clamp(0.95rem, 1.5vw, 1.1rem); }
.hero__channels {
  display: flex; gap: 14px; justify-content: center; margin-top: 12px; flex-wrap: wrap;
}
.hero__channel {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  padding: 8px 20px; border-radius: 999px;
  border: 1px solid var(--ink-faint);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.hero__because { margin-top: 16px; color: var(--ink-dim); font-style: italic; font-size: clamp(0.95rem, 1.5vw, 1.1rem); }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-dim);
}
.scroll-hint__bar { width: 1px; height: 38px; background: var(--ink-faint); position: relative; overflow: hidden; }
.scroll-hint__bar::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%; background: var(--accent);
  animation: hintDrop 1.6s var(--ease-out) infinite;
}
@keyframes hintDrop { to { top: 110%; } }

@media (max-width: 700px) {
  .hero__brand { top: 12vh; }
  .hero__portrait img { width: min(52vw, 250px); }
  .msg { width: 170px; padding: 10px 12px; }
  .hero__copy { bottom: 7vh; }
}

/* ============ 02 · RESULTS — testimonial wall ============ */
.results {
  padding: clamp(110px, 16vh, 190px) clamp(20px, 6vw, 96px);
  max-width: 1440px; margin: 0 auto;
}
.results__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 5.4rem);
  line-height: 1.05; letter-spacing: -0.02em;
}
.results__sub {
  margin-top: 20px; color: var(--ink-dim);
  font-size: clamp(1.02rem, 1.7vw, 1.3rem); max-width: 50ch;
}

.twall {
  columns: 3; column-gap: clamp(16px, 2vw, 26px);
  margin-top: clamp(50px, 8vh, 90px);
}
.tcard {
  break-inside: avoid; margin-bottom: clamp(16px, 2vw, 26px);
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014));
  border: 1px solid var(--ink-faint);
  backdrop-filter: blur(12px);
  transition:
    transform 0.55s var(--ease-out),
    filter 0.55s var(--ease-out),
    opacity 0.55s var(--ease-out),
    border-color 0.4s;
}
/* spotlight: one card enlarges, siblings soften */
.twall:hover .tcard { filter: blur(2.5px); opacity: 0.55; }
.twall .tcard:hover {
  filter: blur(0); opacity: 1;
  transform: scale(1.045);
  border-color: rgba(255, 106, 0, 0.5);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.tcard--tall .tcard__quote { font-size: clamp(1.1rem, 1.7vw, 1.35rem); }
.tcard__quote {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.5;
  color: var(--ink);
}
.tcard__shot { width: 100%; border-radius: 12px; display: block; }
.tcard__who {
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px; font-size: 0.82rem; letter-spacing: 0.06em; color: var(--ink-dim);
}
.tcard__avatar {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 106, 0, 0.16); color: var(--accent);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
}
@media (max-width: 1020px) { .twall { columns: 2; } }
@media (max-width: 640px) { .twall { columns: 1; } }

/* ============ 03 · APPLY — the close ============ */
.apply {
  min-height: 130vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px clamp(20px, 6vw, 96px) 0;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 118%, rgba(255, 106, 0, 0.13), transparent),
    linear-gradient(var(--bg), var(--bg-deep) 40%);
}
.apply__portrait {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  z-index: 0; opacity: 0.35;
  will-change: transform, opacity;
}
.apply__portrait img {
  display: block; width: min(58vw, 640px); height: auto;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 70%);
  mask-image: radial-gradient(circle, #000 55%, transparent 70%);
  filter: brightness(0.75) saturate(0.9);
}
.apply__content { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 30px; }
.apply .section-index { margin-bottom: 0; }
.apply__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8.5vw, 8rem);
  line-height: 0.98; letter-spacing: -0.03em;
  display: flex; flex-direction: column;
}
.apply__row { display: block; overflow: hidden; padding-bottom: 0.08em; }
.apply__copy {
  max-width: 58ch; color: var(--ink-dim);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
}
.apply__actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.btn {
  font-family: var(--font-display); font-weight: 500; font-size: 1.02rem;
  padding: 19px 44px; border-radius: 999px; text-decoration: none;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, background 0.35s;
}
.btn--primary { background: var(--accent); color: #000; }
.btn--primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 14px 44px rgba(255, 106, 0, 0.4); }
.btn--ghost { border: 1px solid var(--ink-faint); color: var(--ink); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.06); transform: translateY(-3px); }

.footer {
  position: relative; z-index: 1;
  width: 100%; max-width: 1440px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 90px 0 28px; font-size: 0.8rem; color: var(--ink-dim);
  letter-spacing: 0.08em; flex-wrap: wrap;
}
.footer__line { color: rgba(245, 244, 242, 0.35); font-style: italic; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .scroll-hint__bar::after, .hero__portrait-glow { animation: none; }
  .twall:hover .tcard { filter: none; opacity: 1; }
  * { transition-duration: 0.01ms !important; }
}
