/* Live hero demo: a vanilla port of the Linear clone UI. Tokens mirror the clone's dark theme.stylex.ts. */

.hd {
  --hd-bg: oklch(0.13 0.005 285);
  --hd-main: oklch(0.145 0.005 285);
  --hd-surface: oklch(0.16 0.005 285);
  --hd-raised: oklch(0.19 0.005 285);
  --hd-hover: oklch(0.22 0.005 285);
  --hd-text: oklch(0.97 0.005 285);
  --hd-text-2: oklch(0.78 0.008 285);
  --hd-muted: oklch(0.65 0.01 285);
  --hd-border: oklch(0.25 0.005 285);
  --hd-border-strong: oklch(0.32 0.005 285);
  --hd-accent: oklch(0.58 0.16 275);
  --hd-accent-hover: oklch(0.64 0.15 275);
  --hd-accent-subtle: oklch(0.25 0.04 275);
  --hd-danger: oklch(0.65 0.2 25);
  --hd-shadow: 0 8px 24px oklch(0 0 0 / 0.55);
  --hd-ease: cubic-bezier(0.22, 1, 0.36, 1);

  position: relative;
  aspect-ratio: 1080 / 760;
  overflow: hidden;
  background: var(--hd-bg);
  color: var(--hd-text);
  font: 400 13px/1.4 var(--font);
  letter-spacing: 0;
  text-align: left;
  user-select: none;

  &.hd--ghost { position: fixed; left: 0; top: 0; z-index: 1000; aspect-ratio: auto; overflow: visible; background: none; pointer-events: none; transform-origin: 0 0; }
  &.is-dragging, &.is-dragging * { cursor: grabbing; }

  svg { flex: none; display: block; }
  button { color: inherit; font: inherit; text-align: inherit; }
  :focus-visible { outline: 2px solid var(--hd-accent); outline-offset: 1px; border-radius: 6px; }
  kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; border: 1px solid var(--hd-border-strong); background: oklch(1 0 0 / 0.04); color: var(--hd-muted); font: 500 11px/1 var(--font); }
  .hd-muted { color: var(--hd-muted); }

  .hd-app { position: absolute; left: 0; top: 0; display: grid; grid-template-columns: 200px minmax(0, 1fr); width: 1080px; height: 760px; padding: 8px 8px 8px 0; transform-origin: 0 0; outline: none; }

  .hd-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--hd-muted); transition: background-color 0.15s, color 0.15s; }
  .hd-icon:hover { background: var(--hd-hover); color: var(--hd-text); }
  .hd-primary { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: 6px; background: var(--hd-accent); color: #fff; font-size: 12.5px; font-weight: 500; transition: background-color 0.15s; }
  .hd-primary:hover { background: var(--hd-accent-hover); }
  .hd-primary kbd { border-color: oklch(1 0 0 / 0.25); background: oklch(1 0 0 / 0.12); color: oklch(1 0 0 / 0.85); }
  .hd-crumbs { display: inline-flex; align-items: center; gap: 8px; color: var(--hd-muted); white-space: nowrap; }
  .hd-crumbs b { display: grid; place-items: center; height: 18px; padding: 0 4px; border-radius: 4px; background: var(--hd-hover); color: var(--hd-text); font-size: 9.5px; font-weight: 600; }
  .hd-crumbs strong { color: var(--hd-text); font-weight: 500; }

  .hd-side { display: flex; flex-direction: column; gap: 2px; padding: 4px 10px 6px 10px; color: var(--hd-text-2); }
  .hd-side__top { display: flex; align-items: center; gap: 2px; height: 36px; margin-bottom: 8px; }
  .hd-ws { display: inline-flex; align-items: center; gap: 8px; margin-right: auto; padding-left: 4px; color: var(--hd-text); font-weight: 600; }
  .hd-ws b { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; background: #22b8cf; color: #fff; font-size: 11px; }
  .hd-side__label { margin: 14px 0 4px; padding-left: 8px; color: var(--hd-muted); font-size: 12px; font-weight: 500; }
  .hd-nav li, .hd-nav button { display: flex; align-items: center; gap: 10px; height: 30px; padding: 0 8px; border-radius: 6px; }
  .hd-nav li:has(> button) { padding: 0; }
  .hd-nav button { width: 100%; transition: background-color 0.15s, color 0.15s; }
  .hd-nav button:hover { background: oklch(1 0 0 / 0.04); color: var(--hd-text); }
  .hd-nav button.is-active { background: var(--hd-hover); color: var(--hd-text); }
  .hd-nav svg { color: var(--hd-muted); }
  .hd-nav em { margin-left: auto; color: var(--hd-muted); font-size: 11.5px; font-style: normal; }
  .hd-team { color: var(--hd-text); font-weight: 500; }
  .hd-team b { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 4px; background: #5e6ad2; color: #fff; font-size: 9px; font-weight: 600; }
  .hd-nav .hd-sub { padding-left: 14px; }
  .hd-me { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 0 6px; color: var(--hd-text-2); }

  .hd-main { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; border: 1px solid var(--hd-border); border-radius: 10px; background: var(--hd-main); overflow: hidden; }
  .hd-top { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 10px 0 16px; border-bottom: 1px solid var(--hd-border); }
  .hd-search { display: inline-flex; align-items: center; gap: 8px; width: 260px; height: 28px; margin-left: auto; padding: 0 5px 0 9px; border-radius: 6px; border: 1px solid var(--hd-border); background: var(--hd-bg); color: var(--hd-muted); font-size: 12.5px; transition: border-color 0.15s, color 0.15s; }
  .hd-search:hover { border-color: var(--hd-border-strong); color: var(--hd-text-2); }
  .hd-search kbd { margin-left: auto; }
  .hd-tabs { display: flex; align-items: center; gap: 4px; height: 44px; padding: 0 10px; border-bottom: 1px solid var(--hd-border); color: var(--hd-muted); font-size: 12.5px; }
  .hd-tab { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border-radius: 6px; transition: background-color 0.15s, color 0.15s; }
  .hd-tab:hover, .hd-tab[aria-expanded='true'] { background: oklch(1 0 0 / 0.04); color: var(--hd-text-2); }
  .hd-tab.is-active { background: var(--hd-raised); box-shadow: inset 0 0 0 1px var(--hd-border); color: var(--hd-text); font-weight: 500; }
  .hd-tab em { display: grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--hd-accent); color: #fff; font-size: 10px; font-style: normal; font-weight: 600; }
  .hd-tabs__end { display: flex; gap: 6px; margin-left: auto; margin-right: 4px; }
  .hd-fchip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px 0 8px; border-radius: 6px; border: 1px solid var(--hd-border-strong); background: var(--hd-accent-subtle); color: var(--hd-text); font-size: 12px; }
  .hd-fchip svg:last-child { width: 12px; height: 12px; color: var(--hd-muted); }
  .hd-fchip:hover svg:last-child { color: var(--hd-text); }

  .hd-board { display: grid; grid-template-columns: repeat(var(--cols, 5), minmax(0, 1fr)); gap: 10px; flex: 1; min-height: 0; padding: 6px 12px 0; }
  .hd-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; border-radius: 8px; transition: background-color 0.15s, box-shadow 0.15s; }
  .hd-col.is-over { background: oklch(0.58 0.16 275 / 0.07); box-shadow: inset 0 0 0 1px oklch(0.58 0.16 275 / 0.45); }
  .hd-col__head { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 4px 0 8px; font-weight: 500; }
  .hd-col__head em { color: var(--hd-muted); font-style: normal; font-weight: 400; }
  .hd-col__head .hd-icon { width: 24px; height: 24px; margin-left: auto; }
  .hd-col__body { position: relative; display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 0; padding: 0 4px 12px; overflow-y: auto; scrollbar-width: none; }
  .hd-col__empty { display: grid; place-items: center; height: 72px; border: 1px dashed var(--hd-border); border-radius: 8px; color: var(--hd-muted); font-size: 12px; }
  .hd-col.is-over .hd-col__empty { display: none; }
  .hd-drop { flex: none; height: 2px; margin-block: -5px; border-radius: 2px; background: var(--hd-accent); box-shadow: 0 0 0 2px oklch(0.58 0.16 275 / 0.25); }

  .hd-card { display: flex; flex-direction: column; gap: 7px; flex: none; width: 100%; padding: 10px 12px 11px; border-radius: 8px; border: 1px solid var(--hd-border); background: var(--hd-surface); box-shadow: 0 1px 2px oklch(0 0 0 / 0.4); cursor: grab; touch-action: pan-y; transition: border-color 0.15s, background-color 0.15s, opacity 0.15s; }
  .hd-card:hover { border-color: var(--hd-border-strong); background: var(--hd-raised); }
  .hd-card.is-selected { border-color: oklch(0.58 0.16 275 / 0.7); box-shadow: 0 0 0 1px oklch(0.58 0.16 275 / 0.35); }
  .hd-card.is-dragging { opacity: 0.35; }
  .hd-card__top { display: flex; align-items: center; justify-content: space-between; color: var(--hd-muted); font-size: 12px; }
  .hd-card__title { display: flex; align-items: flex-start; gap: 8px; color: var(--hd-text); line-height: 1.35; }
  .hd-card__title svg { margin-top: 1px; }
  .hd-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; }
  .hd-prio { display: grid; place-items: center; width: 22px; height: 20px; border-radius: 5px; border: 1px solid var(--hd-border); color: var(--hd-text-2); }
  .hd-chip { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--hd-border); color: var(--hd-text-2); font-size: 11.5px; white-space: nowrap; }
  .hd-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
  .hd-avatar { display: grid; place-items: center; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--c); color: #fff; font-size: 8.5px; font-weight: 600; letter-spacing: 0.02em; }
  .hd-avatar--none { background: none; border: 1.5px dashed var(--hd-border-strong); }

  .hd-board.is-list { display: flex; flex-direction: column; gap: 0; padding: 0; overflow-y: auto; scrollbar-width: none; }
  .is-list .hd-col { flex: none; min-height: auto; border-radius: 0; }
  .is-list .hd-col__head { position: sticky; top: 0; z-index: 1; height: 34px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--hd-border); background: var(--hd-surface); }
  .is-list .hd-col__body { gap: 0; padding: 0; overflow: visible; }
  .is-list .hd-drop { margin-block: -1px; }
  .hd-row { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; height: 38px; padding: 0 16px 0 20px; border-bottom: 1px solid oklch(1 0 0 / 0.04); color: var(--hd-text); cursor: grab; touch-action: pan-y; transition: background-color 0.15s, opacity 0.15s; }
  .hd-row:hover { background: oklch(1 0 0 / 0.03); }
  .hd-row.is-selected { background: var(--hd-accent-subtle); }
  .hd-row.is-dragging { opacity: 0.35; }
  .hd-row__prio { display: grid; place-items: center; width: 16px; color: var(--hd-text-2); }
  .hd-row__id { width: 62px; color: var(--hd-muted); font-size: 12px; }
  .hd-row__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hd-row__labels { display: flex; gap: 5px; }
  &.hd--ghost .hd-row { border: 1px solid var(--hd-border-strong); border-radius: 8px; background: var(--hd-raised); box-shadow: 0 18px 40px -8px oklch(0 0 0 / 0.7); cursor: grabbing; }

  &.hd--ghost .hd-card { border-color: var(--hd-border-strong); background: var(--hd-raised); box-shadow: 0 18px 40px -8px oklch(0 0 0 / 0.7); transform: rotate(2deg); cursor: grabbing; }

  .hd-layer { position: absolute; inset: 0; pointer-events: none; }
  .hd-layer > * { pointer-events: auto; }
  .hd-backdrop { position: absolute; inset: 0; background: oklch(0 0 0 / 0.45); }
  .hd-pop { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
  .hd-ctx { position: absolute; width: 196px; pointer-events: auto; }
  .hd-ctx > .hd-menu { position: relative; top: auto; min-width: 0; }
  .hd-ctx > .hd-ctx__sub { position: absolute; min-width: 190px; }
  .hd-toasts { position: absolute; right: 22px; bottom: 22px; z-index: 4; }
  .hd-toast { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; border-radius: 8px; border: 1px solid var(--hd-border-strong); background: var(--hd-hover); box-shadow: var(--hd-shadow); font-size: 12.5px; }
  .hd-toast > svg { color: #4cb782; }
  .hd-toast button { height: 26px; padding: 0 10px; border-radius: 5px; background: oklch(1 0 0 / 0.08); font-weight: 500; }
  .hd-toast button:hover { background: oklch(1 0 0 / 0.14); }

  .hd-palette { position: absolute; top: 120px; left: 50%; display: flex; flex-direction: column; width: 600px; max-height: 440px; margin-left: -300px; border-radius: 10px; border: 1px solid var(--hd-border); background: var(--hd-raised); box-shadow: var(--hd-shadow); overflow: hidden; }
  .hd-palette__input { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--hd-border); color: var(--hd-muted); }
  .hd-palette__input input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; color: var(--hd-text); font: 400 16px/1.4 var(--font); user-select: text; }
  .hd-palette__input input::placeholder { color: var(--hd-muted); }
  .hd-palette__list { padding: 4px 6px 6px; overflow-y: auto; scrollbar-width: thin; }
  .hd-palette__group { padding: 10px 10px 4px; color: var(--hd-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
  .hd-palette__empty { padding: 24px; color: var(--hd-muted); font-size: 14px; text-align: center; }
  .hd-cmd { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 6px; color: var(--hd-text); font-size: 13.5px; cursor: pointer; }
  .hd-cmd svg { color: var(--hd-muted); }
  .hd-cmd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hd-cmd em { margin-left: auto; color: var(--hd-muted); font-size: 11.5px; font-style: normal; }
  .hd-cmd kbd { margin-left: auto; }
  .hd-cmd.is-active { background: var(--hd-hover); }

  .hd-modal { position: absolute; top: 96px; left: 50%; display: flex; flex-direction: column; width: 720px; margin-left: -360px; padding: 12px 16px 0; border-radius: 10px; border: 1px solid var(--hd-border); background: var(--hd-raised); box-shadow: var(--hd-shadow); }
  .hd-modal__head { display: flex; align-items: center; justify-content: space-between; }
  .hd-modal__head .hd-crumbs b { margin-right: -2px; }
  .hd-modal__title, .hd-modal__desc { border: 0; outline: none; background: transparent; font-family: var(--font); user-select: text; }
  .hd-modal__title { margin-top: 12px; color: var(--hd-text); font-size: 20px; font-weight: 500; }
  .hd-modal__title[aria-invalid='true']::placeholder { color: var(--hd-danger); }
  .hd-modal__desc { min-height: 64px; margin-top: 6px; resize: none; color: var(--hd-text-2); font-size: 14px; line-height: 1.5; }
  .hd-modal__title::placeholder, .hd-modal__desc::placeholder { color: var(--hd-muted); }
  .hd-modal__fields { display: flex; gap: 6px; padding: 8px 0 14px; }
  .hd-modal__fields .hd-pill { border: 1px solid var(--hd-border); font-size: 12.5px; }
  .hd-modal__foot { display: flex; justify-content: flex-end; margin: 0 -16px; padding: 12px 16px; border-top: 1px solid var(--hd-border); }

  .hd-panel { position: absolute; top: 9px; right: 9px; bottom: 9px; display: flex; flex-direction: column; width: 780px; border-left: 1px solid var(--hd-border); border-radius: 0 10px 10px 0; background: var(--hd-surface); box-shadow: -24px 0 48px -16px oklch(0 0 0 / 0.6); outline: none; }
  .hd-panel__head { display: flex; align-items: center; justify-content: space-between; flex: none; height: 46px; padding: 0 10px 0 24px; border-bottom: 1px solid var(--hd-border); }
  .hd-panel__body { display: grid; grid-template-columns: minmax(0, 1fr) 250px; flex: 1; min-height: 0; }
  .hd-panel__main { padding: 30px 36px; overflow-y: auto; }
  .hd-panel__title, .hd-panel__desc { display: block; width: 100%; margin: 0 -6px; padding: 2px 6px; border: 0; border-radius: 6px; outline: none; background: transparent; font-family: var(--font); resize: none; field-sizing: content; user-select: text; transition: background-color 0.15s; }
  .hd-panel__title:hover, .hd-panel__desc:hover { background: oklch(1 0 0 / 0.03); }
  .hd-panel__title:focus, .hd-panel__desc:focus { background: oklch(1 0 0 / 0.04); box-shadow: inset 0 0 0 1px var(--hd-border-strong); }
  .hd-panel__title { color: var(--hd-text); font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; }
  .hd-panel__desc { min-height: 48px; margin-top: 10px; color: var(--hd-text-2); font-size: 14px; line-height: 1.6; }
  .hd-panel__desc::placeholder { color: var(--hd-muted); }
  .hd-panel__head { gap: 2px; }
  .hd-panel__head .hd-crumbs { margin-right: auto; }
  .hd-panel__nav { display: flex; align-items: center; gap: 2px; margin-right: 8px; padding-right: 8px; border-right: 1px solid var(--hd-border); }
  .hd-panel__nav em { margin-right: 4px; color: var(--hd-muted); font-size: 12px; font-style: normal; font-variant-numeric: tabular-nums; }
  .hd-icon:disabled { opacity: 0.35; pointer-events: none; }
  .hd-icon--down svg { transform: rotate(180deg); }
  .hd-icon--danger:hover { color: var(--hd-danger); }
  .hd-panel__main h4 { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hd-border); font-size: 13px; font-weight: 600; }
  .hd-activity { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; color: var(--hd-muted); font-size: 12.5px; }
  .hd-activity li { display: flex; align-items: center; gap: 10px; }
  .hd-activity b { color: var(--hd-text-2); font-weight: 500; }
  .hd-props { display: grid; grid-template-columns: 70px minmax(0, 1fr); align-content: start; align-items: center; gap: 8px 8px; margin: 0; padding: 20px 14px; border-left: 1px solid var(--hd-border); }
  .hd-props dt { color: var(--hd-muted); font-size: 12.5px; }
  .hd-props dd { margin: 0; min-width: 0; }
  .hd-props__static { display: flex; align-items: center; gap: 8px; min-height: 28px; padding-left: 8px; }
  .hd-props__static svg { color: var(--hd-muted); }
  .hd-pill.hd-pill--labels { flex-wrap: wrap; gap: 4px; height: auto; min-height: 28px; padding-block: 4px; white-space: normal; }
  .hd-props .hd-field { display: flex; }
  .hd-props .hd-pill { flex: 1; }
  .hd-props .hd-menu { right: 0; min-width: 0; }

  .hd-field { position: relative; display: inline-flex; }
  .hd-pill { display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; color: var(--hd-text); white-space: nowrap; transition: background-color 0.15s; }
  .hd-pill:hover, .hd-pill[aria-expanded='true'] { background: var(--hd-hover); }
  .hd-pill svg { color: var(--hd-text-2); }
  .hd-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 2; display: flex; flex-direction: column; min-width: 190px; padding: 4px; border-radius: 8px; border: 1px solid var(--hd-border-strong); background: var(--hd-hover); box-shadow: var(--hd-shadow); }
  .hd-menu button { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 5px; color: var(--hd-text); font-size: 13px; }
  .hd-menu button svg { color: var(--hd-text-2); }
  .hd-menu button:hover, .hd-menu button:focus-visible { background: oklch(1 0 0 / 0.07); outline: none; }
  .hd-menu button > svg:last-child:not(:first-child) { margin-left: auto; color: var(--hd-text); }
  .hd-menu button[aria-expanded='true'] { background: oklch(1 0 0 / 0.07); }
  .hd-menu button[data-danger]:hover, .hd-menu button[data-danger]:focus-visible { color: var(--hd-danger); }
  .hd-menu button[data-danger]:hover svg { color: var(--hd-danger); }
  .hd-menu kbd, .hd-menu__more { margin-left: auto; }
  .hd-menu__more { display: grid; color: var(--hd-muted); font-style: normal; }
  .hd-menu__group { padding: 8px 8px 4px; color: var(--hd-muted); font-size: 11px; font-weight: 600; }
  .hd-menu hr { height: 1px; margin: 4px -4px; border: 0; background: var(--hd-border-strong); }
  .hd-menu--end { left: auto; right: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .hd {
    .hd-backdrop { animation: hd-fade 160ms var(--hd-ease); }
    .hd-palette, .hd-modal { animation: hd-pop 180ms var(--hd-ease); }
    .hd-panel { animation: hd-slide 240ms var(--hd-ease); }
    .hd-menu { animation: hd-fade 120ms var(--hd-ease); }
    .hd-board.is-list { display: flex; flex-direction: column; gap: 0; padding: 0; overflow-y: auto; scrollbar-width: none; }
  .is-list .hd-col { flex: none; min-height: auto; border-radius: 0; }
  .is-list .hd-col__head { position: sticky; top: 0; z-index: 1; height: 34px; padding: 0 10px 0 20px; border-bottom: 1px solid var(--hd-border); background: var(--hd-surface); }
  .is-list .hd-col__body { gap: 0; padding: 0; overflow: visible; }
  .is-list .hd-drop { margin-block: -1px; }
  .hd-row { display: flex; align-items: center; gap: 10px; flex: none; width: 100%; height: 38px; padding: 0 16px 0 20px; border-bottom: 1px solid oklch(1 0 0 / 0.04); color: var(--hd-text); cursor: grab; touch-action: pan-y; transition: background-color 0.15s, opacity 0.15s; }
  .hd-row:hover { background: oklch(1 0 0 / 0.03); }
  .hd-row.is-selected { background: var(--hd-accent-subtle); }
  .hd-row.is-dragging { opacity: 0.35; }
  .hd-row__prio { display: grid; place-items: center; width: 16px; color: var(--hd-text-2); }
  .hd-row__id { width: 62px; color: var(--hd-muted); font-size: 12px; }
  .hd-row__title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hd-row__labels { display: flex; gap: 5px; }
  &.hd--ghost .hd-row { border: 1px solid var(--hd-border-strong); border-radius: 8px; background: var(--hd-raised); box-shadow: 0 18px 40px -8px oklch(0 0 0 / 0.7); cursor: grabbing; }

  &.hd--ghost .hd-card { animation: hd-lift 160ms var(--hd-ease); }
  }
  @keyframes hd-fade { from { opacity: 0; } }
  @keyframes hd-pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
  @keyframes hd-slide { from { opacity: 0; transform: translateX(32px); } }
  @keyframes hd-lift { from { transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .hd.hd--ghost .hd-card { transform: none; }
}

.hd-hint { display: none; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; color: var(--text-dim); font-size: 12.5px; }
.hd-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--ember-500); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.18); }
.hd-hint kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, 0.04); color: var(--text-muted); font: 500 12px/1.5 var(--font); }
.hd[hidden], .nd[hidden], .hd-hint[hidden] { display: none !important; }

/* Tabs above the hero frame: pick which live demo runs in it. */
.hero-tabs { display: none; align-items: center; gap: 4px; width: fit-content; margin: 0 auto 14px; padding: 4px; border-radius: 11px; border: 1px solid var(--border); background: rgba(20, 20, 20, 0.7); backdrop-filter: blur(8px); }
.hero-tabs__label { display: inline-flex; align-items: center; gap: 8px; padding: 0 10px 0 8px; color: var(--text-dim); font-size: 12px; font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.hero-tabs__label i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15); }
.hero-tabs [role='tab'] { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 8px; color: var(--text-muted); font-size: 13.5px; font-weight: 500; transition: background-color 0.15s, color 0.15s, box-shadow 0.15s; }
.hero-tabs [role='tab']:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.hero-tabs [role='tab'][aria-selected='true'] { color: var(--text); background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.hero-tabs [role='tab'][aria-selected='true'] svg { color: var(--ember-400); }
.hero-tabs [role='tab']:focus-visible { outline: 2px solid var(--ember-500); outline-offset: 2px; }
@media (min-width: 1200px) { .hero-tabs { margin-left: 0; } }

/* A CSS poster instead of the poster attribute: hidden videos still fetch their poster, background images in an unmatched media query do not. */
@media (width <= 760px) {
  .hd { display: none; }
  .hero__shot > video { background: #0b0b0b url(../assets/linear-clone/reel.webp?v=2) center / cover no-repeat; }
}
@media (width > 760px) {
  .hero__shot > video { display: none; }
  .hd-hint, .hero-tabs { display: flex; }
}
