/* Copied from windborne/cos/1314705ec807/index.html. */
    /* ============ QuickTime-style window (same as home About.mov) ============ */
    .qt {
      width: var(--hero-w);
      border: 1px solid #1b1b19;
      border-radius: 6px;
      background: #232320;
      box-shadow: 2px 2px 0 rgba(22, 22, 20, 0.45);
      overflow: hidden;
      user-select: none;
      color: #fbfdf6;
      animation: .55s ease-out .24s backwards home-bio-in;
    }

    .cd-titlebar {
      position: relative;
      display: flex;
      align-items: center;
      height: 22px;
      padding: 4px 8px;
      border-bottom: 1px solid #1b1b19;
      background: repeating-linear-gradient(
        to bottom,
        transparent 0 3px,
        rgba(251, 253, 246, 0.28) 3px 4px
      );
      background-clip: content-box;
    }

    .cd-titlebar-text {
      position: relative;
      z-index: 1;
      margin: 0 auto;
      padding: 0 8px;
      background: #232320;
      color: #fbfdf6;
      font-family: "Silkscreen", "Geist Mono", monospace;
      font-size: 8px;
      letter-spacing: .08em;
      text-transform: uppercase;
      line-height: 14px;
    }

    .qt-inner { padding: 10px; }

    .qt-screen {
      position: relative;
      aspect-ratio: 16 / 9;
      border-radius: 2px;
      overflow: hidden;
      background: #161614;
      border: 1px solid #000;
    }

    .qt-screen video {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: contain;
      display: block;
      border: 0;
      background: #161614;
      cursor: pointer;
    }

    .qt-placeholder {
      position: absolute;
      inset: 0;
      display: none;
      background: #161614;
      flex-direction: column;
      gap: 6px;
      align-items: center;
      justify-content: center;
      color: rgba(251, 253, 246, 0.8);
      font-family: "Silkscreen", "Geist Mono", monospace;
      font-size: 8px;
      letter-spacing: .18em;
      text-transform: uppercase;
      text-align: center;
      padding: 0 12px;
    }

    .qt-controls {
      position: relative; /* anchor for the seek tooltip; .is-fs overrides to absolute */
      display: flex;
      flex-wrap: wrap; /* windowed: the speed group wraps onto its own line */
      align-items: center;
      gap: 8px;
      margin-top: 10px;
      padding: 0 2px;
    }

    /* windowed: speed stepper sits on its own line below (order pushes it past the wrap) */
    .qt-speed-group {
      order: 99;
      flex-basis: 100%;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    /* narrow screens: seek gets its own full-width line on top (iOS Music grammar),
       so the most important control is the biggest one */
    @media (max-width: 620px) {
      #qt-seek { order: -1; flex-basis: 100%; }
    }

    /* touch: taller hit area for scrubbing, same visuals (track/thumb stay centered) */
    @media (hover: none) {
      .qt-seek { height: 28px; }
    }

    .cd-btn {
      appearance: none;
      width: 38px;
      height: 26px;
      flex-shrink: 0;
      border: 1px solid #fbfdf6;
      border-radius: 3px;
      background: #232320;
      color: #fbfdf6;
      font-size: 10px;
      line-height: 1;
      cursor: pointer;
      font-family: inherit;
      transition: background-color .18s;
      box-shadow: inset 1px 1px 0 rgba(251,253,246,.18), 1px 1px 0 rgba(0,0,0,.5);
    }

    .cd-btn:hover { background: #3a3a38; }

    .cd-btn:active {
      box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.55);
      transform: translate(1px, 1px);
    }

    a.cd-btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      text-decoration: none;
    }

    /* ---- fullscreen: the whole QT window goes fullscreen, controls included ---- */
    .qt:fullscreen {
      width: 100%;
      height: 100%;
      max-width: none;
      border-radius: 0;
      display: flex;
      flex-direction: column;
    }
    .qt:fullscreen .qt-inner {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .qt:fullscreen .qt-screen {
      flex: 1;
      aspect-ratio: auto;
      min-height: 0;
    }
    .qt:-webkit-full-screen {
      width: 100%;
      height: 100%;
      max-width: none;
      border-radius: 0;
      display: flex;
      flex-direction: column;
    }
    .qt:-webkit-full-screen .qt-inner {
      flex: 1;
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    .qt:-webkit-full-screen .qt-screen {
      flex: 1;
      aspect-ratio: auto;
      min-height: 0;
    }

    .qt-time {
      font-family: "Geist Mono", ui-monospace, monospace;
      font-size: 9px;
      color: rgba(251, 253, 246, 0.7);
      flex-shrink: 0;
      min-width: 62px;
      text-align: center;
    }

    .qt-seek {
      appearance: none;
      -webkit-appearance: none;
      flex: 1;
      height: 14px;
      background: transparent;
      cursor: pointer;
      min-width: 0;
    }

    .qt-seek::-webkit-slider-runnable-track {
      height: 6px;
      border: 1px solid rgba(251, 253, 246, 0.7);
      border-radius: 3px;
      background: rgba(251, 253, 246, 0.14);
    }

    .qt-seek::-webkit-slider-thumb {
      -webkit-appearance: none;
      width: 10px;
      height: 14px;
      margin-top: -5px;
      border: 1px solid #1b1b19;
      border-radius: 2px;
      background: #fbfdf6;
      box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
    }

    .qt-seek::-moz-range-track {
      height: 6px;
      border: 1px solid rgba(251, 253, 246, 0.7);
      border-radius: 3px;
      background: rgba(251, 253, 246, 0.14);
    }

    .qt-seek::-moz-range-thumb {
      width: 10px;
      height: 14px;
      border: 1px solid #1b1b19;
      border-radius: 2px;
      background: #fbfdf6;
    }

    .qt-speed-label {
      font-family: "Silkscreen", "Geist Mono", monospace;
      font-size: 8px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(251, 253, 246, 0.55);
      margin-right: 2px;
    }

    /* ---- volume slider: same pixel language as seek, visibly secondary (thinner track, smaller thumb) ---- */
    .qt-vol { flex: 0 0 64px; }
    .qt-vol::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; }
    .qt-vol::-webkit-slider-thumb { width: 8px; height: 10px; margin-top: -3px; }
    .qt-vol::-moz-range-track { height: 4px; border-radius: 2px; }
    .qt-vol::-moz-range-thumb { width: 8px; height: 10px; }
    @media (hover: none) { .qt-vol { display: none; } } /* iOS: hardware volume only */

    /* ---- fullscreen: overlay layout (YouTube-like) ---- */
    .qt.is-fs {
      position: relative;
      border: 0;
      border-radius: 0;
      box-shadow: none;
      background: #000;
    }
    .qt.is-fs .cd-titlebar { display: none; }
    .qt.is-fs .qt-inner { position: absolute; inset: 0; padding: 0; }
    .qt.is-fs .qt-screen {
      position: absolute;
      inset: 0;
      aspect-ratio: auto;
      border: 0;
      border-radius: 0;
    }
    .qt.is-fs .qt-inner::before {
      content: "";
      position: absolute;
      left: 0; right: 0; bottom: 0;
      height: 170px;
      background: linear-gradient(to bottom, rgba(22, 22, 22, 0), rgba(22, 22, 22, 0.72));
      pointer-events: none;
      transition: opacity .18s;
      z-index: 4;
    }
    /* fullscreen: everything merges into ONE bar (YouTube grammar) */
    .qt.is-fs .qt-controls {
      position: absolute;
      left: 18px;
      right: 18px;
      bottom: 14px;
      z-index: 5;
      flex-wrap: nowrap;
    }
    .qt.is-fs .qt-speed-group { order: 0; flex-basis: auto; }
    .qt.is-fs .qt-speed-label { display: none; }
    .qt.is-fs #qt-dl { display: none; }
    .qt.is-fs.is-fs-idle .qt-inner::before { opacity: 0; }

    /* ---- fullscreen: auto-hide controls (YouTube-like) ---- */
    .qt .qt-controls { transition: opacity .18s; }
    .qt.is-fs-idle .qt-controls { opacity: 0; pointer-events: none; }
    .qt.is-fs-idle, .qt.is-fs-idle video { cursor: none; }

    /* ---- speed stepper ---- */
    .qt-spd-val {
      font-family: "Geist Mono", ui-monospace, monospace;
      font-size: 9px;
      color: rgba(251, 253, 246, 0.85);
      min-width: 40px;
      text-align: center;
    }
    /* ---- seek hover tooltip ---- */
    .qt-tip {
      position: absolute;
      bottom: 100%;
      transform: translateX(-50%);
      margin-bottom: 4px;
      padding: 2px 5px;
      background: #232320;
      border: 1px solid #1b1b19;
      border-radius: 2px;
      box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.5);
      color: #fbfdf6;
      font-family: "Geist Mono", ui-monospace, monospace;
      font-size: 9px;
      pointer-events: none;
      opacity: 0;
      transition: opacity .18s;
      white-space: nowrap;
      z-index: 3;
    }

