/* The finder (finder.html): the design consultation on one screen. On top of configure.css (tokens, buttons, the drawn frames, .opts).
   After Vitra's Office Chair Finder, in our style: framed works scattered round the words, one card with the words, nothing else.
   Same rules: grey page, ink buttons, serif only for short statements, text left-aligned, photos whole. */
/* Headings in the finder only: Only Extended (Swiss Typefaces trial; it draws A–Z a–z 0–9 , - . ’ only, the rest falls through to the sans).
   Every heading here reads --f-serif, so the finder swaps that token; the rest of the site keeps TheW Clan. */
@font-face{ font-family:"FW Only"; font-weight:400; font-style:normal; font-display:swap;
  src:url("../assets/fonts/OnlyExtendedTRIAL-Regular.woff2") format("woff2");
  unicode-range:U+20, U+2C-2E, U+30-39, U+41-5A, U+61-7A, U+A0, U+2019; }
@font-face{ font-family:"FW Only"; font-weight:500; font-style:normal; font-display:swap;
  src:url("../assets/fonts/OnlyExtendedTRIAL-Medium.woff2") format("woff2");
  unicode-range:U+20, U+2C-2E, U+30-39, U+41-5A, U+61-7A, U+A0, U+2019; }
body.fd-body{ --f-serif:"FW Only", "Only Extended", "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --ls-display:-.02em; --ws-display:0; }
html{ height:100%; }
body.fd-body{ position:fixed; inset:0 0 auto 0; height:var(--vvh, 100%); min-height:0; overflow:hidden; overscroll-behavior:none; }
.fd{ position:relative; height:100%; }

/* ---- the bar: only the logo and the way out, on the field ---- */
.fd-bar{ position:absolute; z-index:20; inset:0 0 auto 0; display:flex; align-items:center; justify-content:space-between; height:var(--bar-h); padding:0 var(--pad);
  color:var(--ink); pointer-events:none; transition:color .6s var(--ease); }
.fd-bar > *{ pointer-events:auto; }
.fd-bar .logo{ display:block; width:clamp(92px, 7.4vw, 124px); }
.fd-bar .logo svg{ display:block; width:100%; height:auto; }
.fd-bar-r{ display:flex; align-items:center; gap:clamp(16px, 2vw, 32px); font-size:var(--fs-small); }
.fd-exit{ display:flex; align-items:center; gap:10px; }
.fd-exit svg{ width:13px; }
.fd-exit:hover, .fd-again:hover{ text-decoration:underline 1px; text-underline-offset:var(--ul-offset); }
body.dark .fd-bar{ color:var(--white); }

/* ---- the field: every piece is placed by js (--x / --y = its middle, --sc = its size against how it was built) ---- */
.fd-field{ position:absolute; z-index:0; inset:0; overflow:hidden; background:var(--wall, var(--bg)); transition:background .9s var(--ease); }
.fd-it{ position:absolute; left:0; top:0; display:block; line-height:0; z-index:var(--zi, 1);
  transform:translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(var(--sc, 1));
  transition:transform 1s var(--ease) var(--dl, 0s), opacity .6s var(--ease) var(--dl, 0s); will-change:transform; }
button.fd-it{ cursor:pointer; }
.fd-it.out{ opacity:0; pointer-events:none; transform:translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(calc(var(--sc, 1) * .55)); }
.fd-it:focus-visible{ outline:2px solid var(--ink); outline-offset:6px; }
/* a little life: each piece follows the pointer by its own depth, and bobs slowly */
.fd-par{ display:block; transform:translate(calc(var(--mx, 0) * var(--dz, 0) * -1px), calc(var(--my, 0) * var(--dz, 0) * -1px)); }
.fd-in{ display:block; animation:fd-float var(--fl, 7s) ease-in-out var(--fd, 0s) infinite alternate; transition:scale .35s var(--ease); }
@keyframes fd-float{ from{ transform:translateY(-5px); } to{ transform:translateY(5px); } }
@media (hover:hover){ button.fd-it:hover .fd-in{ scale:1.035; } }
.fd-work img{ display:block; box-shadow:-10px 14px 24px rgba(0,0,0,.18), -2px 3px 5px rgba(0,0,0,.12); }
/* the name under a frame: always at reading size, whatever the frame's size */
.fd-cap{ position:absolute; left:0; top:100%; padding-top:14px; white-space:nowrap; text-align:left; font-size:var(--fs-small); line-height:1.3; color:var(--ink);
  transform:scale(calc(1 / var(--sc, 1))); transform-origin:0 0; opacity:0; transition:opacity .4s var(--ease); pointer-events:none; }
.fd-cap .kicker{ display:block; margin-bottom:3px; }
.fd-cap b{ display:block; font-weight:400; }
.fd-cap span{ color:var(--ink-2); }
body[data-state="pick"] .fd-it.top .fd-cap{ opacity:1; }
@media (hover:hover){ button.fd-it:hover .fd-cap{ opacity:1; } }
body.dark .fd-cap{ color:var(--white); }
body.dark .fd-cap span, body.dark .fd-cap .kicker{ color:rgba(255,255,255,.72); }

/* ---- the reading: the piece whole, a green line runs down it, what Claire notices gets marked ---- */
.fd-scan{ position:absolute; z-index:4; left:var(--scan-x, 50%); top:var(--scan-y, 44%); line-height:0; transform:translate(-50%, -50%) scale(.94); opacity:0; visibility:hidden; transition-property:opacity, transform, visibility, left;
  box-shadow:-10px 14px 28px rgba(0,0,0,.18); transition:opacity .5s var(--ease), transform .7s var(--ease), visibility 0s .5s; }
body[data-state="look"] .fd-scan{ opacity:1; visibility:visible; transform:translate(-50%, -50%); transition:opacity .5s var(--ease), transform .7s var(--ease); }
.fd-scan-img{ display:block; max-width:min(52vw, 560px); max-height:var(--scan-h, 50svh); width:auto; height:auto; }
.fd-scanline{ position:absolute; left:-8px; right:-8px; top:0; height:2px; background:var(--accent); box-shadow:0 0 18px 4px rgba(41,130,110,.45); opacity:0; }
.fd-scan.scanning .fd-scanline{ animation:fd-scan 1.7s var(--ease) infinite; }
.fd-scan.scanning .fd-scan-img{ filter:saturate(.6) brightness(1.05); }
@keyframes fd-scan{ 0%{ top:0; opacity:0; } 8%{ opacity:1; } 92%{ opacity:1; } 100%{ top:100%; opacity:0; } }
.fd-boxes{ position:absolute; inset:0; }
.fd-box{ position:absolute; left:var(--bx); top:var(--by); width:var(--bw); height:var(--bh); border:1px solid var(--white); outline:1px solid rgba(0,0,0,.35);
  opacity:0; transform:scale(1.08); animation:fd-mark .45s var(--ease) both; animation-delay:calc(var(--i) * .3s); }
.fd-box b{ position:absolute; left:-1px; bottom:100%; margin-bottom:4px; padding:4px 8px; background:var(--fw-ink); color:var(--white); font-weight:400; font-size:var(--fs-micro);
  line-height:1; text-transform:uppercase; letter-spacing:var(--ls-caps); white-space:nowrap; }
@keyframes fd-mark{ to{ opacity:1; transform:none; } }
.fd-box{ transition:opacity .35s var(--ease), outline-color .3s; }
.fd-box.dim{ opacity:.22 !important; }
.fd-box.hot{ outline:2px solid var(--accent); }
/* the overview shows only the numbers (boxes can sit close); the spot being read shows its name */
.fd-box:not(.hot) b span{ display:none; }
.fd-loupe{ position:absolute; z-index:2; border-radius:50%; background-color:var(--white); background-repeat:no-repeat; box-shadow:0 0 0 4px var(--white), 0 0 0 5px var(--accent), -8px 14px 30px rgba(0,0,0,.25);
  opacity:0; transform:scale(.85); transition:opacity .35s var(--ease), transform .5s var(--ease), top .5s var(--ease), left .5s var(--ease); pointer-events:none; }
.fd-loupe.on{ opacity:1; transform:none; }

/* ---- the welcome: Claire's words in the middle of the field, every line on the block's left edge ---- */
.fd-who{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.fd-ava{ width:30px; height:auto; flex:none; box-shadow:-3px 4px 8px rgba(0,0,0,.14); }
.fd-hello{ position:absolute; z-index:5; left:50%; top:50%; width:min(620px, calc(100% - 48px)); display:flex; flex-direction:column; align-items:flex-start;
  transform:translate(-50%, -50%); transition:opacity .45s var(--ease), transform .6s var(--ease); }
/* centred, like Vitra's welcome (16 Nov 2026, the user asked: the one centred screen) */
.fd-hello{ align-items:center; text-align:center; }
.fd-hello h1{ max-width:9em; margin-bottom:32px; font-size:clamp(42px, min(4.4vw, 6vh), 72px); line-height:1.04; }
@media (min-width:1060px) and (max-height:800px){ .fd-hello .fd-who{ margin-bottom:10px; } .fd-hello-line{ margin-bottom:22px; } }
.fd-hello-line{ max-width:25em; margin-bottom:32px; color:var(--ink-2); font-size:var(--fs-lead); line-height:var(--lh-snug); letter-spacing:var(--ls-snug); }
body:not([data-state="intro"]) .fd-hello{ opacity:0; visibility:hidden; pointer-events:none; transform:translate(-50%, -56%); transition:opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .35s; }

/* ---- the card: the whole conversation. In the middle while it asks for the piece, then docked at the bottom ---- */
.fd-card{ position:absolute; z-index:8; left:50%; bottom:max(24px, env(safe-area-inset-bottom)); width:min(580px, calc(100% - 20px)); display:flex; flex-direction:column; gap:14px;
  padding:18px 22px 20px; background:var(--white); box-shadow:0 22px 60px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  transform:translateX(-50%); transition:bottom .85s var(--ease), transform .85s var(--ease), opacity .4s var(--ease); }
body[data-state="intro"] .fd-card{ opacity:0; visibility:hidden; pointer-events:none; }
@media (min-width:1060px){ body[data-state="intro"] .fd-card, body[data-state="ask"] .fd-card{ bottom:50%; transform:translate(-50%, 50%); } }
.fd-card-head{ display:flex; align-items:center; gap:10px; min-height:30px; }
/* one message: Claire's photo beside her words */
.fd-msg{ display:grid; grid-template-columns:34px minmax(0, 1fr); gap:14px; align-items:start; }
.fd-face{ display:block; position:relative; width:var(--face, 34px); aspect-ratio:1; overflow:hidden; border-radius:50%; background:var(--bg); box-shadow:-3px 4px 10px rgba(0,0,0,.14); }
/* zoomed in to her face: about 340px of the 848 × 1176 poster around it */
.fd-face img{ position:absolute; left:-101%; top:-79%; width:249%; max-width:none; height:auto; }
.fd-rough{ padding:3px 8px; border:1px solid var(--ink); font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); line-height:1.2; }
.fd-back{ display:grid; place-items:center; width:30px; height:30px; margin-left:-7px; }
.fd-back svg{ width:16px; }
.fd-words{ display:flex; flex-direction:column; gap:6px; }
.fd-say{ min-height:1.4em; color:var(--ink); }
.fd-q{ font-size:var(--fs-h3); line-height:var(--lh-snug); letter-spacing:var(--ls-snug); }
.fd-say:empty, .fd-q:empty{ display:none; }
.fd-upload{ display:flex; flex-wrap:wrap; align-items:center; gap:14px 24px; }
.fd-drop-hint{ flex-basis:100%; color:var(--ink-2); font-size:var(--fs-small); }
.fd-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.fd-chip{ display:inline-flex; align-items:center; gap:8px; min-height:40px; padding:0 15px; border:1px solid var(--ink); font-size:var(--fs-small); text-align:left; white-space:nowrap;
  transition:background .2s, color .2s; }
.fd-chip.on{ background:var(--fw-ink); color:var(--white); }
@media (hover:hover){ .fd-chip:hover{ background:var(--fw-ink); color:var(--white); } }
.fd-chip small{ font-size:inherit; opacity:.65; }
.fd-chip i{ width:16px; height:16px; flex:none; border-radius:50%; background:var(--c); box-shadow:inset 0 0 0 1px rgba(0,0,0,.25); }
.fd-chip.quiet{ border-color:rgba(0,0,0,.3); }
.fd-chip.ink{ background:var(--fw-ink); color:var(--white); }
@media (hover:hover){ .fd-chip.ink:hover{ background:var(--ink-accent); border-color:var(--ink-accent); } }
.fd-input{ display:flex; align-items:stretch; height:48px; border:1px solid rgba(0,0,0,.3); transition:border-color .2s; }
.fd-input:focus-within{ border-color:var(--ink); }
.fd-input input{ flex:1; min-width:0; padding:0 14px; border:0; outline:0; background:none; color:var(--ink); font:inherit; font-size:max(16px, var(--fs-body)); }
.fd-input input::placeholder{ color:var(--ink-2); opacity:1; }
.fd-mic, .fd-send{ display:grid; place-items:center; width:46px; flex:none; }
.fd-mic{ color:var(--ink-2); transition:color .2s; }
.fd-mic:hover{ color:var(--ink); }
.fd-mic svg{ width:20px; }
/* listening: the microphone turns green and breathes */
.fd-card.listening .fd-mic{ color:var(--white); background:var(--accent); animation:fd-breathe 1.4s ease-in-out infinite; }
.fd-card.listening .fd-input{ border-color:var(--accent); }
@keyframes fd-breathe{ 50%{ box-shadow:inset 0 0 0 6px rgba(255,255,255,.25); } }
.fd-send{ background:var(--fw-ink); color:var(--white); transition:background .2s; }
.fd-send:hover{ background:var(--ink-accent); }
.fd-send svg{ width:15px; }
.fd-mic-note{ margin-top:-4px; color:var(--ink-2); font-size:var(--fs-small); }
/* while Claire thinks about what was typed */
.fd-card.busy .fd-chips, .fd-card.busy .fd-input, .fd-card.busy .fd-ways{ pointer-events:none; }
/* while she thinks about what was typed: the answers make way (their room is kept, so nothing jumps), her dots show in the conversation */
.fd-card.thinking :is(.fd-chips, .fd-ways, .fd-input, .fd-own){ opacity:0; visibility:hidden; transition:opacity .25s var(--ease), visibility 0s .25s; }
/* one thing at a time: her words (stage a), then the question (b), then the answers (c) */
.fd-chip{ transition-delay:calc(var(--i, 0) * 45ms); }
.fd-card:is([data-stage="a"], [data-stage="b"]) :is(.fd-chip, .fd-ways, .fd-input, .fd-upload){ opacity:0; transform:translateY(8px); transition-delay:0s; }
/* typing stays folded away until asked for */
.fd-ways{ display:flex; gap:8px; width:100%; }
.fd-ways[hidden]{ display:none; }
.fd-type, .fd-speak{ display:inline-flex; align-items:center; justify-content:center; gap:9px; height:48px; border:1px solid rgba(0,0,0,.3); border-radius:999px;
  color:var(--ink); font-size:var(--fs-body); transition:border-color .2s, background .2s; }
/* "type": looks like the text field it opens: a blinking caret, then an example of what you could say */
.fd-type{ flex:0 0 calc(70% - 4px); min-width:0; justify-content:flex-start; gap:1px; padding:0 18px; background:var(--white); cursor:text; text-align:left; }
/* the examples sit whole, like a placeholder, and fade into one another */
.fd-caret{ flex:none; width:1.5px; height:1.25em; background:var(--ink); animation:fd-caret 1.05s steps(1) infinite; }
@keyframes fd-caret{ 50%{ opacity:0; } }
.fd-type-ex{ flex:0 1 auto; min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; color:var(--ink-2); transition:opacity .35s ease; }
.fd-type-ex.out{ opacity:0; }
.fd-type-ex:not(.plain)::before{ content:'e.g. '; }
@media (prefers-reduced-motion:reduce){ .fd-caret{ animation:none; } }
.fd-speak{ flex:1 1 0; min-width:0; }
.fd-speak svg{ width:19px; flex:none; }
@media (hover:hover){ .fd-type:hover, .fd-speak:hover{ border-color:var(--ink); background:rgba(0,0,0,.03); } }
.fd-bubble{ position:absolute; z-index:9; display:grid; grid-template-columns:28px minmax(0, 1fr); gap:12px; align-items:start; margin:0; padding:12px 16px 13px 12px;
  background:var(--white); box-shadow:0 14px 40px rgba(0,0,0,.16); font-size:var(--fs-body); line-height:var(--lh-snug);
  opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .45s var(--ease), transform .55s var(--ease); }
.fd-bubble .fd-ava{ width:28px; }
.fd-bubble.in{ opacity:1; transform:none; }
@keyframes fd-dots{ 0%{ content:""; } 25%{ content:"."; } 50%{ content:".."; } 75%{ content:"..."; } }

/* drop a photo anywhere */
.fd-dropzone{ position:absolute; z-index:40; inset:12px; display:grid; place-items:center; border:1px dashed var(--ink); background:rgba(251,255,192,.92); opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .2s; }
.fd-dropzone p{ font-family:var(--f-serif); font-size:var(--fs-h2); letter-spacing:var(--ls-display); word-spacing:var(--ws-display); }
body.dropping .fd-dropzone{ opacity:1; visibility:visible; }

/* ---- one frame, close: the piece on the left, everything about it on a white panel right ---- */
.fd-detail{ position:absolute; z-index:30; inset:0; display:grid; grid-template-columns:minmax(0, 1fr) clamp(380px, 35vw, 580px); background:var(--bg);
  opacity:0; visibility:hidden; transition:opacity .35s var(--ease), visibility 0s .35s; }
.fd-detail.open{ opacity:1; visibility:visible; transition:opacity .35s var(--ease); }
.fd-d-stage{ position:relative; overflow:hidden; background:var(--wall, var(--bg)); }
.fd-d-near, .fd-d-room{ position:absolute; inset:0; display:grid; place-items:center; transition:opacity .5s var(--ease); }
.fd-d-near .fr{ animation:rise .6s var(--ease) both; }
.fd-d-room{ background:var(--white); opacity:0; pointer-events:none; }
.fd-detail[data-view="wall"] .fd-d-room{ opacity:1; pointer-events:auto; }
.fd-detail[data-view="wall"] .fd-d-near{ opacity:0; }
/* the room fills the stage, zoomed in round the frame (about 2.2 m of wall in view; hang() sizes and moves .fd-d-room-in) */
.fd-detail .fd-d-room{ overflow:hidden; display:block; }
.fd-d-room-in{ position:absolute; left:0; top:0; width:100%; line-height:0; }
/* the room switch: the three rooms as small pills top left, the suggested one's reason under them */
.fd-d-rooms{ position:absolute; z-index:2; left:16px; top:16px; display:flex; flex-wrap:wrap; gap:6px; max-width:calc(100% - 32px); line-height:normal; }
.fd-d-rooms button{ padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.92); box-shadow:0 4px 14px rgba(0,0,0,.1); font-size:var(--fs-small); transition:background .2s, color .2s; }
.fd-d-rooms [aria-pressed="true"]{ background:var(--fw-ink); color:var(--white); }
.fd-d-rooms small{ order:9; padding:5px 12px; border-radius:999px; background:rgba(255,255,255,.8); color:var(--ink-2); font-size:var(--fs-micro); letter-spacing:var(--ls-caps); text-transform:uppercase; }
.fd-d-rooms small:empty{ display:none; }
.fd-d-room-in img{ display:block; width:100%; height:auto; }
.fd-d-hang{ position:absolute; transform:translateX(-50%); }
.fd-d-hang .fr{ box-shadow:-6px 9px 14px rgba(0,0,0,.18), -1px 2px 3px rgba(0,0,0,.12); }
/* the real corner: artFramers' studio photo of the moulding, whole (never cropped) */
.fd-d-edge{ position:absolute; inset:0; display:grid; place-items:center; margin:0; padding:clamp(24px, 4vw, 64px) clamp(24px, 4vw, 64px) 96px; background:var(--bg); opacity:0; pointer-events:none; transition:opacity .5s var(--ease); }
.fd-d-edge img{ max-width:100%; max-height:100%; width:auto; height:auto; object-fit:contain; box-shadow:0 10px 30px rgba(0,0,0,.08); }
.fd-d-edge figcaption{ position:absolute; left:clamp(24px, 4vw, 64px); top:clamp(24px, 3vw, 40px); color:var(--ink-2); }
.fd-detail[data-view="edge"] .fd-d-edge{ opacity:1; pointer-events:auto; }
.fd-detail[data-view="edge"] .fd-d-near{ opacity:0; }
.fd-d-cfg{ display:flex; flex-direction:column; gap:4px; margin-top:12px; }
.fd-d-cfg small{ color:var(--ink-2); font-size:var(--fs-small); }
.fd-d-views{ position:absolute; z-index:3; left:50%; bottom:28px; display:flex; background:var(--white); box-shadow:0 8px 24px rgba(0,0,0,.12); font-size:var(--fs-small); transform:translateX(-50%); }
.fd-d-views button{ padding:12px 20px; transition:background .2s, color .2s; }
.fd-d-views [aria-selected="true"]{ background:var(--fw-ink); color:var(--white); }
.fd-d-panel{ position:relative; overflow-y:auto; background:var(--white); padding:clamp(72px, 8vh, 110px) clamp(24px, 3vw, 56px) 48px; }
.fd-d-x{ position:absolute; top:22px; right:clamp(18px, 2.4vw, 44px); display:grid; place-items:center; width:40px; height:40px; }
.fd-d-x svg{ width:16px; }
.fd-d-body, .fd-d-done{ display:flex; flex-direction:column; align-items:flex-start; }
.fd-d-name, .fd-d-done h1{ margin-bottom:10px; font-size:clamp(40px, 3.6vw, 60px); line-height:1.04; }
.fd-d-sub{ margin-bottom:18px; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-2); }
.fd-d-line{ max-width:26em; margin-bottom:26px; font-size:var(--fs-lead); line-height:var(--lh-snug); letter-spacing:var(--ls-snug); }
.fd-d-picks{ display:flex; gap:10px; margin-bottom:28px; }
.fd-d-pick{ display:grid; place-items:center; width:76px; height:86px; border:1px solid rgba(0,0,0,.18); transition:border-color .2s; }
.fd-d-pick:hover{ border-color:var(--ink); }
.fd-d-pick[aria-checked="true"]{ border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.fd-d-pick .fr{ box-shadow:-3px 4px 6px rgba(0,0,0,.18); }
.fd-d-price{ display:flex; flex-direction:column; gap:2px; margin-bottom:18px; }
.fd-d-price b{ font-weight:400; font-size:var(--fs-h2); line-height:1.1; letter-spacing:var(--ls-snug); }
.fd-d-price span{ color:var(--ink-2); font-size:var(--fs-small); }
.fd-d-rows{ width:100%; margin:34px 0 0; border-top:var(--line); }
.fd-d-rows > div{ display:grid; grid-template-columns:5.5em minmax(0, 1fr); gap:6px 14px; padding:16px 0; border-bottom:1px solid rgba(0,0,0,.15); }
.fd-d-rows dt{ padding-top:.15em; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-2); }
.fd-d-rows dd{ margin:0; }
.fd-d-why{ margin-top:8px; color:var(--ink-2); font-size:var(--fs-small); }
.fd-d-note{ margin-top:22px; color:var(--ink-2); font-size:var(--fs-small); max-width:34em; }
.fd-d-done .kicker{ margin-bottom:14px; }
.fd-d-done .btn{ margin-bottom:10px; }
.fd-d-foot{ display:none; }

/* ---- the loader: a frame draws itself ---- */
.fd-loader{ position:fixed; z-index:50; inset:0; display:grid; place-items:center; background:var(--bg); transition:opacity .5s var(--ease), visibility 0s .5s; }
.fd-loader svg{ width:74px; overflow:visible; }
.fd-loader rect{ stroke:var(--fw-ink); stroke-width:1.6; stroke-dasharray:1; stroke-dashoffset:1; animation:fd-draw 1s var(--ease) .1s forwards; }
.fd-loader .in{ stroke-width:1; animation-delay:.35s; animation-duration:.8s; }
@keyframes fd-draw{ to{ stroke-dashoffset:0; } }
html.fd-ready .fd-loader{ opacity:0; visibility:hidden; }

/* ---- phones: the card is pinned to the bottom, one row of answers, the detail is one long page ---- */
@media (max-width:759px){
  .fd-card{ bottom:max(8px, env(safe-area-inset-bottom)); width:calc(100% - 16px); gap:12px; padding:14px 16px 16px; }
  .fd-chips{ flex-wrap:nowrap; margin:0 -16px; padding:0 16px; overflow-x:auto; overflow-y:hidden; scrollbar-width:none; }
  .fd-chips::-webkit-scrollbar{ display:none; }
  .fd-chip{ flex:none; }
  .fd-drop-hint{ display:none; }
  .fd-hello{ width:calc(100% - 40px); }
  .fd-hello h1{ font-size:clamp(42px, 11.6vw, 54px); line-height:1.06; }
  .fd-hello-line{ margin-bottom:24px; }
  .fd-scan-img{ max-width:74vw; }
  .fd-cap{ font-size:13px; padding-top:9px; }

  .fd-detail{ display:block; overflow-y:auto; -webkit-overflow-scrolling:touch; }
  .fd-d-stage{ overflow:visible; background:none; }
  .fd-d-near, .fd-d-room{ position:relative; inset:auto; }
  .fd-d-near{ height:66svh; background:var(--wall, var(--bg)); }
  .fd-d-room{ opacity:1 !important; pointer-events:auto; height:78svh; }
  .fd-d-edge{ position:relative; inset:auto; opacity:1 !important; padding:20px 0 0; }
  .fd-d-edge figcaption{ position:static; order:-1; justify-self:start; padding:0 20px 10px; }
  .fd-detail[data-view] .fd-d-near{ opacity:1; }
  .fd-d-views{ display:none; }
  .fd-d-panel{ overflow:visible; padding:36px 20px 150px; }
  .fd-d-x{ position:fixed; top:12px; right:12px; background:var(--white); box-shadow:0 4px 14px rgba(0,0,0,.14); z-index:4; }
  .fd-d-name, .fd-d-done h1{ font-size:42px; line-height:1.08; }
  .fd-d-body > [data-cart]{ display:none; }
  .fd-d-foot{ position:fixed; z-index:3; left:8px; right:8px; bottom:max(8px, env(safe-area-inset-bottom)); display:flex; flex-direction:column; gap:12px; padding:14px 16px 16px;
    background:var(--white); box-shadow:0 22px 60px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08); }
  .fd-d-foot p{ display:flex; justify-content:space-between; gap:12px; font-size:var(--fs-h3); letter-spacing:var(--ls-snug); }
  .fd-d-foot b{ font-weight:400; }
  .fd-d-foot div{ display:grid; grid-template-columns:1fr 1.25fr; gap:8px; }
  .fd-d-foot .btn{ padding:0 10px; }
  .fd-detail.done .fd-d-foot{ display:none; }
}

@media (prefers-reduced-motion: reduce){
  .fd-in{ animation:none; }
  .fd-it, .fd-card, .fd-hello, .fd-scan{ transition-duration:.01s; }
  .fd-loader{ display:none; }
}


/* ==== the card, again (16 Nov 2026, the user: simpler, bolder, clearer, and less generic) ====
   Like a mount: a white board with a thin line inset, the question big in the serif with Claire beside it,
   the answers as soft grey tiles, progress as a row of short ticks. Her other words float on the field */
.fd-card{ gap:16px; padding:22px 26px 24px; }
.fd-card::before{ content:""; position:absolute; inset:7px; border:1px solid rgba(0,0,0,.1); pointer-events:none; }
.fd-card-head{ min-height:24px; }
.fd-card-head:not(:has(> :not([hidden]))){ display:none; }
.fd-steps{ display:flex; gap:5px; margin:0 0 0 auto; padding:0; list-style:none; }
.fd-steps li{ width:22px; height:3px; background:rgba(0,0,0,.12); transition:background .4s var(--ease); }
.fd-steps li.done{ background:var(--fw-ink); }
.fd-steps li.now{ background:var(--accent); }
.fd-msg{ grid-template-columns:76px minmax(0, 1fr); gap:18px; }
.fd-msg > .fd-face{ --face:76px; margin-top:2px; }
.fd-q{ font-family:var(--f-serif); font-size:clamp(28px, 2.3vw, 38px); line-height:1.08; letter-spacing:var(--ls-display); word-spacing:var(--ws-display); text-wrap:balance; }
.fd-say{ margin-top:8px; color:var(--ink-2); }
.fd-q, .fd-say, .fd-chip, .fd-ways, .fd-input, .fd-upload, .fd-own{ transition:opacity .35s var(--ease), transform .45s var(--ease); }
.fd-card[data-stage="b"] :is(.fd-chip, .fd-ways, .fd-input, .fd-upload, .fd-own){ opacity:0; transform:translateY(8px); transition-delay:0s; }
.fd-chips{ gap:8px; }
.fd-chip{ min-height:48px; padding:0 18px; border:0; background:var(--bg); font-size:var(--fs-body); transition-property:opacity, transform, background, color; }
.fd-chip small{ margin-left:2px; color:var(--ink-2); opacity:1; }
.fd-chip.quiet{ background:none; box-shadow:inset 0 0 0 1px rgba(0,0,0,.18); }
.fd-chip.ink, .fd-chip.on{ background:var(--fw-ink); color:var(--white); }
.fd-chip.ink small, .fd-chip.on small{ color:rgba(255,255,255,.7); }
@media (hover:hover){ .fd-chip:hover{ background:var(--fw-ink); color:var(--white); } .fd-chip:hover small{ color:rgba(255,255,255,.7); } }
/* your own size */
.fd-own{ display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.fd-own-k{ width:100%; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-2); }
.fd-own input{ width:92px; height:48px; padding:0 12px; border:1px solid rgba(0,0,0,.25); background:var(--white); color:var(--ink); font:inherit; font-size:max(16px, var(--fs-body)); outline:0; }
.fd-own input:focus{ border-color:var(--ink); }
.fd-own-x, .fd-own-u{ color:var(--ink-2); }
.fd-own-go{ height:48px; padding:0 22px; background:var(--fw-ink); color:var(--white); font-size:var(--fs-small); transition:opacity .2s, background .2s; }
.fd-own-go:disabled{ opacity:.22; cursor:default; }

/* her words on the field */
.fd-bubble{ position:absolute; z-index:9; display:grid; grid-template-columns:30px minmax(0, 1fr); gap:12px; align-items:start; margin:0; padding:13px 18px 14px 13px;
  background:var(--white); box-shadow:0 14px 40px rgba(0,0,0,.16); font-size:var(--fs-lead); line-height:var(--lh-snug); letter-spacing:var(--ls-snug);
  opacity:0; transform:translateY(8px); pointer-events:none; transition:opacity .45s var(--ease), transform .55s var(--ease); }
.fd-bubble .fd-ava{ width:30px; }
.fd-bubble.in{ opacity:1; transform:none; }
.fd-card.busy ~ .fd-bubble span::after{ content:""; }

/* the reading: its facts on the left of the piece, its colours on the right, her notes in the loupe */
.fd-side{ position:absolute; top:0; margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:16px; width:min(200px, 15vw); opacity:0; transition:opacity .5s var(--ease); }
.fd-scan.read .fd-side{ opacity:1; }
.fd-side > *{ opacity:0; transform:translateY(6px); transition:opacity .5s var(--ease), transform .6s var(--ease); transition-delay:calc(var(--i, 0) * 120ms + .3s); }
.fd-scan.read .fd-side > *{ opacity:1; transform:none; }
.fd-side-l{ right:calc(100% + 32px); text-align:left; }
.fd-side-l dt{ font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-2); }
.fd-side-l dd{ margin:3px 0 0; font-size:var(--fs-body); line-height:1.3; }
.fd-side-r{ left:calc(100% + 32px); }
.fd-side-r li{ display:flex; align-items:center; gap:12px; font-size:var(--fs-body); line-height:1.2; }
.fd-side-r i{ width:34px; height:34px; flex:none; border-radius:50%; background:var(--c); box-shadow:inset 0 0 0 1px rgba(0,0,0,.15), -3px 4px 8px rgba(0,0,0,.12); }
.fd-check{ position:absolute; left:0; right:0; top:calc(100% + 12px); margin:0; padding:9px 12px; background:var(--fw-framing); font-size:var(--fs-small); line-height:1.3; }
.fd-lcap{ position:absolute; z-index:3; margin:0; padding:10px 13px 11px; background:var(--white); box-shadow:0 10px 28px rgba(0,0,0,.18); font-size:var(--fs-small); line-height:1.35;
  opacity:0; transform:translateY(6px); transition:opacity .35s var(--ease), transform .45s var(--ease), left .5s var(--ease), top .5s var(--ease); pointer-events:none; }
.fd-lcap b{ display:block; margin-bottom:3px; font-weight:400; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-accent); }
.fd-lcap.on{ opacity:1; transform:none; }
.fd-box{ cursor:pointer; pointer-events:auto; }
.fd-scan{ pointer-events:none; }
.fd-scan .fd-boxes{ pointer-events:auto; }

/* the floating works: tap the ones you like */
.fd-work{ cursor:pointer; transition:transform 1s var(--ease) var(--dl, 0s), opacity .6s var(--ease) var(--dl, 0s); }
.fd-work.dimmed{ opacity:.5; }
.fd-work.dimmed.liked{ opacity:.85; }
.fd-heart{ position:absolute; right:-10px; top:-10px; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--white);
  box-shadow:0 4px 12px rgba(0,0,0,.18); transform:scale(0); transform-origin:100% 0; transition:transform .35s var(--ease); }
.fd-heart svg{ width:15px; fill:none; stroke:var(--ink); stroke-width:1.4; }
.fd-work.liked .fd-heart{ transform:scale(calc(1 / var(--sc, 1))); background:var(--fw-ink); }
.fd-work.liked .fd-heart svg{ fill:var(--white); stroke:var(--white); }
@media (hover:hover){ body:is([data-state="ask"], [data-state="look"]) .fd-work:not(.liked):hover .fd-heart{ transform:scale(calc(1 / var(--sc, 1))); } }
.fd-work.liked img{ outline:2px solid var(--fw-ink); outline-offset:6px; }
/* the scattered works (Vitra-style): turned, no bobbing, a soft shadow straight down as if lying on the floor below */
.fd-work .fd-in{ animation:none; }
.fd-work img{ rotate:var(--rot, 0deg); box-shadow:0 18px 34px rgba(0,0,0,.16), 0 3px 8px rgba(0,0,0,.1); }
/* the layer the works lie on: turns round the middle of the screen as one piece (one turn in 2 min 51); phones and reduced motion: still */
.fd-ring{ position:absolute; inset:0; pointer-events:none; animation:fd-spin 450s linear infinite; }
.fd-ring-in{ animation-duration:700s; }   /* inner ring 700 s a turn, outer 450 s (the user's numbers) */
.fd-ring > .fd-it:not(.out){ pointer-events:auto; }
body:not([data-state="intro"]):not([data-state="ask"]) .fd-ring{ animation-play-state:paused; }
@keyframes fd-spin{ to{ rotate:360deg; } }
@media (max-width:1059px), (prefers-reduced-motion: reduce){ .fd-ring{ animation:none; } }
/* the ArtFramers wordmark, centred at the top like Vitra's */
.fd-af{ position:absolute; left:50%; top:50%; width:clamp(96px, 9vw, 150px); height:auto; transform:translate(-50%, -50%); }
.fd-hello-note{ margin-top:18px; color:var(--ink-2); font-size:var(--fs-small); }
.fd-hello-note .ul-btn{ font-size:inherit; color:var(--ink); }
}

/* the price under every frame, as it changes */
body[data-state="talk"] .fd-it.top .fd-cap{ opacity:1; }
.fd-price{ display:inline-block; margin-top:2px; padding:0 3px; margin-left:-3px; color:var(--ink-2); font-variant-numeric:tabular-nums; }
body.dark .fd-price{ color:rgba(255,255,255,.75); }

@media (max-width:1059px){
  .fd-side-l{ right:auto; left:0; top:calc(100% + 14px); width:auto; max-width:100%; flex-direction:row; flex-wrap:wrap; gap:4px 14px; }
  .fd-side-l dd{ font-size:var(--fs-small); }
  .fd-side-l dt{ font-size:10px; }
  .fd-side-r{ left:auto; right:0; top:calc(100% + 14px); width:auto; flex-direction:row; gap:6px; }
  .fd-side-r li{ font-size:0; gap:0; }
  .fd-side-r i{ width:22px; height:22px; }
  .fd-side-l div:nth-child(n+3){ display:none; }
}
@media (max-width:759px){
  .fd-card{ padding:16px 18px 18px; gap:12px; }
  .fd-card::before{ inset:5px; }
  .fd-msg{ grid-template-columns:minmax(0, 1fr); }
  .fd-msg > .fd-face{ display:none; }   /* her face is on her words above the card */
  .fd-q{ font-size:28px; line-height:1.1; }
  .fd-chip{ min-height:44px; padding:0 15px; font-size:var(--fs-small); }
  .fd-chips{ margin:0 -18px; padding:0 18px; }
  .fd-bubble{ font-size:var(--fs-body); padding:11px 14px 12px 11px; grid-template-columns:26px minmax(0, 1fr); gap:10px; }
  .fd-bubble .fd-ava{ width:26px; }
  .fd-own input{ width:84px; height:44px; }
  .fd-own-go{ height:44px; }
  .fd-steps li{ width:16px; }
}

/* ==== 16 Nov 2026, later: Claire's words stay and point at what they are about; the end leads to the checkout; the reading stands still ==== */
/* her note: framing yellow, her face in a circle breaking out of its corner, her name, a tail to the frame or the piece */
.fd-bubble{ display:block; padding:16px 20px 17px 62px; background:var(--fw-framing); color:var(--fw-ink); box-shadow:0 18px 44px rgba(0,0,0,.14), 0 2px 6px rgba(0,0,0,.06);
  font-size:var(--fs-lead); line-height:var(--lh-snug); letter-spacing:var(--ls-snug); opacity:0; transform:none; transition:left .6s var(--ease), top .6s var(--ease), opacity .4s var(--ease); }
.fd-bubble.in{ opacity:1; }
.fd-bubble .fd-ava{ position:absolute; left:-12px; top:-12px; width:58px; height:58px; object-fit:cover; object-position:50% 18%; border-radius:50%; border:3px solid var(--fw-framing); box-shadow:-3px 5px 12px rgba(0,0,0,.18); }
.fd-bubble p{ margin:0; }
.fd-bubble b{ display:block; margin-bottom:3px; font-weight:400; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:rgba(18,20,18,.6); }
.fd-tail{ position:absolute; left:var(--tx, 50%); bottom:100%; width:18px; height:10px; margin-left:-9px; background:var(--fw-framing); clip-path:polygon(50% 0, 100% 100%, 0 100%); display:none; }
.fd-bubble.tail .fd-tail{ display:block; }
.fd-bubble.down .fd-tail{ bottom:auto; top:100%; clip-path:polygon(0 0, 100% 0, 50% 100%); }
body.dark .fd-bubble{ box-shadow:0 18px 44px rgba(0,0,0,.35); }

/* the end: the price, Klarna, one ink button; changes underneath, quieter */
.fd-final{ display:flex; flex-direction:column; align-items:flex-start; gap:12px; padding-top:4px; }
.fd-final-price{ display:flex; flex-direction:column; gap:2px; margin:0; }
.fd-final-price b{ font-weight:400; font-size:var(--fs-h2); line-height:1.05; letter-spacing:var(--ls-snug); }
.fd-final-price span{ color:var(--ink-2); font-size:var(--fs-small); }
.fd-klarna{ display:flex; align-items:center; gap:10px; margin:0; font-size:var(--fs-small); }
.fd-klarna img{ width:52px; height:auto; }
.fd-final-go{ width:100%; height:56px; font-size:var(--fs-body); }
.fd-final-more{ display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin:4px 0 -4px; color:var(--ink-2); font-size:var(--fs-small); }
.fd-final-more .ul-btn{ font-size:var(--fs-small); color:var(--ink); }
.fd-card.final .fd-chip{ min-height:38px; padding:0 13px; font-size:var(--fs-small); }
.fd-card.final .fd-q{ font-size:clamp(26px, 2vw, 34px); }

/* the reading: marks stand still; a tap shows the note under its mark */
.fd-box{ padding:0; background:none; font:inherit; color:inherit; }
.fd-box.hot{ outline:2px solid var(--accent); }
.fd-box b{ pointer-events:none; }
.fd-lcap{ pointer-events:none; }

/* the checkout */
.fd-co-sum{ width:100%; margin:18px 0 0; border-top:var(--line); }
.fd-co-sum div{ display:grid; grid-template-columns:7em minmax(0, 1fr); gap:12px; padding:11px 0; border-bottom:1px solid rgba(0,0,0,.12); }
.fd-co-sum dt{ font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink-2); padding-top:.2em; }
.fd-co-sum dd{ margin:0; }
.fd-co-total{ display:flex; justify-content:space-between; align-items:baseline; width:100%; margin:16px 0 26px; }
.fd-co-total span{ color:var(--ink-2); font-size:var(--fs-small); }
.fd-co-total b{ font-weight:400; font-size:var(--fs-h2); letter-spacing:var(--ls-snug); }
.fd-co-pay{ width:100%; margin:0 0 18px; padding:0; border:0; display:flex; flex-direction:column; gap:8px; }
.fd-co-pay legend{ margin-bottom:10px; padding:0; }
.fd-co-pay label{ display:grid; grid-template-columns:20px minmax(0, 1fr) auto; align-items:center; gap:12px; padding:14px 16px; border:1px solid rgba(0,0,0,.18); cursor:pointer; transition:border-color .2s, background .2s; }
.fd-co-pay label:has(:checked){ border-color:var(--ink); box-shadow:inset 0 0 0 1px var(--ink); }
.fd-co-pay input{ width:18px; height:18px; margin:0; accent-color:var(--fw-ink); }
.fd-co-pay b{ display:block; font-weight:400; }
.fd-co-pay small{ display:block; color:var(--ink-2); font-size:var(--fs-small); }
.fd-co-pay img{ width:48px; height:auto; }
.fd-co-thanks{ display:flex; flex-direction:column; align-items:flex-start; gap:6px; }
.fd-co-thanks h1{ font-size:clamp(40px, 3.6vw, 60px); margin-bottom:8px; }

@media (max-width:759px){
  .fd-bubble{ padding:12px 14px 13px 52px; font-size:var(--fs-body); }
  .fd-bubble .fd-ava{ width:46px; height:46px; left:-6px; top:-10px; }
  .fd-final-price b{ font-size:30px; }
  .fd-card.final .fd-q{ font-size:24px; }
  .fd-final-go{ height:52px; }
}

/* the end leads to "Look closer" first; the checkout is in there (the user: a checkout button straight away was too pushy) */
.fd-d-body .fd-klarna{ margin:-6px 0 18px; }

/* ==== 16 Nov 2026 (last, the user's references: Gemini Live, soft gradient UIs): modern, clean, glowy ====
   The card is rounded with a thin colour edge and a soft glow behind it that turns slowly (stronger while Claire listens or thinks);
   chips, buttons, fields round; a slow wave of colour along the whole bottom of the screen. Colours = the menu colours, a little deeper
   so they show on the grey page (blue / pink / green / yellow). Light page stays. */
@property --fd-a{ syntax:"<angle>"; inherits:false; initial-value:0deg; }
@property --g1{ syntax:"<color>"; inherits:true; initial-value:#E9DFCF; }
@property --g2{ syntax:"<color>"; inherits:true; initial-value:#F4EDE2; }
@property --g3{ syntax:"<color>"; inherits:true; initial-value:#DED3C1; }
@property --g4{ syntax:"<color>"; inherits:true; initial-value:#F7F2EA; }
/* the colours: warm white until the picture is read, then the picture's own (js glowFrom sets --g1–g4 on body), fading across */
.fd-body{ transition:--g1 1.6s var(--ease), --g2 1.6s var(--ease), --g3 1.6s var(--ease), --g4 1.6s var(--ease);
  --fd-ring:conic-gradient(from var(--fd-a), var(--g1), var(--g2), var(--g4), var(--g3), var(--g1)); }

.fd-card{ border-radius:28px; background:none; box-shadow:none; }
.fd-card::before{ content:""; position:absolute; inset:0; z-index:-1; border-radius:inherit; border:1.5px solid transparent;
  background:linear-gradient(rgba(255,255,255,.94), rgba(255,255,255,.94)) padding-box, var(--fd-ring) border-box;
  -webkit-backdrop-filter:blur(18px); backdrop-filter:blur(18px); box-shadow:0 20px 50px rgba(20,30,60,.10); animation:fd-turn 9s linear infinite; }
.fd-card::after{ content:""; position:absolute; inset:-6px; z-index:-2; border-radius:34px; background:var(--fd-ring); filter:blur(28px); opacity:.8;
  animation:fd-turn 9s linear infinite; transition:opacity .5s var(--ease), inset .5s var(--ease); pointer-events:none; }
.fd-card.listening::after, .fd-card.busy::after{ opacity:.9; inset:-10px; animation-duration:3s; }
.fd-card.listening::before, .fd-card.busy::before{ animation-duration:3s; }
@keyframes fd-turn{ to{ --fd-a:360deg; } }
@media (max-width:759px){ .fd-card{ border-radius:24px; } .fd-card::after{ border-radius:30px; filter:blur(20px); } }

/* round controls, like the references */
.fd-body .btn, .fd-chip, .fd-input, .fd-send, .fd-mic, .fd-own input, .fd-d-views button, .fd-d-views{ border-radius:999px; }
.fd-input{ overflow:hidden; background:rgba(0,0,0,.035); border-color:transparent; }
.fd-input:focus-within{ border-color:transparent; box-shadow:0 0 0 1.5px var(--g1), 0 0 18px rgba(140,203,245,.45); }
.fd-chip{ background:rgba(0,0,0,.045); }
.fd-chip.quiet{ background:none; }
.fd-co-pay label{ border-radius:16px; }
.fd-d-pick{ border-radius:14px; }

/* Claire's note is removed for now (16 Nov 2026, the user): only the card speaks */
.fd-bubble{ display:none !important; }

/* the wave along the bottom: three soft blobs of colour drifting side to side, faded upwards; behind the card, over the field */
.fd-glow{ position:absolute; z-index:1; left:0; right:0; bottom:0; height:min(38vh, 360px); overflow:hidden; pointer-events:none;
  -webkit-mask:linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%); mask:linear-gradient(to top, #000 0%, rgba(0,0,0,.75) 35%, transparent 100%);
  opacity:1; transition:opacity .8s var(--ease), height .8s var(--ease); }
.fd-glow i{ position:absolute; bottom:-40%; width:70vw; height:100%; border-radius:50%; opacity:1; will-change:transform; }
.fd-glow i:nth-child(1){ left:-15vw; background:radial-gradient(closest-side, var(--g1), transparent); animation:fd-wave1 14s ease-in-out infinite alternate; }
.fd-glow i:nth-child(2){ left:20vw; background:radial-gradient(closest-side, var(--g2), transparent); animation:fd-wave2 17s ease-in-out infinite alternate; }
.fd-glow i:nth-child(3){ left:50vw; background:radial-gradient(closest-side, var(--g3), transparent); animation:fd-wave3 12s ease-in-out infinite alternate; }
.fd-glow i:nth-child(4){ left:35vw; width:50vw; background:radial-gradient(closest-side, var(--g4), transparent); opacity:.6; animation:fd-wave2 20s ease-in-out -6s infinite alternate-reverse; }
@keyframes fd-wave1{ from{ transform:translate(0, 8%) scaleY(.9); } to{ transform:translate(18vw, -10%) scaleY(1.15); } }
@keyframes fd-wave2{ from{ transform:translate(0, -6%) scaleY(1.1); } to{ transform:translate(-16vw, 10%) scaleY(.85); } }
@keyframes fd-wave3{ from{ transform:translate(0, 4%) scaleY(1); } to{ transform:translate(-22vw, -12%) scaleY(1.2); } }
/* it rises a little while Claire listens or thinks */
body:has(.fd-card.listening, .fd-card.busy) .fd-glow{ opacity:1; height:min(46vh, 440px); }
body.dark .fd-glow{ opacity:.55; }
.fd-detail.open ~ .fd-glow, body:has(.fd-detail.open) .fd-glow{ opacity:0; }

@media (prefers-reduced-motion: reduce){ .fd-card::before, .fd-card::after, .fd-glow i{ animation:none; } }

/* ==== 16 Nov 2026 (later): the reading, less crowded. The piece carries only numbered marks; what it is, one grey facts line
   and its colours sit in the card; a tapped mark's note is a plain caption under the piece (no box) ==== */
.fd-side, .fd-check{ display:none !important; }
.fd-box{ border:0; outline:0; background:none; }
.fd-box b{ left:50%; top:50%; bottom:auto; margin:0; width:26px; height:26px; padding:0; display:grid; place-items:center; transform:translate(-50%, -50%);
  border-radius:50%; background:rgba(255,255,255,.92); color:var(--fw-ink); font-size:12px; letter-spacing:0; box-shadow:0 0 0 4px rgba(255,255,255,.35), 0 4px 12px rgba(0,0,0,.2);
  transition:background .25s, color .25s, box-shadow .25s; }
.fd-box.hot{ outline:0; }
.fd-box.hot b, .fd-box:hover b{ background:var(--fw-ink); color:var(--white); box-shadow:0 0 0 5px rgba(255,255,255,.5), 0 4px 12px rgba(0,0,0,.25); }
.fd-lcap{ background:none; box-shadow:none; padding:0; font-size:var(--fs-small); line-height:1.4; color:var(--ink-2); text-align:left; }
.fd-lcap b{ color:var(--ink); }
.fd-dots{ display:flex; flex-wrap:wrap; gap:6px 14px; margin:12px 0 0; padding:0; list-style:none; color:var(--ink-2); font-size:var(--fs-small); }
.fd-dots[hidden]{ display:none; }
.fd-dots li{ display:flex; align-items:center; gap:7px; }
.fd-dots i{ width:16px; height:16px; border-radius:50%; background:var(--c); box-shadow:inset 0 0 0 1px rgba(0,0,0,.15); }
@media (max-width:759px){ .fd-dots li{ font-size:0; gap:0; } .fd-dots i{ width:20px; height:20px; } .fd-dots{ gap:6px; margin-top:10px; } }
/* before a reading the bottom wave is only a breath of warm light; with the picture's colours it comes up */
.fd-glow{ opacity:.55; }
body.glow-on .fd-glow{ opacity:1; }

/* 16 Nov 2026 (later, the user: "the glow is a bit too much"): toned down. The card's halo and the bottom wave are a hint of colour, not a light show */
.fd-card::after{ opacity:.32; inset:-2px; filter:blur(22px); }
.fd-card.listening::after, .fd-card.busy::after{ opacity:.55; inset:-6px; }
.fd-glow{ height:min(26vh, 240px); opacity:.3; }
body.glow-on .fd-glow{ opacity:.45; }
body:has(.fd-card.listening, .fd-card.busy) .fd-glow{ opacity:.7; height:min(34vh, 320px); }
/* the shortlist while the questions run: the best match says so, every name always shows (no hover needed) */
body[data-state="talk"] .fd-it:not(.out) .fd-cap{ opacity:1; }

/* ==== 16 Nov 2026 (later): six things back from the old consultation, so it feels decided by a framer ====
   the avoid answers with a real corner each; this or that (two frames side by side); step back (the wall, to scale);
   the size check from the file's pixels (grey line + "may look soft"); Claire's credentials while she reads; the signed verdict + why rows */
.fd-cn{ position:relative; display:inline-block; width:30px; height:30px; flex:none; margin-left:-4px; }
.fd-cn .cn{ left:0; top:0; filter:drop-shadow(-2px 3px 3px rgba(0,0,0,.2)); }
.fd-chip-cn.on .fd-cn{ opacity:.45; }
.fd-chip-cn.on{ text-decoration:line-through; text-decoration-thickness:1px; }

/* this or that: both names always show, the one hovered lifts */
.fd-duel .fd-cap{ opacity:1; }
.fd-duel .fd-cap span{ display:block; }

/* step back: up close on their wall colour, then the studio wall fades in round it */
.fd-sb{ position:absolute; z-index:24; left:0; right:0; pointer-events:none; opacity:0; transition:opacity .5s var(--ease); }
.fd-sb.on{ opacity:1; }
.fd-sb-far{ position:absolute; line-height:0; opacity:0; transform:scale(1.25); transition:opacity 1.2s var(--ease) .25s, transform 1.6s cubic-bezier(.65,0,.2,1); }
.fd-sb-far img{ display:block; width:100%; height:100%; border-radius:4px; }
.fd-sb-hang{ position:absolute; transform:translateX(-50%); visibility:hidden; }
.fd-sb-near{ position:absolute; inset:0; display:grid; place-items:center; }
.fd-sb-fr{ transition:transform 1.6s cubic-bezier(.65,0,.2,1); line-height:0; }
.fd-sb-fr .fr{ box-shadow:-10px 14px 24px rgba(0,0,0,.2); transition:box-shadow 1.6s; }
.fd-sb.back .fd-sb-far{ opacity:1; transform:none; }
.fd-sb.back .fd-sb-fr .fr{ box-shadow:-3px 5px 8px rgba(0,0,0,.18); }
.fd-sb-dist{ position:absolute; left:50%; top:4px; transform:translateX(-50%); margin:0; padding:6px 12px; border-radius:999px; background:var(--fw-ink); color:var(--white);
  font-size:var(--fs-micro); line-height:1.2; letter-spacing:var(--ls-caps); text-transform:uppercase; font-variant-numeric:tabular-nums; }
@media (prefers-reduced-motion: reduce){ .fd-sb-far, .fd-sb-fr, .fd-sb-fr .fr{ transition:none; } }

/* the verdict, signed, and the four plain rows */
.fd-verdict{ margin:0; padding:0 0 0 14px; border-left:2px solid var(--fw-framing); }
.fd-verdict p{ margin:0; font-size:var(--fs-body); line-height:1.45; color:var(--ink); }
.fd-verdict cite{ display:block; margin-top:4px; font-style:normal; font-size:var(--fs-small); color:var(--ink-2); }
.fd-why{ width:100%; border-top:1px solid rgba(0,0,0,.12); }
.fd-why summary{ display:flex; align-items:center; justify-content:space-between; padding:12px 0 2px; cursor:pointer; list-style:none; font-size:var(--fs-small); color:var(--ink); }
.fd-why summary::-webkit-details-marker{ display:none; }
.fd-why summary::after{ content:"+"; font-size:18px; line-height:1; color:var(--ink-2); }
.fd-why[open] summary::after{ content:"−"; }
.fd-why ul{ margin:8px 0 0; padding:0; list-style:none; }
.fd-why li{ display:grid; grid-template-columns:4.5em minmax(0, 1fr); gap:10px; padding:7px 0; border-bottom:1px solid rgba(0,0,0,.07); font-size:var(--fs-small); line-height:1.4; color:var(--ink-2); }
.fd-why li:last-child{ border-bottom:0; }
.fd-why b{ font-weight:400; color:var(--ink); }
.fd-why-k{ font-size:var(--fs-micro); letter-spacing:var(--ls-caps); text-transform:uppercase; color:var(--ink-2); padding-top:2px; }

/* the corner round: the piece alone, two corners of one frame laid on it (as at the shop's bench); kept ones collect underneath */
.fd-bench{ position:absolute; z-index:24; left:0; right:0; opacity:0; pointer-events:none; transition:opacity .45s var(--ease); touch-action:pan-y; }
.fd-bench.on{ opacity:1; pointer-events:auto; cursor:grab; }
.fd-bench.on:active{ cursor:grabbing; }
.fd-bench-piece{ position:absolute; display:block; line-height:0; box-shadow:-8px 12px 22px rgba(0,0,0,.18); transition:transform .25s var(--ease), box-shadow .25s; user-select:none; -webkit-user-select:none; }
.fd-bench-piece img{ width:100%; height:100%; object-fit:contain; background:var(--white); pointer-events:none; -webkit-user-drag:none; }
.fd-bench[data-lean="keep"] .fd-bench-piece{ box-shadow:0 0 0 3px var(--accent), -8px 12px 22px rgba(0,0,0,.18); }
.fd-bench[data-lean="drop"] .fd-bench-piece{ box-shadow:0 0 0 3px rgba(0,0,0,.25), -8px 12px 22px rgba(0,0,0,.18); }
.fd-bench .cn.in{ animation:fd-lay .45s var(--ease) both; }
.fd-bench .cn.br.in{ animation-name:fd-lay-br; animation-delay:.08s; }
@keyframes fd-lay{ from{ opacity:0; transform:translate(-18px, -18px); } }
@keyframes fd-lay-br{ from{ opacity:0; transform:rotate(180deg) translate(-18px, -18px); } }
.fd-kept{ position:absolute; display:flex; align-items:center; gap:8px; min-height:30px; }
.fd-kept .kicker{ margin-right:4px; }
.fd-kept .fd-cn{ margin:0; animation:fd-rise .4s var(--ease) both; }
@keyframes fd-rise{ from{ opacity:0; transform:translateY(6px); } }
body.dark .fd-kept .kicker{ color:rgba(255,255,255,.75); }
@media (prefers-reduced-motion: reduce){ .fd-bench .cn.in, .fd-kept .fd-cn{ animation:none; } }
/* picking moves only the corners (the piece stays on the bench); a short swipe glides them back */
.fd-bench-piece{ transition:box-shadow .25s; }
.fd-bench .cn{ transition:translate .22s var(--ease), opacity .22s; }
.fd-bench.drag .cn{ transition:none; }
/* the swipe moves the piece again (as in the old demo), springing back on release; picking lifts only the corners off, diagonally */
.fd-bench-piece{ transition:transform .25s var(--ease), box-shadow .25s; }
.fd-bench.drag .fd-bench-piece{ transition:box-shadow .25s; }

/* 18 Nov 2026 (the user: the tall choice card left the three frames a thin strip at the top): on desktop Claire's choice stands on the right,
   the frames get the field left of it (finder.js areas(), side()) */
@media (min-width:1060px){
  .fd-card.final{ left:auto; right:24px; transform:none; width:min(460px, 32vw); }
}
/* 18 Nov 2026 (the user: too much to read): the choice card says only the choice, the price and Look closer; Claire's reason is in
   "Why I chose this" (closed), the quote and the "Or change something" label are gone, typing is hidden on phones */
.fd-card.final .fd-verdict, .fd-card.final .fd-final-more{ display:none; }
@media (max-width:759px){ .fd-card.final .fd-ways{ display:none; } }

/* ==== 18 Nov 2026 (the user: make it look like the answers decide the frames; then: no gliding aside, only fades)
   frames set aside fade out where they stand; the best match and the one it replaces swap by a fade; every frame in the
   shortlist ticks its reasons; the order slip beside the card says what Claire would make so far and what the last answer changed;
   the count in the card opens the list of frames set aside ==== */
.fd-frame.out{ transform:translate(calc(var(--x, 50vw) - 50%), calc(var(--y, 50vh) - 50%)) scale(var(--sc, 1)); }
.fd-frame .fd-in{ transition:scale .35s var(--ease), filter .5s var(--ease), opacity .5s var(--ease); }
.fd-frame.doomed .fd-in{ filter:grayscale(1); opacity:.4; }   /* ticked on the avoid card, not yet Done */
.fd-frame.ghost .fd-in{ filter:grayscale(1) contrast(.85); opacity:.45; }   /* "Other frames" at the end: the ones set aside, grey */
.fd-cap .fd-tick{ display:block; margin-top:3px; font-style:normal; white-space:normal; width:max-content; max-width:26ch; color:var(--ink-2); padding-left:16px; text-indent:-16px; }
.fd-cap .fd-tick::before{ content:"✓"; display:inline-block; width:16px; text-indent:0; color:var(--ink-accent); }
.fd-cap .kicker.new{ color:var(--ink); padding:1px 4px; margin-left:-4px; width:max-content; }
body.dark .fd-cap .fd-tick{ color:rgba(255,255,255,.72); }
body.dark .fd-cap .fd-tick::before{ color:var(--white); }

/* the button in the card that opens the slip: a small outlined pill; its dot turns yellow when an answer changed something */
.fd-slip-btn{ display:inline-flex; align-items:center; gap:7px; margin-left:0; padding:5px 12px 5px 10px; border:1px solid rgba(0,0,0,.14); border-radius:999px; background:none;
  font:inherit; font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); color:var(--ink); white-space:nowrap; cursor:pointer; transition:border-color .3s var(--ease), background .3s var(--ease); }
.fd-slip-btn[hidden]{ display:none; }
.fd-slip-btn:hover, .fd-slip-btn[aria-expanded="true"]{ border-color:var(--ink); }
.fd-slip-dot{ width:7px; height:7px; border-radius:50%; background:rgba(0,0,0,.2); transition:background .3s var(--ease); }
.fd-slip-btn.new .fd-slip-dot{ background:var(--fw-framing); box-shadow:0 0 0 1px rgba(0,0,0,.25); }
.fd-slip-btn:not([hidden]) + .fd-steps{ margin-left:auto; padding-left:12px; }

/* the slip: a white workshop ticket over the field, above its button */
.fd-slip{ position:absolute; z-index:40; max-height:min(70vh, 620px); overflow-y:auto; padding:18px 20px 10px; background:var(--white); border-radius:16px;
  box-shadow:0 12px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); }
.fd-slip[hidden]{ display:none; }
.fd-slip-head{ margin:0 0 10px; padding-bottom:10px; border-bottom:1px solid var(--ink); color:var(--ink); }
.fd-slip dl{ margin:0; }
.fd-slip dl > div{ display:grid; grid-template-columns:62px 1fr; gap:10px; padding:9px 6px; margin:0 -6px; border-bottom:1px solid rgba(0,0,0,.1); }
.fd-slip dl > div:last-child{ border-bottom:0; }
.fd-slip dt{ padding-top:2px; }
.fd-slip dd{ margin:0; font-size:var(--fs-small); line-height:1.35; }
.fd-slip dd b{ display:block; font-weight:400; color:var(--ink); }
.fd-slip dd small, .fd-slip dd em{ display:block; margin-top:2px; font-size:13px; font-style:normal; color:var(--ink-2); }
.fd-slip dd s{ color:var(--ink-2); text-decoration-thickness:1px; }
.fd-slip .chg{ background:color-mix(in srgb, var(--fw-framing) 70%, transparent); }
.fd-slip .chg em{ color:var(--ink); }
/* the frames set aside, folded under the slip */
.fd-slip-outs{ margin-top:6px; border-top:1px solid var(--ink); }
.fd-slip-outs summary{ padding:12px 0 8px; cursor:pointer; list-style:none; color:var(--ink); }
.fd-slip-outs summary::-webkit-details-marker{ display:none; }
.fd-slip-outs summary::after{ content:" +"; }
.fd-slip-outs[open] summary::after{ content:" −"; }
.fd-slip-outs ul{ margin:0; padding:0; list-style:none; }
.fd-slip-outs li{ display:flex; align-items:center; gap:12px; padding:9px 0; border-top:1px solid rgba(0,0,0,.08); }
.fd-slip-outs li > span{ flex:1; min-width:0; font-size:var(--fs-small); line-height:1.35; }
.fd-slip-outs li b{ display:block; font-weight:400; }
.fd-slip-outs li small{ display:block; font-size:13px; color:var(--ink-2); }
.fd-slip-outs .fd-chip{ flex:none; padding:7px 14px; font-size:13px; }

/* ==== 18 Nov 2026 (the user: "a chat thing … in that spirit, not a copy", and phones need a good answer): the conversation, set like a
   printed interview at first; the same day (the user: "no … it should look like a chat with left and right") a chat: Claire left in grey,
   you right in ink, her current question the newest message in a yellow bubble. Desktop: the last messages above it, older ones fade at
   the top. Phones: the last two, one line each. Opened, the card shows the whole chat and the ticket (what you told me, each line can be changed) ==== */
.fd-convo{ display:grid; grid-template-columns:minmax(0, 1fr); row-gap:8px; }
.fd-convo .fd-log-btn{ grid-row:1; grid-column:1; justify-self:start; }
.fd-convo[hidden]{ display:none; }
.fd-log{ grid-column:1; display:flex; flex-direction:column-reverse; max-height:200px; overflow-y:auto; scrollbar-width:none; overscroll-behavior:contain; cursor:pointer; padding-top:4px;
  -webkit-mask-image:linear-gradient(to bottom, transparent, #000 46px); mask-image:linear-gradient(to bottom, transparent, #000 46px); }
.fd-log::-webkit-scrollbar{ display:none; }
/* chat: Claire left in grey, you right in ink; a run by one person sits closer, its inner corners less round */
.fd-b{ flex:none; max-width:82%; margin:10px 0 0; padding:9px 14px 10px; border-radius:18px; font-size:var(--fs-small); line-height:1.35; overflow-wrap:anywhere; }
.fd-b.cont{ margin-top:3px; }
.fd-b-c{ align-self:flex-start; background:rgba(0,0,0,.06); color:var(--ink); border-bottom-left-radius:5px; }
.fd-b-c.more{ border-bottom-left-radius:5px; } .fd-b-c.cont{ border-top-left-radius:5px; }
.fd-b-c.q{ color:var(--ink-2); }
.fd-b-y{ align-self:flex-end; background:var(--fw-ink); color:var(--white); border-bottom-right-radius:5px; }
.fd-b-y.cont{ border-top-right-radius:5px; }
.fd-b.last{ animation:fd-line .4s var(--ease) both; }
.fd-b-y.last{ transform-origin:100% 100%; } .fd-b-c.last{ transform-origin:0 100%; }
@keyframes fd-line{ from{ opacity:0; transform:translateY(8px) scale(.96); } }
/* her current question: the newest message. Same size as the chat (18 Nov 2026, the user: big and yellow looked weird), on black so it
   stands out from her grey ones; her face small beside it like a chat avatar */
body.fd-body .fd-msg{ grid-template-columns:44px minmax(0, 1fr); gap:10px; align-items:end; }
body.fd-body .fd-msg > .fd-face{ --face:44px; margin:0; }
body.fd-body .fd-words{ justify-self:start; max-width:88%; padding:10px 15px 11px; gap:4px; background:var(--fw-ink); color:var(--white); border-radius:18px 18px 18px 5px; }
body.fd-body .fd-card:not(.final) .fd-q{ font-family:inherit; font-size:var(--fs-body); line-height:1.35; letter-spacing:0; word-spacing:normal; font-weight:400; color:var(--white); text-wrap:pretty; }
body.fd-body .fd-card.final .fd-q{ color:var(--white); }
body.fd-body .fd-words .fd-say{ margin-top:2px; color:rgba(255,255,255,.72); font-size:var(--fs-small); }
body.fd-body .fd-words .fd-dots li{ color:rgba(255,255,255,.85); }
body.fd-body .fd-words .fd-dots i{ box-shadow:0 0 0 1px rgba(255,255,255,.35); }
.fd-log-btn{ grid-column:2; display:inline-flex; align-items:center; gap:6px; padding:2px 0 3px; border:0; background:none; color:var(--ink-2); font:inherit;
  font-size:var(--fs-micro); text-transform:uppercase; letter-spacing:var(--ls-caps); white-space:nowrap; cursor:pointer; }
.fd-log-btn small{ display:inline-grid; place-items:center; min-width:18px; height:18px; padding:0 5px; border-radius:9px; background:var(--fw-ink); color:var(--white); font-size:10px; letter-spacing:0; }
.fd-log-btn svg{ width:10px; transition:rotate .3s var(--ease); }
@media (hover:hover){ .fd-log-btn:hover{ color:var(--ink); } }
/* her dots while she thinks */
.fd-think{ display:inline-flex; gap:4px; padding-top:6px; }
.fd-think i{ width:5px; height:5px; border-radius:50%; background:var(--ink); animation:fd-dot 1.1s var(--ease) infinite; }
.fd-think i:nth-child(2){ animation-delay:.15s; } .fd-think i:nth-child(3){ animation-delay:.3s; }
@keyframes fd-dot{ 0%, 60%, 100%{ opacity:.2; transform:none; } 30%{ opacity:1; transform:translateY(-3px); } }
/* the ticket: what you told me. In the opened conversation, and on the slip beside the card */
.fd-ticket{ display:none; grid-column:1 / -1; }
.fd-ticket-head{ margin:18px 0 6px; padding-bottom:8px; border-bottom:1px solid var(--ink); color:var(--ink); }
.fd-ticket ul, .fd-tk{ margin:0 0 6px; padding:0; list-style:none; }
.fd-ticket li, .fd-tk li{ border-bottom:1px solid rgba(0,0,0,.1); }
.fd-ticket button, .fd-tk button{ display:grid; grid-template-columns:76px minmax(0, 1fr) auto; gap:10px; align-items:baseline; width:100%; padding:9px 0; border:0; background:none;
  font:inherit; font-size:var(--fs-small); text-align:left; color:var(--ink); cursor:pointer; }
.fd-ticket b, .fd-tk b{ font-weight:400; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fd-ticket em, .fd-tk em{ font-style:normal; font-size:13px; color:var(--ink-2); text-decoration:underline 1px var(--accent); text-underline-offset:3px; }
@media (hover:hover){ .fd-ticket button:hover em, .fd-tk button:hover em{ color:var(--ink); } .fd-ticket button:hover, .fd-tk button:hover{ background:rgba(0,0,0,.025); } }
.fd-tk{ margin-bottom:14px; }
.fd-tk button{ grid-template-columns:62px minmax(0, 1fr) auto; padding:8px 0; }
.fd-slip{ max-height:calc(100svh - 110px); overflow-y:auto; scrollbar-width:thin; }
/* opened: the whole interview + the ticket, the question waits underneath */
.fd-card.convo :is(.fd-msg, .fd-upload, .fd-final, .fd-chips, .fd-own, .fd-ways, .fd-input, .fd-mic-note, .fd-slip-line){ display:none !important; }
.fd-card.convo .fd-convo{ grid-template-columns:minmax(0, 1fr); border-bottom:0; padding-bottom:0; }
.fd-card.convo .fd-log{ max-height:min(48svh, 460px); cursor:auto; -webkit-mask-image:none; mask-image:none; }
.fd-card.convo .fd-ticket{ display:block; }
.fd-card.convo .fd-ticket:empty{ display:none; }
.fd-card.convo .fd-log-btn{ grid-row:auto; grid-column:1; justify-self:start; margin-top:14px; height:44px; padding:0 18px; border-radius:999px; background:var(--fw-ink); color:var(--white); }
.fd-card.convo .fd-log-btn small{ display:none; }
.fd-card.convo .fd-log-btn svg{ rotate:180deg; }
/* Claire's choice: only the button, the lines would crowd the price */
.fd-card.final:not(.convo) .fd-log{ display:none; }
.fd-card.final:not(.convo) .fd-log-btn{ grid-column:1 / -1; justify-self:start; }
.fd-card.final:not(.convo) .fd-convo{ padding-bottom:8px; }
/* phones: the last two messages, one line each, under "Our conversation" */
@media (max-width:759px){
  .fd-convo{ row-gap:4px; }
  .fd-card:not(.convo) .fd-log{ max-height:none; overflow:hidden; -webkit-mask-image:none; mask-image:none; padding-top:0; }
  .fd-card:not(.convo) .fd-log .fd-b:nth-child(n+3){ display:none; }
  .fd-card:not(.convo) .fd-log .fd-b{ margin-top:4px; padding:6px 12px 7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:86%; }
  body.fd-body .fd-msg{ grid-template-columns:minmax(0, 1fr); }
  body.fd-body .fd-words{ max-width:92%; }
  .fd-card.convo .fd-log{ max-height:52svh; }
  .fd-ticket button{ grid-template-columns:68px minmax(0, 1fr) auto; min-height:44px; }
}

/* ---- 18 Nov 2026, fixes after the screenshot review ---- */
/* the progress ticks share the room in the card head and never run out of the card (phones had 11 × 16px + the pill) */
.fd-steps{ flex:1 1 auto; min-width:0; max-width:max-content; justify-content:flex-end; }
.fd-steps li{ flex:0 1 22px; min-width:3px; }
@media (max-width:759px){ .fd-steps li{ flex-basis:16px; } }
/* a caption never runs off the screen: js sets --capw = the room from the frame's left edge to the screen's right edge */
.fd-cap{ width:max-content; max-width:var(--capw, 60vw); white-space:normal; }
.fd-cap .fd-tick{ max-width:min(26ch, 100%); }
/* the chat in the card: only whole messages, no fade cutting one in half; the last three on desktop
   (fewer lines = a smaller card = bigger frames); "Our conversation" opens all of it */
.fd-card:not(.convo) .fd-log{ max-height:none; overflow:hidden; -webkit-mask-image:none; mask-image:none; }
.fd-card:not(.convo) .fd-log .fd-b:nth-child(n+4){ display:none; }
@media (min-width:760px) and (max-height:860px){ .fd-card:not(.convo) .fd-log .fd-b:nth-child(n+3){ display:none; } }
/* Start again: a word on desktop, an icon on phones (it ran into the ArtFramers mark) */
.fd-again{ display:inline-flex; align-items:center; gap:6px; }
.fd-again[hidden]{ display:none; }
.fd-again svg{ display:none; width:18px; height:18px; }
@media (max-width:759px){
  .fd-again span{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .fd-again svg{ display:block; }
  .fd-again{ padding:6px; margin:-6px; }
  .fd-af{ width:88px; }
  /* the checkout heading clears the close button */
  .fd-d-done h1, .fd-d-name{ padding-right:56px; }
  /* the bar at the bottom of the detail matches the rounded card */
  .fd-d-foot{ border-radius:20px; }
}
/* the close button: no second square round it after a tap (keyboard focus still shows) */
.fd-d-x:focus:not(:focus-visible){ outline:none; }
/* the detail's options are pills like every other button in the finder */
.fd-detail .opts button{ border-radius:999px; }
/* "Other frames": a grid with every name showing; the set-aside ones only a little quieter, not grey */
body.fd-all .fd-it:not(.out) .fd-cap{ opacity:1; }
body.fd-all .fd-frame.ghost .fd-in{ filter:none; opacity:.82; }
body.fd-all .fd-cap .fd-tick{ display:none; }
@media (max-width:759px){ body.fd-all .fd-cap{ font-size:11px; padding-top:6px; } body.fd-all .fd-cap .kicker{ display:none; } }
body.fd-all .fd-cap b{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
/* desktop: the card stands on the right during the questions too (finder.js side()), as it does for Claire's choice */
@media (min-width:1060px){
  body[data-state="talk"] .fd-card{ left:auto; right:24px; transform:none; width:min(460px, 32vw); }
}

/* ==== 18 Nov 2026 (later; the user: the chat animation was generic, the frames' motion should be communicative, "not corny").
   One meaning per move: still until you answer; a glide = a change of rank; grey with its reason, then a fade = it leaves;
   the framing yellow = what your last answer changed, and it calms down by itself ==== */
/* the frames don't bob any more: a move always means something (the welcome's works keep their slow turn) */
.fd-frame .fd-in{ animation:none; }
/* leaving: grey where it stands, its reason under it, then it fades (finder.js layoutFrames) */
.fd-frame.leaving .fd-in > .fr{ filter:grayscale(1); opacity:.38; transition:filter .35s var(--ease), opacity .35s var(--ease); }
.fd-frame.leaving .fd-cap{ opacity:1; }
.fd-cap .fd-why-out{ display:inline-block; margin-top:3px; padding:1px 6px; margin-left:-6px; border-radius:4px; background:var(--fw-framing); color:var(--ink); font-style:normal; }
/* what changed the price, once, under it */
.fd-cap .fd-delta{ display:block; justify-self:start; width:max-content; margin:2px 0 0 -6px; padding:1px 6px; border-radius:4px; font-style:normal; color:var(--ink);
  animation:fd-lit 2.6s var(--ease) both; }
body.dark .fd-cap .fd-delta{ color:var(--ink); }
.fd-cap .fd-tick{ border-radius:4px; padding:0 6px; margin-left:-6px; }
@keyframes fd-lit{ 0%, 70%{ background:var(--fw-framing); } 100%{ background:transparent; } }
/* new glass: a glint runs across each frame once */
.fd-glint{ position:absolute; inset:0; z-index:5; pointer-events:none; background:linear-gradient(115deg, transparent 38%, rgba(255,255,255,.7) 50%, transparent 62%) no-repeat; background-size:250% 100%; }
/* the wall colour grows out of the card, under the frames */
.fd-wash{ position:absolute; inset:0; z-index:0; pointer-events:none; }

/* the chat: your answer is the pill you tapped, outlined (it travels there, .fd-flyer); her question is her voice, no box */
.fd-b-y{ background:var(--white); color:var(--ink); box-shadow:inset 0 0 0 1.5px var(--ink); border-radius:20px; }
.fd-b-y.cont{ border-top-right-radius:20px; }
.fd-b-k{ align-self:flex-end; margin:12px 2px -6px 0 !important; padding:0 !important; background:none; border-radius:0; font-size:10px; letter-spacing:var(--ls-caps); text-transform:uppercase; color:var(--ink-2); }
.fd-b-n{ align-self:flex-start; display:inline-flex; align-items:center; gap:7px; margin-top:6px; padding:4px 10px 5px 8px !important; border-radius:6px; background:rgba(0,0,0,.05); color:var(--ink); font-size:13px; }
.fd-b-n svg{ flex:none; width:10px; height:10px; }
.fd-b-n.fresh{ animation:fd-lit-n 2.8s var(--ease) both; }
@keyframes fd-lit-n{ 0%, 70%{ background:var(--fw-framing); } 100%{ background:rgba(0,0,0,.05); } }
.fd-flyer{ position:fixed; z-index:80; display:flex; align-items:center; padding:9px 14px 10px; border-radius:20px; color:var(--ink); font-size:var(--fs-small); line-height:1.35;
  white-space:nowrap; overflow:hidden; pointer-events:none; box-sizing:border-box; }
.fd-flyer .sr{ position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
body.fd-body .fd-words{ padding:2px 0 0; background:none; color:var(--ink); border-radius:0; max-width:100%; }
body.fd-body .fd-card:not(.final) .fd-q{ color:var(--ink); font-size:20px; line-height:1.3; letter-spacing:-.01em; }
body.fd-body .fd-card.final .fd-q{ color:var(--ink); }
body.fd-body .fd-words .fd-say{ color:var(--ink-2); }
body.fd-body .fd-words .fd-dots li{ color:var(--ink); }
body.fd-body .fd-words .fd-dots i{ box-shadow:0 0 0 1px rgba(0,0,0,.2); }
body.fd-body .fd-msg{ align-items:start; }
body.fd-body .fd-msg > .fd-face{ --face:36px; }
@media (max-width:759px){
  body.fd-body .fd-card:not(.final) .fd-q{ font-size:18px; }
  .fd-card:not(.convo) .fd-log .fd-b-k{ display:none; }
  .fd-card:not(.convo) .fd-log .fd-b-n{ max-width:100%; }
}
/* the card keeps one height through the questions on desktop, so the right side doesn't jump; the chat takes the room */
@media (min-width:1060px){
  body[data-state="talk"] .fd-card:not(.convo){ min-height:min(590px, calc(100svh - 110px)); }
  body[data-state="talk"] .fd-card:not(.convo) .fd-convo{ flex:1 1 auto; align-content:end; }
}
@media (prefers-reduced-motion: reduce){ .fd-cap .fd-delta, .fd-b-n.fresh{ animation:none; background:var(--fw-framing); } }
.fd-frame.moving .fd-cap{ opacity:0 !important; transition:opacity .12s; }
/* 18 Nov 2026 (the user: the answer flying up into the chat was too much, every tap): your answer simply appears, no movement */
.fd-b-y.last{ animation:fd-appear .25s ease-out both; }
@keyframes fd-appear{ from{ opacity:0; } }
/* 18 Nov 2026 (the user: too many things disappearing and shifting is distracting): the type and speak row stays put on every
   question and while she thinks; new answers only fade in where they are (no rise); while she thinks they dim, they don't vanish */
.fd-card:is([data-stage="a"], [data-stage="b"]) :is(.fd-ways, .fd-input){ opacity:1; transform:none; }
.fd-card[data-stage="b"] :is(.fd-chip, .fd-own, .fd-upload){ transform:none; }
.fd-card:is([data-stage="a"], [data-stage="b"]) :is(.fd-chip, .fd-upload){ transform:none; }
.fd-card.thinking :is(.fd-ways, .fd-input){ opacity:1; visibility:visible; }
.fd-card.thinking :is(.fd-chips, .fd-own){ opacity:.35; visibility:visible; }
