/* ============================================================
   Tuffify landing page (/tuffify)
   Builds on styles.css + buttons-holo.css; same tokens, same
   editorial frame as the homepage lab (hairline rule, index
   number, oversized display type), coral as the product accent.
   ============================================================ */

.tfy-page { --accent: var(--coral); }
.tfy-page main { overflow-x: clip; }

.tfy-sr,
.motion-toggle .motion-toggle-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-content { position: fixed; top: -80px; left: 18px; z-index: 110; padding: 14px 20px; border-radius: 8px; background: var(--white); color: #090a0c; }
.skip-content:focus { top: 15px; }

/* ---------- header extras (shared with the homepage) ---------- */
.header-actions { display: flex; align-items: center; gap: 10px; }
.motion-toggle {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.motion-toggle:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.08); }
.motion-toggle svg { grid-area: 1 / 1; width: 16px; height: 16px; fill: currentColor; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.motion-icon-play,
.motion-toggle[aria-pressed="true"] .motion-icon-pause { display: none; }
.motion-toggle[aria-pressed="true"] .motion-icon-play { display: block; }
.motion-toggle:disabled { opacity: 0.45; cursor: default; }
.mobile-navigation { display: none; }

@media (max-width: 1020px) {
  .header-actions { margin-left: auto; }
  .header-inner { gap: 0; }
  .mobile-navigation { position: relative; display: block; margin-left: 12px; font: 600 13px var(--font-body); }
  .mobile-navigation summary { padding: 12px; list-style: none; cursor: pointer; }
  .mobile-navigation summary::-webkit-details-marker { display: none; }
  .mobile-navigation summary span { margin-left: 7px; }
  .mobile-navigation nav { position: absolute; top: 46px; right: 0; display: flex; flex-direction: column; width: 220px; padding: 12px; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 15px; background: rgba(11, 14, 18, 0.96); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.73); }
  .mobile-navigation nav a { padding: 13px 12px; color: var(--soft); }
}
@media (max-width: 700px) {
  .mobile-navigation { margin-left: 2px; }
  .header-actions > .discord-pill { padding: 9px 11px; }
  .brand-lockup { gap: 7px; }
}
@media (max-width: 420px) {
  .header-actions > .discord-pill { font-size: 0; gap: 0; }
  .header-actions > .discord-pill img { margin: 0; }
}

/* ============================================================
   Hero
   ============================================================ */

.tfy-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: max(100svh, 720px);
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(60% 46% at 50% 34%, rgba(255, 90, 77, 0.09), transparent 70%),
    radial-gradient(70% 60% at 50% 30%, rgba(75, 114, 255, 0.1), transparent 72%);
}

.tfy-hero-grid {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 0;
  height: 46%;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(600px) rotateX(62deg);
  transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent 85%);
}

.tfy-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tfy-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: clamp(110px, 14vh, 150px) clamp(18px, 4vw, 56px) clamp(80px, 10vh, 120px);
  text-align: center;
}

.tfy-stage {
  position: relative;
  width: min(940px, 86vw);
  height: clamp(150px, 26vh, 270px);
}

.tfy-stage-glow {
  position: absolute;
  inset: -30% -10%;
  z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 90, 77, 0.12), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.tfy-fallback {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 40px);
}
.tfy-fallback img { width: auto; height: 100%; object-fit: contain; transform: scale(1.55); }
.tfy-fallback-word {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 190px);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}
.tfy-fallback-word em { font-style: normal; color: var(--coral); }
.tfy-stage.no-webgl .tfy-fallback { display: flex; }

.tfy-hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 820px; }

.tfy-hero .hero-eyebrow {
  margin: 0 0 18px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tfy-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.tfy-lede {
  max-width: 60ch;
  margin: 22px 0 32px;
  color: var(--soft);
  font-size: clamp(16px, 1.55vw, 19px);
  line-height: 1.6;
  text-wrap: pretty;
}

.tfy-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

.tfy-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.tfy-facts li::before { content: "● "; color: var(--coral); font-size: 8px; vertical-align: 2px; }

.tfy-scroll-cue {
  position: absolute;
  bottom: 22px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transform: translateX(-50%);
}
@media (max-height: 820px) { .tfy-scroll-cue { display: none; } }
.tfy-scroll-cue i { position: relative; width: 1px; height: 34px; overflow: hidden; background: var(--line); }
.tfy-scroll-cue i::after { position: absolute; inset: 0; content: ""; background: var(--coral); animation: tfy-cue 2.2s var(--ease-out) infinite; }
@keyframes tfy-cue { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- editorial frame from the homepage lab ---------- */
.lab-rule {
  display: flex;
  gap: 18px;
  align-items: baseline;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lab-num { color: var(--accent); font-variant-numeric: tabular-nums; }
.lab-note { margin-left: auto; color: var(--faint); text-align: right; }
.lab-caption { max-width: 90ch; margin: 18px 0 0; color: var(--faint); font-size: 13px; line-height: 1.55; }
.type-label {
  display: block;
  margin-bottom: 14px;
  color: var(--faint);
  font-family: var(--font-display);
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ============================================================
   Shared pieces
   ============================================================ */

.tfy-chapter { --accent: var(--coral); scroll-margin-top: 80px; }
.tfy-chapter + .tfy-chapter { padding-top: clamp(120px, 14vw, 200px); }

.tfy-h2 {
  margin: clamp(34px, 4vw, 56px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(46px, 7.4vw, 112px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.05em;
  text-wrap: balance;
}
.tfy-h2 em { font-style: normal; color: var(--accent); }
.tfy-center { text-align: center; }

.tfy-sub {
  max-width: 44ch;
  margin: clamp(18px, 2vw, 26px) auto 0;
  color: var(--soft);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  text-align: center;
  text-wrap: balance;
}
.tfy-sub.tfy-left { margin-left: 0; text-align: left; }

.tfy-illus {
  margin: 14px 0 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-align: center;
}

.tfy-bub {
  max-width: 34ch;
  margin: 0;
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
}
.tfy-bub.you { align-self: flex-end; border-bottom-right-radius: 5px; background: var(--white); color: #0b0c0f; font-weight: 500; }
.tfy-bub.ai { border: 1px solid var(--line-strong); border-bottom-left-radius: 5px; background: rgba(255, 255, 255, 0.05); color: var(--soft); }
.tfy-bub.ai b { color: var(--white); }
.tfy-bub small { display: block; margin-top: 6px; color: var(--mint); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tfy-bub.ok { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--coral); color: #140605; font-weight: 700; }
.tfy-bub.ok i { font-style: normal; }

/* ============================================================
   Product shot: the editor, drawn in HTML
   ============================================================ */

.tfy-shot-wrap {
  position: relative;
  z-index: 3;
  width: min(1240px, 100%);
  margin: clamp(-90px, -6vw, -40px) auto 0;
  padding: 0 clamp(14px, 3vw, 40px);
  perspective: 1600px;
}
.tfy-shot-wrap::before {
  position: absolute;
  inset: 10% 8% -6%;
  z-index: -1;
  content: "";
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 90, 77, 0.22), rgba(75, 114, 255, 0.12) 45%, transparent 72%);
  filter: blur(40px);
}

.tfy-app {
  --pad: clamp(8px, 1vw, 14px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: clamp(14px, 1.6vw, 22px);
  background: #0a0c10;
  box-shadow: 0 50px 120px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateX(14deg) scale(0.96);
  transform-origin: 50% 0;
  transition: transform 1.2s var(--ease-out);
}
.tfy-app.flat { transform: none; }
@supports (animation-timeline: view()) {
  html.scrub .tfy-app {
    transition: none;
    animation: tfy-flatten linear both;
    animation-timeline: view();
    animation-range: entry 0% cover 42%;
  }
}
@keyframes tfy-flatten { from { transform: rotateX(22deg) scale(0.92); } to { transform: none; } }

.tfy-app-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 12px;
}
.tfy-app-bar > i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.tfy-app-bar > i:nth-child(2) { background: #febc2e; }
.tfy-app-bar > i:nth-child(3) { background: #28c840; }
.tfy-app-bar span { margin-left: 12px; color: var(--soft); font-weight: 600; }
.tfy-app-bar b { margin-left: auto; color: var(--mint); font-weight: 600; }
.tfy-app-bar b::before { content: "● "; font-size: 9px; vertical-align: 1px; }

.tfy-app-body {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr) minmax(0, 1fr);
  gap: var(--pad);
  height: clamp(300px, 34vw, 430px);
  padding: var(--pad);
}
.tfy-app-bin,
.tfy-app-viewer,
.tfy-app-agent { min-height: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.02); }

.tfy-app-bin { display: flex; flex-direction: column; gap: 10px; padding: 10px; }
.tfy-app-find { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 9px; background: #000; color: var(--white); font-size: 12px; white-space: nowrap; overflow: hidden; }
.tfy-app-find svg { flex: none; width: 13px; height: 13px; fill: none; stroke: var(--muted); stroke-width: 2; }
.tfy-app-thumbs { display: grid; flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 7px; min-height: 0; }
.tfy-app-thumbs figure { position: relative; margin: 0; overflow: hidden; border: 1px solid transparent; border-radius: 8px; opacity: 0.5; transition: opacity 400ms, border-color 400ms; }
.tfy-app-thumbs figure.hit { border-color: var(--coral); opacity: 1; box-shadow: 0 0 22px rgba(255, 90, 77, 0.25); }
.tfy-app-thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.tfy-app-thumbs b { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, 0.75); font-size: 10px; font-variant-numeric: tabular-nums; }

.tfy-app-viewer { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; background: #000; }
.tfy-app-frame { position: relative; flex: 1; min-height: 0; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 6px; }
.tfy-app-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfy-app-cap {
  position: absolute;
  top: 67.3%;
  left: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(11px, 1.15vw, 16px);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-shadow: 0 2px 0 #000, 0 0 8px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%);
}
.tfy-app-transport { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.tfy-app-transport i { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid var(--white); }

.tfy-app-agent { display: flex; flex-direction: column; gap: 9px; padding: 12px; }
.tfy-app-agent .tfy-bub { max-width: 100%; padding: 9px 11px; font-size: 12.5px; }
.tfy-app-agent .tfy-bub.ok { margin-top: auto; }
.tfy-app-label { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.tfy-app-tl { position: relative; padding: 4px var(--pad) var(--pad); }
.tfy-app-ruler { height: 14px; margin-left: 58px; background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0 1px, transparent 1px 2.5%); mask-image: linear-gradient(to bottom, #000 40%, transparent); }
.tfy-app-lane { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; align-items: center; height: clamp(22px, 2.6vw, 34px); margin-top: 4px; }
.tfy-app-lane > span { color: var(--faint); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.tfy-app-lane > div { position: relative; height: 100%; border-radius: 6px; background: rgba(255, 255, 255, 0.03); }
.tfy-app-lane i { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); border-radius: 5px; }
.tfy-app-lane i.clip { border: 1px solid rgba(255, 255, 255, 0.25); background: var(--img) 0 30% / auto 260% repeat-x, #1b2030; }
.tfy-app-lane i.cap { top: 18%; bottom: 18%; background: linear-gradient(180deg, #ff7a6f, var(--coral)); }
.tfy-app-lane i.sc { top: 30%; bottom: 30%; border-left: 2px solid var(--white); border-radius: 0; background: linear-gradient(90deg, rgba(61, 220, 151, 0.45), rgba(121, 163, 255, 0.35)); }
.tfy-app-lane.mem i.sc:nth-child(2n) { background: linear-gradient(90deg, rgba(167, 139, 250, 0.45), rgba(255, 90, 77, 0.3)); }
.tfy-app-lane .wave,
.tfy-tl-track.tfy-tl-wave { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='%233ddc97' d='M0.6 16.7h2.1v6.6h-2.1zM3.9 16.4h2.1v7.2h-2.1zM7.3 13.9h2.1v12.2h-2.1zM10.6 15.1h2.1v9.9h-2.1zM13.9 11.7h2.1v16.7h-2.1zM17.3 11.3h2.1v17.4h-2.1zM20.6 12.4h2.1v15.2h-2.1zM23.9 7.7h2.1v24.6h-2.1zM27.3 11.0h2.1v18.0h-2.1zM30.6 6.5h2.1v27.0h-2.1zM33.9 9.8h2.1v20.4h-2.1zM37.3 9.5h2.1v21.0h-2.1zM40.6 6.3h2.1v27.4h-2.1zM43.9 2.9h2.1v34.1h-2.1zM47.3 10.5h2.1v19.0h-2.1zM50.6 10.5h2.1v19.0h-2.1zM53.9 8.7h2.1v22.6h-2.1zM57.3 8.3h2.1v23.4h-2.1zM60.6 12.0h2.1v16.0h-2.1zM63.9 14.1h2.1v11.8h-2.1zM67.3 13.3h2.1v13.3h-2.1zM70.6 16.9h2.1v6.1h-2.1zM73.9 16.0h2.1v7.9h-2.1zM77.3 16.0h2.1v7.9h-2.1zM80.6 15.3h2.1v9.4h-2.1zM83.9 14.1h2.1v11.8h-2.1zM87.3 11.5h2.1v17.1h-2.1zM90.6 5.7h2.1v28.6h-2.1zM93.9 9.7h2.1v20.7h-2.1zM97.3 4.8h2.1v30.5h-2.1zM100.6 3.8h2.1v32.5h-2.1zM103.9 6.9h2.1v26.2h-2.1zM107.3 6.2h2.1v27.5h-2.1zM110.6 11.8h2.1v16.3h-2.1zM113.9 13.1h2.1v13.8h-2.1zM117.3 13.7h2.1v12.7h-2.1zM120.6 13.2h2.1v13.5h-2.1zM123.9 15.7h2.1v8.7h-2.1zM127.3 16.0h2.1v8.1h-2.1zM130.6 14.3h2.1v11.5h-2.1zM133.9 13.7h2.1v12.6h-2.1zM137.3 13.4h2.1v13.3h-2.1zM140.6 9.4h2.1v21.2h-2.1zM143.9 8.6h2.1v22.9h-2.1zM147.3 10.7h2.1v18.6h-2.1zM150.6 7.0h2.1v26.0h-2.1zM153.9 6.4h2.1v27.1h-2.1zM157.3 2.2h2.1v35.6h-2.1zM160.6 3.1h2.1v33.8h-2.1zM163.9 7.4h2.1v25.1h-2.1zM167.3 0.3h2.1v39.3h-2.1zM170.6 9.6h2.1v20.9h-2.1zM173.9 7.1h2.1v25.7h-2.1zM177.3 4.9h2.1v30.1h-2.1zM180.6 11.1h2.1v17.8h-2.1zM183.9 9.5h2.1v21.0h-2.1zM187.3 13.6h2.1v12.8h-2.1zM190.6 11.0h2.1v18.1h-2.1zM193.9 11.9h2.1v16.3h-2.1zM197.3 13.9h2.1v12.3h-2.1zM200.6 14.0h2.1v12.0h-2.1zM203.9 16.4h2.1v7.2h-2.1zM207.3 16.3h2.1v7.3h-2.1zM210.6 15.9h2.1v8.2h-2.1zM213.9 14.7h2.1v10.5h-2.1zM217.3 13.8h2.1v12.4h-2.1zM220.6 10.3h2.1v19.3h-2.1zM223.9 7.6h2.1v24.7h-2.1zM227.3 9.1h2.1v21.8h-2.1zM230.6 6.0h2.1v28.0h-2.1zM233.9 10.5h2.1v19.0h-2.1zM237.3 3.4h2.1v33.2h-2.1zM240.6 3.7h2.1v32.6h-2.1zM243.9 0.4h2.1v39.1h-2.1zM247.3 3.1h2.1v33.7h-2.1zM250.6 9.3h2.1v21.4h-2.1zM253.9 9.8h2.1v20.5h-2.1zM257.3 9.4h2.1v21.2h-2.1zM260.6 14.6h2.1v10.8h-2.1zM263.9 13.8h2.1v12.4h-2.1zM267.3 16.0h2.1v8.0h-2.1zM270.6 17.0h2.1v6.1h-2.1zM273.9 16.9h2.1v6.1h-2.1zM277.3 12.2h2.1v15.6h-2.1zM280.6 12.7h2.1v14.7h-2.1zM283.9 9.4h2.1v21.1h-2.1zM287.3 6.5h2.1v27.0h-2.1zM290.6 1.8h2.1v36.3h-2.1zM293.9 11.3h2.1v17.4h-2.1zM297.3 11.1h2.1v17.7h-2.1zM300.6 13.7h2.1v12.5h-2.1zM303.9 15.5h2.1v8.9h-2.1zM307.3 17.5h2.1v5.0h-2.1zM310.6 17.8h2.1v4.4h-2.1zM313.9 17.9h2.1v4.2h-2.1zM317.3 17.2h2.1v5.6h-2.1zM320.6 16.6h2.1v6.7h-2.1zM323.9 14.4h2.1v11.1h-2.1zM327.3 12.8h2.1v14.4h-2.1zM330.6 14.7h2.1v10.6h-2.1zM333.9 13.6h2.1v12.8h-2.1zM337.3 12.2h2.1v15.6h-2.1zM340.6 11.1h2.1v17.9h-2.1zM343.9 7.9h2.1v24.2h-2.1zM347.3 5.8h2.1v28.3h-2.1zM350.6 8.2h2.1v23.6h-2.1zM353.9 10.5h2.1v19.0h-2.1zM357.3 6.1h2.1v27.8h-2.1zM360.6 6.8h2.1v26.3h-2.1zM363.9 5.5h2.1v29.0h-2.1zM367.3 3.0h2.1v34.0h-2.1zM370.6 6.7h2.1v26.6h-2.1zM373.9 9.5h2.1v21.0h-2.1zM377.3 10.3h2.1v19.4h-2.1zM380.6 11.5h2.1v17.0h-2.1zM383.9 15.5h2.1v9.0h-2.1zM387.3 13.6h2.1v12.8h-2.1zM390.6 15.2h2.1v9.6h-2.1zM393.9 16.0h2.1v8.0h-2.1zM397.3 17.0h2.1v6.1h-2.1z'/%3E%3C/svg%3E") center / 100% 90% no-repeat, rgba(255, 255, 255, 0.03); }
.tfy-app-lane .beats { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0 2px, transparent 2px 6.25%), rgba(255, 255, 255, 0.03); background-size: 100% 40%; background-position: 0 50%; background-repeat: repeat-x; }
.tfy-app-head { position: absolute; top: 0; bottom: var(--pad); left: calc(var(--pad) + 58px + (100% - 2 * var(--pad) - 58px) * var(--p, 0.3)); width: 2px; background: var(--coral); box-shadow: 0 0 12px var(--coral); }
.tfy-app-head::before { position: absolute; top: 0; left: -5px; content: ""; border-top: 8px solid var(--coral); border-right: 6px solid transparent; border-left: 6px solid transparent; }

/* ============================================================
   01 Video Memory scan
   ============================================================ */

.tfy-scan {
  --scan: 1;
  margin-top: clamp(44px, 5vw, 72px);
  padding: clamp(14px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.tfy-scan[data-ready] { --scan: 0; }
.tfy-scan-film { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: minmax(0, 1fr); gap: 6px; height: clamp(120px, 15vw, 210px); margin-left: 104px; }
.tfy-scan-film img { width: 100%; height: 100%; min-height: 0; object-fit: cover; object-position: 50% 20%; border-radius: 8px; }
.tfy-scan-beam {
  position: absolute;
  top: -8px;
  bottom: -999px;
  left: calc(var(--scan) * 100%);
  width: 2px;
  background: var(--coral);
  box-shadow: 0 0 18px 3px rgba(255, 90, 77, 0.7);
  opacity: var(--beam, 0);
  pointer-events: none;
}
.tfy-scan-beam::after { position: absolute; top: 0; right: 0; bottom: 0; width: 120px; content: ""; background: linear-gradient(90deg, transparent, rgba(255, 90, 77, 0.12)); }
.tfy-scan { position: relative; overflow: hidden; }
.tfy-scan-lanes { display: grid; gap: 7px; margin-top: 14px; }
.tfy-scan .ln { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.tfy-scan .ln > span { color: var(--soft); font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.tfy-scan .ln > em { padding: 2px 8px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.tfy-scan .g {
  position: relative;
  height: clamp(20px, 2.1vw, 28px);
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  clip-path: inset(0 calc((1 - var(--scan)) * 100%) 0 0 round 6px);
}
.tfy-scan .g > * { position: absolute; top: 0; bottom: 0; left: var(--x); width: var(--w); }
.g.scenes i { width: 2px; background: var(--white); box-shadow: 0 0 10px rgba(255, 255, 255, 0.6); }
.g.speech i { top: 22%; bottom: 22%; border-radius: 4px; background: var(--mint); }
.g.silence i { background: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.35) 0 2px, transparent 2px 6px); border-radius: 4px; }
.g.audio { background: repeating-linear-gradient(90deg, transparent 0 3px, #0c0f14 3px 5px), linear-gradient(90deg, #3ddc97, #3ddc97 55%, #febc2e 72%, #ff5a4d 88%, #3ddc97 94%); mask-image: linear-gradient(0deg, #000 30%, transparent 30%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M0 10 L0 6 L5 4 L10 7 L15 3 L20 5 L25 2 L30 6 L35 4 L40 8 L45 3 L50 5 L55 2 L60 4 L65 1 L70 3 L75 2 L80 6 L85 0 L90 4 L95 3 L100 5 L100 10Z'/%3E%3C/svg%3E"); mask-size: 100% 100%; mask-composite: add; }
.g.colour { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; background: none; }
.g.colour i { position: static; width: auto; background: var(--img) center / 400% 400%; filter: blur(3px) saturate(1.6); border-radius: 4px; }
.g.beats { background: radial-gradient(circle, var(--violet) 0 3px, transparent 3.5px) 0 50% / 4% 100% repeat-x, rgba(255, 255, 255, 0.03); }
.g.words b,
.g.tags b { top: 50%; bottom: auto; width: auto; padding: 1px 7px; border-radius: 5px; background: rgba(255, 255, 255, 0.1); color: var(--white); font-size: 11.5px; font-weight: 600; white-space: nowrap; transform: translateY(-50%); }
.g.tags b { background: rgba(121, 163, 255, 0.18); color: #cfe0ff; }

.tfy-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 24px; }
.tfy-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border: 1px solid var(--line); border-radius: 999px; color: var(--soft); font-size: 14px; font-weight: 600; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 10px currentColor; }
.dot.mint { background: var(--mint); }
.dot.blue { background: var(--blue-hot); }

/* ============================================================
   02 Search
   ============================================================ */

.tfy-search { display: flex; flex-direction: column; gap: 16px; max-width: 1040px; margin: clamp(44px, 5vw, 72px) auto 0; }
.tfy-search-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: clamp(58px, 6vw, 76px);
  padding: 0 clamp(18px, 2vw, 26px);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: 0 0 0 6px rgba(255, 90, 77, 0.06), 0 30px 70px rgba(0, 0, 0, 0.5);
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 500;
}
.tfy-search-bar svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; }
.tfy-search-text { white-space: nowrap; overflow: hidden; }
.tfy-search .type-caret { display: inline-block; width: 2px; height: 1.1em; margin-left: -10px; background: var(--accent); animation: tfy-blink 1s steps(2) infinite; }
@keyframes tfy-blink { 50% { opacity: 0; } }

.tfy-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tfy-chips span { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13.5px; font-weight: 600; transition: color 250ms, border-color 250ms, background 250ms; }
.tfy-chips span.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--white); }

.tfy-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 16px); margin-top: 8px; }
.tfy-results figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 9 / 15;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #000;
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out), border-color 300ms, filter 400ms, box-shadow 300ms;
}
.tfy-results img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.tfy-results figcaption { position: absolute; inset: auto 0 0 0; display: flex; flex-direction: column; gap: 2px; padding: 30px 12px 12px; background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent); font-size: 12.5px; line-height: 1.25; }
.tfy-results figcaption b { color: var(--coral); font-family: var(--font-display); font-size: 13px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.tfy-results figcaption span { color: var(--white); font-weight: 600; }
.tfy-results figure.dim { opacity: 0.2; transform: scale(0.95); filter: grayscale(1); }
.tfy-results figure.hit { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 0 0 1px var(--accent), 0 24px 50px rgba(255, 90, 77, 0.25); }
.tfy-search-note { margin: 0; color: var(--muted); font-size: 14px; text-align: center; }

.tfy-ask { display: flex; flex-direction: column; gap: 10px; max-width: 520px; margin: clamp(36px, 4vw, 56px) auto 0; }

/* ============================================================
   03 Edit with AI: the four steps
   ============================================================ */

.tfy-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: clamp(44px, 5vw, 72px);
}
.tfy-step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 210px;
  padding: clamp(18px, 2vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out), border-color 400ms;
}
.tfy-flow[data-ready] .tfy-step { opacity: 0.25; transform: translateY(10px); }
.tfy-flow[data-ready] .tfy-step.on { opacity: 1; transform: none; border-color: rgba(255, 255, 255, 0.22); }
.tfy-step-wide { grid-column: 1 / -1; min-height: 0; }
.tfy-step-n { color: var(--accent); font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.tfy-step .tfy-bub.you { align-self: flex-start; font-size: 16px; }
.tfy-plan { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.tfy-plan li { display: flex; gap: 10px; color: var(--soft); font-size: 15px; }
.tfy-plan li::before { content: "✓"; color: var(--mint); font-weight: 800; }
.tfy-approve {
  align-self: flex-start;
  padding: 16px 30px;
  border: 0;
  border-radius: 999px;
  background: var(--coral);
  color: #150605;
  font: 700 18px var(--font-display);
  box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.5), 0 16px 36px rgba(255, 90, 77, 0.3);
  cursor: default;
  transition: transform 200ms, box-shadow 400ms;
}
.tfy-step.pressed .tfy-approve { transform: scale(0.94); box-shadow: 0 0 0 14px rgba(255, 90, 77, 0), 0 6px 16px rgba(255, 90, 77, 0.3); }
.tfy-check { color: var(--mint); font-size: 13px; font-weight: 600; }
.tfy-check::before { content: "● "; font-size: 9px; vertical-align: 1px; }

.tfy-tl { position: relative; display: grid; gap: 8px; }
.tfy-tl-lane { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 10px; align-items: center; }
.tfy-tl-lane > span { color: var(--faint); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.tfy-tl-track { position: relative; height: clamp(34px, 4vw, 52px); border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.tfy-tl-cap .tfy-tl-track { height: 20px; }
.tfy-tl-track i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: var(--w);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 7px;
  background: var(--img, linear-gradient(180deg, #ff7a6f, var(--coral))) 0 30% / auto 260% repeat-x;
  transform-origin: left center;
  transition: transform 500ms var(--ease-out), opacity 400ms;
  transition-delay: calc(var(--i, 0) * 90ms);
}
.tfy-tl-cap i { border: 0; background: linear-gradient(180deg, #ff7a6f, var(--coral)); }
.tfy-flow[data-ready]:not([data-built]) .tfy-tl-track i { opacity: 0; transform: scaleX(0.2); }
.tfy-tl-wave { height: 30px; transition: opacity 600ms; }
.tfy-flow[data-ready]:not([data-built]) .tfy-tl-wave { opacity: 0.1; }
.tfy-tl-head { position: absolute; top: -6px; bottom: -6px; left: calc(44px + (100% - 44px) * var(--p, 0.38)); width: 2px; background: var(--white); box-shadow: 0 0 10px #fff; }

.tfy-works { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin-top: 28px; }
.tfy-works span { margin-right: 6px; color: var(--muted); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tfy-works b { padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: rgba(255, 255, 255, 0.04); font-family: var(--font-display); font-size: 15px; }

/* ============================================================
   04 House style: three phones
   ============================================================ */

.tfy-style { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.tfy-style .tfy-h2 { margin-top: clamp(34px, 4vw, 56px); }
.tfy-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: clamp(30px, 3vw, 44px) 0 0; padding: 0; list-style: none; }
.tfy-rules li { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.025); }
.tfy-rules b { font-family: var(--font-display); font-size: clamp(30px, 3.2vw, 44px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.tfy-rules span { color: var(--muted); font-size: 13.5px; line-height: 1.35; }

.tfy-phones { position: relative; display: flex; justify-content: center; align-items: center; height: clamp(440px, 46vw, 600px); }
.tfy-phone {
  position: relative;
  flex: none;
  width: clamp(190px, 19vw, 260px);
  aspect-ratio: 9 / 19;
  overflow: hidden;
  border: 7px solid #15181e;
  border-radius: 38px;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 40px 90px rgba(0, 0, 0, 0.7);
}
.tfy-phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tfy-phone-shade { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1), transparent 30%, rgba(0, 0, 0, 0.35)); }
.tfy-phone-main { z-index: 2; }
.tfy-phone-side { position: absolute; z-index: 1; width: clamp(160px, 15.5vw, 215px); opacity: 0.7; filter: saturate(0.85); }
.tfy-phone-side.l { left: -3%; transform: rotate(-9deg) translateY(24px); }
.tfy-phone-side.r { right: -3%; transform: rotate(9deg) translateY(24px); }
.tfy-caption {
  position: absolute;
  top: 67.3%;
  left: 50%;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 23px);
  font-weight: 700;
  white-space: nowrap;
  text-shadow: 0 3px 0 #000, 0 0 10px rgba(0, 0, 0, 0.9);
  text-transform: uppercase;
  transform: translate(-50%, -50%);
}
.tfy-phone-side .tfy-caption { font-size: clamp(14px, 1.4vw, 19px); }
.tfy-phone-side.l .tfy-caption { left: 40%; }
.tfy-phone-side.r .tfy-caption { left: 60%; }
.tfy-caption.pop { animation: tfy-pop 260ms var(--ease-out); }
@keyframes tfy-pop { from { transform: translate(-50%, -50%) scale(0.86); opacity: 0.4; } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.tfy-phone-bar { position: absolute; right: 16px; bottom: 16px; left: 16px; height: 3px; overflow: hidden; border-radius: 3px; background: rgba(255, 255, 255, 0.2); }
.tfy-phone-bar i { display: block; width: calc(var(--p, 0.5) * 100%); height: 100%; background: var(--white); }

/* ============================================================
   05 Editor bento
   ============================================================ */

.tfy-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(44px, 5vw, 72px); }
.tfy-bento article {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: clamp(16px, 1.6vw, 22px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: border-color 300ms, transform 400ms var(--ease-out);
}
.tfy-bento article:hover { border-color: rgba(255, 90, 77, 0.5); transform: translateY(-4px); }
.tfy-bento .wide { grid-column: span 2; }
.tfy-bento .full { grid-column: 1 / -1; min-height: 0; }
.tfy-bento .full .viz { min-height: 0; }
.tfy-bento .viz { position: relative; flex: 1; min-height: 140px; margin-bottom: 18px; }
.tfy-bento h3 { margin: 0 0 6px; font-family: var(--font-display); font-size: 21px; letter-spacing: -0.02em; }
.tfy-bento p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* trim: two clips with a rolling edit point */
.b-trim .viz i { position: absolute; top: 34%; height: 34%; border-radius: 8px; }
.b-trim .viz .c1 { left: 0; width: var(--roll, 52%); background: url(/assets/tuffify/still-03.jpg) 0 30% / auto 300% repeat-x; border: 1px solid rgba(255, 255, 255, 0.3); }
.b-trim .viz .c2 { right: 0; left: var(--roll, 52%); background: url(/assets/tuffify/still-04.jpg) 0 40% / auto 300% repeat-x; border: 1px solid rgba(255, 255, 255, 0.3); }
.b-trim .viz .h { top: 22%; left: var(--roll, 52%); width: 14px; height: 58%; margin-left: -7px; border: 2px solid var(--coral); border-radius: 4px; background: rgba(255, 90, 77, 0.25); box-shadow: 0 0 20px rgba(255, 90, 77, 0.6); }
.b-trim .viz::before { position: absolute; top: 14%; left: 0; right: 0; height: 8px; content: ""; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0 1px, transparent 1px 4%); }
.b-trim .viz { animation: tfy-roll 4s ease-in-out infinite; }
@property --roll { syntax: "<percentage>"; inherits: true; initial-value: 52%; }
@keyframes tfy-roll { 0%, 100% { --roll: 40%; } 50% { --roll: 64%; } }

/* colour: three wheels */
.b-colour .viz { display: flex; align-items: center; justify-content: center; gap: 8px; }
.b-colour .wheel { position: relative; width: 31%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ddd 0, transparent 70%), conic-gradient(from 90deg, #ff5a4d, #febc2e, #3ddc97, #3fd0ff, #4b72ff, #a78bfa, #ff5a4d); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--line-strong); }
.b-colour .wheel::after { position: absolute; top: 38%; left: 52%; width: 12%; height: 12%; content: ""; border: 2px solid #fff; border-radius: 50%; background: #000; }
.b-colour .wheel:nth-child(2)::after { top: 48%; left: 36%; }
.b-colour .wheel:nth-child(3)::after { top: 30%; left: 40%; }

/* audio: noisy wave becomes a clean one */
.b-audio .viz { display: grid; align-content: center; gap: 30px; }
.b-audio .viz i { height: 46px; border-radius: 6px; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.b-audio .noisy { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='rgba%28255%2C255%2C255%2C0.4%29' d='M0.6 10.1h2.8v19.8h-2.8zM5.0 9.7h2.8v20.5h-2.8zM9.5 11.6h2.8v16.8h-2.8zM13.9 7.2h2.8v25.5h-2.8zM18.4 11.8h2.8v16.4h-2.8zM22.8 11.7h2.8v16.5h-2.8zM27.3 10.4h2.8v19.2h-2.8zM31.7 10.8h2.8v18.4h-2.8zM36.2 9.1h2.8v21.7h-2.8zM40.6 11.9h2.8v16.3h-2.8zM45.0 12.3h2.8v15.3h-2.8zM49.5 11.1h2.8v17.8h-2.8zM53.9 11.6h2.8v16.8h-2.8zM58.4 9.9h2.8v20.1h-2.8zM62.8 12.2h2.8v15.6h-2.8zM67.3 8.0h2.8v24.0h-2.8zM71.7 9.8h2.8v20.4h-2.8zM76.2 11.8h2.8v16.3h-2.8zM80.6 11.6h2.8v16.7h-2.8zM85.0 11.5h2.8v16.9h-2.8zM89.5 11.6h2.8v16.8h-2.8zM93.9 12.1h2.8v15.8h-2.8zM98.4 10.7h2.8v18.6h-2.8zM102.8 10.2h2.8v19.7h-2.8zM107.3 11.1h2.8v17.7h-2.8zM111.7 10.8h2.8v18.4h-2.8zM116.2 12.0h2.8v16.0h-2.8zM120.6 11.9h2.8v16.2h-2.8zM125.0 10.5h2.8v19.0h-2.8zM129.5 10.7h2.8v18.6h-2.8zM133.9 6.4h2.8v27.1h-2.8zM138.4 11.1h2.8v17.8h-2.8zM142.8 12.2h2.8v15.7h-2.8zM147.3 3.8h2.8v32.4h-2.8zM151.7 7.4h2.8v25.2h-2.8zM156.2 11.0h2.8v18.1h-2.8zM160.6 7.2h2.8v25.6h-2.8zM165.0 12.1h2.8v15.8h-2.8zM169.5 7.7h2.8v24.7h-2.8zM173.9 4.2h2.8v31.6h-2.8zM178.4 5.8h2.8v28.5h-2.8zM182.8 7.6h2.8v24.9h-2.8zM187.3 10.8h2.8v18.5h-2.8zM191.7 10.4h2.8v19.1h-2.8zM196.2 11.6h2.8v16.8h-2.8zM200.6 9.5h2.8v20.9h-2.8zM205.0 10.8h2.8v18.5h-2.8zM209.5 10.4h2.8v19.1h-2.8zM213.9 11.7h2.8v16.7h-2.8zM218.4 11.9h2.8v16.2h-2.8zM222.8 10.8h2.8v18.4h-2.8zM227.3 10.3h2.8v19.5h-2.8zM231.7 10.2h2.8v19.5h-2.8zM236.2 9.9h2.8v20.1h-2.8zM240.6 9.4h2.8v21.3h-2.8zM245.0 9.1h2.8v21.8h-2.8zM249.5 11.2h2.8v17.7h-2.8zM253.9 9.2h2.8v21.6h-2.8zM258.4 9.9h2.8v20.2h-2.8zM262.8 12.1h2.8v15.7h-2.8zM267.3 12.1h2.8v15.8h-2.8zM271.7 9.9h2.8v20.3h-2.8zM276.2 10.0h2.8v20.1h-2.8zM280.6 5.8h2.8v28.4h-2.8zM285.0 3.3h2.8v33.4h-2.8zM289.5 8.2h2.8v23.6h-2.8zM293.9 3.9h2.8v32.1h-2.8zM298.4 4.0h2.8v32.0h-2.8zM302.8 4.9h2.8v30.3h-2.8zM307.3 9.8h2.8v20.5h-2.8zM311.7 11.0h2.8v18.1h-2.8zM316.2 11.1h2.8v17.8h-2.8zM320.6 11.4h2.8v17.1h-2.8zM325.0 11.6h2.8v16.9h-2.8zM329.5 10.4h2.8v19.2h-2.8zM333.9 10.0h2.8v20.0h-2.8zM338.4 10.5h2.8v19.0h-2.8zM342.8 11.4h2.8v17.2h-2.8zM347.3 11.1h2.8v17.8h-2.8zM351.7 10.7h2.8v18.6h-2.8zM356.2 12.1h2.8v15.7h-2.8zM360.6 10.5h2.8v19.1h-2.8zM365.0 9.2h2.8v21.6h-2.8zM369.5 9.1h2.8v21.9h-2.8zM373.9 8.6h2.8v22.8h-2.8zM378.4 9.6h2.8v20.9h-2.8zM382.8 11.2h2.8v17.7h-2.8zM387.3 6.5h2.8v27.1h-2.8zM391.7 9.6h2.8v20.7h-2.8zM396.2 5.3h2.8v29.3h-2.8z'/%3E%3C/svg%3E"); }
.b-audio .clean { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath fill='%233ddc97' d='M0.6 15.1h2.8v9.9h-2.8zM5.0 15.1h2.8v9.8h-2.8zM9.5 13.5h2.8v13.0h-2.8zM13.9 8.5h2.8v23.1h-2.8zM18.4 7.4h2.8v25.2h-2.8zM22.8 10.1h2.8v19.8h-2.8zM27.3 9.3h2.8v21.4h-2.8zM31.7 8.2h2.8v23.6h-2.8zM36.2 0.0h2.8v40.0h-2.8zM40.6 0.7h2.8v38.6h-2.8zM45.0 8.9h2.8v22.2h-2.8zM49.5 3.7h2.8v32.6h-2.8zM53.9 4.9h2.8v30.2h-2.8zM58.4 9.7h2.8v20.5h-2.8zM62.8 13.4h2.8v13.2h-2.8zM67.3 14.3h2.8v11.5h-2.8zM71.7 16.7h2.8v6.5h-2.8zM76.2 16.9h2.8v6.3h-2.8zM80.6 11.4h2.8v17.1h-2.8zM85.0 9.8h2.8v20.4h-2.8zM89.5 7.6h2.8v24.7h-2.8zM93.9 1.0h2.8v38.0h-2.8zM98.4 4.8h2.8v30.4h-2.8zM102.8 0.0h2.8v40.0h-2.8zM107.3 2.1h2.8v35.8h-2.8zM111.7 10.3h2.8v19.4h-2.8zM116.2 12.3h2.8v15.4h-2.8zM120.6 14.3h2.8v11.4h-2.8zM125.0 16.3h2.8v7.5h-2.8zM129.5 14.2h2.8v11.7h-2.8zM133.9 14.1h2.8v11.9h-2.8zM138.4 11.7h2.8v16.5h-2.8zM142.8 12.1h2.8v15.7h-2.8zM147.3 4.2h2.8v31.6h-2.8zM151.7 7.5h2.8v24.9h-2.8zM156.2 5.3h2.8v29.4h-2.8zM160.6 3.1h2.8v33.7h-2.8zM165.0 0.0h2.8v40.0h-2.8zM169.5 5.1h2.8v29.8h-2.8zM173.9 0.7h2.8v38.7h-2.8zM178.4 6.4h2.8v27.2h-2.8zM182.8 7.8h2.8v24.4h-2.8zM187.3 9.7h2.8v20.7h-2.8zM191.7 14.3h2.8v11.4h-2.8zM196.2 13.5h2.8v12.9h-2.8zM200.6 15.8h2.8v8.5h-2.8zM205.0 17.1h2.8v5.8h-2.8zM209.5 15.5h2.8v8.9h-2.8zM213.9 15.7h2.8v8.6h-2.8zM218.4 12.7h2.8v14.6h-2.8zM222.8 8.8h2.8v22.5h-2.8zM227.3 7.4h2.8v25.2h-2.8zM231.7 7.5h2.8v24.9h-2.8zM236.2 4.2h2.8v31.7h-2.8zM240.6 3.2h2.8v33.6h-2.8zM245.0 1.2h2.8v37.6h-2.8zM249.5 9.7h2.8v20.5h-2.8zM253.9 7.4h2.8v25.3h-2.8zM258.4 11.9h2.8v16.2h-2.8zM262.8 13.7h2.8v12.7h-2.8zM267.3 13.7h2.8v12.6h-2.8zM271.7 16.2h2.8v7.7h-2.8zM276.2 13.6h2.8v12.8h-2.8zM280.6 7.4h2.8v25.3h-2.8zM285.0 0.8h2.8v38.4h-2.8zM289.5 4.6h2.8v30.8h-2.8zM293.9 5.5h2.8v29.0h-2.8zM298.4 11.2h2.8v17.7h-2.8zM302.8 15.2h2.8v9.5h-2.8zM307.3 17.5h2.8v5.1h-2.8zM311.7 17.9h2.8v4.2h-2.8zM316.2 17.1h2.8v5.9h-2.8zM320.6 16.1h2.8v7.7h-2.8zM325.0 13.3h2.8v13.4h-2.8zM329.5 12.2h2.8v15.7h-2.8zM333.9 8.9h2.8v22.2h-2.8zM338.4 5.8h2.8v28.5h-2.8zM342.8 9.3h2.8v21.4h-2.8zM347.3 4.8h2.8v30.3h-2.8zM351.7 0.0h2.8v40.0h-2.8zM356.2 0.0h2.8v40.0h-2.8zM360.6 8.2h2.8v23.5h-2.8zM365.0 9.1h2.8v21.7h-2.8zM369.5 7.3h2.8v25.4h-2.8zM373.9 12.0h2.8v16.0h-2.8zM378.4 12.4h2.8v15.3h-2.8zM382.8 14.7h2.8v10.5h-2.8zM387.3 13.8h2.8v12.3h-2.8zM391.7 15.2h2.8v9.6h-2.8zM396.2 16.3h2.8v7.4h-2.8z'/%3E%3C/svg%3E"); }
.b-audio .viz::after { position: absolute; top: 50%; left: 50%; content: "↓"; color: var(--muted); font-size: 14px; transform: translate(-50%, -50%); }

/* effects: one still, four looks */
.b-fx .viz { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.b-fx .viz i { border-radius: 8px; background: var(--img) center 60% / cover; }
.b-fx .viz i:nth-child(1) { filter: none; }
.b-fx .viz i:nth-child(2) { filter: contrast(1.4) saturate(0) brightness(1.1); }
.b-fx .viz i:nth-child(3) { filter: blur(2.5px) brightness(1.4) saturate(1.5); }
.b-fx .viz i:nth-child(4) { filter: hue-rotate(160deg) saturate(2); }

/* masks: an ellipse cut-out on a still */
.b-mask .viz { overflow: hidden; border-radius: 12px; background: var(--img) center 30% / cover; }
.b-mask .viz::before { position: absolute; inset: 0; content: ""; background: rgba(0, 0, 0, 0.65); mask: radial-gradient(28% 36% at 60% 48%, transparent 98%, #000 100%); }
.b-mask .viz i { position: absolute; top: 12%; left: 32%; width: 56%; height: 72%; border: 2px dashed var(--coral); border-radius: 50%; }
.b-mask .viz i::before,
.b-mask .viz i::after { position: absolute; width: 9px; height: 9px; content: ""; border: 2px solid #fff; background: var(--coral); }
.b-mask .viz i::before { top: -5px; left: calc(50% - 5px); }
.b-mask .viz i::after { top: calc(50% - 5px); right: -6px; }

/* beat grid: clips snap to the beats */
.b-beat .viz .grid { position: absolute; inset: 20% 0; background: repeating-linear-gradient(90deg, var(--violet) 0 2px, transparent 2px 12.5%); opacity: 0.6; }
.b-beat .viz i { position: absolute; top: 40%; left: var(--x); width: var(--w); height: 30%; border: 1px solid #000; border-radius: 6px; background: linear-gradient(180deg, #c7b6ff, var(--violet)); }
.b-beat .viz i:nth-of-type(2n) { background: linear-gradient(180deg, #ff9b92, var(--coral)); }

/* export: format chips */
.b-export .viz { display: flex; flex-wrap: wrap; align-content: center; gap: 10px; }
.b-export .viz b { padding: 12px 18px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, 0.04); font-family: var(--font-display); font-size: clamp(15px, 1.4vw, 19px); }
.b-export .viz em { flex-basis: 100%; margin-top: 6px; color: var(--mint); font-size: 14px; font-style: normal; font-weight: 700; }

/* recovery: a stack of snapshots */
.b-safe .viz i { position: absolute; left: 14%; right: 14%; height: 44%; border: 1px solid var(--line-strong); border-radius: 10px; background: linear-gradient(135deg, #1a2030, #0d1016); }
.b-safe .viz i:nth-child(1) { top: 8%; transform: scale(0.82); opacity: 0.4; }
.b-safe .viz i:nth-child(2) { top: 20%; transform: scale(0.91); opacity: 0.7; }
.b-safe .viz i:nth-child(3) { top: 34%; border-color: var(--mint); box-shadow: 0 0 24px rgba(61, 220, 151, 0.2); }
.b-safe .viz i:nth-child(3)::after { position: absolute; top: 50%; left: 50%; content: "✓ restored"; color: var(--mint); font-size: 14px; font-weight: 700; transform: translate(-50%, -50%); }

/* ============================================================
   06 Privacy
   ============================================================ */

.tfy-locks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 16px); margin-top: clamp(44px, 5vw, 72px); }
.tfy-locks > div { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: clamp(26px, 3vw, 40px) 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: radial-gradient(80% 70% at 50% 0%, rgba(61, 220, 151, 0.08), transparent 70%), rgba(255, 255, 255, 0.02); text-align: center; }
.tfy-locks svg { width: clamp(52px, 5vw, 68px); height: auto; fill: none; stroke: var(--white); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tfy-locks svg .x { stroke: var(--coral); stroke-width: 3; }
.tfy-locks svg .ok { stroke: var(--mint); stroke-width: 3; }
.tfy-locks b { font-family: var(--font-display); font-size: clamp(18px, 1.7vw, 22px); letter-spacing: -0.01em; }

/* ============================================================
   Access
   ============================================================ */

.tfy-access { width: min(1240px, 100%); margin: clamp(130px, 15vw, 210px) auto 0; padding: 0 clamp(18px, 4vw, 56px) clamp(70px, 8vw, 110px); scroll-margin-top: 90px; }
.tfy-access-card {
  position: relative;
  overflow: hidden;
  padding: clamp(46px, 7vw, 100px) clamp(22px, 4vw, 56px);
  border: 1px solid var(--line-strong);
  border-radius: 30px;
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(255, 90, 77, 0.28), transparent 70%),
    radial-gradient(50% 60% at 50% 0%, rgba(75, 114, 255, 0.14), transparent 70%),
    #08090c;
  text-align: center;
}
.tfy-access-card::before { position: absolute; inset: 0; content: ""; background-image: radial-gradient(rgba(255, 255, 255, 0.5) 0.6px, transparent 0.8px); background-size: 7px 7px; mask-image: radial-gradient(60% 60% at 50% 100%, #000, transparent); opacity: 0.35; pointer-events: none; }
.tfy-access-card > * { position: relative; }
.tfy-access-card h2 { margin: 0; font-family: var(--font-display); font-size: clamp(38px, 5.6vw, 80px); font-weight: 700; line-height: 0.98; letter-spacing: -0.045em; text-wrap: balance; }
.tfy-access-card h2 em { font-style: normal; color: var(--coral); }
.tfy-access-card > p { margin: 18px 0 0; color: var(--soft); font-size: 18px; }
.tfy-soon { display: inline-block; margin-bottom: 22px; padding: 6px 14px; border: 1px dashed var(--coral); border-radius: 999px; color: var(--coral); font-family: var(--font-display); font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.tfy-access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.tfy-access-actions .primary-action { border: 0; font: inherit; font-family: var(--font-display); cursor: pointer; }
.tfy-waitlist-note { min-height: 1.4em; margin: 16px 0 0; color: var(--muted); font-size: 14px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .tfy-app-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tfy-app-agent { display: none; }
  .tfy-flow { grid-template-columns: 1fr; }
  .tfy-step { min-height: 0; }
  .tfy-style { grid-template-columns: 1fr; }
  .tfy-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tfy-locks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .tfy-hero { min-height: max(100svh, 640px); }
  .tfy-hero-inner { gap: 22px; padding-top: 104px; }
  .tfy-stage { width: 88vw; height: clamp(220px, 34vh, 300px); }
  .tfy-title { font-size: clamp(31px, 8.6vw, 40px); }
  .tfy-lede { margin: 16px 0 26px; font-size: 16px; }
  .tfy-actions { width: 100%; }
  .tfy-actions a { flex: 1 1 100%; justify-content: center; }
  .tfy-facts { gap: 6px 14px; font-size: 10.5px; }
  .tfy-scroll-cue { display: none; }

  .tfy-shot-wrap { margin-top: -30px; }
  .tfy-app-bar b { display: none; }
  .tfy-app-body { grid-template-columns: 1fr; height: 300px; }
  .tfy-app-bin { display: none; }
  .tfy-app-lane.mem,
  .tfy-app-lane:last-of-type { display: none; }

  .tfy-scan-film { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-left: 0; }
  .tfy-scan-film img:nth-child(n + 4) { display: none; }
  .tfy-scan .ln { grid-template-columns: 74px minmax(0, 1fr); }
  .tfy-scan .ln > em { display: none; }
  .tfy-scan .ln > span { font-size: 12px; }
  .g.words b:nth-child(2n):not(:last-child),
  .g.tags b:nth-child(n + 3) { display: none; }

  .tfy-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tfy-results figure:nth-child(n + 4) { display: none; }
  .tfy-results figcaption { padding: 24px 8px 8px; font-size: 11px; }

  .tfy-rules { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tfy-rules li { padding: 14px 10px; }
  .tfy-phones { height: 440px; }
  .tfy-phone { width: 200px; }
  .tfy-phone-side { width: 150px; }
  .tfy-phone-side.l { left: -6%; }
  .tfy-phone-side.r { right: -6%; }

  .tfy-bento { grid-template-columns: 1fr; }
  .tfy-bento .wide,
  .tfy-bento .full { grid-column: auto; }
  .tfy-bento article { min-height: 240px; }
  .tfy-locks > div { padding: 22px 10px; }
  .tfy-access-actions > * { flex: 1 1 100%; justify-content: center; }
}

/* ---------- reduced motion / paused ---------- */
@media (prefers-reduced-motion: reduce) {
  .tfy-scroll-cue i::after,
  .tfy-search .type-caret,
  .tfy-caption.pop,
  .b-trim .viz { animation: none; }
  .tfy-app { transform: none; animation: none; }
}
html[data-motion="off"] .tfy-scroll-cue i::after,
html[data-motion="off"] .tfy-search .type-caret,
html[data-motion="off"] .tfy-caption.pop,
html[data-motion="off"] .b-trim .viz { animation: none; }
html[data-motion="off"] .tfy-app { transform: none; animation: none; }
