/* CueDrive pages (cuedrive.html, cuedrive-guide.html): the graphics package manual.
   Graphite plates, white and black mattes, safe-title hairlines; tally red only where something is live.
   Geist ships with CueDrive (SIL OFL, fonts/geist/Geist-OFL.txt). Archivo is SIL OFL (Google Fonts). */
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('assets/fonts/archivo-wdth-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url('assets/fonts/archivo-wdth-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('fonts/geist/Geist-Regular.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('fonts/geist/Geist-Medium.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('fonts/geist/Geist-SemiBold.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('fonts/geist/GeistMono-Medium.woff2') format('woff2'); }

:root {
  --ground: #1B1C1F; --plate: #24262A; --sunk: #141517; --rule: #3A3D43; --line: #2C2E33;
  --hair: rgba(233, 234, 236, .2);
  --text: #E9EAEC; --text2: #AEB2BA; --text3: #8B919B;
  --white: #FFFFFF; --black: #000000;
  --live: #D7261E; --preview: #2FBF71;
  --display: 'Archivo', 'Arial Narrow', sans-serif;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wide: 1240px; --gutter: max(16px, env(safe-area-inset-left));
  --ease: cubic-bezier(.16, 1, .3, 1); --t-fast: 150ms; --t-state: 240ms;
}
* { box-sizing: border-box; }
html { background: var(--ground); color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-padding-top: 64px;
  scrollbar-color: var(--rule) var(--ground); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--ground); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; caret-color: var(--text); }
::selection { background: var(--text); color: var(--ground); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
h1, h2, h3, p, dl, dd, figure, ol, ul { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: 8px; z-index: 50; padding: 8px 14px; border-radius: 4px; background: var(--white); color: var(--black);
  font-weight: 600; text-decoration: none; transform: translateY(-160%); }
.skip:focus-visible { transform: none; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }
code { font-family: var(--mono); font-size: .9em; }
kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; height: 24px; padding: 0 6px; border: 1px solid var(--rule);
  border-bottom-width: 2px; border-radius: 4px; background: var(--plate); color: var(--text); font: 500 12.5px/1 var(--mono); }
.spec { font: 500 12.5px/1.5 var(--mono); color: var(--text3); font-variant-numeric: tabular-nums; }
.spec a { color: var(--text2); }
.spec.line { margin-top: 20px; }
.cap { margin-top: 10px; font-size: 13px; color: var(--text3); }

/* ---------- Site bar: pnr.digital's own look (theme.css .site-bar), kept to 44px ---------- */
.gnav { --pnr-text: #EEF4F6; --pnr-muted: #9AA6AF; --pnr-teal: #22B6C9; --pnr-signal: #FF8A3D; --pnr-hairline: rgba(220, 236, 240, .18);
  position: relative; z-index: 30; height: 44px; border-bottom: 1px solid var(--line);
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--pnr-muted); }
.gnav a { text-decoration: none; }
.gnav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.gnav .brand { display: inline-flex; align-items: baseline; gap: 6px; color: var(--pnr-text); letter-spacing: 0; text-transform: none; white-space: nowrap; }
.gnav .brand b { font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.gnav .brand span { font-size: 11px; letter-spacing: .28em; color: var(--pnr-teal); }
.gnav .brand:hover b { color: var(--pnr-signal); }
.gnav nav { display: flex; gap: 24px; }
.gnav nav a { position: relative; color: var(--pnr-muted); white-space: nowrap; transition: color .2s; }
.gnav nav a::before { content: '/'; color: var(--pnr-hairline); margin-right: .5em; }
.gnav nav a[aria-current]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px; background: currentColor; }
.gnav nav a:hover { color: var(--pnr-signal); }
.gnav nav a[aria-current] { color: var(--pnr-text); }
.gnav .menu { display: none; background: none; border: 0; color: var(--pnr-muted); padding: 13px; margin-right: -13px; cursor: pointer; }
.gnav .menu:hover { color: var(--pnr-signal); }
.gnav .menu svg path { transition: transform var(--t-state) var(--ease); transform-origin: 9px 9px; }
.gnav.open .menu path:first-child { transform: translateY(3px) rotate(45deg); }
.gnav.open .menu path:last-child { transform: translateY(-3px) rotate(-45deg); }
@media (max-width: 880px) {
  .gnav .menu { display: block; }
  .gnav nav { position: absolute; top: 44px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ground); border-bottom: 1px solid var(--line); padding: 6px var(--gutter) 14px;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--t-fast), transform var(--t-fast) var(--ease), visibility 0s var(--t-fast); }
  .gnav.open nav { visibility: visible; opacity: 1; transform: none; transition: opacity var(--t-state), transform 320ms var(--ease), visibility 0s; }
  .gnav nav a { font-size: 13px; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .gnav nav a[aria-current]::after { content: none; }
}

/* ---------- Product bar ---------- */
.lnav { position: sticky; top: 0; z-index: 20; height: 50px; background: var(--ground); border-bottom: 1px solid var(--rule); }
.lnav a { text-decoration: none; }
.lnav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.lnav .name { font: 700 19px/1 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; color: var(--text); display: flex; align-items: center; gap: 9px; flex: none; }
.lnav .name img { width: 22px; height: 22px; }
.lnav .links { position: relative; display: flex; align-self: stretch; gap: 20px; margin-left: auto; min-width: 0; }
.lnav a.l, .lnav button.l { display: flex; align-items: center; color: var(--text2); font: 500 13.5px var(--sans); white-space: nowrap; background: none; border: 0; padding: 0; cursor: pointer; transition: color var(--t-fast); }
.lnav a.l:hover, .lnav button.l:hover, .lnav a.l[aria-current] { color: var(--text); }
.lnav a.l:focus-visible, .lnav button.l:focus-visible { outline-offset: -2px; }
.lnav .ind { position: absolute; left: 0; bottom: -1px; width: 100px; height: 2px; background: var(--text); pointer-events: none;
  transform-origin: 0 0; opacity: 0; transition: transform 380ms var(--ease), opacity var(--t-state); }
@media (max-width: 720px) {
  .lnav .wrap { gap: 12px; }
  .lnav .name span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .lnav .links { overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; padding-inline: 10px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent);
            mask-image: linear-gradient(90deg, transparent, #000 12px, #000 calc(100% - 20px), transparent); }
  .lnav .links::-webkit-scrollbar { display: none; }
  .lnav .ind { bottom: 0; }
}

/* ---------- Buttons and switches ---------- */
.btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 5px; font: 600 15px var(--sans);
  color: var(--text); background: var(--plate); border: 1px solid var(--rule); cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: background-color var(--t-fast), transform var(--t-fast) var(--ease); }
.btn:hover { background: #2E3035; }
.btn:active { transform: translateY(1px); }
.btn.primary { color: var(--black); background: var(--text); border-color: transparent; }
.btn.primary:hover { background: var(--white); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 13px; border-radius: 4px; flex: none; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; flex: none; }
.seg button { font: 500 13px var(--sans); color: var(--text2); background: none; border: 0; padding: 7px 14px; cursor: pointer; transition: color var(--t-fast), background-color var(--t-fast); }
.seg button + button { border-left: 1px solid var(--rule); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--text); color: var(--black); }
.seg button:focus-visible { outline-offset: -3px; outline-color: var(--text3); }

/* ---------- Sections: a plate head, then the plate ---------- */
.sec { padding-top: clamp(72px, 9vw, 112px); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 10px 24px; border-top: 1px solid var(--rule); padding-top: 14px; }
.head h2 { font: 700 clamp(30px, 4.4vw, 48px)/.92 var(--display); font-stretch: 72%; text-transform: uppercase; letter-spacing: -.005em; }
.out .head h2 { font-size: clamp(24px, 2.6vw, 30px); }
.head .sub { color: var(--text2); font-size: 16px; }
.cols { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 64px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } }

/* A plate: the picture with safe-title and action-safe hairlines, then a caption line */
.plate { margin: 0; min-width: 0; }
.frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 3px; background: var(--black); outline: 1px solid var(--line); }
.frame.tall { aspect-ratio: 4 / 3; }
.frame > img, .frame > canvas { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame::before, .frame::after { content: ''; position: absolute; z-index: 2; pointer-events: none; border: 1px dashed var(--hair); }
.frame::before { inset: 5%; }
.frame::after { inset: 10%; }
.frame.tall::before, .frame.tall::after { content: none; }
.plate.live .frame { outline: 3px solid var(--live); outline-offset: 0; }
.plate figcaption { display: flex; align-items: baseline; gap: 10px; padding-top: 10px; font-size: 14.5px; line-height: 1.3; }
.plate figcaption .no { font: 700 24px/.8 var(--display); font-stretch: 72%; }
.plate figcaption .what { font-weight: 600; }
.plate figcaption .spec { margin-left: auto; text-align: right; font-size: 12px; }
.tag { display: inline-block; vertical-align: 2px; font: 600 11px/1 var(--sans); letter-spacing: .04em; padding: 3px 5px 2px; border-radius: 2px; color: var(--white); background: var(--plate); }
.tag.live { background: var(--live); }

/* Term lists */
.feats { display: grid; grid-template-columns: 1fr; }
.feats div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feats div:first-child { border-top: 1px solid var(--line); }
.feats dt { font-weight: 600; }
.feats dd { color: var(--text2); }
.feats.row { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 0 32px; margin-top: 28px; }
.feats.row div { grid-template-columns: 1fr; gap: 2px; }
.feats.row div:first-child { border-top: 0; }
@media (max-width: 480px) { .feats div { grid-template-columns: 1fr; gap: 2px; } }

.specs { margin-top: 24px; }
.specs div { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.specs dt { font: 700 18px/1.3 var(--display); font-stretch: 75%; text-transform: uppercase; letter-spacing: .01em; }
.specs dd { color: var(--text2); }
@media (max-width: 560px) { .specs div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Footer ---------- */
footer { margin-top: clamp(72px, 9vw, 112px); padding: 28px 0 40px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--text3); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
footer a { color: var(--text2); }

/* Backdrop: a frozen graphite contour map behind the page (cuedrive.js, body.topo) */
body.topo { background: transparent; }
.topo-map { position: fixed; inset: 0; width: 100%; height: 100lvh; z-index: -1; pointer-events: none; }
.topo-fade { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(27, 28, 31, .1) 0%, rgba(27, 28, 31, .72) calc(50% - 560px), rgba(27, 28, 31, .72) calc(50% + 560px), rgba(27, 28, 31, .1) 100%); }

/* Guided clicks: the real window, eased in on the part that matters, a cursor clicks and real
   captures of the next state fade in. cuedrive.js runs the script; reduced motion shows the end. */
.gd .frame { aspect-ratio: 2880 / 1800; background: var(--sunk); }
@property --inv { syntax: '<number>'; inherits: true; initial-value: 1; }
.gd-stage { position: absolute; inset: 0; transform-origin: 0 0; --inv: 1;
  transition: transform 1100ms cubic-bezier(.65, 0, .35, 1), --inv 1100ms cubic-bezier(.65, 0, .35, 1); will-change: transform; }
.gd-stage > img { position: absolute; display: block; max-width: none; }
.gd-base { inset: 0; width: 100%; height: 100%; }
.gd-p { opacity: 0; transition: opacity 160ms linear; }
.gd-p.on { opacity: 1; }
.gd-cur { position: absolute; left: 105%; top: 105%; width: 0; height: 0; z-index: 2; pointer-events: none; opacity: 0;
  transition: left var(--move, 700ms) cubic-bezier(.45, 0, .2, 1), top var(--move, 700ms) cubic-bezier(.45, 0, .2, 1), opacity 200ms; }
.gd-cur.show { opacity: 1; }
.gd-cur svg { position: absolute; left: -3px; top: -2px; width: 25px; height: 32px; transform: scale(var(--inv)); transform-origin: 3px 2px;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transition: transform 90ms ease-out; }
.gd-cur.down svg { transform: scale(calc(var(--inv) * .86)); }
.gd-cur i { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .9); opacity: 0; transform: scale(calc(var(--inv) * .3)); }
.gd-cur.tap i { animation: gd-tap 520ms cubic-bezier(.16, 1, .3, 1); }
@keyframes gd-tap { 0% { opacity: .9; transform: scale(calc(var(--inv) * .3)); } 100% { opacity: 0; transform: scale(calc(var(--inv) * 1.5)); } }
.gd figcaption .again { margin-left: 12px; font: 500 12.5px var(--sans); color: var(--text2); background: none; border: 1px solid var(--rule);
  border-radius: 4px; padding: 4px 10px; cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast); }
.gd figcaption .again:hover { color: var(--text); border-color: var(--text3); }
.gd figcaption .again[hidden] { display: none; }
/* A screen beside a demo, dark until the click puts it live */
.lit .frame > * { transition: opacity 260ms linear; }
.lit .frame .off { position: absolute; inset: 0; }
.lit.on .frame .off { opacity: 0; }
.lit.on .frame { outline: 3px solid var(--live); }
.lit figcaption .tag.live { visibility: hidden; }
.lit.on figcaption .tag.live { visibility: visible; }
.pair-lg { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 36px); margin-top: 32px; align-items: start; }
@media (max-width: 860px) { .pair-lg { grid-template-columns: minmax(0, 1fr); } }
.gd-full { margin-top: 32px; }
@media (prefers-reduced-motion: reduce) { .gd-stage, .gd-p, .gd-cur, .lit .frame > * { transition: none; } }
