/* Socially Powerful — concept. Black, hot pink, violet. Archivo wide for display, Inter for body. */
:root {
  --bg: #0b0a0d;
  --bg-2: #141217;
  --ink: #f3f0f6;
  --mute: #9a93a6;
  --line: rgba(243, 240, 246, 0.12);
  --pink: #ff0088;
  --violet: #9b51e0;
  --display: "Archivo", "Arial Black", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pad: clamp(20px, 4vw, 64px);
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 125%; line-height: 0.9; letter-spacing: -0.02em; text-transform: uppercase; }
img, video { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-content: center; gap: 18px;
  background: var(--bg);
}
.loader__city { font-family: var(--display); font-stretch: 125%; font-size: clamp(28px, 6vw, 72px); text-transform: uppercase; line-height: 1; min-width: 6ch; text-align: center; }
.loader__city span { display: inline-block; }
.loader__bar { width: min(60vw, 320px); height: 2px; background: var(--line); overflow: hidden; }
.loader__bar i { display: block; height: 100%; width: 100%; background: var(--pink); transform-origin: left; transform: scaleX(0); }

/* ---------- top bar ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px var(--pad);
  mix-blend-mode: difference;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.top__mark { display: flex; flex-direction: column; font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: 13px; line-height: 0.95; text-decoration: none; letter-spacing: 0.02em; }
.top__nav { display: flex; gap: 22px; font-size: 13px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.top__nav a, .top__cta { text-decoration: none; opacity: 0.85; }
.top__nav a:hover, .top__cta:hover { opacity: 1; }
.top__cta { font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 720px) { .top__nav { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; }
.hero__pin { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.nebula { position: absolute; inset: -20%; pointer-events: none; }
.nebula i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: 0.55; mix-blend-mode: screen; }
.nebula__a { left: -10%; top: -10%; background: radial-gradient(circle at 40% 40%, rgba(255, 0, 136, 0.55), rgba(255, 0, 136, 0) 60%); }
.nebula__b { right: -15%; bottom: -20%; background: radial-gradient(circle at 60% 60%, rgba(155, 81, 224, 0.6), rgba(155, 81, 224, 0) 60%); }

.hero__title { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero__word {
  position: absolute; font-size: clamp(52px, 12.5vw, 196px); white-space: nowrap;
  will-change: transform;
}
.hero__word--l { left: var(--pad); top: 13vh; }
.hero__word--r { right: var(--pad); bottom: 12vh; }

.feed {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2; display: grid; gap: 14px; justify-items: center;
}
.feed__screen {
  position: relative; width: min(36vh, 78vw); aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: 28px; background: var(--bg-2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(255, 0, 136, 0.18), 0 10px 40px rgba(0, 0, 0, 0.6);
}
.feed__track { height: 100%; will-change: transform; }
.feed__item { margin: 0; height: 100%; }
.feed__item video { width: 100%; height: 100%; object-fit: cover; }
.feed__chip {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(11, 10, 13, 0.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 13px; line-height: 1.25;
}
.feed__brand { font-weight: 600; }
.feed__stat { color: var(--pink); font-weight: 600; }
.feed__dots { display: flex; gap: 6px; }
.feed__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background 0.3s, transform 0.3s; }
.feed__dots i.is-on { background: var(--pink); transform: scale(1.4); }

.hero__sub { position: absolute; left: var(--pad); bottom: 6vh; margin: 0; z-index: 3; max-width: 34ch; color: var(--mute); font-size: 14px; line-height: 1.5; }
.hero__hint { position: absolute; right: var(--pad); bottom: 6vh; z-index: 3; margin: 0; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); }
.hero__hint i { width: 40px; height: 1px; background: var(--mute); display: block; }
@media (max-width: 720px) {
  .hero__word { font-size: 13vw; }
  .hero__word--l { top: 11vh; }
  .hero__word--r { bottom: 16vh; }
  .feed__screen { width: min(29vh, 70vw); }
  .hero__sub { max-width: 60vw; font-size: 13px; bottom: 4vh; }
  .hero__hint { display: none; }
}

/* ---------- manifesto ---------- */
.manifesto { padding: 22vh var(--pad) 14vh; }
.manifesto__title { font-size: clamp(44px, 9vw, 150px); max-width: 10ch; }
.manifesto__text { max-width: 42ch; margin: 6vh 0 0 auto; font-size: clamp(18px, 2.2vw, 28px); line-height: 1.35; font-weight: 400; }
[data-split] .w { display: inline-block; }
.counters {
  list-style: none; margin: 14vh 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  border-top: 1px solid var(--line);
}
.counters li { padding-top: 20px; min-width: 0; }
.counters b { display: block; font-family: var(--display); font-stretch: 125%; font-size: clamp(36px, 5.5vw, 88px); line-height: 1; letter-spacing: -0.02em; }
.counters span { display: block; margin-top: 8px; color: var(--mute); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 720px) { .counters { grid-template-columns: 1fr 1fr; gap: 28px 16px; } }

.ticker { margin: 14vh calc(var(--pad) * -1) 0; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ticker__row { display: flex; gap: 0; width: max-content; padding: 18px 0; will-change: transform; }
.ticker__row span { padding: 0 28px; font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: clamp(20px, 2.6vw, 40px); line-height: 1; white-space: nowrap; color: var(--mute); }
.ticker__row span:nth-child(4n + 1) { color: var(--ink); }

/* ---------- work ---------- */
.work { position: relative; padding: 10vh var(--pad) 16vh; }
.work__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 6vh; }
.work__head h2 { font-size: clamp(32px, 5vw, 80px); }
.work__head p { margin: 0; max-width: 32ch; color: var(--mute); font-size: 14px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 4ch 1fr auto auto; align-items: center; gap: 24px;
  width: 100%; padding: 26px 0; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer;
  color: var(--ink);
}
.row__n { font-size: 12px; color: var(--mute); letter-spacing: 0.08em; }
.row__name { font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 84px); line-height: 0.95; letter-spacing: -0.02em; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), color 0.3s; }
.row__sub { color: var(--mute); font-size: 13px; letter-spacing: 0.02em; white-space: nowrap; }
.row__stat { font-weight: 600; font-size: 14px; color: var(--pink); white-space: nowrap; min-width: 9ch; text-align: right; }
.row__thumb { display: none; }
.row:hover .row__name, .row:focus-visible .row__name, .row.is-hot .row__name { transform: translateX(16px); color: #fff; }
.peek {
  position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none;
  width: 180px; aspect-ratio: 9 / 16; border-radius: 20px; overflow: hidden;
  background: var(--bg-2); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
  opacity: 0;
}
.peek video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px), (hover: none) {
  .peek { display: none; }
  .row { grid-template-columns: 3ch 1fr 72px; grid-template-areas: "n name thumb" "n sub thumb" "n stat thumb"; row-gap: 6px; column-gap: 16px; }
  .row__n { grid-area: n; align-self: start; }
  .row__name { grid-area: name; font-size: clamp(28px, 8.5vw, 60px); }
  .row__sub { grid-area: sub; white-space: normal; }
  .row__stat { grid-area: stat; text-align: left; }
  .row__thumb { grid-area: thumb; display: block; width: 72px; height: 128px; object-fit: cover; border-radius: 12px; }
  .row:hover .row__name, .row:focus-visible .row__name, .row.is-hot .row__name { transform: none; }
  .work__head { flex-direction: column; align-items: flex-start; }
}

/* ---------- services: stacking cards ---------- */
.services { padding: 4vh var(--pad) 12vh; }
.services__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 8vh; }
.services__head h2 { font-size: clamp(32px, 5vw, 80px); }
.services__head p { margin: 0; color: var(--mute); font-size: 14px; }
.stack { position: relative; }
.card {
  position: sticky; top: 12vh;
  display: grid; grid-template-columns: auto 1fr; gap: 20px 32px; align-items: start;
  margin: 0 0 4vh; padding: clamp(24px, 4vw, 48px);
  min-height: 46vh; border-radius: 24px;
  background: var(--bg-2); border: 1px solid var(--line);
  transform-origin: top center; will-change: transform;
  z-index: var(--i, 1);
}
.card:nth-child(1) { --i: 1; background: #17141c; }
.card:nth-child(2) { --i: 2; background: #1d1322; }
.card:nth-child(3) { --i: 3; background: #24112a; }
.card:nth-child(4) { --i: 4; background: #2d0f2f; }
.card:nth-child(5) { --i: 5; background: #3a0c33; }
.card:nth-child(6) { --i: 6; background: var(--pink); color: #0b0a0d; }
.card:nth-child(6) .card__n, .card:nth-child(6) p { color: rgba(11, 10, 13, 0.88); }
.card__n { font-size: 12px; letter-spacing: 0.08em; color: var(--mute); padding-top: 10px; }
.card h3 { grid-column: 2; font-size: clamp(30px, 5vw, 84px); }
.card p { grid-column: 2; margin: 0; max-width: 46ch; color: var(--mute); font-size: clamp(15px, 1.4vw, 19px); }
@media (max-width: 720px) {
  .services__head { flex-direction: column; align-items: flex-start; }
  .card { grid-template-columns: 1fr; min-height: 40vh; top: 10vh; }
  .card h3, .card p { grid-column: 1; }
}

/* ---------- contact ---------- */
.contact { padding: 16vh var(--pad) 12vh; border-top: 1px solid var(--line); }
.contact__title { font-size: clamp(44px, 9vw, 150px); }
.contact__mail {
  display: flex; flex-wrap: wrap; column-gap: 0.25em;
  margin-top: 4vh; text-decoration: none;
  font-family: var(--display); font-stretch: 125%; text-transform: uppercase; line-height: 0.95; letter-spacing: -0.02em;
  font-size: clamp(22px, 4.6vw, 76px); color: var(--pink);
}
.contact__mail:hover { color: var(--ink); }
.offices { list-style: none; margin: 12vh 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.offices li { display: grid; gap: 6px; padding-top: 20px; font-size: 14px; color: var(--mute); min-width: 0; overflow-wrap: anywhere; }
.offices b { font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: 22px; color: var(--ink); }
.offices a { text-decoration: none; color: var(--ink); opacity: 0.85; }
.offices a:hover { opacity: 1; color: var(--pink); }
@media (max-width: 720px) { .offices { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .offices { grid-template-columns: 1fr; }
  .contact__mail { font-size: 5.8vw; font-stretch: 100%; }
}

/* ---------- footer ---------- */
.footer { padding: 6vh var(--pad) 4vh; overflow: hidden; }
.footer__word { display: flex; flex-direction: column; font-family: var(--display); font-stretch: 125%; text-transform: uppercase; font-size: clamp(48px, 13vw, 300px); line-height: 0.82; letter-spacing: -0.03em; color: var(--ink); }
.footer__word span { display: block; }
.footer__word span:nth-child(2) { color: var(--pink); }
.footer__concept { margin: 4vh 0 0; max-width: 70ch; color: var(--mute); font-size: 13px; line-height: 1.6; }
.footer__concept a { color: var(--ink); }

/* ---------- modal ---------- */
.modal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 20px; background: rgba(11, 10, 13, 0.94); }
.modal[hidden] { display: none; }
.modal__inner { position: relative; width: min(1100px, 100%); }
.modal__close { position: absolute; right: 0; top: -44px; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; }
.modal__close:hover { border-color: var(--pink); color: var(--pink); }
.modal__title { position: absolute; left: 0; top: -40px; margin: 0; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.modal__video { width: 100%; max-height: 82vh; background: #000; border-radius: 12px; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .loader { display: none; }
  body.is-loading { overflow: auto; }
  .hero { height: auto; }
  .hero__pin { height: auto; min-height: 100vh; padding: 18vh var(--pad) 8vh; overflow: hidden; }
  .hero__title { position: static; }
  .hero__word { position: static; display: block; }
  .feed { position: static; transform: none; margin: 6vh auto; }
  .feed__screen { aspect-ratio: auto; width: 100%; max-width: 900px; border-radius: 0; box-shadow: none; background: none; }
  .feed__track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; transform: none !important; }
  .feed__item { aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; }
  .feed__chip, .feed__dots, .hero__hint { display: none; }
  .hero__sub { position: static; margin-top: 4vh; }
  .peek { display: none; }
  .row__thumb { display: block; }
  .row { grid-template-columns: 4ch 1fr auto auto 72px; }
  .row__thumb { width: 72px; height: 128px; object-fit: cover; border-radius: 12px; }
  .card { position: static; }
  .ticker__row { flex-wrap: wrap; width: auto; }
  * { transition: none !important; animation: none !important; }
}
