:root {
  --bg: #000;
  --fg: #fff;
  --muted: #b9b9b9;
  --gutter: clamp(16px, 4vw, 56px);
  --font: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
img, video { display: block; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  font-size: clamp(16px, 1.6vw, 20px); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap;
  color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); /* keeps it readable over light video frames */
}
.menu-btn {
  font-size: 18px; font-weight: 600; letter-spacing: -0.02em;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(20,20,20,.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.header-links { display: flex; gap: 8px; }
@media (max-width: 420px) { .header-links a:first-child { display: none; } } /* the name already links home */

.menu {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.94);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
  padding: 0 var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.menu.open { opacity: 1; visibility: visible; }
.menu a {
  font-size: clamp(40px, 9vw, 104px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: #5c5c5c; transition: color .2s;
}
.menu a:hover, .menu a:focus-visible { color: #fff; }
.menu .close { position: absolute; top: 28px; right: var(--gutter); font-size: 22px; font-weight: 600; }

/* ---------- hero / intro ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 18vh, 180px) var(--gutter) 28px;
}
.silk {
  position: absolute; inset: -20%; z-index: -2;
  background:
    radial-gradient(60% 40% at 30% 18%, rgba(235,235,235,.55), transparent 60%),
    radial-gradient(45% 35% at 80% 8%, rgba(120,0,0,.75), transparent 65%),
    radial-gradient(70% 45% at 70% 40%, rgba(200,200,200,.28), transparent 60%),
    radial-gradient(50% 40% at 15% 55%, rgba(90,0,0,.5), transparent 70%),
    #050505;
  filter: blur(30px);
  animation: drift 22s ease-in-out infinite alternate;
}
.hero::after { /* fade silk into black + film grain */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to bottom, transparent 35%, #000 92%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  opacity: .9;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-4%,3%,0) rotate(4deg) scale(1.08); }
  100% { transform: translate3d(3%,-2%,0) rotate(-3deg) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) { .silk { animation: none; } }

.letter {
  max-width: 680px; margin: 0 auto;
  font-size: clamp(16px, 1.45vw, 19px); line-height: 1.42; letter-spacing: -0.015em;
}
.letter p + p { margin-top: .9em; }
.letter strong { font-weight: 700; }
.letter .lead { font-size: 1.22em; line-height: 1.32; letter-spacing: -0.025em; }
.letter .lead strong { color: #fff; }

.ctas {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 48px;
  margin-top: 32px;
}
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.03em;
  padding: 16px 32px; border-radius: 999px;
  transition: transform .2s, background .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-solid { background: #fff; color: #000; }
.btn-solid:hover { background: #e2e2e2; }
.btn-ghost { padding-inline: 8px; }
.btn-ghost .arrow { transition: transform .2s; }
.btn-ghost:hover .arrow { transform: translateX(6px); }

/* ---------- autoplay reel (continuous marquee) ---------- */
.reel { overflow: hidden; padding: 8px 0 24px; }
.reel-track { /* padding = one gap, so -50% is exactly one copy and the loop is seamless */
  display: flex; gap: 20px; padding-right: 20px; width: max-content; will-change: transform;
  animation: marquee var(--reel-duration, 80s) linear infinite;
}
.reel-card {
  position: relative; flex: 0 0 clamp(200px, 26vw, 320px); aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden; background: #111;
  transition: transform .3s ease;
}
@media (hover: hover) { .reel-card:hover { transform: scale(1.03); } }
.reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card .tag {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 14px;
  display: flex; justify-content: space-between; align-items: end; gap: 8px;
  font-size: 15px; font-weight: 700; letter-spacing: -0.02em;
  background: linear-gradient(to top, rgba(0,0,0,.7), transparent);
}
.reel-card .tag small { font-weight: 500; color: #ddd; }

/* ---------- sections: skills / platforms / stats ---------- */
.block { padding: clamp(64px, 9vw, 120px) var(--gutter) 0; }
.block-title {
  font-size: clamp(32px, 4.4vw, 56px); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  color: #d6d6d6; padding-bottom: 20px; border-bottom: 1px solid #3a3a3a;
}

#skills-h { border-bottom: 0; }
.skills { list-style: none; margin-top: 8px; }
.skills li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 16px 12px; border-bottom: 1px solid #2a2a2a;
  font-size: clamp(16px, 1.6vw, 21px); font-weight: 600; letter-spacing: -0.02em;
}
.skills li span:last-child { white-space: nowrap; }

.logos { overflow: hidden; margin-top: 48px; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.logos-track { /* padding = one gap, so -50% is exactly one copy and the loop is seamless */
  --gap: clamp(56px, 8vw, 120px);
  display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); width: max-content;
  animation: marquee 30s linear infinite;
}
.logos-track img { height: clamp(40px, 5vw, 64px); width: auto; filter: invert(1); opacity: .9; }
.logos-track figure { display: grid; justify-items: center; gap: 10px; }
.logos-track figcaption { font-size: 14px; color: #9a9a9a; letter-spacing: -0.01em; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .logos-track { animation-duration: 120s; } }

/* Stats: Paid Ads / Organic Social as two panels, sized so stats + library CTA + footer fit one screen */
.stats-block { padding-top: clamp(48px, 7vh, 80px); }
.stats-block .block-title { padding-bottom: 14px; }
.stat-panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); margin-top: 18px; }
@media (max-width: 900px) { .stat-panels { grid-template-columns: 1fr; } }
.stat-panel { padding: clamp(20px, 2.4vw, 32px); border-radius: 18px; background: #0b0b0b; border: 1px solid #1f1f1f; }
.stats-group {
  padding-bottom: 12px; border-bottom: 1px solid #262626;
  font-size: clamp(15px, 1.3vw, 18px); font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; color: #8a8a8a;
}
.stats-group small { margin-left: 10px; font-size: .85em; font-weight: 500; text-transform: none; letter-spacing: 0; color: #666; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin-top: 14px; }
.stat strong {
  display: block; font-size: clamp(30px, 3.2vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; font-size: clamp(14px, 1.2vw, 18px); font-weight: 600; color: #c9c9c9; letter-spacing: -0.02em; }

/* ---------- library CTA ---------- */
.library-cta {
  position: relative; overflow: hidden; isolation: isolate;
  margin: 36px var(--gutter) 0; padding: clamp(28px, 4vh, 44px) clamp(24px, 5vw, 72px);
  border-radius: 24px; background: #0b0b0b; border: 1px solid #1d1d1d;
  display: grid; gap: 18px; justify-items: start;
}
.library-cta h2 { font-size: clamp(36px, 4.4vw, 64px); font-weight: 800; letter-spacing: -0.06em; line-height: .9; }
.library-cta p { font-size: clamp(18px, 2vw, 24px); color: var(--muted); max-width: 30ch; letter-spacing: -0.02em; }
.cta-stack { /* fanned posters behind the text */
  position: absolute; right: clamp(-120px, -4vw, 0px); top: 50%; z-index: -1;
  width: clamp(160px, 20vw, 260px); aspect-ratio: 9/16; transform: translateY(-50%);
}
.cta-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
}
.cta-stack img:nth-child(1) { transform: rotate(-12deg) translateX(-30%); opacity: .35; }
.cta-stack img:nth-child(2) { transform: rotate(-4deg) translateX(-12%); opacity: .55; }
.cta-stack img:nth-child(3) { transform: rotate(5deg); opacity: .8; }
@media (max-width: 700px) { .cta-stack { opacity: .35; } }

.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
  padding: clamp(28px, 4vh, 40px) var(--gutter); color: #777; font-size: 15px;
}
.site-footer a:hover { color: #fff; }

/* ---------- library page ---------- */
.library { padding: clamp(104px, 14vh, 150px) var(--gutter) 0; max-width: 1400px; margin: 0 auto; }
.library h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; }
.library-sub { max-width: 62ch; margin-top: 18px; font-size: clamp(15px, 1.25vw, 18px); line-height: 1.5; color: var(--muted); letter-spacing: -0.02em; }
.library-sub + .library-sub { margin-top: 10px; }
.proof-title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.04em; margin-top: 48px; color: #d6d6d6; }

/* engagement screenshot carousel */
.proof { margin-top: clamp(40px, 6vh, 64px); }
.proof-strip {
  overflow: hidden; margin: 20px calc(-1 * var(--gutter)) 0;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.proof-track {
  --gap: 16px; --h: clamp(300px, 30vw, 420px);
  display: flex; gap: var(--gap); padding-right: var(--gap); width: max-content;
  animation: marquee 45s linear infinite;
}
.proof-strip:hover .proof-track { animation-play-state: paused; }
.proof-card {
  flex: 0 0 auto; height: var(--h); padding: 0; border-radius: 14px; overflow: hidden;
  background: #fff; border: 1px solid #222; cursor: zoom-in;
}
.proof-card img { height: var(--h); width: auto; max-width: none; }
.proof-card.placeholder {
  aspect-ratio: 9 / 16; display: grid; place-items: center; padding: 16px; text-align: center;
  background: repeating-linear-gradient(45deg, #111 0 14px, #161616 14px 28px);
  border-style: dashed; border-color: #3a3a3a; color: #777; font-size: 14px; font-weight: 600;
}
.shot-viewer { margin: auto; padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 94dvh; overflow: visible; }
.shot-viewer::backdrop { background: rgba(0,0,0,.88); }
.shot-viewer img { max-width: 94vw; max-height: 90dvh; border-radius: 12px; }

/* ad thumbnails */
.grid {
  display: grid; gap: clamp(10px, 1.6vw, 20px); margin-top: 40px;
  grid-template-columns: repeat(auto-fill, minmax(min(44vw, 220px), 1fr));
}
.thumb {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: #111; text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.thumb:hover, .thumb:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.6); }
.thumb img, .thumb video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb video { opacity: 0; transition: opacity .25s; }
.thumb.previewing video { opacity: 1; }
.thumb .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding-left: 3px; transition: opacity .25s; /* nudge the triangle so it looks centred */
}
.thumb.previewing .play { opacity: 0; }
.thumb-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 12px 12px;
  display: grid; gap: 2px; background: linear-gradient(to top, rgba(0,0,0,.8), transparent);
}
.thumb-info strong { font-size: 15px; letter-spacing: -0.02em; }
.thumb-info small { font-size: 13px; color: #cfcfcf; }

/* full-screen player */
.player {
  margin: auto; padding: 0; border: 0; background: transparent; color: var(--fg);
  max-width: 100vw; max-height: 100dvh; overflow: visible;
}
.player::backdrop { background: rgba(0,0,0,.88); backdrop-filter: blur(6px); }
.player-frame {
  width: min(92vw, (100dvh - 140px) * 9 / 16); aspect-ratio: 9 / 16;
  border-radius: 14px; overflow: hidden; background: #000;
}
.player-frame video { width: 100%; height: 100%; object-fit: contain; }
.player-info { padding: 12px 2px 0; }
.player-info h2 { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.player-info p { font-size: 14px; color: var(--muted); }
.player-close {
  position: fixed; top: 16px; right: 16px; z-index: 1;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(30,30,30,.8);
}
.player-close:hover { background: #fff; color: #000; }
@media (max-width: 700px) { .proof-track { animation-duration: 20s; } } /* phones: ~2.5 s per screenshot instead of ~6 s */

/* ---------- library: native statics + hook, statics ---------- */
.section-sub { margin-top: 10px; font-size: clamp(15px, 1.25vw, 18px); color: var(--muted); letter-spacing: -0.02em; }
.static-grid {
  display: grid; gap: clamp(10px, 1.6vw, 20px); margin-top: 24px;
  grid-template-columns: repeat(auto-fill, minmax(min(44vw, 220px), 1fr));
}
.static-img { display: block; width: 100%; padding: 0; border-radius: 12px; overflow: hidden; background: #111; cursor: zoom-in; }
.static-img img { width: 100%; height: auto; }
.static-img.placeholder {
  aspect-ratio: 1 / 1; display: grid; place-items: center; cursor: default;
  background: repeating-linear-gradient(45deg, #111 0 14px, #161616 14px 28px);
  border: 1px dashed #3a3a3a; color: #777; font-size: 14px; font-weight: 600;
}
.library { padding-bottom: 24px; }

/* ---------- native statics: fanned stack + viewer ---------- */
.native-stack {
  display: flex; align-items: center; gap: clamp(24px, 5vw, 64px); flex-wrap: wrap;
  margin-top: 28px; padding: clamp(24px, 4vw, 48px); width: 100%;
  border-radius: 24px; background: #0b0b0b; border: 1px solid #1d1d1d; text-align: left;
}
.native-cards { position: relative; width: clamp(170px, 26vw, 300px); aspect-ratio: 1; margin: 12px 0 12px clamp(56px, 9vw, 110px); } /* left margin leaves room for the fanned back cards */
.native-cards img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.6); transition: transform .35s ease;
}
.native-cards img:nth-child(1) { transform: rotate(-12deg) translateX(-24%); opacity: .45; }
.native-cards img:nth-child(2) { transform: rotate(-5deg) translateX(-10%); opacity: .7; }
.native-cards img:nth-child(3) { transform: rotate(4deg); }
@media (hover: hover) {
  .native-stack:hover .native-cards img:nth-child(1) { transform: rotate(-16deg) translateX(-34%); }
  .native-stack:hover .native-cards img:nth-child(2) { transform: rotate(-7deg) translateX(-16%); }
  .native-stack:hover .native-cards img:nth-child(3) { transform: rotate(6deg) translateX(4%); }
}
.native-label { display: grid; gap: 10px; }
.native-label strong { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.native-label span { font-size: 16px; font-weight: 700; color: var(--muted); }

.native-panel {
  margin: 0; padding: 0; border: 0; width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
  background: rgba(0,0,0,.96); color: var(--fg); overflow-y: auto; overscroll-behavior: contain;
}
.native-panel::backdrop { background: #000; }
.np-inner { max-width: 1400px; margin: 0 auto; padding: 88px var(--gutter) 64px; }
.np-inner h2 { font-size: clamp(30px, 4vw, 52px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.np-grid { display: grid; gap: clamp(12px, 1.8vw, 24px); margin-top: 28px; grid-template-columns: repeat(auto-fill, minmax(min(43vw, 260px), 1fr)); align-items: start; }
@media (max-width: 420px) { .native-hook { font-size: 14px; } }
.np-card { display: grid; gap: 10px; }
.np-img { display: block; width: 100%; padding: 0; border-radius: 14px; overflow: hidden; background: #111; cursor: zoom-in; }
.np-img img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.native-hook { padding: 2px 2px 0; font-size: 15px; line-height: 1.5; letter-spacing: -0.015em; color: #e8e8e8; }
.shot-viewer { z-index: 2; }
.native-hook span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a8a8a; }
