/* TrickTalk home page (www.tricktalk.io)
 *
 * Editorial-broadcast aesthetic — Fraunces display + Manrope body, warm
 * cream paper, single accent red. The page reads as a magazine cover:
 * dominant headline left, character portrait stack right, marquee mid,
 * closing CTA bottom. Full-bleed sections, generous vertical rhythm,
 * mobile collapses to single column without losing the hero punch.
 */

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  background-image:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(197, 54, 58, 0.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 100% 100%, rgba(164, 124, 58, 0.05), transparent 70%);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* --- Nav --------------------------------------------------------------- */

.home-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px clamp(20px, 4vw, 56px);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.home-nav:hover { border-bottom-color: var(--rule); }

.home-brand {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-brand:hover { color: var(--accent); }

/* --- CTAs (shared) ---------------------------------------------------- */

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, color 0.18s ease;
}
.home-cta-pill {
  padding: 10px 18px;
  font-size: 14px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.home-cta-pill:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}
.home-cta-primary {
  padding: 18px 32px;
  font-size: clamp(15px, 1.2vw, 18px);
  background: var(--accent);
  color: var(--paper);
  border: 1px solid var(--accent);
  box-shadow: 0 12px 32px rgba(197, 54, 58, 0.25);
}
.home-cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(197, 54, 58, 0.35);
}
.home-cta-primary:active { transform: translateY(0); }
.cta-arrow { display: inline-block; transition: transform 0.18s ease; }
.home-cta-primary:hover .cta-arrow { transform: translateX(4px); }

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

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 80px) clamp(80px, 9vw, 140px);
  max-width: 1480px;
  margin: 0 auto;
}
.hero-inner {
  text-align: left;
}
.hero-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(56px, 10vw, 152px);
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin: 0 0 clamp(20px, 2.5vw, 36px);
  color: var(--ink);
}
.hero-headline-em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "wght" 600, "SOFT" 100, "WONK" 1;
}
.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.4vw, 22px);
  color: var(--ink-soft);
  margin: 0 0 clamp(28px, 3.5vw, 48px);
  letter-spacing: 0.005em;
  line-height: 1.4;
  max-width: 38ch;
}
.hero-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 18px 0 0;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Hero visual: stacked character portraits, gently rotated and floating.
 * Each card carries a different character; the stack auto-cycles via a
 * subtle pulse so the page feels alive without distracting from the CTA. */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.hero-portrait {
  position: absolute;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--paper);
  box-shadow: 0 24px 60px rgba(26, 24, 20, 0.18);
  background: var(--accent-quiet);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-portrait-1 {
  width: 65%; height: 65%; top: 0; right: 12%;
  transform: rotate(-4deg);
  z-index: 3;
  animation: heroFloat1 7s ease-in-out infinite;
}
.hero-portrait-2 {
  width: 52%; height: 52%; bottom: 8%; left: 4%;
  transform: rotate(6deg);
  z-index: 2;
  animation: heroFloat2 8s ease-in-out infinite;
}
.hero-portrait-3 {
  width: 44%; height: 44%; bottom: 18%; right: 0;
  transform: rotate(-3deg);
  z-index: 1;
  animation: heroFloat3 9s ease-in-out infinite;
}
@keyframes heroFloat1 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50%      { transform: rotate(-2deg) translateY(-10px); }
}
@keyframes heroFloat2 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50%      { transform: rotate(3deg) translateY(8px); }
}
@keyframes heroFloat3 {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%      { transform: rotate(-1deg) translateY(-6px); }
}

/* --- Marquee ---------------------------------------------------------- */

.marquee-section {
  padding: clamp(40px, 5vw, 80px) 0 clamp(60px, 7vw, 100px);
}
.marquee-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin: 0 0 clamp(24px, 3vw, 40px);
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 5%, black 95%, transparent 100%);
  padding: 18px 0;
}
.marquee-track {
  display: flex;
  gap: clamp(20px, 2.5vw, 36px);
  width: max-content;
  animation: marquee-scroll 90s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.char-card {
  flex: 0 0 auto;
  width: clamp(180px, 18vw, 280px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--ink);
  transition: transform 0.25s ease;
}
.char-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--rule);
  background: var(--accent-quiet);
  filter: grayscale(70%) contrast(0.96);
  transition: filter 0.3s ease, border-color 0.25s ease,
              transform 0.25s ease, box-shadow 0.25s ease;
}
.char-card:hover { transform: translateY(-4px); }
.char-card:hover img {
  filter: grayscale(0%) contrast(1);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(197, 54, 58, 0.25);
}
.char-name {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  text-align: center;
}
.char-card:hover .char-name { color: var(--accent); }

.marquee-meta {
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--muted);
  margin: clamp(28px, 3vw, 44px) 20px 0;
}

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

.closing {
  padding: clamp(80px, 9vw, 140px) 32px clamp(100px, 10vw, 160px);
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(197, 54, 58, 0.07), transparent 70%);
}
.closing-headline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(42px, 7vw, 88px);
  letter-spacing: -0.025em;
  line-height: 1;
  margin: 0 0 clamp(28px, 3vw, 44px);
  color: var(--ink);
}
.closing-headline em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: "wght" 600, "SOFT" 100;
}

/* --- Footer ----------------------------------------------------------- */

.home-footer {
  padding: 32px clamp(20px, 4vw, 48px) 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--rule);
}
.home-footer a:hover { color: var(--accent); }
.footer-brand {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.footer-sep { opacity: 0.5; }

/* --- Responsive ------------------------------------------------------- */

/* Tablet + small laptop: collapse to single column, hero visual moves below */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: clamp(48px, 6vw, 80px);
    padding-bottom: clamp(48px, 6vw, 90px);
  }
  .hero-inner { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-visual {
    justify-self: center;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    order: 2;
    margin-top: 32px;
  }
}

/* Phone: tighten everything */
@media (max-width: 540px) {
  .home-nav { padding: 14px 18px; }
  .home-cta-pill { padding: 8px 14px; font-size: 13px; }
  .home-cta-primary { padding: 14px 24px; font-size: 15px; }

  .hero-sub { font-size: 16px; }
  .hero-meta { font-size: 11px; }

  .char-card { width: 150px; gap: 12px; }
  .char-name { font-size: 12.5px; }

  .closing { padding: 70px 20px 80px; }
  .home-footer { padding: 24px 16px 32px; flex-wrap: wrap; }
}

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track,
  .hero-portrait-1, .hero-portrait-2, .hero-portrait-3 { animation: none; }
  .home-cta-primary:hover,
  .home-cta-pill:hover,
  .char-card:hover { transform: none; }
  .cta-arrow { transition: none; }
}
