/* scene search — Répertoire, the universal search (bars 22–24). Stage px: 1920×1080, portrait 1080×1920.
 * No CSS transitions/animations: every moving value is written by render(t). */

.s-search { font-family: var(--font-ui); color: var(--ink); }
.s-search * { box-sizing: border-box; }

/* ------------------------------------------------------------------ the blurred house (static collage) */
.s-search__house { position: absolute; inset: 0; transform-origin: 50% 45%; will-change: transform, opacity; }
.s-search__house-in { position: absolute; inset: 0; filter: blur(9px) saturate(0.85); }
.s-search__house-dim { position: absolute; inset: -400px;
  background: radial-gradient(62% 58% at 50% 50%, rgba(14, 11, 10, 0.78), rgba(14, 11, 10, 0.5) 70%, rgba(14, 11, 10, 0.62)); }
.s-search .s-search__hw { box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.8); }
.s-search__hw--mail   { left: -70px;  top: 70px;  width: 800px; height: 500px; }
.s-search__hw--drive  { left: 1190px; top: -40px; width: 800px; height: 480px; }
.s-search__hw--photos { left: 30px;   top: 640px; width: 760px; height: 500px; }
.s-search__hw--visio  { left: 1130px; top: 590px; width: 840px; height: 540px; }
.s-search__hw-glow { position: absolute; inset: 0; pointer-events: none; }
.s-search__hw-body { position: absolute; left: 0; right: 0; top: 58px; bottom: 0; padding: 26px; display: flex; gap: 22px; }
.s-search__hw-side { width: 170px; display: flex; flex-direction: column; gap: 14px; }
.s-search__hw-side i { display: block; height: 30px; border-radius: 10px; background: rgba(243, 235, 221, 0.06); }
.s-search__hw-list { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.s-search__hw-row { position: relative; height: 56px; border-radius: 14px; background: rgba(243, 235, 221, 0.04); }
.s-search__hw-row b { position: absolute; left: 14px; top: 12px; width: 32px; height: 32px; border-radius: 50%; opacity: 0.8; }
.s-search__hw-row i { position: absolute; left: 62px; top: 14px; width: 42%; height: 10px; border-radius: 5px; background: rgba(243, 235, 221, 0.32); }
.s-search__hw-grid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.s-search__hw-file { border-radius: 16px; background: rgba(243, 235, 221, 0.045); padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.s-search__hw-file b { flex: 1; border-radius: 10px; display: block; }
.s-search__hw-file i { height: 10px; width: 70%; border-radius: 5px; background: rgba(243, 235, 221, 0.25); display: block; }
.s-search__hw-photos { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.s-search__hw-photos i { border-radius: 10px; display: block; opacity: 0.62; }
.s-search__hw-tiles { position: absolute; left: 26px; right: 26px; top: 26px; bottom: 100px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.s-search__hw-tiles > div { position: relative; border-radius: 18px; overflow: hidden; }
.s-search__hw-tiles b { position: absolute; left: 50%; top: 46%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; opacity: 0.75; }
.s-search__hw-ctl { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 16px; }
.s-search__hw-ctl i { width: 52px; height: 52px; border-radius: 50%; background: rgba(243, 235, 221, 0.1); display: block; }
.s-search__hw-ctl i.is-end { background: rgba(217, 115, 127, 0.55); }

/* ------------------------------------------------------------------ moonlight halo */
.s-search__halo { position: absolute; left: 50%; top: 268px; width: 1800px; height: 900px; margin: -330px 0 0 -900px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(169, 199, 214, 0.2), rgba(169, 199, 214, 0.07) 55%, rgba(169, 199, 214, 0)); opacity: 0; }

/* ------------------------------------------------------------------ palette */
.s-search__world { position: absolute; inset: 0; perspective: 1600px; perspective-origin: 50% 490px; }
.s-search__pal { position: absolute; left: 360px; top: 268px; width: 1200px; transform-origin: 50% 0; }

.s-search__field { position: relative; height: 112px; }
.s-search__glass { position: absolute; inset: 0; border-radius: 30px; opacity: 0;
  background: linear-gradient(180deg, rgba(44, 36, 30, 0.7), rgba(26, 21, 17, 0.78));
  border: 1px solid rgba(243, 235, 221, 0.16);
  -webkit-backdrop-filter: blur(24px) saturate(1.25); backdrop-filter: blur(24px) saturate(1.25);
  box-shadow: 0 50px 120px -40px rgba(0, 0, 0, 0.9), 0 18px 40px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(243, 235, 221, 0.08), 0 0 0 1px rgba(169, 199, 214, 0.06); }
.s-search__edge { position: absolute; left: 70px; right: 70px; top: -1px; height: 2px; border-radius: 2px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(169, 199, 214, 0), var(--search) 30%, #E6F0F4 50%, var(--search) 70%, rgba(169, 199, 214, 0));
  box-shadow: 0 0 18px 1px rgba(169, 199, 214, 0.45); }
.s-search__fin { position: absolute; inset: 0; display: flex; align-items: center; gap: 24px; padding: 0 30px 0 38px; opacity: 0; }
.s-search__ic { width: 36px; height: 36px; flex: none; color: var(--search); }
.s-search__ic svg { width: 100%; height: 100%; display: block; }
.s-search__input { position: relative; flex: 1; min-width: 0; height: 56px; display: flex; align-items: center; white-space: nowrap;
  font: 400 36px/1 var(--font-mono); letter-spacing: 0.01em; color: var(--ink); }
.s-search__ph { position: absolute; left: 0; top: 0; bottom: 0; display: flex; align-items: center;
  font: 400 30px/1 var(--font-ui); letter-spacing: -0.01em; color: var(--ink-3); }
.s-search__q { position: relative; }
.s-search__caret { position: relative; display: inline-block; width: 3px; height: 44px; margin-left: 2px; border-radius: 2px; flex: none;
  background: #FFF3E0; box-shadow: 0 0 12px 1px rgba(243, 217, 168, 0.7), 0 0 30px 4px rgba(227, 160, 98, 0.22); opacity: 0; }
.s-search__keys { position: relative; display: flex; gap: 10px; flex: none; }
.s-search__kbd { position: relative; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 13px; overflow: hidden;
  border: 1px solid rgba(243, 235, 221, 0.18); background: linear-gradient(180deg, rgba(243, 235, 221, 0.09), rgba(243, 235, 221, 0.03));
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(243, 235, 221, 0.1); }
.s-search__kbd-g { position: relative; font: 500 24px/1 var(--font-mono); color: var(--ink-2); }
.s-search__kbd-g--cmd { font: 400 27px/1 var(--font-ui); }
.s-search__kbd-lit { position: absolute; inset: 0; border-radius: 12px; opacity: 0;
  background: radial-gradient(80% 80% at 50% 30%, rgba(169, 199, 214, 0.42), rgba(169, 199, 214, 0.1)); box-shadow: inset 0 0 0 1px rgba(169, 199, 214, 0.7); }
.s-search__kbd--sm { width: 30px; height: 30px; border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4); }
.s-search__kbd--sm .s-search__kbd-g { font-size: 16px; }
.s-search__ring { position: absolute; inset: -9px; border-radius: 20px; border: 1.5px solid var(--search); opacity: 0; pointer-events: none; }

/* scope chips */
.s-search__scope { display: flex; justify-content: center; gap: 14px; margin-top: 20px; height: 52px; align-items: center; opacity: 0; }
.s-search__chip { position: relative; display: inline-flex; align-items: center; gap: 11px; height: 46px; padding: 0 20px; border-radius: 999px;
  background: rgba(24, 19, 15, 0.82); border: 1px solid var(--line-2);
  font: 600 16px/1 var(--font-ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
.s-search__chip-ring { position: absolute; inset: -1px; border-radius: 999px; border: 1px solid; opacity: 0; }
.s-search__chip-dot { position: relative; width: 9px; height: 9px; border-radius: 50%; display: block; flex: none; }
.s-search__chip-t { position: relative; }

/* results: opaque slats (one per row + footer) that unfold under each other into one card */
.s-search__results { position: relative; margin-top: 20px; }
.s-search__row, .s-search__foot { position: relative; padding: 0 12px; background: #1E1813; opacity: 0;
  border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.s-search__row:first-child { padding-top: 12px; border-top: 1px solid var(--line-2); border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, #241D18, #1E1813 70%); box-shadow: inset 0 1px 0 rgba(243, 235, 221, 0.06); }
.s-search__foot { padding-top: 10px; border-bottom: 1px solid var(--line-2); border-radius: 0 0 30px 30px; background: #1C1612;
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.9), 0 24px 50px -24px rgba(0, 0, 0, 0.6); }
.s-search__ri { position: relative; height: 92px; display: flex; align-items: center; gap: 22px; padding: 0 24px 0 22px; border-radius: 20px; opacity: 0; }
.s-search__sel { position: absolute; inset: 0; border-radius: 20px; opacity: 0;
  background: linear-gradient(90deg, rgba(169, 199, 214, 0.1), rgba(243, 235, 221, 0.045) 45%, rgba(243, 235, 221, 0.03));
  box-shadow: inset 0 0 0 1px rgba(169, 199, 214, 0.16); }
.s-search__ri .ui-app-icon { position: relative; }
.s-search__txt { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.s-search__title { font: 500 25px/1.15 var(--font-ui); letter-spacing: -0.01em; color: rgba(243, 235, 221, 0.92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-search__hl { color: var(--ink); font-weight: 600; padding-bottom: 3px;
  background: linear-gradient(var(--search), var(--search)) 0 100% / 100% 2px no-repeat; }
.s-search__meta { font: 400 18px/1.2 var(--font-ui); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.s-search__acc { position: relative; display: flex; align-items: center; gap: 10px; flex: none; }
.s-search__badge { font: 600 16px/1 var(--font-mono); letter-spacing: 0.06em; padding: 8px 10px; border-radius: 8px; color: var(--drive); border: 1px solid rgba(217, 139, 78, 0.45); background: rgba(217, 139, 78, 0.08); }
.s-search__thumb { width: 50px; height: 50px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(243, 235, 221, 0.12); }
.s-search__stack { display: flex; }
.s-search__stack .ui-avatar { box-shadow: 0 0 0 3px #1E1813; letter-spacing: 0; }
.s-search__stack .ui-avatar + .ui-avatar { margin-left: -6px; }
.s-search__join { font: 600 17px/1 var(--font-ui); padding: 10px 16px; border-radius: 999px; color: var(--visio); border: 1px solid rgba(180, 141, 224, 0.5); background: rgba(180, 141, 224, 0.1); margin-left: 6px; }
.s-search__tag { position: relative; display: flex; align-items: center; justify-content: flex-end; gap: 12px; width: 156px; flex: none; font-size: 23px; color: var(--ink-2); }
.s-search__rdot { width: 10px; height: 10px; border-radius: 50%; display: block; flex: none; }
.s-search__fi { display: flex; align-items: center; justify-content: space-between; height: 64px; margin: 0 -12px; padding: 0 34px;
  border-top: 1px solid var(--line); font: 500 17px/1 var(--font-ui); color: var(--ink-2); opacity: 0; }
.s-search__open { display: inline-flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------ kinetic type */
.s-search__kin, .s-search__cap, .s-search__punch { position: absolute; left: 0; right: 0; text-align: center; pointer-events: none;
  font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.s-search__line { display: block; overflow: hidden; padding: 0.04em 0.12em 0.2em; margin: -0.04em 0 -0.2em; }
.s-search__w { display: inline-block; will-change: transform, opacity; }
.s-search__kin { top: 702px; font-size: 124px; line-height: 1.06; }
.s-search__cap { top: 180px; font-size: 48px; line-height: 1.1; color: rgba(243, 235, 221, 0.92); }
.s-search__punch { top: 96px; font-size: 128px; line-height: 1.06; }
.s-search__punch .s-search__line { display: inline-block; vertical-align: top; padding-left: 0; padding-right: 0; }
.s-search__punch .s-search__line--b { padding-right: 0.1em; margin-right: -0.1em; }

.s-search__scrim { position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(60% 50% at 50% 42%, rgba(14, 11, 10, 0.9), rgba(14, 11, 10, 0.6) 65%, rgba(14, 11, 10, 0.25)); }

/* façade dots + free caret */
.s-search__fdot { position: absolute; left: 0; top: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; opacity: 0; will-change: transform, opacity; }
.s-search__cursor { position: absolute; left: 0; top: 0; width: 4px; height: 56px; margin: -28px 0 0 -2px; border-radius: 2px; opacity: 0;
  background: #FFF3E0; box-shadow: 0 0 14px 2px rgba(243, 217, 168, 0.75), 0 0 40px 8px rgba(227, 160, 98, 0.3); will-change: transform, opacity; }

/* label top-left */
.s-search__label { position: absolute; left: 96px; top: 60px; display: flex; align-items: center; gap: 18px; }
.s-search__label .ui-app-icon { filter: drop-shadow(0 6px 22px rgba(169, 199, 214, 0.28)); }
.s-search__lcol { display: flex; flex-direction: column; gap: 9px; }
.s-search__lmask { display: block; overflow: hidden; padding: 0.04em 0.1em 0.12em 0; margin-bottom: -0.12em; }
.s-search__lname { display: inline-block; font-size: 46px; line-height: 1; color: var(--ink); }
.s-search__ldesc { font-size: 15px; letter-spacing: 0.16em; }

/* ================================================================== portrait 1080×1920 */
.is-portrait .s-search__hw--mail   { left: -120px; top: 110px;  width: 760px; height: 520px; }
.is-portrait .s-search__hw--drive  { left: 500px;  top: -10px;  width: 760px; height: 500px; }
.is-portrait .s-search__hw--photos { left: -90px;  top: 1450px; width: 720px; height: 500px; }
.is-portrait .s-search__hw--visio  { left: 450px;  top: 1390px; width: 780px; height: 540px; }
.is-portrait .s-search__house-dim { background: radial-gradient(75% 45% at 50% 52%, rgba(14, 11, 10, 0.8), rgba(14, 11, 10, 0.5) 75%, rgba(14, 11, 10, 0.62)); }

.is-portrait .s-search__halo { top: 760px; width: 1400px; height: 1100px; margin: -360px 0 0 -700px; }
.is-portrait .s-search__world { perspective-origin: 50% 880px; }
.is-portrait .s-search__pal { left: 50px; top: 760px; width: 980px; }
.is-portrait .s-search__field { height: 108px; }
.is-portrait .s-search__fin { gap: 20px; padding: 0 26px 0 32px; }
.is-portrait .s-search__ph { font-size: 28px; }
.is-portrait .s-search__input { font-size: 36px; }
.is-portrait .s-search__kbd { width: 50px; height: 50px; }
.is-portrait .s-search__scope { gap: 10px; }
.is-portrait .s-search__chip { height: 52px; padding: 0 18px; font-size: 21px; letter-spacing: 0.12em; }
.is-portrait .s-search__scope { height: 58px; }
.is-portrait .s-search__ri { height: 104px; gap: 18px; padding: 0 20px 0 18px; }
.is-portrait .s-search__title { font-size: 28px; }
.is-portrait .s-search__meta { font-size: 21px; }
.is-portrait .s-search__tag { width: auto; font-size: 24px; }
.is-portrait .s-search__tag .ui-italic { display: none; }
.is-portrait .s-search__thumb { width: 46px; height: 46px; }
.is-portrait .s-search__stack { display: none; }
.is-portrait .s-search__join { font-size: 19px; }
.is-portrait .s-search__fi { font-size: 20px; height: 70px; }

.is-portrait .s-search__kin { top: 1092px; font-size: 104px; }
.is-portrait .s-search__cap { top: 672px; font-size: 50px; }
.is-portrait .s-search__punch { top: 282px; font-size: 124px; }
.is-portrait .s-search__punch .s-search__line { display: block; }
.is-portrait .s-search__scrim { background: radial-gradient(80% 45% at 50% 40%, rgba(14, 11, 10, 0.9), rgba(14, 11, 10, 0.6) 65%, rgba(14, 11, 10, 0.25)); }

.is-portrait .s-search__label { left: 64px; top: 110px; }
