/*
  Jumper portfolio.
  Layout, spacing and breakpoints mirror the reference (liquidovfx.com):
  phone < 810px, tablet 810-1199px, desktop >= 1200px.
  Palette is neutral, pulled from Jumper's chrome "J" avatar.
*/

:root {
  --bg: #161616;          /* page */
  --circle: #1e1e1e;      /* background circles */
  --dot: rgba(255, 255, 255, 0.07);
  --card: #0a0a0a;        /* cards, borders, text stroke */
  --text: #ffffff;
  --accent: #d6d6d6;      /* subs, quote marks */
  --chrome: linear-gradient(180deg, #ffffff 0%, #f1f1f1 38%, #bdbdbd 62%, #f4f4f4 100%);
  --glow: 0 0 28px rgba(255, 255, 255, 0.22);

  --pad: 32px;
  --section-gap: 72px;
  --gap: 32px;
  --radius: 16px;

  --font-display: "Outfit", "Figtree", system-ui, sans-serif;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* breakpoint-driven sizes (desktop) */
  --display-size: 96px;
  --display-stroke: 4px;
  --client-size: 200px;
  --cta-pad: 48px;
  --cta-title: 64px;
}

@media (max-width: 1199.98px) {
  :root {
    --display-size: 64px;
    --display-stroke: 3px;
    --client-size: 150px;
    --cta-pad: 36px;
  }
}

@media (max-width: 809.98px) {
  :root {
    --display-size: 48px;
    --cta-pad: 32px;
    --cta-title: 40px;
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, p { margin: 0; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* ---------- Page + background ---------- */

.page {
  position: relative;
  min-height: 100vh;
  overflow: clip;
}

/* Circle field scrolls with the page, bleeding 315px past each edge like the reference */
.circles {
  position: absolute;
  top: 0;
  left: -315px;
  width: calc(100% + 630px);
  height: 3441px;
  pointer-events: none;
}

.circles svg { width: 100%; height: 100%; display: block; }

/* moving halftone overlay from Jumper's previous site, 8% like the original */
.overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  pointer-events: none;
}

.main {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
  padding: var(--pad);
}

/* every section caps at 1400px and centers, like the reference */
.main > section {
  width: 100%;
  max-width: 1400px;
}

/* ---------- Bordered surfaces ----------
   The reference draws borders as an inset overlay so they sit on top of
   images instead of shrinking them. Same here. */

.framed {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
}

.framed::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--card);
  border-radius: inherit;
  pointer-events: none;
}

/* ---------- Display type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--display-size);
  line-height: 1.0002;
  letter-spacing: -0.04em;
  color: var(--text);
  -webkit-text-stroke: var(--display-stroke) var(--card);
  paint-order: stroke fill;
}

.hl { color: #9a9a9a; }

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 12px 32px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--chrome);
  color: var(--card);
  font: 800 36px/1.2 var(--font);
  white-space: nowrap;
  box-shadow: var(--glow);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 4px solid var(--card);
  border-radius: inherit;
  pointer-events: none;
}

/* moving glint, the same sparkle the avatar has */
.btn::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 30%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.9) 50%, transparent 100%);
  transform: skewX(-18deg) translateX(-200%);
  transition: transform 0.7s ease;
  pointer-events: none;
}

.btn:hover { transform: scale(1.015); box-shadow: 0 0 40px rgba(255, 255, 255, 0.35); }
.btn:hover::before { transform: skewX(-18deg) translateX(560%); }
.btn:active { transform: scale(0.985); }

@media (max-width: 809.98px) {
  .btn,
  .btn.btn-cta { padding-inline: 16px; font-size: min(36px, 9.6vw); }
}

/* ---------- Hero ---------- */

.hero {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-text h1 { text-align: center; }

.hero-row {
  display: flex;
  gap: 24px;
}

.hero-line-2 {
  flex: none;
  white-space: nowrap;
}

.btn-buffer {
  flex: 1;
  min-width: 0;
  padding: 12px 12px 0;
}

/* Tablet and phone: the second line drops under the first instead of sitting beside the button */
@media (max-width: 1199.98px) {
  .hero-row {
    flex-direction: column;
    gap: 0;
  }
  .hero-line-2 {
    white-space: normal;
    text-align: center;
  }
  .btn-buffer { margin-top: 20px; }
  .btn-buffer .btn { height: 90px; }
}

/* ---------- Videos ---------- */

.video-row,
.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

@media (max-width: 809.98px) {
  .video-row,
  .video-grid { grid-template-columns: 1fr; }
}

.video {
  aspect-ratio: 16 / 9;
  background: var(--card);
}

.video-btn {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.video img,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 48px;
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.8);
  transform: translate(-50%, -50%);
  transition: background 0.2s, transform 0.2s;
}

.play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-40%, -50%);
}

.video-btn:hover .play { background: #fff; transform: translate(-50%, -50%) scale(1.06); }
.video-btn:hover .play::before { border-left-color: var(--card); }

/* ---------- Client ticker ---------- */

.ticker {
  overflow: hidden;
}

.ticker-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: ticker var(--ticker-duration, 40s) linear infinite;
}

/* moves left to right, like the reference */
@keyframes ticker {
  from { transform: translateX(calc(-50% - var(--gap) / 2)); }
  to { transform: translateX(0); }
}

.client {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: var(--client-size);
}

.client-pfp {
  width: var(--client-size);
  height: var(--client-size);
  border-radius: 20px;
}

.client-pfp img { width: 100%; height: 100%; object-fit: cover; }

.client-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  font: 700 24px/1.2 var(--font);
}

.subs { color: var(--accent); }

/* ---------- Testimonials ---------- */

.slider {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
  -webkit-user-select: none;
          user-select: none;
}

.slider::-webkit-scrollbar { display: none; }
.slider.is-dragging { cursor: grabbing; }

.slider-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  padding: 0 var(--pad);
}

.quote {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  width: 1000px;
  height: 534px;
  padding: 48px 64px;
  border-radius: var(--radius);
  background: var(--card);
  text-align: center;
}

.quote-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.quote-mark { width: 60px; height: 60px; color: var(--accent); }

.quote-text { font: 700 24px/1.2 var(--font); }

.creator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.creator img {
  width: 70px;
  height: 70px;
  border-radius: 12px;
  object-fit: cover;
}

.creator-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font: 700 24px/1.2 var(--font);
}

/* Phone: the slider becomes a stacked list with the creator above the quote */
@media (max-width: 809.98px) {
  .slider {
    overflow: visible;
    cursor: auto;
    -webkit-user-select: auto;
            user-select: auto;
  }
  .slider-track {
    flex-direction: column;
    width: auto;
    padding: 0;
  }
  .quote {
    flex-direction: column-reverse;
    align-items: stretch;
    justify-content: flex-start;
    gap: 12px;
    width: auto;
    height: auto;
    padding: 24px;
    text-align: left;
  }
  .quote-body { align-items: flex-start; }
  .quote-mark { display: none; }
  .creator {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
}

/* ---------- CTA ---------- */

.cta {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: var(--cta-pad);
  border-radius: var(--radius);
  background: var(--card);
}

.cta-title {
  font-size: var(--cta-title);
  text-align: center;
  -webkit-text-stroke: 0;
}

.btn-cta { padding: 24px 32px; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .overlay { display: none; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .btn, .btn::before, .play { transition: none; }
}
