/* ============================================================
   Disney anonymized body tracking patent (Desk feature)
   Page uses _Layout (site.css Nightfall tokens: --paper, --paper-2, --ink, --ink-soft,
   --muted, --hair, --gold, --display, --text, --space-*). Scoped under .dwp; page links
   use `.dwp :where(a)` so classed controls keep their own ink.
   Signature: the foyer screen. A playable sketch of the patent's figure 3B, the wave turns
   toward the reader and splashes on raised arms. The patent's own drawings carry the
   explainer sections, framed like blueprint sheets.
   ============================================================ */

.dwp {
  --dwp-sea: oklch(30% 0.07 235);
  --dwp-sea-deep: oklch(19% 0.05 250);
  --dwp-foam: oklch(96% 0.02 210);
  --dwp-teal: oklch(80% 0.11 200);
  --dwp-sheet: oklch(97% 0.006 90);      /* patent drawing paper */
  --dwp-sheet-ink: oklch(25% 0.02 260);
  --dwp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 1160px;
  margin: 0 auto;
  padding: var(--space-md) 20px var(--space-3xl);
}
.dwp :where(a) { color: var(--gold); text-decoration: none; border-bottom: 1px solid oklch(84% 0.13 86 / 0.35); }
.dwp :where(a:hover) { border-bottom-color: var(--gold); }
.dwp :where(a:focus-visible), .dwp :where(summary:focus-visible) { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ---- hero -------------------------------------------------------------- */
.dwp-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding: clamp(8px, 3vw, 40px) 0 clamp(32px, 5vw, 64px);
}
.dwp-kicker { margin: 0; font-family: var(--text); font-size: 14px; font-weight: 600; color: var(--dwp-teal); letter-spacing: 0.02em; }
.dwp-h1 {
  margin: var(--space-md) 0 0;
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5vw, 62px); line-height: 1.02; letter-spacing: -0.025em;
  color: var(--ink); text-wrap: balance;
}
.dwp-answer { margin: var(--space-lg) 0 0; max-width: 58ch; font-family: var(--text); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.65; color: var(--ink-soft); }
.dwp-answer b { color: var(--ink); font-weight: 600; }
.dwp-facts { display: flex; flex-wrap: wrap; gap: var(--space-sm) 0; margin: var(--space-xl) 0 0; padding: 0; }
.dwp-facts > div { padding: 0 18px; border-left: 1px solid var(--hair); }
.dwp-facts > div:first-child { padding-left: 0; border-left: 0; }
.dwp-facts dt { font-family: var(--text); font-size: 13px; color: var(--muted); }
.dwp-facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.dwp-byline { margin: var(--space-lg) 0 0; font-size: 14px; color: var(--muted); }

/* the foyer screen */
.dwp-stage { margin: 0; }
.dwp-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--dwp-sea-deep), var(--dwp-sea));
  box-shadow:
    0 0 0 10px oklch(16% 0.02 270),
    0 0 0 11px oklch(100% 0 0 / 0.08),
    0 30px 60px -20px oklch(10% 0.04 260 / 0.8);
  touch-action: pan-y;
  cursor: crosshair;
}
.dwp-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dwp-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--dwp-sheet); }
.dwp.is-live .dwp-fallback { display: none; }
.dwp-readout {
  position: absolute; left: 14px; bottom: 12px; margin: 0;
  padding: 6px 10px; border-radius: 6px;
  background: oklch(12% 0.03 260 / 0.7);
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 12px; letter-spacing: 0.02em;
  color: var(--dwp-foam);
}
.dwp:not(.is-live) .dwp-readout { display: none; }
.dwp-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.dwp .dwp-btn {
  appearance: none; cursor: pointer;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid oklch(80% 0.11 200 / 0.45); background: transparent;
  font-family: var(--text); font-size: 15px; font-weight: 600; color: var(--ink);
  transition: background-color 0.2s, border-color 0.2s, transform 0.25s var(--dwp-ease);
}
.dwp .dwp-btn:hover { border-color: var(--dwp-teal); transform: translateY(-1px); }
.dwp .dwp-btn:active { transform: translateY(1px); }
.dwp .dwp-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dwp .dwp-btn-main { background: var(--dwp-teal); border-color: var(--dwp-teal); color: oklch(20% 0.04 250); }
.dwp .dwp-btn-main:hover { background: oklch(86% 0.1 200); }
.dwp .dwp-btn[aria-pressed="true"] { background: oklch(80% 0.11 200 / 0.16); border-color: var(--dwp-teal); }
.dwp:not(.is-live) .dwp-controls { display: none; }
.dwp-stage-cap { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--muted); }

/* ---- body -------------------------------------------------------------- */
.dwp-body { margin: 0; }
.dwp-sec { padding: clamp(36px, 6vw, 64px) 0 0; }
.dwp-sec > p, .dwp-split p { max-width: 68ch; font-family: var(--text); font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.dwp-sec b { color: var(--ink); }
.dwp-eyebrow { margin: 0 0 6px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dwp-teal); }
.dwp-sec h2 { margin: 0 0 var(--space-md); font-family: var(--display); font-weight: 800; font-size: clamp(26px, 3.2vw, 36px); line-height: 1.12; letter-spacing: -0.015em; color: var(--ink); text-wrap: balance; }
.dwp-sec h3 { margin: 0 0 10px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--ink); }

/* how it works, five numbered steps */
.dwp-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: var(--space-xl); }
.dwp-step { position: relative; padding: 18px 16px 20px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); }
.dwp-step i { display: block; font-style: normal; font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1; color: var(--dwp-teal); }
.dwp-step b { display: block; margin-top: 10px; font-size: 16px; }
.dwp-step span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--muted); }

/* figure sections */
.dwp-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.dwp-split-rev > figure { order: -1; }
.dwp-fig { margin: 0; }
.dwp-fig img {
  display: block; width: 100%; height: auto;
  border-radius: 6px; background: var(--dwp-sheet);
  box-shadow: 0 0 0 1px oklch(100% 0 0 / 0.08), 0 24px 48px -24px oklch(8% 0.03 260 / 0.9);
  transform: rotate(-0.6deg);
}
.dwp-split-rev .dwp-fig img { transform: rotate(0.6deg); }
.dwp-fig figcaption { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.dwp-list { margin: 0; padding: 0; list-style: none; max-width: 62ch; }
.dwp-list li { position: relative; padding: 10px 0 10px 22px; border-top: 1px solid var(--hair); font-size: 17px; line-height: 1.55; color: var(--ink-soft); }
.dwp-list li:last-child { border-bottom: 1px solid var(--hair); }
.dwp-list li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 8px; height: 8px; border-radius: 50%; background: var(--dwp-teal); }

/* places listed */
.dwp-places { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 720px; margin: var(--space-lg) 0; }
.dwp-place-col { padding: 18px 20px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); }
.dwp-place-col h3 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-family: var(--text); font-weight: 600; }
.dwp-place-col ul { margin: 0; padding: 0; list-style: none; }
.dwp-place-col li { padding: 7px 0; font-size: 17px; color: var(--ink); border-top: 1px solid var(--hair); }
.dwp-place-col li:first-child { border-top: 0; }

/* privacy ledger */
.dwp-ledger { max-width: 860px; margin: var(--space-lg) 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hair); }
.dwp-ledger-row { display: grid; grid-template-columns: 0.6fr 1.2fr 1.4fr; gap: 16px; padding: 14px 18px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); border-top: 1px solid var(--hair); }
.dwp-ledger-row:first-child { border-top: 0; }
.dwp-ledger-head { background: var(--paper-2); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.dwp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; max-width: 980px; margin: var(--space-lg) 0; }
.dwp-card { padding: 20px 22px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); }
.dwp-card.is-says { border-top: 3px solid var(--dwp-teal); }
.dwp-card.is-gap { border-top: 3px solid var(--gold); }
.dwp-card ul { margin: 0; padding-left: 18px; }
.dwp-card li { margin: 8px 0; font-size: 16px; line-height: 1.55; color: var(--ink-soft); }

/* source box */
.dwp-src { }
.dwp-src-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: var(--space-md) 0 0; border: 1px solid var(--hair); border-radius: 14px; overflow: hidden; }
.dwp-src-grid > div { padding: 14px 16px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.dwp-src-grid > div:nth-child(4n) { border-right: 0; }
.dwp-src-grid > div:nth-last-child(-n+4) { border-bottom: 0; }
.dwp-src-grid dt { font-size: 12px; color: var(--muted); }
.dwp-src-grid dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.dwp .dwp-src-link { font-size: 15px; margin-top: var(--space-md); }

/* links */
.dwp-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dwp .dwp-link { display: block; padding: 18px 20px; border-radius: 14px; background: var(--paper-2); border: 1px solid var(--hair); color: var(--ink); transition: border-color 0.2s, transform 0.25s var(--dwp-ease); }
.dwp .dwp-link:hover { border-color: var(--dwp-teal); transform: translateY(-2px); }
.dwp .dwp-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.dwp-link b { display: block; font-size: 17px; }
.dwp-link span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }

/* faq */
.dwp-faq-item { border-top: 1px solid var(--hair); }
.dwp-faq-item:last-child { border-bottom: 1px solid var(--hair); }
.dwp-faq-item summary { cursor: pointer; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--ink); }
.dwp-faq-item p { margin: 0 0 18px; max-width: 68ch; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }

/* ---- responsive -------------------------------------------------------- */
@media (max-width: 960px) {
  .dwp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwp-steps .dwp-step:last-child { grid-column: 1 / -1; }
  .dwp-src-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dwp-src-grid > div:nth-child(4n) { border-right: 1px solid var(--hair); }
  .dwp-src-grid > div:nth-child(2n) { border-right: 0; }
  .dwp-src-grid > div:nth-last-child(-n+4) { border-bottom: 1px solid var(--hair); }
  .dwp-src-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 860px) {
  .dwp-hero, .dwp-split { grid-template-columns: minmax(0, 1fr); }
  .dwp-split-rev > figure { order: 0; }
  .dwp-two, .dwp-links { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .dwp { padding-inline: 16px; }
  .dwp-steps, .dwp-places { grid-template-columns: minmax(0, 1fr); }
  .dwp-ledger-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .dwp-ledger-head { display: none; }
  .dwp-ledger-row [data-label]::before { content: attr(data-label); display: block; margin-top: 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .dwp-screen { box-shadow: 0 0 0 6px oklch(16% 0.02 270), 0 0 0 7px oklch(100% 0 0 / 0.08); }
  .dwp-controls { margin-top: 18px; }
  .dwp-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; }
  .dwp-facts > div { padding: 0 12px; }
  .dwp-facts dd { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .dwp .dwp-btn, .dwp .dwp-link { transition: none; }
  .dwp-fig img { transform: none; }
}

/* examination history, a docket strip with the rejections marked */
.dwp .dwp-answer-flag { margin-top: var(--space-md); padding-left: 14px; border-left: 3px solid var(--gold); }
.dwp-file { list-style: none; margin: var(--space-lg) 0; padding: 0; max-width: 760px; border-left: 2px solid var(--hair); }
.dwp-file-row { position: relative; display: grid; grid-template-columns: 120px 110px 1fr; gap: 12px; align-items: baseline; padding: 12px 0 12px 22px; font-size: 16px; color: var(--ink-soft); }
.dwp-file-row::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--muted); }
.dwp-file-row.is-rej::before { background: var(--gold); border-color: var(--gold); }
.dwp-file-row time { font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; font-size: 13px; color: var(--muted); }
.dwp-file-row b { color: var(--ink); }
.dwp-file-row.is-rej b { color: var(--gold); }
@media (max-width: 560px) {
  .dwp-file-row { grid-template-columns: 1fr; gap: 2px; }
}
