/* findsyou.work — the whole design system.
   Ported from the Claude Design canvas "FindsYou Landing.dc.html".
   Tokens first, then layout, then each section in page order.
   No framework, no build step. */

/* ------------------------------------------------------------------ tokens */
:root {
  --bg:        #0e0b10;
  --ink:       #ece6ea;
  --muted:     #b9b1b8;
  --dim:       #8f878f;
  --dimmer:    #6d666d;
  --dimmest:   #5a535a;
  --accent:    #e3d3a4;   /* the few that survive */
  --reject:    #c9503f;   /* the stamp */
  --paper:     #f3eee9;   /* the documents */
  --paper-ink: #2a2428;
  --line:      rgba(236, 230, 234, .10);
  --line-soft: rgba(236, 230, 234, .06);

  --serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --sans:  'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: 32px;
  --max: 1240px;
}

/* ------------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 400; margin: 0; }
p { margin: 0; text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

/* ---------------------------------------------------------------- typeset */
.display  { font-family: var(--serif); line-height: 1.02; letter-spacing: -.02em; text-wrap: balance; }
.eyebrow  { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dim); }
.lede     { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); }
.mono     { font-family: var(--mono); }

.wrap  { max-width: var(--max); margin: 0 auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 1000px; }

section { position: relative; }
.band { padding-block: clamp(80px, 14vh, 190px); }

/* ------------------------------------------------------------------ banner */
.banner {
  position: relative; z-index: 60;
  background: rgba(227, 211, 164, .08);
  border-bottom: 1px solid rgba(227, 211, 164, .22);
  font-family: var(--mono); font-size: 12.5px; letter-spacing: .01em;
  color: var(--accent); text-align: center; padding: 9px 16px; line-height: 1.5;
}
.banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* --------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gut);
  background: rgba(14, 11, 16, .72); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em;
}
.nav__mark { color: var(--ink); font-weight: 500; }
.nav__links { display: flex; gap: 22px; flex-wrap: wrap; }
.nav__links a { color: var(--dim); }
.nav__links a:hover { color: var(--ink); }

.btn {
  display: inline-block; border: 0; cursor: pointer; font: inherit;
  background: var(--ink); color: var(--bg);
  padding: 13px 22px; border-radius: 4px; font-weight: 600; font-size: 15px;
  white-space: nowrap; transition: background .2s, transform .2s;
}
.btn:hover { background: #fff; color: var(--bg); transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn--sm { padding: 8px 14px; font-size: 13px; font-weight: 500; font-family: var(--mono); }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(236,230,234,.06); color: var(--ink); }

/* -------------------------------------------------------------- 00 · hero */
.hero { position: relative; min-height: 88vh; overflow: hidden; padding-block: clamp(90px, 18vh, 200px) 140px; }
.hero__inner { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; }
.hero h1 { font-size: clamp(46px, 8.4vw, 124px); max-width: 14ch; margin-bottom: 30px; }
.hero .lede { max-width: 520px; margin-bottom: 34px; }
.hero__kicker { margin-bottom: 26px; }
.hero__kicker b { color: var(--accent); font-weight: 400; }

/* the rain of listings — decorative, hidden from assistive tech */
.rain { position: absolute; inset: 0; pointer-events: none; overflow: hidden; container-type: size; }
.rain__card {
  position: absolute; top: 0; width: 150px; padding: 10px 12px; border-radius: 4px;
  background: var(--bg); border: 1px solid rgba(236, 230, 234, .28);
  font-family: var(--mono); font-size: 10.5px; line-height: 1.3; color: #a39ba2;
  will-change: transform, opacity;
}
.rain__card b { display: block; font-weight: 400; color: inherit; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rain__card span { display: block; margin-top: 3px; font-size: 10px; color: var(--dimmer); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rain__card--keep { border-color: var(--accent); color: var(--ink); }
.rain__card--keep span { color: var(--muted); }

@keyframes fy-fall-out {
  0%   { transform: translateY(-14vh); opacity: 0; }
  6%   { opacity: .9; }
  40%  { opacity: .9; filter: grayscale(0) brightness(1); }
  58%  { opacity: .4; filter: grayscale(1) brightness(.55); }
  70%, 100% { opacity: 0; transform: translateY(62vh); filter: grayscale(1) brightness(.4); }
}
@keyframes fy-fall-stay {
  0%  { transform: translateY(-14vh); opacity: 0; animation-timing-function: ease-out; }
  6%  { opacity: 1; }
  62%, 93% { transform: translateY(var(--land)); opacity: 1; }
  100% { transform: translateY(var(--land)); opacity: 0; }
}

/* ------------------------------------------------------------ 01 · number */
.tall { position: relative; }
.stick { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.number { align-items: center; justify-content: center; text-align: center; padding-inline: 24px; }
.number__n {
  font-family: var(--serif); font-size: clamp(110px, 26vw, 360px); line-height: .95;
  letter-spacing: 0; transition: color .6s;
  /* Instrument Serif has no tabular figures; forcing them collides the glyphs.
     A fixed min-width keeps the countdown from reflowing as digits drop. */
  min-width: 4ch; text-align: center;
}
.number__cap { margin-top: 24px; font-size: clamp(15px, 1.3vw, 18px); color: var(--dim); }
.number__cap b { font-weight: 400; transition: color .6s; }
.is-settled .number__n { color: var(--accent); }
.is-settled .number__cap b { color: var(--ink); }

/* -------------------------------------------------------------- 02 · wall */
.wall { padding: 74px 24px 24px; }
.wall__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  margin-bottom: 14px; font-variant-numeric: tabular-nums;
}
.wall__grid {
  flex: 1; display: grid; gap: 8px; align-content: center; min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.job {
  position: relative; height: 70px; padding: 8px 12px; border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(236, 230, 234, .14); background: rgba(236, 230, 234, .02);
  transition: opacity .5s, border-color .5s, background .5s;
}
.job__t { font-family: var(--mono); font-size: 11px; line-height: 1.3; color: #a39ba2; }
.job__m { font-size: 11px; color: var(--dimmer); margin-top: 4px; }
.job__t, .job__m { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job--keep { border-color: var(--accent); background: rgba(227, 211, 164, .07); }
.job--keep .job__t { color: var(--ink); }
.job__stamp {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 6px;
  opacity: 0; transform: rotate(-6deg) scale(1.6);
  transition: opacity .1s, transform .16s cubic-bezier(.2, .9, .3, 1);
}
.job__stamp b {
  border: 2px solid var(--reject); color: var(--reject); background: rgba(14, 11, 16, .85);
  padding: 4px 7px; font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; text-align: center;
}
.job.is-stamped .job__stamp { opacity: 1; transform: rotate(-6deg) scale(1); }
.job.is-stamped { border-color: rgba(236, 230, 234, .07); }
.job.is-stamped .job__t { color: var(--dimmest); }
.wall__yours {
  text-align: center; padding-top: 16px; font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px); opacity: 0; transition: opacity .6s;
}
.is-cleared .wall__yours { opacity: 1; }
.is-cleared .job:not(.job--keep) { opacity: .12; }

/* ------------------------------------------------------------ 03 · remote */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 64px; align-items: start; }
.h2 { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 56px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.prose p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: var(--muted); margin-top: 20px; }
.prose p.out { color: var(--ink); }

.qs { margin-top: 44px; border-top: 1px solid var(--line); }
.q {
  display: grid; grid-template-columns: 36px 1fr; gap: 16px; padding: 20px 0;
  border-bottom: 1px solid var(--line); opacity: .35; transition: opacity .5s;
}
.q.is-on { opacity: 1; }
.q__n { font-family: var(--mono); font-size: 12px; color: var(--dimmer); padding-top: 6px; transition: color .5s; }
.q.is-on .q__n { color: var(--accent); }
.q__t { display: block; font-family: var(--serif); font-size: clamp(22px, 2.2vw, 32px); line-height: 1.1; }
.q__s { display: block; font-size: 15px; color: var(--dim); margin-top: 5px; }

.mapwrap { position: sticky; top: 96px; }
.mapwrap__foot {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 18px;
  font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .04em;
}
.mapwrap__num { color: var(--ink); opacity: 0; transition: opacity .6s; }
.mapwrap__num.is-on { opacity: 1; }
.mapwrap__num b { color: var(--accent); font-weight: 400; }
findsyou-map { display: block; min-height: 220px; }

/* --------------------------------------------------------------- 04 · how */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin-bottom: 12vh; }
.step { border-top: 1px solid rgba(236, 230, 234, .14); padding-top: 20px; }
.step__n { font-family: var(--mono); font-size: 12px; color: var(--accent); margin-bottom: 12px; }
.step__t { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); line-height: 1.1; margin-bottom: 10px; }
.step__s { font-size: 16px; line-height: 1.55; color: var(--dim); }

.funnel { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.rung { height: 58px; margin: 0 auto; border-radius: 3px; background: rgba(236, 230, 234, .05); overflow: hidden; position: relative; }
.rung__fill { position: absolute; inset: 0; transform: scaleX(0); transform-origin: center; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.rung__lab {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--mono); font-size: 13px; letter-spacing: .04em; white-space: nowrap;
}
.rung__lab b { font-weight: 500; }
.rung__lab span { opacity: .75; }
.is-in .rung__fill { transform: scaleX(1); }

/* ------------------------------------------------------------- 05 · trust */
.trust { justify-content: center; padding-inline: var(--gut); max-width: var(--max); margin: 0 auto; }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.trust__claim { font-family: var(--serif); font-size: clamp(26px, 3vw, 46px); line-height: 1.15; letter-spacing: -.01em; }
.doc { font-family: var(--mono); font-size: clamp(13px, 1.1vw, 15px); line-height: 1.7; color: var(--muted); display: flex; flex-direction: column; gap: 22px; }
.doc__lab { font-size: 11px; color: var(--dimmer); letter-spacing: .08em; margin-bottom: 6px; }
.doc u { text-decoration: none; color: var(--ink); border-bottom: 1px solid rgba(236, 230, 234, .3); }
.doc__step { opacity: 0; transition: opacity .5s; position: relative; }
.doc__step.is-on { opacity: 1; }
.doc mark { background: rgba(201, 80, 63, .12); color: var(--reject); padding: 0 3px; }
.doc__step.is-struck mark { text-decoration: line-through; }
.doc__stamp {
  position: absolute; right: 0; top: -6px; border: 2px solid var(--reject); color: var(--reject);
  padding: 3px 8px; font-size: 11px; letter-spacing: .1em; font-weight: 500;
  transform: rotate(-8deg) scale(1.6); opacity: 0;
  transition: opacity .1s, transform .16s cubic-bezier(.2, .9, .3, 1);
}
.doc__step.is-struck .doc__stamp { opacity: 1; transform: rotate(-8deg) scale(1); }
.doc ins { text-decoration: none; color: var(--accent); }
.doc__trace { font-size: 11px; color: var(--dimmer); margin-top: 8px; }

/* -------------------------------------------------------------- 06 · docs */
.papers { display: flex; justify-content: center; align-items: center; padding: 40px 0; min-height: 400px; }
.paper {
  width: 240px; height: 320px; background: var(--paper); color: var(--paper-ink);
  border-radius: 3px; padding: 26px 22px; position: relative;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .55);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
}
.paper--cv  { transform: rotate(-4deg) translateX(18px); z-index: 1; }
.paper--cl  { transform: rotate(4deg) translate(-18px, 14px); }
.paper--cv:hover { transform: rotate(-4deg) translate(18px, -14px); box-shadow: 0 44px 80px rgba(0,0,0,.6); }
.paper--cl:hover { transform: rotate(4deg) translate(-18px, 0); box-shadow: 0 44px 80px rgba(0,0,0,.6); }
.paper__name { font-family: var(--serif); font-size: 17px; margin-bottom: 4px; }
.paper__meta { font-family: var(--mono); font-size: 8px; color: #8a8188; margin-bottom: 18px; }
.paper__lines { display: flex; flex-direction: column; gap: 7px; }
.paper__lines i { display: block; height: 5px; background: #ddd6d1; border-radius: 2px; }
.paper__lines i.hd { height: 6px; background: #c9c1bd; }
.paper__foot { position: absolute; bottom: 14px; left: 22px; font-family: var(--mono); font-size: 8px; color: #8a8188; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; }
.chip { border: 1px solid rgba(236, 230, 234, .16); padding: 7px 11px; border-radius: 3px; color: var(--muted); }
.chip--planned { border-color: rgba(227,211,164,.32); color: var(--accent); }

/* ----------------------------------------------------------- 07 · compare */
.cmp__head, .cmp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.cmp__head { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dimmer); padding-bottom: 14px; border-bottom: 1px solid rgba(236, 230, 234, .12); }
.cmp__row { padding: 24px 0; border-bottom: 1px solid var(--line-soft); font-family: var(--serif); font-size: clamp(20px, 2.6vw, 36px); line-height: 1.15; }
.cmp__l { color: var(--ink); transition: opacity .7s; }
.cmp__r { color: var(--dimmest); transition: color .7s; }
.is-in .cmp__l { opacity: .3; }
.is-in .cmp__r { color: var(--accent); }

/* ------------------------------------------------------------- 08 · price */
.price { text-align: center; }
.price__n { font-family: var(--serif); font-size: clamp(90px, 18vw, 240px); line-height: .9; letter-spacing: -.04em; }
.price p { max-width: 520px; margin: 30px auto 0; }

/* ---------------------------------------------------------------- waitlist */
.wait { border-top: 1px solid var(--line); }
.wait__form { margin-top: 28px; max-width: 560px; }
.field { display: flex; gap: 10px; flex-wrap: wrap; }
.field input[type="email"] {
  flex: 1 1 260px; min-width: 0; background: rgba(236, 230, 234, .04);
  border: 1px solid var(--line); border-radius: 4px; color: var(--ink);
  padding: 13px 14px; font: inherit; font-size: 15px;
}
.field input::placeholder { color: var(--dimmer); }
.field input:focus { border-color: var(--accent); outline: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__foot { font-family: var(--mono); font-size: 12px; color: var(--dimmer); margin-top: 12px; }
.form__foot a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.form__status { margin-top: 16px; font-size: 15px; color: var(--muted); min-height: 1.5em; }
.form__status strong { color: var(--accent); font-weight: 600; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: 1px solid var(--line-soft); padding: 46px var(--gut) 40px; max-width: var(--max); margin: 0 auto; }
.foot__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; font-size: 14px; color: var(--dim); }
.foot__mark { font-family: var(--mono); color: var(--ink); margin-bottom: 10px; }
.foot__col { display: flex; flex-direction: column; gap: 10px; }
.foot__h { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; color: var(--dimmer); }
.foot a { color: var(--dim); }
.foot a:hover { color: var(--ink); }
.foot__base { grid-column: 1 / -1; font-family: var(--mono); font-size: 12px; color: var(--dimmer); padding-top: 22px; border-top: 1px solid var(--line-soft); }

/* ------------------------------------------------------------------ reveal */
/* Nothing is hidden until JS adds .reveal to <html>, so a blocked script
   can never leave a section invisible. */
.reveal [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* -------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  :root { --gut: 20px; }
  .split { gap: 40px; }
  .mapwrap { position: static; }
  .papers { flex-direction: column; gap: 20px; }
  .paper--cv, .paper--cl { transform: none; }
  .paper--cv:hover, .paper--cl:hover { transform: translateY(-8px); }
  .nav__links { display: none; }
  .wall__grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .job { height: 58px; }
  .cmp__row { font-size: clamp(17px, 4.4vw, 24px); }
}

/* Motion is decoration. Without it the page is a document that still reads. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rain { display: none; }
  .tall { height: auto !important; }
  .stick { position: static; height: auto; padding-block: 90px; }
  .job__stamp { opacity: 1; transform: rotate(-6deg) scale(1); }
  .wall__yours, .mapwrap__num, .doc__step { opacity: 1; }
  .rung__fill { transform: scaleX(1); }
  .q { opacity: 1; }
  .reveal [data-reveal] { opacity: 1; transform: none; }
  .cmp__r { color: var(--accent); }
}

/* -------------------------------------------------------------------- mark
   The logo is the product: listings fall, the catch keeps one.
   Two grey ones fall past and dissolve; the gold one lands in the V and stays.
   Static (and correct) with motion off — the gold dot is simply already home. */
.mark { display: inline-flex; align-items: center; gap: 9px; }
.mark__svg { width: 22px; height: 22px; display: block; overflow: visible; }
.mark__v { stroke: var(--dim); transition: stroke .4s; }
.mark__catch { fill: var(--accent); }
.mark__fall { fill: var(--dimmest); }
.mark:hover .mark__v { stroke: var(--accent); }

.mark__catch { transform-origin: 13px 16px; animation: fy-catch 4.2s ease-in-out infinite; }
.mark__fall--a { animation: fy-pass 4.2s linear infinite; }
.mark__fall--b { animation: fy-pass 4.2s linear infinite; animation-delay: -2.1s; }

@keyframes fy-catch {
  0%      { transform: translateY(-16px); opacity: 0; }
  18%     { opacity: 1; }
  34%     { transform: translateY(0); opacity: 1; }
  40%     { transform: translateY(-2px); }      /* the small bounce of landing */
  46%,88% { transform: translateY(0); opacity: 1; }
  100%    { transform: translateY(0); opacity: 1; }
}
@keyframes fy-pass {
  0%   { transform: translateY(-16px); opacity: 0; }
  20%  { opacity: .85; }
  70%  { opacity: 0; transform: translateY(20px); }
  100% { opacity: 0; transform: translateY(20px); }
}
.mark__word { font-family: var(--mono); font-size: 14px; letter-spacing: -.01em; color: var(--ink); }
.mark__word b { font-weight: 500; }
.mark__word span { color: var(--dim); }
/* The TLD completes the sentence — "finds you work" — so it is never dropped
   from the wordmark and it carries the accent that the caught listing does. */
.mark__word i { font-style: normal; color: var(--accent); }
.foot__mark i { font-style: normal; color: var(--accent); }
.foot__mark span { color: var(--dim); }

@media (prefers-reduced-motion: reduce) {
  .mark__catch { animation: none; transform: none; opacity: 1; }
  .mark__fall { display: none; }
}

/* --------------------------------------------------------------------- map
   Projected to plain SVG at build time (tools/build-map.py), inlined into the
   page. No d3, no topojson, no CDN. JS only recolours the paths. */
.map svg { width: 100%; height: auto; display: block; }
.map path { transition: fill .7s ease; }
.map path.is-out { fill: #221e26; }
.map path.is-keep { fill: var(--accent); }

/* Scroll runway for the three sticky sections. Reduced motion collapses these
   (see the media query above) and each section becomes an ordinary block. */
#number { height: 240vh; }
#wall   { height: 420vh; }
#trust  { height: 200vh; }
