/* Landing page (index.html v10): bold display + mono, one concrete story (Inès -> Bruno).
   Loaded only from index.html. All motion respects prefers-reduced-motion and
   content stays visible without JS. Transforms/opacity only; no images. */

/* Scene scaffolding ------------------------------------------------------- */
/* clip, not hidden: hidden makes the scene a scroll container and breaks the sticky story screen */
.scene { position: relative; overflow: hidden; overflow: clip; border-top: 1px solid var(--rule); }
.scene:first-of-type { border-top: 0; }
.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: 1.25rem; }
.scene > .wrap { position: relative; padding-block: 2.5rem; }
@media (min-width: 640px) { .wrap { padding-inline: 1.5rem; } }
@media (min-width: 768px) { .scene > .wrap { padding-block: 3.5rem; } }

/* Colour shifts per scene */
.scene[data-scene="hero"] { background: var(--paper); }
.scene[data-scene="problem"] { background: var(--card); }
.scene[data-scene="profiles"] { background: var(--paper); }
.scene[data-scene="method"] { background: var(--card); }
.scene[data-scene="included"] { background: var(--sand); }
.scene[data-scene="tokens"] { background: var(--ink); color: var(--paper); }
.scene[data-scene="honest"] { background: var(--paper); }
.scene[data-scene="close"] { background: var(--ink); color: var(--paper); border-top: 0; }
.tokens .eyebrow, .close .eyebrow { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.tokens .lede, .tokens .token-n { color: var(--paper); }
.tokens p, .tokens .fine { color: color-mix(in srgb, var(--paper) 72%, transparent); }
.tokens .lnk { color: var(--paper); }
/* Dark mode: --ink is cream; use very dark surface for ink-bg scenes */
:root[data-theme="dark"] .scene[data-scene="tokens"],
:root[data-theme="dark"] .scene[data-scene="close"] { background: #1C1A17; color: var(--ink); }
:root[data-theme="dark"] .tokens .eyebrow,
:root[data-theme="dark"] .close .eyebrow { color: var(--ink-3); }
:root[data-theme="dark"] .tokens .lede,
:root[data-theme="dark"] .tokens .token-n { color: var(--ink); }
:root[data-theme="dark"] .tokens p,
:root[data-theme="dark"] .tokens .fine { color: var(--ink-2); }
:root[data-theme="dark"] .tokens .lnk { color: var(--ink); }
:root[data-theme="dark"] .close p { color: var(--ink-2); }
:root[data-theme="dark"] .close .fine { color: var(--ink-3); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene[data-scene="tokens"],
  :root:not([data-theme="light"]) .scene[data-scene="close"] { background: #1C1A17; color: var(--ink); }
  :root:not([data-theme="light"]) .tokens .eyebrow,
  :root:not([data-theme="light"]) .close .eyebrow { color: var(--ink-3); }
  :root:not([data-theme="light"]) .tokens .lede,
  :root:not([data-theme="light"]) .tokens .token-n { color: var(--ink); }
  :root:not([data-theme="light"]) .tokens p,
  :root:not([data-theme="light"]) .tokens .fine { color: var(--ink-2); }
  :root:not([data-theme="light"]) .tokens .lnk { color: var(--ink); }
  :root:not([data-theme="light"]) .close p { color: var(--ink-2); }
  :root:not([data-theme="light"]) .close .fine { color: var(--ink-3); }
}

/* Display voice */
.scene .display, .scene .section-h1 {
  font-family: var(--sans); font-weight: 600; letter-spacing: -0.045em; line-height: 0.98;
  overflow-wrap: break-word; text-wrap: balance;
}
.section-h1 { margin-top: 0.75rem; max-width: 20ch; font-size: clamp(1.9rem, 3.6vw, 3.25rem); }
.head { max-width: 46rem; }
.head.c { margin-inline: auto; text-align: center; }
.head.c .section-h1 { margin-inline: auto; }
.head.c .eyebrow { justify-content: center; }
.head .lede { margin-top: 0.85rem; }
.fine { font-size: 0.75rem; line-height: 1.55; color: var(--ink-3); }
.signal { color: var(--signal-ink); }
.moss { color: var(--moss); }
.btn-lg { min-height: 3.4rem; padding-inline: 1.5rem; }

/* Word-by-word heading entrance (no-JS: words already visible) */
.js-motion [data-split] .split-word {
  display: inline-block; opacity: 0; filter: blur(8px);
  transform: translate3d(0, 0.45em, 0) rotate(3deg); transform-origin: left bottom;
  transition: opacity .5s cubic-bezier(.22,.61,.36,1), filter .5s cubic-bezier(.22,.61,.36,1),
              transform .7s cubic-bezier(.16,1,.3,1);
  transition-delay: calc(var(--i, 0) * 55ms);
}
.js-motion [data-split].is-split-in .split-word { opacity: 1; filter: none; transform: none; }
/* The hero heading is the first thing people read: no blur, no stagger, no waiting for an observer. */
.js-motion .hero-h1 .split-word { opacity: 1; filter: none; transform: none; transition: none; }

/* Generic reveal tuning for this page */
.js-motion [data-reveal] { transition-duration: .7s; }

/* Page scroll progress */
.scroll-bar { position: fixed; inset: 0 0 auto 0; z-index: 60; height: 3px; pointer-events: none; }
.scroll-bar span { display: block; height: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }

/* 1. Hero ---------------------------------------------------------------- */
.hero { min-height: calc(100svh - 4.5rem); display: flex; align-items: center; }
.hero > .wrap { padding-block: 3.5rem 4.5rem; }
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(to bottom, color-mix(in srgb, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 72%);
}
.hero-glow { position: absolute; width: 38rem; height: 38rem; right: -8rem; top: -6rem; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--signal) 16%, transparent), transparent 65%); }
.js-motion .hero-glow { animation: glow-drift 14s ease-in-out infinite alternate; }
@keyframes glow-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-5rem, 4rem, 0) scale(1.12); } }
.hero-w { display: grid; gap: 3rem; align-items: center; }
.hero-copy { position: relative; z-index: 2; max-width: 40rem; }
.hero-kicker { color: var(--signal-ink); font-weight: 500; }
.h1-wrap { position: relative; display: inline-block; margin-top: 1.1rem; }
.hero-h1 { font-size: clamp(2.5rem, 4.9vw, 4.6rem); }
.hero-h1 .h-line { display: block; text-wrap: balance; }  /* wraps when a translation is longer (EN) */
@media (max-width: 370px) { .hero-h1 .h-line { white-space: normal; } }
.hero-scribble { position: absolute; right: 0; bottom: -0.55rem; width: 62%; height: 1.1rem; overflow: visible; }
.hero-scribble path { fill: none; stroke: var(--signal); stroke-width: 5; stroke-linecap: round; }
.js-motion .hero-scribble path { stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw 1s cubic-bezier(.65,0,.35,1) 1.05s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero-lede { max-width: 34rem; margin-top: 1.75rem; font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.6; }
.hero-cta { margin-top: 2rem; }
.hero-label { display: block; margin-bottom: 0.5rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.hero-field { display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0.35rem; background: var(--card); border: 1px solid var(--ink);
  box-shadow: 6px 6px 0 var(--sand); transition: box-shadow .2s ease, transform .2s ease; }
.hero-field:focus-within { box-shadow: 8px 8px 0 var(--signal); transform: translate(-2px, -2px); }
.hero-goal { flex: 1 1 14rem; min-width: 0; margin: 0; padding: 0.75rem 0.85rem; border: 0; background: transparent;
  color: var(--ink); font-family: var(--sans); font-size: 1rem; outline: none; }
.hero-goal::placeholder { color: var(--ink-3); }
.hero-field .btn { flex: 0 0 auto; font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
@media (max-width: 520px) { .hero-field .btn { flex: 1 1 100%; justify-content: center; } }
.hero-field .arr { display: inline-block; transition: transform .2s ease; }
.hero-field .btn:hover .arr { transform: translateX(4px); }
.micro { margin-top: 0.9rem; font-family: var(--mono); font-size: 0.72rem; color: var(--ink-3); }
/* The reassurance line under the CTA is a sentence, not a footnote: real body text. */
.hero-micro { font-family: var(--sans); font-size: 0.9375rem; line-height: 1.45; color: var(--ink-2); }
.hero-sub { margin-top: 0.6rem; font-size: 0.875rem; color: var(--ink-3); }
.hero-stage { position: relative; z-index: 2; }

/* Hero demo: a product window that plays target -> people -> message -> reply */
.demo { position: relative; max-width: 32rem; margin-inline: auto; }
.demo-cap { margin-bottom: 0.6rem; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.demo-win { position: relative; background: var(--card); border: 1px solid var(--ink); box-shadow: 12px 12px 0 var(--sand); }
.js-motion .demo-win { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule); font-size: 0.68rem; color: var(--ink-3); }
.demo-dots { display: inline-flex; gap: 0.3rem; }
.demo-dots i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--rule); }
.demo-dots i:first-child { background: var(--signal); }
.demo-tabs { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.demo-tabs li { position: relative; padding: 0.55rem 0.6rem 0.65rem; font-size: 0.72rem; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo-tabs li + li { border-left: 1px solid var(--rule); }
.demo-tabs .mono { font-size: 0.62rem; color: var(--ink-3); }
.tab-fill { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--signal); transform: scaleX(0); transform-origin: left; }
.demo-tabs li.is-on { color: var(--ink); }
.demo-tabs li.is-on .mono { color: var(--signal-ink); }
.demo-tabs li.is-done .tab-fill { transform: scaleX(1); transition: none; }
.demo-tabs li.is-on .tab-fill { transform: scaleX(1); transition: transform var(--dur, 3s) linear; }
.demo-panes { position: relative; min-height: 15rem; }
.demo-pane { padding: 1rem 0.95rem; }
/* no JS: only the message pane shows */
.demo-pane:not([data-pane="2"]) { display: none; }
.js-motion .demo-pane { display: none; }
.js-motion .demo[data-phase="0"] .demo-pane[data-pane="0"],
.js-motion .demo[data-phase="1"] .demo-pane[data-pane="1"],
.js-motion .demo[data-phase="2"] .demo-pane[data-pane="2"],
.js-motion .demo[data-phase="3"] .demo-pane[data-pane="3"] { display: block; animation: pane-in .45s cubic-bezier(.16,1,.3,1) both; }
@keyframes pane-in { from { opacity: 0; transform: translate3d(14px, 0, 0); } to { opacity: 1; transform: none; } }
.pane-label { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }

.demo-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.9rem; }
.demo-chip { padding: 0.45rem 0.7rem; border: 1px solid var(--rule); font-family: var(--mono); font-size: 0.75rem; background: var(--paper);
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s cubic-bezier(.34,1.56,.64,1); }
.demo-chip.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.js-motion .demo-chip.is-on { animation: none; }
.js-motion .demo[data-phase="0"] .demo-chip { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.js-motion .demo[data-phase="0"] .demo-chip.is-lit { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.06); }
:root[data-theme="dark"] .demo-chip.is-on,
:root[data-theme="dark"] .js-motion .demo[data-phase="0"] .demo-chip.is-lit { background: var(--sand); color: var(--ink); border-color: var(--rule); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo-chip.is-on,
  :root:not([data-theme="light"]) .js-motion .demo[data-phase="0"] .demo-chip.is-lit { background: var(--sand); color: var(--ink); border-color: var(--rule); }
}
.demo-search { display: grid; gap: 0.5rem; margin-top: 1.4rem; font-size: 0.7rem; color: var(--ink-3); }
.demo-search-bar { position: relative; display: block; height: 4px; background: var(--sand); overflow: hidden; }
.demo-search-bar::after { content: ""; position: absolute; inset: 0; width: 35%; background: var(--signal); }
.js-motion .demo-search-bar::after { animation: search 1.3s ease-in-out infinite; }
@keyframes search { from { transform: translateX(-100%); } to { transform: translateX(300%); } }

.demo-people { display: grid; gap: 0.45rem; margin-top: 0.9rem; list-style: none; padding: 0; }
.demo-person { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.6rem; background: var(--paper); border: 1px solid var(--rule);
  font-size: 0.85rem; transition: opacity .3s ease, color .3s ease; }
.js-motion .demo[data-phase="1"] .demo-person { animation: row-in .5s cubic-bezier(.16,1,.3,1) both; animation-delay: calc(var(--i) * 160ms + 100ms); }
@keyframes row-in { from { opacity: 0; transform: translate3d(0, 10px, 0); } to { opacity: 1; transform: none; } }
.demo-check { flex: 0 0 auto; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; background: var(--moss); }
.demo-check::after { content: "✓"; color: var(--paper); font-size: 0.7rem; }
.demo-avatar { flex: 0 0 auto; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--sand); font-size: 0.75rem; font-weight: 600; }
.demo-person.is-off { color: var(--ink-3); text-decoration: line-through; }
.demo-person.is-off .demo-check { background: var(--brick); }
.demo-person.is-off .demo-check::after { content: "×"; }
.js-motion .demo[data-phase="1"] .demo-person.is-off { text-decoration: none; color: inherit; }
.js-motion .demo[data-phase="1"] .demo-person.is-off .demo-check { background: var(--moss); }
.js-motion .demo[data-phase="1"] .demo-person.is-off .demo-check::after { content: "✓"; }
.js-motion .demo[data-phase="1"].is-cut .demo-person.is-off { text-decoration: line-through; color: var(--ink-3); opacity: .6; }
.js-motion .demo[data-phase="1"].is-cut .demo-person.is-off .demo-check { background: var(--brick); }
.js-motion .demo[data-phase="1"].is-cut .demo-person.is-off .demo-check::after { content: "×"; }

.demo-meta { margin: -1rem -0.95rem 0; border-bottom: 1px solid var(--rule); }
.demo-meta .row { display: flex; gap: 0.75rem; padding: 0.5rem 0.95rem; font-size: 0.78rem; }
.demo-meta .row + .row { border-top: 1px solid var(--rule); }
.demo-meta .k { flex: 0 0 3.5rem; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }
.demo-meta .v { color: var(--ink); }
.demo-body { min-height: 9rem; padding-top: 0.9rem; font-size: 0.9rem; line-height: 1.6; color: var(--ink-2); }
.demo-body p + p { margin-top: 0.55rem; }
[data-demo-type] { min-height: 3.2em; }
.js-motion [data-demo-type].is-typing::after { content: ""; display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -0.15em;
  background: var(--signal); animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
[data-demo-sign] { transition: opacity .3s ease; }
.demo-actions { display: flex; justify-content: flex-end; margin-top: 0.75rem; }
.demo-send { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; background: var(--ink); color: var(--paper);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform .18s ease, background .18s ease; }
.demo-send.is-pressed { transform: scale(.92) translateY(1px); background: var(--signal); }
:root[data-theme="dark"] .demo-send { background: var(--sand); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .demo-send { background: var(--sand); color: var(--ink); }
}
.demo-send-plane { transition: transform .35s ease; }
.demo-send.is-pressed .demo-send-plane { transform: translate(6px, -6px); }
.demo-sent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; min-height: 15rem; text-align: center; font-size: 0.75rem; color: var(--ink-3); }
.demo-sent-ic { display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: var(--moss); color: var(--paper); font-size: 1.3rem; }
.js-motion .demo[data-phase="3"] .demo-sent-ic { animation: pop .55s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.demo-reply { position: relative; z-index: 3; margin: -1.25rem -0.5rem 0 2.5rem;
  padding: 0.85rem 1rem; background: var(--card); border: 1px solid var(--moss); box-shadow: 6px 6px 0 var(--signal);
  transition: opacity .45s ease, transform .6s cubic-bezier(.34,1.56,.64,1); }
.js-motion .demo-reply:not(.is-in) { opacity: 0; transform: translate3d(0, 18px, 0) scale(.96); }
.demo-reply-tag { display: flex; align-items: center; gap: 0.45rem; font-size: 0.65rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--moss); }
.demo-reply-who { margin-top: 0.3rem; font-size: 0.88rem; }
.demo-reply-msg { margin-top: 0.2rem; font-size: 0.95rem; color: var(--ink); }
.demo-note { margin-top: 0.9rem; text-align: center; }
.pulse { position: relative; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--moss); }
.js-motion .pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--moss); animation: ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

@media (min-width: 1024px) {
  .hero-w { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 3.5rem; }
  .demo { margin-right: 0; }
}

/* Phones: the product window belongs to the first screen, not to a second scroll.
   Tighten the copy block (not the example) so the demo starts well above the fold. */
@media (max-width: 640px) {
  .hero { min-height: 0; align-items: flex-start; }
  .hero > .wrap { padding-block: 1.25rem 2rem; }
  .hero-w { gap: 1.5rem; }
  .h1-wrap { margin-top: 0.5rem; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .hero-h1 .h-line { white-space: normal; }
  .hero-scribble { width: 42%; height: 0.7rem; bottom: -0.3rem; }
  .hero-lede { margin-top: 0.85rem; font-size: 1rem; line-height: 1.45; }
  .hero-cta { margin-top: 1.1rem; }
  .hero-label { margin-bottom: 0.35rem; }
  .hero-field { padding: 0.25rem; }
  .hero-goal { padding: 0.55rem 0.65rem; }
  .hero-field .btn { min-height: 2.75rem; }
  .hero-micro { margin-top: 0.6rem; }
  .hero-sub { margin-top: 0.3rem; }
  .demo-cap { margin-bottom: 0.35rem; }
  .demo-panes { min-height: 12.5rem; }
  .demo-win { box-shadow: 6px 6px 0 var(--sand); }
  /* Links in the landing page are real touch targets on phones. */
  .scene .lnk { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0.5rem; }
}

/* Marquee ---------------------------------------------------------------- */
.marquee { overflow: hidden; background: var(--ink); color: var(--paper); padding: 0.85rem 0; }
/* In dark mode, --ink is cream → use very dark surface instead */
:root[data-theme="dark"] .marquee { background: #1C1A17; color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .marquee { background: #1C1A17; color: var(--ink); }
}
.marquee-track { display: flex; width: max-content; white-space: nowrap; font-family: var(--mono);
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
  animation: marquee 40s linear infinite; }
.marquee-track span { padding-right: 2rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* 2. Problem: pile vs direct ---------------------------------------------- */
.problem-w { display: grid; gap: 3rem; align-items: center; }
.vs { display: grid; gap: 1.5rem; }
.vs-label { margin-bottom: 0.9rem; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.pile-stack { position: relative; display: grid; list-style: none; margin: 0; padding: 0; }
.pile-card { display: flex; justify-content: space-between; gap: 1rem; margin-top: -0.6rem; padding: 0.85rem 1rem;
  background: var(--paper); border: 1px solid var(--rule); font-size: 0.82rem; color: var(--ink-3);
  transform: rotate(var(--r)); box-shadow: 0 2px 0 var(--rule); }
.pile-card:first-child { margin-top: 0; }
.pile-card .mono { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.05em; }
.pile-card:last-child { color: var(--brick); border-color: color-mix(in srgb, var(--brick) 40%, var(--rule)); }
.js-motion .pile:not(.is-visible) .pile-card { opacity: 0; transform: translate3d(0, -40px, 0) rotate(calc(var(--r) * 3)); }
.js-motion .pile .pile-card { transition: opacity .45s ease, transform .7s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i) * 110ms); }
.js-motion .pile.is-visible .pile-card:last-child { animation: shake .5s ease 1.3s; }
@keyframes shake { 25% { transform: rotate(var(--r)) translateX(-4px); } 75% { transform: rotate(var(--r)) translateX(4px); } }
.direct-card { padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--ink); box-shadow: 8px 8px 0 var(--signal); }
.direct-subject { margin-top: 0.5rem; font-weight: 600; }
.direct-hook { margin-top: 0.4rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2);
  background-image: linear-gradient(color-mix(in srgb, var(--signal) 22%, transparent), color-mix(in srgb, var(--signal) 22%, transparent));
  background-repeat: no-repeat; background-size: 100% 0.45em; background-position: 0 88%; }
.js-motion .direct:not(.is-visible) .direct-hook { background-size: 0% 0.45em; }
.js-motion .direct .direct-hook { transition: background-size 1s cubic-bezier(.65,0,.35,1) .6s; }
.direct-reply { margin: 0.9rem 0 0.7rem 2rem; padding: 0.8rem 1rem; background: color-mix(in srgb, var(--moss) 9%, var(--card)); border: 1px solid var(--moss); }
.direct-reply p + p { margin-top: 0.25rem; }
.direct-reply .mono { font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.06em; }
.js-motion .direct:not(.is-visible) .direct-reply { opacity: 0; transform: translate3d(0, 14px, 0) scale(.96); }
.js-motion .direct .direct-reply { transition: opacity .45s ease 1.4s, transform .6s cubic-bezier(.34,1.56,.64,1) 1.4s; }
@media (min-width: 768px) { .vs { grid-template-columns: 1fr 1.15fr; gap: 2.5rem; align-items: start; } }
@media (min-width: 1024px) { .problem-w { grid-template-columns: 0.9fr 1.1fr; gap: 4rem; } }

/* 3. Profiles ------------------------------------------------------------ */
.profiles-list { margin-top: 1.5rem; border-top: 1px solid var(--ink); }
.profile-row { position: relative; border-bottom: 1px solid var(--rule); }
.profile-row::before { content: ""; position: absolute; inset: 0; background: var(--card); transform: scaleY(0); transform-origin: bottom;
  transition: transform .35s cubic-bezier(.16,1,.3,1); z-index: 0; }
.profile-row:hover::before { transform: scaleY(1); }
.profile-row > * { position: relative; z-index: 1; }
.profile-link { display: grid; grid-template-columns: 2.5rem 1fr auto; align-items: baseline;
  gap: 0.35rem 1rem; padding: 1.5rem 0.5rem; color: var(--ink); text-decoration: none; }
.p-n { font-family: var(--mono); font-size: 0.75rem; color: var(--signal-ink); }
.p-t { font-size: clamp(1.4rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; transition: transform .3s cubic-bezier(.16,1,.3,1); }
.profile-link:hover .p-t { transform: translateX(10px); }
.p-d { grid-column: 2 / -1; font-size: 0.875rem; color: var(--ink-2); }
.p-go { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid var(--ink); border-radius: 50%;
  font-size: 1.1rem; transition: transform .25s ease, background .25s ease, color .25s ease; }
.profile-link:hover .p-go { transform: rotate(-45deg); background: var(--signal); border-color: var(--signal); color: var(--paper); }


/* 4. Method: seven steps at a glance -------------------------------------- */
.method-grid { display: grid; gap: 1.5rem; margin-top: 1.25rem; align-items: center; }
.method-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.method-step {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 0.15rem 0.75rem;
  align-items: baseline; padding: 0.7rem 0.25rem; border-bottom: 1px solid var(--rule);
}
.method-n { grid-row: 1 / span 2; font-family: var(--mono); font-size: 0.72rem; color: var(--signal-ink); }
.method-t { font-size: 1rem; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.method-d { grid-column: 2; font-size: 0.85rem; line-height: 1.4; color: var(--ink-2); }
.method-visual { display: grid; justify-items: center; gap: 0.5rem; }
.mv-label { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.mv-window {
  width: 100%; max-width: 13rem; padding: 0.8rem; background: var(--paper);
  border: 1px solid var(--ink); box-shadow: 6px 6px 0 var(--sand);
}
.mv-bar { display: flex; gap: 0.25rem; }
.mv-bar i { width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--rule); }
.mv-bar i:first-child { background: var(--signal); }
.mv-doc { margin-top: 0.7rem; font-size: 0.65rem; color: var(--ink-3); }
.mv-lines { margin-top: 0.5rem; }
.mv-lines span { display: block; height: 0.35rem; margin-top: 0.4rem; background: var(--sand); }
.mv-lines span.short { width: 62%; }
.mv-check { margin-top: 0.6rem; color: var(--moss); font-size: 1rem; }
@media (min-width: 768px) {
  .method-grid { grid-template-columns: minmax(0, 1fr) 14rem; gap: 3rem; }
  .method-step { grid-template-columns: 2.5rem minmax(0, 1fr); padding-block: 0.55rem; }
}

/* 5. Control ------------------------------------------------------------- */
.inc-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.inc-grid > li { padding: 1rem; background: var(--card); border: 1px solid var(--rule);
  transition: transform .25s cubic-bezier(.16,1,.3,1), box-shadow .25s ease, border-color .25s ease; }
.inc-grid > li:hover { transform: translateY(-6px); box-shadow: 8px 8px 0 var(--ink); border-color: var(--ink); }
.inc-ic { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 0.6rem;
  background: var(--ink); color: var(--paper); transition: transform .25s ease, background .25s ease; }
:root[data-theme="dark"] .inc-ic { background: var(--sand); color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .inc-ic { background: var(--sand); color: var(--ink); }
}
.inc-grid > li:hover .inc-ic { transform: rotate(-6deg) scale(1.06); background: var(--signal); }
.inc-ic svg { width: 1.4rem; height: 1.4rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.js-motion li:not(.is-visible) > .inc-ic path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js-motion li > .inc-ic path { stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 1s cubic-bezier(.65,0,.35,1) calc(var(--reveal-delay, 0ms) + .25s); }
.inc-grid b { display: block; font-size: 1.05rem; line-height: 1.3; }
.inc-grid p { margin-top: 0.5rem; font-size: 0.9rem; line-height: 1.55; color: var(--ink-2); }
@media (min-width: 640px) { .inc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .inc-grid { grid-template-columns: repeat(4, 1fr); } }

/* 6. Price per contact --------------------------------------------------- */
.tokens-w { display: grid; gap: 2rem; }
.tokens-body { display: grid; gap: 1.5rem; margin-top: 1.25rem; }
.token-n { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.05em; line-height: 1.05; }
.tok-grid { display: grid; grid-template-columns: repeat(5, 2.1rem); gap: 0.55rem; margin-top: 1rem; }
.tok { width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--signal); box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.tok-back { background: transparent; border: 1px dashed color-mix(in srgb, var(--paper) 55%, transparent); box-shadow: none; }
.js-motion .tokens-w:not(.is-visible) .tok { opacity: 0; transform: scale(0) translateY(-20px); }
.js-motion .tokens-w .tok { transition: opacity .3s ease, transform .55s cubic-bezier(.34,1.56,.64,1); transition-delay: calc(var(--i) * 70ms + .3s); }
.js-motion .tokens-w.is-visible .tok-back { animation: back 2.6s ease-in-out 1.4s infinite; }
@keyframes back { 0%, 40% { background: var(--signal); border-color: transparent; transform: none; }
                  60%, 100% { background: transparent; transform: translateY(-4px); } }
.tokens .token-n + .tok-grid + * { margin-top: 0; }
.tokens-body > div:last-child > p + p { margin-top: 0.75rem; }
.tokens-body > div:last-child > a { display: inline-block; margin-top: 1rem; }
@media (min-width: 640px) { .tokens-body { grid-template-columns: minmax(12rem, 0.8fr) 1fr; } }
@media (min-width: 900px) { .tokens-w { grid-template-columns: 12rem 1fr; } }

/* 7. Honest -------------------------------------------------------------- */
.honest-w { display: grid; gap: 1.5rem; }
.honest { position: relative; padding: 1.25rem; background: var(--card); border-left: 4px solid var(--signal); }
.js-motion .honest-w:not(.is-visible) .honest { clip-path: inset(0 100% 0 0); }
.js-motion .honest-w .honest { clip-path: inset(0 0 0 0); transition: clip-path 1s cubic-bezier(.65,0,.35,1) .1s; }
.honest h2 { max-width: 24ch; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.honest p { max-width: 48rem; margin-top: 1rem; line-height: 1.65; color: var(--ink-2); }
@media (min-width: 768px) { .honest { padding: 1.5rem; } }

/* 8. Close --------------------------------------------------------------- */
.close-rings { position: absolute; right: -10rem; top: 50%; width: 34rem; height: 34rem; transform: translateY(-50%); pointer-events: none; }
.close-rings i { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: 50%; }
.close-rings i:nth-child(2) { inset: 4rem; }
.close-rings i:nth-child(3) { inset: 8rem; border-color: color-mix(in srgb, var(--signal) 60%, transparent); }
.js-motion .close-rings i { animation: ripple 4.5s cubic-bezier(.22,.61,.36,1) infinite; }
.js-motion .close-rings i:nth-child(2) { animation-delay: 1.5s; }
.js-motion .close-rings i:nth-child(3) { animation-delay: 3s; }
@keyframes ripple { from { transform: scale(.4); opacity: 0; } 30% { opacity: 1; } to { transform: scale(1.1); opacity: 0; } }
.close-w { display: grid; gap: 2rem; align-items: end; }
.close .section-h1 { max-width: 16ch; }
.close p { max-width: 34rem; margin-top: 1rem; color: color-mix(in srgb, var(--paper) 72%, transparent); }
.close .btn { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; }
.close .fine { color: color-mix(in srgb, var(--paper) 55%, transparent); }
@media (min-width: 900px) { .close-w { grid-template-columns: 1.4fr 0.6fr; } }

/* Back-to-top ring ------------------------------------------------------- */
.to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border: 1px solid var(--ink); border-radius: 50%;
  background: var(--card); color: var(--ink); box-shadow: 3px 3px 0 var(--sand); cursor: pointer;
  opacity: 0; transform: translateY(12px) scale(0.9); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, background .15s ease, color .15s ease; }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: var(--paper); }
.tt-ring, .tt-arrow { position: absolute; }
.tt-ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke: var(--signal); stroke-width: 2; }
.tt-arrow { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; }

/* Magnetic target smoothing */
[data-magnetic] { transition: transform .18s cubic-bezier(.22,.61,.36,1); will-change: transform; }

/* Method: the seven steps arrive one after the other, the window "reads" the CV on a loop */
.js-motion .method-step { opacity: 0; transform: translateY(10px);
  transition: opacity .45s ease, transform .45s cubic-bezier(.22,.61,.36,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion .method-grid.is-visible .method-step { opacity: 1; transform: none; }
.method-step .method-n { transition: color .2s ease; }
.method-step:hover .method-n { color: var(--signal); }
@media (min-width: 900px) { .method-visual { position: sticky; top: 30vh; align-self: start; } .method-grid { align-items: start; } }
.js-motion .method-grid.is-visible .mv-lines span { transform-origin: left; animation: mv-read 3.2s ease-in-out infinite; }
.js-motion .method-grid.is-visible .mv-lines span:nth-child(2) { animation-delay: .25s; }
.js-motion .method-grid.is-visible .mv-lines span:nth-child(3) { animation-delay: .5s; }
.js-motion .method-grid.is-visible .mv-check { animation: mv-check 3.2s ease-in-out infinite; }
@keyframes mv-read { 0% { transform: scaleX(0); } 35%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes mv-check { 0%, 40% { opacity: 0; transform: scale(.6); } 50%, 85% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }

/* each step lights up in turn (7 steps x 1.4 s), like the engine moving through them */
.method-step { position: relative; }
.method-step::before { content: ""; position: absolute; left: -0.75rem; top: 0.6rem; bottom: 0.6rem; width: 2px;
  background: var(--signal); transform: scaleY(0); transform-origin: top; }
.js-motion .method-grid.is-visible .method-step::before { animation: step-on 9.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.4s + .8s); }
.js-motion .method-grid.is-visible .method-step .method-n { animation: step-n 9.8s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 1.4s + .8s); }
@keyframes step-on { 0% { transform: scaleY(0); } 3%, 13% { transform: scaleY(1); } 16%, 100% { transform: scaleY(0); } }
@keyframes step-n { 0%, 100% { color: var(--ink-3); } 3%, 13% { color: var(--signal); } 16% { color: var(--ink-3); } }
@media (min-width: 900px) { .method-grid { grid-template-columns: minmax(0, 1fr) 17rem !important; } .mv-window { width: 17rem; } }

/* Method visual: one contact's story on a loop — CV read → message sent → the manager offers an interview */
.mv-frames { position: relative; min-height: 9.5rem; margin-top: 0.6rem; }
.mv-frame { position: absolute; inset: 0; }
.mv-frame .mv-doc { margin-top: 0; }
.mv-subject { margin-top: 0.45rem; font-size: 0.8rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.mv-tag { margin-top: 0.7rem; font-size: 0.75rem; color: var(--ink-2); display: flex; gap: .4rem; align-items: center; }
.mv-ok { color: var(--moss); font-weight: 700; }
.mv-from { color: var(--moss) !important; }
.mv-hl { font-weight: 600; background: linear-gradient(transparent 58%, rgb(var(--signal-rgb) / .28) 58%); }
.mv-reply { margin-top: 0.45rem; font-size: 0.85rem; line-height: 1.45; color: var(--ink); }
.mv-badge { display: inline-block; margin-top: 0.7rem; padding: 0.25rem 0.55rem; border: 1px solid var(--moss);
  color: var(--moss); font-family: var(--mono); font-size: 0.68rem; letter-spacing: .06em; text-transform: uppercase; }
.mv-f1, .mv-f2 { opacity: 0; }          /* without motion: the interview frame stays visible */
.mv-f3 { opacity: 1; }
.js-motion .method-grid.is-visible .mv-f1 { animation: mv-f1 12s ease-in-out infinite; }
.js-motion .method-grid.is-visible .mv-f2 { animation: mv-f2 12s ease-in-out infinite; }
.js-motion .method-grid.is-visible .mv-f3 { opacity: 0; animation: mv-f3 12s ease-in-out infinite; }
.js-motion .method-grid.is-visible .mv-f3 .mv-badge { animation: mv-badge 12s ease-in-out infinite; }
@keyframes mv-f1 { 0%, 25% { opacity: 1; transform: none; } 30%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes mv-f2 { 0%, 28% { opacity: 0; transform: translateY(6px); } 33%, 52% { opacity: 1; transform: none; }
  57%, 100% { opacity: 0; transform: translateY(-6px); } }
@keyframes mv-f3 { 0%, 55% { opacity: 0; transform: translateY(6px); } 60%, 95% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes mv-badge { 0%, 66% { transform: scale(.7); opacity: 0; } 71% { transform: scale(1.08); opacity: 1; }
  74%, 95% { transform: scale(1); opacity: 1; } 100% { opacity: 0; } }
@media (min-width: 900px) { .mv-window { max-width: 17rem; } }

/* Reduced motion: stop loops/transforms, keep everything visible */
@media (prefers-reduced-motion: reduce) {
  .marquee-track, .hero-glow, .demo-win, .demo-search-bar::after, .pulse::after, .close-rings i, .tok-back { animation: none !important; }
  .demo-reply, .demo-send, [data-demo-sign], [data-magnetic], .inc-grid > li, .inc-ic,
  .method-step, .method-visual, .pile-card, .tok, .honest, .profile-row::before, .p-t, .p-go {
    transition: none !important; animation: none !important;
  }
  .js-motion .demo-reply:not(.is-in) { opacity: 1 !important; transform: none !important; }
  .hero-scribble path { stroke-dashoffset: 0 !important; animation: none !important; }
  .js-motion .method-step { opacity: 1 !important; transform: none !important; }
  .method-step::before, .method-step .method-n { animation: none !important; }
  .mv-lines span, .mv-check { animation: none !important; opacity: 1 !important; transform: none !important; }
  .mv-f1, .mv-f2 { animation: none !important; opacity: 0 !important; }
  .mv-f3, .mv-f3 .mv-badge { animation: none !important; opacity: 1 !important; transform: none !important; }
  .to-top { transition: none; }
  .to-top.is-shown { opacity: 1 !important; transform: none !important; }
  .js-motion [data-split] .split-word { opacity: 1 !important; filter: none !important; transform: none !important; }
  .scroll-bar { display: none; }
}
