/* ============================================================
   Hero spacing scale (desktop / below 1250px):
     banner → wordmark ......... 96 / 56   (page opening)
     intro → index → marquee ... 72 / 48   (between hero blocks)
     wordmark → intro .......... 40 / 28
     intro → "say hello" ....... 24 / 20
     paragraph → paragraph ..... 12 / 10
   Framer's hero column has a fixed 92 / 56 gap, so the blocks
   below reach these values with margins.
   ============================================================ */

/* ============================================================
   Hero intro — short personal note under the wordmark
   ------------------------------------------------------------
   Speaks the same visual language as the old baked-in hero
   tagline: muted grey body, a few near-black key words, the
   peach→red gradient accent (#F5C19E→#FA1616) and the
   strikethrough "users → humans" motif.

   Inserted into index.html as a flex child of .framer-q2r610,
   right after the wordmark. The column gap is 92px (≥1250px)
   or 56px (below), so a negative top margin pulls the note up.
   Copy-email lives in assets/js/hero-intro.js.
   ============================================================ */
.hero-intro {
  width: min(1100px, calc(100% - 32px));   /* one line per paragraph at desktop; banner is 1200 */
  margin: -54px auto 0;   /* wordmark ink → intro = 40 */
  color: rgba(0, 0, 0, 0.5);
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  text-align: center;
  text-wrap: balance;
}
.hero-intro p { margin: 0 0 12px; }
.hero-intro p:last-child { margin-bottom: 0; }

.hero-intro b { font-weight: 500; color: #1e1e1e; }
.hero-intro .hi-strike {
  color: rgba(30, 30, 30, 0.25);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.hero-intro .hi-accent {
  font-weight: 500;
  background: linear-gradient(90deg, #F5C19E, #FA1616);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-intro .hi-hello { margin-top: 24px; font-size: 14px; }
.hero-intro .hi-mail {
  color: #1e1e1e;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 30, 30, 0.2);
  transition: border-color .2s ease;
}
.hero-intro .hi-mail:hover { border-bottom-color: #1e1e1e; }
.hero-intro .hi-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5em;
  height: 1.5em;
  margin-left: 0.2em;
  padding: 0.2em;
  vertical-align: -0.4em;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, transform .15s ease;
}
.hero-intro .hi-copy:hover { color: #1e1e1e; background: rgba(0, 0, 0, 0.05); }
.hero-intro .hi-copy:active { transform: scale(0.92); }
.hero-intro .hi-copy svg { width: 100%; height: 100%; }
.hero-intro .hi-copy::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translate(-50%, 4px);
  padding: 4px 8px;
  border-radius: 6px;
  background: #1e1e1e;
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.hero-intro .hi-copy.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

/* Below 1250px Framer's hero column gap drops from 92px to 56px */
@media (max-width: 1249.98px) {
  .hero-intro { margin-top: -29px; }   /* wordmark ink → intro = 28 */
}
@media (max-width: 809.98px) {
  .hero-intro { font-size: 15px; }
  .hero-intro p { margin-bottom: 10px; }
  .hero-intro .hi-hello { font-size: 13px; margin-top: 20px; }
}

/* ============================================================
   Hero index — typographic section links (replaces the boxed
   category cards, which are hidden below but left in the markup
   so reverting is a one-line CSS change).
   Same language as the intro: centered, lowercase titles like the
   section headings, grey tag labels like "AVAILABLE FOR WORK",
   the peach→red gradient on hover. Click-to-scroll in hero-intro.js.
   ============================================================ */
.framer-fLWmP .framer-1qf3o4a-container { display: none !important; }

.hero-index {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 8px 0;
  width: min(1100px, calc(100% - 32px));
  margin: -20px auto 48px;   /* intro → index = 72, index → marquee = 72 (gaps: column 92, inner 24) */
  padding: 0;
  list-style: none;
}
.hero-index li { display: flex; align-items: baseline; }
.hero-index li + li::before {
  content: "";
  align-self: center;
  width: 1px;
  height: 14px;
  margin: 0 22px;
  background: rgba(0, 0, 0, 0.12);
}
.hero-index a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: #1e1e1e;
  text-decoration: none;
  outline: none;
  border-radius: 6px;
}
.hero-index a:focus-visible { box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgb(232, 80, 58); }
.hero-index .hx-tag {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgb(160, 160, 160);
  transition: color .25s ease;
}
.hero-index .hx-title {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  background: linear-gradient(90deg, #1e1e1e, #1e1e1e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background .25s ease;
}
.hero-index .hx-count {
  font-size: 11px;
  font-weight: 500;
  color: rgb(160, 160, 160);
  transform: translateY(-0.55em);
  margin-left: -4px;
}
.hero-index .hx-arrow {
  display: inline-block;
  font-size: 13px;
  opacity: 0;
  transform: translateY(-3px);
  margin-left: -4px;
  transition: opacity .25s ease, transform .25s ease;
}
.hero-index a:hover .hx-title,
.hero-index a:focus-visible .hx-title { background-image: linear-gradient(90deg, #F5C19E, #FA1616); }
.hero-index a:hover .hx-tag,
.hero-index a:focus-visible .hx-tag,
.hero-index .hx-arrow {
  background-image: var(--accent-grad, linear-gradient(90deg, #F5C19E, #FA1616));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-index a:hover .hx-arrow,
.hero-index a:focus-visible .hx-arrow { opacity: 1; transform: translateY(0); }
.hero-index a[href^="/"]:hover .hx-arrow { transform: translate(1px, -1px); }

@media (max-width: 1249.98px) {
  .hero-index { margin-top: -8px; margin-bottom: 24px; }   /* 48 / 48 on a 56px column gap */
}
@media (max-width: 809.98px) {
  .hero-index { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; width: calc(100% - 32px); }
  .hero-index li { justify-content: center; }
  .hero-index a { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .hero-index .hx-tag { flex-basis: 100%; text-align: center; }
  .hero-index li + li::before { display: none; }
  .hero-index .hx-title { font-size: 15px; }
  .hero-index .hx-arrow { opacity: 1; transform: none; }
}

/* ============================================================
   Video ticker — full bleed (experiment)
   Breaks out of the 1200px column: edge to edge below 1480px,
   and out to the inner rail lines (124px from each edge, see
   frame-margins.css) where the rails show. One loop set is ~3550px
   (8 tiles), so the -50% marquee loop stays seamless at any common
   screen width without extra copies.
   ============================================================ */
.framer-fLWmP .framer-1s9zpdh {
  width: 100vw !important;
  max-width: none !important;
  align-self: center !important;
}
@media (min-width: 1480px) {
  .framer-fLWmP .framer-1s9zpdh { width: calc(100vw - 248px) !important; }
}

/* banner → wordmark ink = 96 (column gap 92 + 2px transparent crop above the ink) */
@media (min-width: 1250px) {
  .framer-fLWmP .framer-dm2qfk { margin-top: 2px; }
}

/* ============================================================
   Video ticker — separate tiles with space between
   Each video sits in its own sharp-cornered container; the strip loses
   its hairline borders. Spacing is padding-right on every <li>
   (not a flex gap) so both halves of marquee.js's duplicated list
   stay the same width and the -50% loop stays seamless.
   ============================================================ */
.framer-fLWmP .framer-1s9zpdh {
  --border-top-width: 0px !important;
  --border-bottom-width: 0px !important;
  --border-left-width: 0px !important;
  --border-right-width: 0px !important;
  height: 444px !important;            /* exactly one tile tall (was 436, clipping 4px) */
}
.framer-fLWmP .framer-1s9zpdh ul.fx-marquee > li { padding-right: 24px; box-sizing: content-box; }
/* the track's wrapper was 8px shorter than the tiles and clipped 4px off their
   top + bottom (hairline edges included) — make it as tall as the strip */
.framer-fLWmP .framer-1s9zpdh .framer-1sir1fo { height: 100% !important; top: 0 !important; }
.framer-fLWmP .framer-1s9zpdh ul.fx-marquee { height: 100% !important; }
.framer-fLWmP .framer-1s9zpdh ul.fx-marquee > li > [class*="-container"] {
  position: relative;
  border-radius: 0;                    /* sharp corners — consistent with the site */
  overflow: hidden;
  outline: 1px solid rgba(0, 0, 0, 0.06);
  outline-offset: -1px;                /* hairline edge for the light tiles */
}
@media (max-width: 1249.98px) {
  .framer-fLWmP .framer-1s9zpdh { height: 269px !important; }
  .framer-fLWmP .framer-1s9zpdh ul.fx-marquee > li { padding-right: 16px; }
}

/* ---- Liquid-glass title on each video tile (bottom centre) ----
   Frosted, saturated backdrop with a bright top rim + soft drop shadow,
   like Apple's liquid glass. Light glass with dark text reads on both the
   dark and the light videos. */
.framer-fLWmP .tile-label {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  white-space: nowrap;
  color: #1a1a1a;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34));
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 1px rgba(255, 255, 255, 0.2),
    0 8px 24px rgba(0, 0, 0, 0.14),
    0 1px 2px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
/* dark glass for tiles whose bottom edge is dark (CRED, Spotlight, Coins):
   light glass over black reads as muddy grey */
.framer-fLWmP .tile-label--dark {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05));
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 1px rgba(255, 255, 255, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
@media (max-width: 1249.98px) {
  .framer-fLWmP .tile-label { bottom: 12px; padding: 5px 11px; font-size: 11px; }
}

/* Intro reads as an inverted pyramid: a hard break after the first sentence
   makes line 1 long and line 2 short (balance would square them off).
   Below 810px the break is dropped and lines wrap naturally. */
.hero-intro p:first-child { text-wrap: wrap; }
@media (max-width: 809.98px) {
  .hero-intro .hi-br { display: none; }
  .hero-intro p:first-child { text-wrap: pretty; }
}

/* ============================================================
   MOBILE HERO (≤809px)
   ------------------------------------------------------------
   Desktop copy is too long to stack on a phone, so mobile gets:
     · a shorter intro (.hi-short; .hi-long is desktop-only)
     · the email as one compact pill with the copy button inside
     · the section index as a hairline table of contents
   ============================================================ */
.hero-intro .hi-short { display: none; }

@media (max-width: 809.98px) {
  /* --- intro --- */
  .hero-intro .hi-long { display: none; }
  .hero-intro .hi-short { display: inline; }
  .hero-intro { font-size: 15.5px; line-height: 1.55; width: min(350px, calc(100% - 32px)); }
  .hero-intro p:first-child { text-wrap: wrap; margin-bottom: 0; }   /* hard breaks in .hi-short → 3-line inverted pyramid (320/263/181px at 15.5px) */

  /* --- email: a single pill --- */
  .hero-intro .hi-hello {
    display: inline-flex; align-items: center; gap: 2px;
    margin-top: 20px; padding: 7px 8px 7px 14px;
    border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 999px;
    font-size: 13px; background: #fff;
  }
  .hero-intro .hi-hello-pre { display: none; }
  .hero-intro .hi-mail { border-bottom: 0; }
  .hero-intro .hi-copy { margin-left: 4px; vertical-align: 0; }

  /* --- index: hairline table of contents --- */
  .hero-index {
    display: block !important; padding: 0;
    width: calc(100% - 32px) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }
  .hero-index li { display: block; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
  .hero-index a {
    display: flex !important; flex-wrap: nowrap !important; align-items: center !important;
    width: 100%; box-sizing: border-box; padding: 15px 2px; gap: 12px !important;
  }
  .hero-index .hx-tag { flex-basis: auto !important; width: 30px; text-align: left; font-size: 9px; letter-spacing: 1.2px; }
  .hero-index .hx-title { font-size: 16px; flex: 1; text-align: left; }
  .hero-index .hx-count { transform: none; margin: 0; font-size: 12px; }
  .hero-index .hx-arrow { font-size: 12px; margin-left: 0; }
}
