/* =========================================================================
   TFS PLUS v1 (Nov 2026) — site-wide layer loaded after the homepage and
   city-page stylesheets. Remove the <link> to switch everything back.
   1. Poppins type system (monday.com style), headlines stay heavy
   2. Smooth scrolling (Lenis)
   3. Smoother header + hero entrance (Anubi style)
   4. City heroes: no "Events & resources / coordinates" line
   5. Events / Clubs / Hirings switch (Hamilton)
   6. Homepage orbit: front cards pass over the headline
   ========================================================================= */

/* ---------- 1. Type ---------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("fonts/poppins-latin-800-normal.woff2") format("woff2"); }

:root {
  --sans: "Poppins", "Manrope", "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  /* Small uppercase labels move to Poppins too, with wider tracking */
  --mono: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ease-silk: cubic-bezier(0.16, 1, 0.3, 1);
}

body { font-family: var(--sans); letter-spacing: -0.005em; }

/* Headlines: Poppins ExtraBold, tight tracking (Poppins is wider than Google Sans) */
.hero-title,
.tc-city,
.events-title,
.city-name,
.tc-art-title,
h1, h2.tc-h, .clb-display {
  font-family: var(--sans);
  font-weight: 800;
}
.hero-title { letter-spacing: -0.05em; line-height: 0.95; }
.tc-city { letter-spacing: -0.055em; font-size: clamp(60px, 14.6vw, 224px); }
.tc-hero--hirings .tc-city { font-size: clamp(54px, 8.4vw, 124px); }
.tc-hero--archive .tc-city { font-size: clamp(48px, 8vw, 128px); }

/* Labels that used the mono face: keep them small, airy and uppercase */
.eyebrow, .section-label h2, .section-label p, .events-meta, .event-when,
.section-cta .note, .city-index, .city-enter, .footer-bottom,
.tc-kind, .tc-stats, .tc-hero-eyebrow, .tc-spot-dow, .tc-spot-mon, .tc-facts dt,
.tc-wk-when, .tc-filter span, .tc-jobs-count, .tc-job-age, .tc-crumbs ol,
.tc-art-facts dt, .tc-related-more {
  font-family: var(--mono);
  letter-spacing: 0.14em;
}
.tc-job-age { letter-spacing: 0.04em; }
.tc-stats strong { font-family: var(--sans); font-weight: 700; letter-spacing: -0.02em; }

/* ---------- 2. Smooth scroll (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
html.lenis { scroll-behavior: auto !important; }

/* ---------- 3. Header + hero entrance ---------- */
.site-header {
  transition: transform 0.9s var(--ease-silk), opacity 0.6s var(--ease-silk) !important;
}
.site-header.is-hidden { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  /* Header pill drops in softly instead of popping */
  html .site-header .header-surface {
    animation: tfsp-header-in 1.2s var(--ease-silk) 0.1s both;
  }
  html .site-header .brand,
  html .site-header .nav-list li,
  html .site-header .header-actions {
    animation: tfsp-fade-blur 1s var(--ease-silk) both;
  }
  html .site-header .brand { animation-delay: 0.35s; }
  html .site-header .nav-list li:nth-child(1) { animation-delay: 0.45s; }
  html .site-header .nav-list li:nth-child(2) { animation-delay: 0.52s; }
  html .site-header .nav-list li:nth-child(3) { animation-delay: 0.59s; }
  html .site-header .header-actions { animation-delay: 0.66s; }

  /* Homepage headline: each line rises out of a mask and un-blurs */
  html .hero-title .line > span {
    animation: tfsp-rise 1.5s var(--ease-silk) both !important;
  }
  html .hero-title .line:nth-child(1) > span { animation-delay: 0.25s !important; }
  html .hero-title .line:nth-child(2) > span { animation-delay: 0.38s !important; }
  html .hero-title .line:nth-child(3) > span { animation-delay: 0.51s !important; }
  html .hero-footer { animation: tfsp-fade-blur 1.3s var(--ease-silk) 0.9s both !important; }

  /* City name letters */
  html .tc-ch {
    animation: tfsp-rise 1.4s var(--ease-silk) both !important;
    animation-delay: calc(0.2s + var(--i) * 0.055s) !important;
  }
  html .tc-hero-lede { animation: tfsp-fade-blur 1.2s var(--ease-silk) 0.7s both !important; }
  html .tc-hero-actions { animation: tfsp-fade-blur 1.2s var(--ease-silk) 0.85s both !important; }
}

@keyframes tfsp-header-in {
  from { opacity: 0; transform: translateY(-28px) scale(0.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes tfsp-fade-blur {
  from { opacity: 0; transform: translateY(14px); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes tfsp-rise {
  from { opacity: 0; transform: translateY(105%) rotate(2deg); filter: blur(10px); }
  60%  { filter: blur(0); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- 4. City heroes: drop the eyebrow line ---------- */
.tc-hero--events .tc-hero-eyebrow,
.tc-hero--hirings .tc-hero-eyebrow { display: none !important; }
.tc-hero--events .tc-city,
.tc-hero--hirings .tc-city { margin-top: 0; }

/* ---------- 5. Three-way switch: Events / Clubs / Hirings ---------- */
.tc-switch.has-clubs { grid-template-columns: repeat(3, 1fr); }
.tc-switch.has-clubs a { min-width: 108px; }
.tc-switch.has-clubs .tc-switch-thumb { width: calc((100% - 10px) / 3); }
.tc-switch.has-clubs[data-view="events"] .tc-switch-thumb,
.tc-switch.has-clubs.is-leaving[data-go="0"] .tc-switch-thumb { transform: none; }
.tc-switch.has-clubs[data-view="clubs"] .tc-switch-thumb,
.tc-switch.has-clubs.is-leaving[data-go="1"] .tc-switch-thumb { transform: translateX(100%); }
.tc-switch.has-clubs[data-view="hirings"] .tc-switch-thumb,
.tc-switch.has-clubs.is-leaving[data-go="2"] .tc-switch-thumb { transform: translateX(200%); }
@media (max-width: 420px) {
  .tc-switch.has-clubs a { min-width: 0; padding: 0 16px; font-size: 14px; }
}

/* ---------- 6. Orbit: front layer above the headline ---------- */
.orbit-stage--front { pointer-events: none; z-index: 18; }
.hero-identity { z-index: 17; }
