/* The page is a canvas. Everything else is either invisible or on top of it. */
html, body { height: 100%; margin: 0; }
body {
  background: #fff;
  overflow: hidden;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

#lcd {
  position: fixed;
  left: 0;
  top: 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  /* A whisper of optical softness over the hard pixels, like a camera would see */
  filter: blur(.45px) contrast(1.06) saturate(1.08);
  cursor: default;
}
#lcd.is-hover { cursor: pointer; }
/* The type layer: text at the screen's own resolution over the display, which loses its optical blur to match */
#type { position: fixed; left: 0; top: 0; z-index: 1; display: block; pointer-events: none; }
html[data-sharp][data-theme="white"] #lcd { filter: none; }

/* Glass: curvature shadow and a reflection streak, at device resolution */
/* Glass over the panel: a fixed pane (room tint, fingerprints, bevel) and a
   glare layer that moves a little against the content, which is what makes it
   read as a reflection rather than a gradient. */
.glass {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  background:
    linear-gradient(112deg, transparent 52%, rgba(18, 24, 46, .07) 60%, rgba(18, 24, 46, .12) 70%, transparent 86%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), inset 0 0 26px rgba(255, 255, 255, .10);
}
.smudge {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: .10;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='s' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.0045' numOctaves='3' seed='11'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 4 -1.6'/%3E%3C/filter%3E%3Crect width='900' height='900' filter='url(%23s)'/%3E%3C/svg%3E");
  background-size: 900px 900px;
}
.glare {
  position: fixed;
  inset: -6%;
  pointer-events: none;
  z-index: 6;
  background:
    radial-gradient(ellipse 30% 22% at 12% 5%, rgba(255, 255, 255, .55), rgba(255, 255, 255, .18) 40%, transparent 70%),
    linear-gradient(112deg, transparent 26.5%, rgba(255, 255, 255, .26) 27.5%, rgba(255, 255, 255, .16) 35%, rgba(255, 255, 255, .05) 41%, transparent 45%),
    linear-gradient(112deg, transparent 47.5%, rgba(255, 255, 255, .12) 48%, rgba(255, 255, 255, .04) 51%, transparent 53%),
    linear-gradient(112deg, transparent 78%, rgba(255, 255, 255, .14) 84%, transparent 90%);
  transform: translate(0, 0) scale(1.03);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
  will-change: transform;
}
@media (pointer: coarse) {
  .glare { animation: glass-drift 22s ease-in-out infinite; transition: none; }
}
@keyframes glass-drift {
  0%   { transform: translate(0, 0) scale(1.02); }
  50%  { transform: translate(-14px, -8px) scale(1.03); }
  100% { transform: translate(0, 0) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .glare { animation: none; transition: none; }
}

/* The inspiration footage: a real video element placed over the drawn frame */
.footage {
  position: fixed;
  left: 0; top: 0;
  width: 0; height: 0;
  display: none;
  object-fit: cover;
  background: #000;
  pointer-events: none;
  z-index: 4;
}
.footage.is-on { display: block; }

/* Real content and controls: available to assistive tech and keyboard, not drawn */
.sr-only, .doc {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  #lcd { filter: none; }
}

/* ============================================================
   Accessibility: pointer on hits, skip link, and a readable text layer
   ============================================================ */
#lcd.is-hover { cursor: pointer; }

.skip {
  position: fixed; left: 12px; top: -48px; z-index: 40;
  padding: 8px 12px; border-radius: 3px;
  background: #141a30; color: #fff;
  font: bold 12px/1 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  transition: top .15s;
}
.skip:focus { top: 12px; outline: 2px solid #fff; outline-offset: 2px; }

.text-toggle {
  position: fixed; top: 0; right: 10px; z-index: 40;
  height: 22px; padding: 0 8px; border: 0; background: transparent;
  color: #141a30; opacity: .75; cursor: pointer;
  font: bold 10px/22px Arial, Helvetica, sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
html[data-theme="dark"] .text-toggle { color: #f2f5ff; }
.text-toggle:hover, .text-toggle:focus-visible { opacity: 1; outline: 2px solid currentColor; outline-offset: -2px; }

/* The document is always in the accessibility tree; it becomes visible when
   opened with the toggle or the skip link, or as soon as focus lands in it. */
.doc.is-open, .doc:focus-within {
  position: fixed; inset: 0; width: auto; height: auto; margin: 0;
  clip: auto; clip-path: none; overflow: auto; white-space: normal; z-index: 30;
  padding: 56px 24px 64px;
  background: #dde3ee; color: #141a30;
  font: 15px/1.6 Arial, Helvetica, sans-serif;
  -webkit-overflow-scrolling: touch;
}
html[data-theme="dark"] .doc.is-open, html[data-theme="dark"] .doc:focus-within { background: #0d1226; color: #f2f5ff; }
.doc.is-open > *, .doc:focus-within > * { max-width: 64ch; margin-left: auto; margin-right: auto; }
.doc.is-open .hd-title, .doc:focus-within .hd-title { display: none; }
.doc.is-open h1, .doc:focus-within h1 { margin: 0 0 6px; font: bold 26px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.doc.is-open h2, .doc:focus-within h2 { margin: 44px 0 12px; padding-top: 14px; border-top: 1px solid currentColor; font: bold 13px/1.2 Arial, Helvetica, sans-serif; letter-spacing: .22em; text-transform: uppercase; }
.doc.is-open .eyebrow, .doc:focus-within .eyebrow { display: none; }
.doc.is-open .smallcaps, .doc:focus-within .smallcaps { margin: 0 0 16px; font: bold 11px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .22em; text-transform: uppercase; opacity: .75; }
.doc.is-open p, .doc:focus-within p { margin: 0 0 14px; }
.doc.is-open a, .doc:focus-within a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.doc.is-open a:focus-visible, .doc:focus-within a:focus-visible, .doc.is-open button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.doc.is-open ul, .doc:focus-within ul { list-style: none; margin: 0; padding: 0; }
.doc.is-open li, .doc:focus-within li { padding: 9px 0; border-bottom: 1px solid rgba(128, 136, 160, .35); }
.doc.is-open .meta, .doc:focus-within .meta { margin-left: 10px; font: bold 11px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.doc.is-open .facts .k, .doc:focus-within .facts .k { display: inline-block; min-width: 120px; font: bold 10px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.doc.is-open .gallery, .doc:focus-within .gallery { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.doc.is-open .gallery li, .doc:focus-within .gallery li { width: 180px; padding: 0; border: 0; }
.doc.is-open .gallery img, .doc:focus-within .gallery img { display: block; width: 100%; height: auto; border: 1px solid currentColor; }
.doc.is-open .gallery .cap, .doc:focus-within .gallery .cap { display: block; margin-top: 4px; font: bold 10px/1.6 Arial, Helvetica, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.doc.is-open video, .doc:focus-within video { display: none; }
.doc.is-open nav, .doc:focus-within nav { margin-top: 36px; }
.doc.is-open nav button, .doc:focus-within nav button { margin: 0 8px 8px 0; padding: 8px 12px; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; font: bold 11px/1 Arial, Helvetica, sans-serif; letter-spacing: .12em; text-transform: uppercase; }

/* Text layer: chrome stays out, no ring around the whole layer, placeholders are not links */
.doc.is-open .hd-marquee, .doc:focus-within .hd-marquee { display: none; }
.doc:focus { outline: none; }
.doc.is-open a[href="#"], .doc:focus-within a[href="#"] { text-decoration: none; pointer-events: none; }

/* Narrow screens: the Text control sits at the foot, clear of the header and clock */
@media (max-width: 700px) {
  .text-toggle { top: auto; bottom: 6px; right: 8px; height: 24px; line-height: 24px; }
}

.doc.is-open li img, .doc:focus-within li img { display: block; width: 180px; height: auto; margin: 4px 0 8px; border: 1px solid currentColor; }

/* Inside the Car 1 frame: no controls floating over the photo */
html[data-embed] .text-toggle, html[data-embed] .skip { display: none; }

/* The white theme is the quiet one: less glass, fainter smudges, no room reflection band. */
html[data-theme="white"] .glare, html[data-theme="white"] .smudge, html[data-theme="white"] .glass { display: none; }
html[data-theme="dark"] body { background: #05070f; }
html[data-theme="light"] body { background: #d6dce8; }
html[data-theme="green"] body { background: #b8d098; }
html[data-theme="yellow"] body { background: #eed06c; }
html[data-theme="white"] .doc.is-open, html[data-theme="white"] .doc:focus-within { background: #fff; color: #101426; }

/* The feedback form, laid over the drawn floor. Sizes are set in em; screen.js sets the font size to match the panel. */
.panel-form { position: fixed; z-index: 4; display: none; flex-direction: column; gap: .6em; box-sizing: border-box; margin: 0; color: var(--pf-text, #101426); font: 1em/1.35 var(--pf-font, Arial, Helvetica, sans-serif); }
.panel-form.is-on { display: flex; }
.panel-form textarea, .panel-form input { box-sizing: border-box; width: 100%; margin: 0; padding: .55em .7em; font: inherit; color: inherit; background: var(--pf-bg, #fff); border: 1px solid var(--pf-rule, #5a6384); border-radius: 0; -webkit-appearance: none; appearance: none; }
.panel-form textarea { flex: 1 1 auto; min-height: 4em; resize: none; }
.panel-form textarea::placeholder, .panel-form input::placeholder { color: var(--pf-muted, #6b7494); opacity: 1; font-size: .78em; }
.panel-form textarea:focus, .panel-form input:focus { outline: 2px solid var(--pf-copper, #b4531e); outline-offset: -1px; }
.pf-row { display: flex; gap: .6em; flex: none; }
.pf-row input { flex: 1 1 0; min-width: 0; }
.panel-form button { flex: none; margin: 0; padding: 0 1.2em; font: var(--pf-bold, 700) .8em/1 var(--pf-label, Arial, Helvetica, sans-serif); letter-spacing: .22em; text-transform: uppercase; color: var(--pf-ink, #fff); background: var(--pf-text, #101426); border: 1px solid var(--pf-text, #101426); border-radius: 0; cursor: pointer; }
.panel-form button:hover { background: var(--pf-copper, #b4531e); border-color: var(--pf-copper, #b4531e); }
.panel-form button[disabled] { opacity: .5; cursor: default; }
.panel-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pf-out { margin: 0; padding: .6em .8em; border: 1px solid var(--pf-rule, #5a6384); font-size: .95em; }
.pf-out a { color: var(--pf-copper, #b4531e); }
@media (max-width: 699px) { .pf-row { flex-wrap: wrap; } .pf-row input { flex: 1 1 100%; } .panel-form button { flex: 1 1 100%; padding: .9em 1.2em; } }

/* A small mark so the staging copy is never mistaken for the live one. */
.stage-badge { display: none; position: fixed; left: 10px; top: 8px; z-index: 9; padding: 3px 7px; font: bold 9px/1 Arial, Helvetica, sans-serif; letter-spacing: .22em; text-transform: uppercase; color: #fff; background: #c9622c; }
html[data-stage] .stage-badge { display: block; }
/* No TEXT label on the display. The button stays for the keyboard and shows when it has focus. */
html[data-sharp] .text-toggle { opacity: 0; pointer-events: none; }
html[data-sharp] .text-toggle:focus-visible { opacity: 1; pointer-events: auto; }
@media (max-width: 699px) { .stage-badge { top: auto; left: auto; right: 10px; bottom: 44px; } }
