/* mjb.os — visual system from experiment-b-v2, with v1 behaviour hooks.
   WALLPAPER: change --wallpaper, or replace assets/wallpaper/placeholder.svg.
   The file shipped here is a PLACEHOLDER (ink, sunstone glow, limestone dots). */

:root {
  --ink: #0F0F0E;
  --lime: #EFE9DD; /* limestone */
  --sun: #F5C211; /* sunstone */
  --gold: #8F6E00; /* sunstone as text on light */
  --stone: #8C857A;
  --copy: #CFC9BD; /* body copy on ink */
  --card: #1A1A18;
  --card2: #222220;
  --bd: rgba(239, 233, 221, 0.1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --wallpaper: url("../wallpaper/placeholder.svg");
  --tile-radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html, body { height: 100%; overflow: hidden; }
/* The UA light scrollbar is a white track. Every scroller this page owns stays dark.
   scrollbar-color does not inherit, so the universal rule covers window bodies too. */
html, iframe, .win { color-scheme: dark; }
* {
  scrollbar-width: thin;
  scrollbar-color: var(--stone) transparent;
}
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(239, 233, 221, 0.18);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(239, 233, 221, 0.32); }
::-webkit-scrollbar-corner { background: #1A1A18; }
body {
  background: var(--ink);
  color: var(--lime);
  font: 15px/1.5 Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img { max-width: 100%; }
::selection { background: var(--sun); color: var(--ink); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100001;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  font: 600 14px Inter, sans-serif;
}
.skip:focus { top: 10px; }

html.skip-boot #ab { display: none !important; }

#desk {
  position: fixed;
  inset: 0;
  background-color: var(--ink);
  background-image: var(--wallpaper);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.mani {
  position: absolute;
  right: 2vw;
  bottom: 8vw;
  font: 800 13vw/0.82 Archivo, sans-serif;
  letter-spacing: -0.065em;
  color: rgba(239, 233, 221, 0.045);
  text-align: right;
  white-space: nowrap;
  pointer-events: none;
}
.mani em { font-style: normal; color: rgba(245, 194, 17, 0.22); }

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  z-index: 9000;
  background: rgba(15, 15, 14, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bd);
}
.me {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  max-width: calc(50% - 128px);
  overflow: hidden;
}
.me img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.me > div { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; }
.me b {
  font: 800 21px/1 Archivo, sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.me b em { color: var(--sun); font-style: normal; }
.me small {
  display: block;
  color: var(--stone);
  font-size: 11px;
  line-height: 1.15;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1180px) {
  .me small {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}
.pill {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: var(--lime);
  color: var(--ink);
  border-radius: 99px;
  padding: 6px 16px 6px 12px;
  font: 600 13px Inter, sans-serif;
  display: flex;
  align-items: center;
}
.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--sun);
  margin-right: 9px;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 194, 17, 0.6); }
  100% { box-shadow: 0 0 0 8px rgba(245, 194, 17, 0); }
}
.top-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.legal-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 12px/1 Inter, sans-serif;
}
.legal-links a { color: var(--stone); text-decoration: none; }
.legal-links a:hover { color: var(--sun); }
.clk { font: 600 13px Inter, sans-serif; white-space: nowrap; }
.clk span { color: var(--stone); font-weight: 400; }

.icons {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}
.ic {
  position: relative;
  padding: 0 2px;
  border-radius: 16px;
  text-align: center;
  cursor: default;
  border: 1.5px solid transparent;
  color: inherit;
  pointer-events: auto;
}
#icons .ic {
  position: absolute;
  width: 128px;
  touch-action: none;
}
.tile {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto;
  pointer-events: none;
  transition: transform 0.25s var(--spring), filter 0.2s;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.45));
}
.tile-frame {
  position: relative;
  display: block;
  width: fit-content;
  margin: 0 auto;
  line-height: 0;
}
.tile-frame .tile { margin: 0; }
.pg .ic:hover .tile, .mdock .ic:hover .tile { transform: translateY(-5px) scale(1.05); }
#icons .ic .tile-frame { transition: transform 0.25s var(--spring); }
#icons .ic:hover .tile-frame { transform: translateY(-5px) scale(1.05); }
#icons .ic.sel:hover:not(.dragging) .tile-frame { transform: none; }
#icons .ic.dragging .tile-frame { transform: scale(1.06); }
.glyph {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--sun);
}
.ic .l {
  font: 600 11.5px/1.2 Inter, sans-serif;
  margin-top: 2px;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 99px;
  transition: 0.15s;
  pointer-events: none;
}
#icons .ic .l {
  white-space: nowrap;
  background: rgba(15, 15, 14, 0.72);
  backdrop-filter: blur(6px);
  color: var(--lime);
  text-shadow: 0 1px 2px #000;
}
/* Desktop selection (option B). The ring is on the tile frame, so it
   stays concentric when the tile lifts, scales, or is dragged. */
.icons .ic.sel { background: transparent; border-color: transparent; }
#icons .ic .tile-frame::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  width: calc(100% + 4px);
  height: calc(100% + 4px);
  border-radius: 18px;
  border: 2.5px solid var(--sun);
  box-sizing: border-box;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.15s, transform 0.25s var(--spring);
  pointer-events: none;
}
#icons .ic.sel .tile-frame::before {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 1px rgba(15, 15, 14, 0.5), 0 0 14px rgba(245, 194, 17, 0.25);
}
#icons .ic.sel .l { background: var(--sun); color: var(--ink); text-shadow: none; font-weight: 700; }
#icons .ic:hover:not(.sel) .l { background: rgba(15, 15, 14, 0.72); color: var(--lime); text-shadow: 0 1px 2px #000; }
#icons .ic:hover:not(.sel) .tile-frame::before { opacity: 0.35; transform: none; }
#icons .ic:focus-visible { outline: none; }
#icons .ic:focus-visible .tile-frame::before,
#icons .ic:focus-visible:hover .tile-frame::before {
  opacity: 1;
  transform: none;
  box-shadow: 0 0 0 1px rgba(15, 15, 14, 0.5), 0 0 14px rgba(245, 194, 17, 0.25);
}
.ic.run:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--sun);
}
.ic.dragging { z-index: 5; cursor: grabbing; }

#marq {
  position: fixed;
  border: 1.5px solid var(--sun);
  background: rgba(245, 194, 17, 0.1);
  border-radius: 6px;
  z-index: 30;
  display: none;
  pointer-events: none;
}
#marq.on { display: block; }

.widgets {
  position: fixed;
  top: 68px;
  right: 16px;
  width: 250px;
  display: grid;
  gap: 12px;
  z-index: 15;
}
.wg {
  background: rgba(26, 26, 24, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid var(--bd);
  border-radius: 22px;
  padding: 16px;
  min-width: 0;
}
.wg .k { font: 600 11px Inter, sans-serif; color: var(--stone); text-transform: lowercase; }
.wtime {
  font: 800 52px/0.9 Archivo, sans-serif;
  letter-spacing: -0.05em;
  margin: 6px 0;
}
.wtime em { color: var(--sun); font-style: normal; }
.sticky {
  background: #EFE9DD;
  color: var(--ink);
  border: 0;
  transform: rotate(-1.5deg);
}
.sticky .k { color: var(--ink); }
.sticky textarea {
  width: 100%;
  height: 84px;
  background: none;
  border: 0;
  resize: none;
  font: 600 15px/1.35 Inter, sans-serif;
  color: var(--ink);
  margin-top: 4px;
  user-select: text;
}
.np { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.np > div:first-child { min-width: 0; flex: 1; }
.np h3 {
  font: 800 15px Archivo, sans-serif;
  letter-spacing: -0.03em;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.np .mut { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bars { display: flex; flex: none; gap: 2px; align-items: flex-end; height: 14px; margin-left: auto; }
.bars i { width: 3px; height: 4px; background: var(--sun); display: block; }
.bars.on i { animation: eq 0.9s infinite alternate; }
.bars.on i:nth-child(2) { animation-delay: 0.2s; }
.bars.on i:nth-child(3) { animation-delay: 0.4s; }
@keyframes eq { from { height: 3px; } to { height: 14px; } }
.np-ctrls { display: flex; gap: 6px; margin-top: 10px; }
.np-ctrls button {
  flex: 1;
  border-radius: 999px;
  padding: 6px 0;
  background: rgba(239, 233, 221, 0.06);
  font: 600 12px Inter, sans-serif;
}
.np-ctrls button:hover, .unit:hover, .texty:hover { background: var(--sun); color: var(--ink); }
.np-track {
  margin-top: 8px;
  height: 18px;
  position: relative;
  display: flex;
  align-items: center;
  cursor: pointer;
  touch-action: none;
  background: none;
}
.np-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 2px;
  background: rgba(239, 233, 221, 0.1);
}
.np-track i {
  position: relative;
  display: block;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  background: var(--sun);
  transform: scaleX(0);
  transform-origin: left center;
  pointer-events: none;
}
.np-time {
  display: flex;
  justify-content: space-between;
  margin-top: 2px;
  font: 500 11px "IBM Plex Mono", monospace;
  color: var(--stone);
}
[data-np-cover].has-cover {
  background-size: cover;
  background-position: center;
  color: transparent;
}
.wx-row { display: flex; align-items: flex-start; gap: 8px; }
.wx-row .mut { flex: 1; }
.unit {
  flex: none;
  border-radius: 99px;
  padding: 3px 8px;
  background: rgba(239, 233, 221, 0.08);
  font: 600 11px Inter, sans-serif;
  color: var(--sun);
}
.texty {
  margin-top: 8px;
  padding: 2px 0;
  font: 600 12px Inter, sans-serif;
  color: var(--sun);
  text-align: left;
}
.texty:hover { background: none; text-decoration: underline; }
.wx-forecast { margin-top: 8px; display: grid; gap: 4px; }
.wx-forecast[hidden] { display: none; }
.wx-forecast ul { list-style: none; }
.wx-forecast li {
  display: flex;
  justify-content: space-between;
  font: 600 12px Inter, sans-serif;
  color: var(--stone);
}

#ctx {
  position: fixed;
  z-index: 20000;
  background: rgba(30, 30, 28, 0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 6px;
  min-width: 210px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}
#ctx[hidden] { display: none; }
#ctx button {
  display: flex;
  width: 100%;
  padding: 8px 12px;
  border-radius: 9px;
  font: 600 13px Inter, sans-serif;
  text-align: left;
}
#ctx button:hover { background: var(--sun); color: var(--ink); }
#ctx button span { margin-left: auto; opacity: 0.55; font-weight: 400; padding-left: 12px; }
#ctx hr { border: 0; border-top: 1px solid var(--bd); margin: 4px 0; }

.win {
  position: fixed;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 24px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center;
  transition: filter 0.25s, opacity 0.25s;
  container-type: inline-size;
  container-name: mjb;
}
.win.resizing,
.win.resizing * {
  transition: none !important;
  user-select: none !important;
}
.win:focus,
.win:focus-visible {
  outline: none;
}
.win[hidden] { display: none; }
.win.opening { animation: wo 0.45s var(--spring); }
@keyframes wo { from { opacity: 0; transform: scale(0.85) translateY(20px); } }
.win.closing { animation: wc 0.22s ease-in forwards; }
@keyframes wc { to { opacity: 0; transform: scale(0.9) translateY(12px); } }
.win.minning { animation: wm 0.3s ease-in forwards; }
@keyframes wm { to { opacity: 0; transform: translateY(60vh) scale(0.2); } }
.win:not(.front) { filter: brightness(0.6) saturate(0.7); }
.win.front { box-shadow: 0 40px 90px rgba(0, 0, 0, 0.7), 0 0 0 2px var(--sun); }
.win.max {
  border-radius: 0;
  transition: left 0.3s var(--spring), top 0.3s var(--spring), width 0.3s var(--spring), height 0.3s var(--spring);
}
.win.snapping {
  transition: left 0.3s var(--spring), top 0.3s var(--spring), width 0.3s var(--spring), height 0.3s var(--spring);
}
.tb {
  height: 52px;
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px 0 14px;
  cursor: grab;
  border-bottom: 1px solid var(--bd);
  touch-action: none;
}
.tb:active { cursor: grabbing; }
.lights { display: flex; gap: 6px; }
.lights button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(239, 233, 221, 0.08);
  font: 600 12px Inter, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lights button:hover { background: var(--lime); color: var(--ink); }
.lights .cl:hover { background: var(--sun); }
.win-ico { width: 22px; height: 22px; flex: none; margin-left: 8px; color: var(--sun); }
.win-ico .glyph { width: 22px; height: 22px; }
.crumb {
  font: 500 13px Inter, sans-serif;
  color: var(--stone);
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crumb b { font: 800 16px Archivo, sans-serif; letter-spacing: -0.03em; color: var(--lime); }
.crumb i { font-style: normal; color: var(--sun); font: 800 12px Archivo, sans-serif; margin-right: 6px; }
.tools { margin-left: auto; display: flex; gap: 6px; }
.tools button {
  border-radius: 99px;
  padding: 6px 12px;
  font: 600 12px Inter, sans-serif;
  background: rgba(239, 233, 221, 0.06);
}
.tools button:hover { background: var(--sun); color: var(--ink); }
.bd { padding: 22px 14px 14px 22px; overflow: auto; flex: 1; user-select: text; }
.win > .bd { margin: 0 8px 8px 0; }
.browser-nav {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--bd);
}
.browser-btn {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 99px;
  background: rgba(239, 233, 221, 0.06);
  font: 700 16px Inter, sans-serif;
  color: var(--lime);
}
.browser-btn:hover:not(:disabled) { background: var(--sun); color: var(--ink); }
.browser-btn:disabled { opacity: 0.35; cursor: default; }
.browser-url {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 13px "IBM Plex Mono", monospace;
  color: var(--lime);
  background: rgba(239, 233, 221, 0.06);
  border-radius: 99px;
  padding: 8px 14px;
  user-select: text;
}
.browser-out {
  flex: none;
  color: var(--lime);
  font: 600 12px Inter, sans-serif;
  text-decoration: none;
  border-radius: 99px;
  padding: 8px 12px;
  background: rgba(239, 233, 221, 0.06);
}
.browser-out:hover { background: var(--sun); color: var(--ink); }
.win.browser .bd {
  margin: 0 8px 8px 0;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.win.browser iframe {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: 0;
  background: var(--card);
  color-scheme: dark;
}
.browser-fallback {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
}
.browser-fallback h2 { font-size: 36px; }
.browser-fallback p { max-width: 36ch; color: var(--stone); }
.browser-fallback .btn { font-size: 18px; padding: 14px 28px; }
.rs {
  position: absolute;
  z-index: 4;
  touch-action: none;
  background: none;
}
.rs-l, .rs-r {
  top: 0;
  bottom: 20px;
  width: 8px;
  cursor: ew-resize;
}
.rs-l { left: 0; }
.rs-r { right: 0; }
.rs-b {
  left: 20px;
  right: 20px;
  bottom: 0;
  height: 8px;
  cursor: ns-resize;
}
.rs-bl, .rs-br {
  bottom: 0;
  width: 20px;
  height: 20px;
  z-index: 5;
}
.rs-br { right: 0; cursor: nwse-resize; }
.rs-bl { left: 0; cursor: nesw-resize; }
.win.max .rs { pointer-events: none; }
body.resizing-ew, body.resizing-ew * { cursor: ew-resize !important; }
body.resizing-ns, body.resizing-ns * { cursor: ns-resize !important; }
body.resizing-br, body.resizing-br * { cursor: nwse-resize !important; }
body.resizing-bl, body.resizing-bl * { cursor: nesw-resize !important; }
.win.resizing iframe,
.win.dragging iframe { pointer-events: none; }
#snap {
  position: fixed;
  z-index: 50;
  border-radius: 22px;
  background: rgba(245, 194, 17, 0.12);
  border: 2px solid var(--sun);
  display: none;
  pointer-events: none;
}
#snap.on { display: block; }

h1 { font: 800 56px/0.88 Archivo, sans-serif; letter-spacing: -0.055em; margin: 4px 0 14px; }
#w-contact h1 { font-size: 48px; line-height: 0.95; white-space: nowrap; }
a.mail { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
h1 em, h2 em, h3 em { color: var(--sun); font-style: normal; }
h2 { font: 800 28px/0.95 Archivo, sans-serif; letter-spacing: -0.04em; }
h3 { font: 800 20px/1 Archivo, sans-serif; letter-spacing: -0.03em; }
p { color: var(--copy); }
.mut { color: var(--stone); font-size: 13px; }
.ph {
  background: repeating-linear-gradient(45deg, #242422 0 10px, #1e1e1c 10px 20px);
  border-radius: 18px;
  color: var(--stone);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font: 600 12px Inter, sans-serif;
  padding: 10px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  padding: 11px 20px;
  font: 600 14px Inter, sans-serif;
  cursor: pointer;
  background: var(--sun);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.2s var(--spring);
}
.btn:hover { transform: translateY(-2px); }
.btn.o { background: transparent; color: var(--lime); box-shadow: inset 0 0 0 1px rgba(239, 233, 221, 0.25); }
.btn.block { width: 100%; justify-content: center; }
.btn.ink { background: var(--ink); color: var(--sun); }
.chip {
  display: inline-block;
  border-radius: 99px;
  padding: 4px 11px;
  font: 600 11px Inter, sans-serif;
  background: rgba(239, 233, 221, 0.08);
  margin: 0 4px 4px 0;
  color: inherit;
}
.chip.on { background: var(--sun); color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.st { background: rgba(239, 233, 221, 0.05); border-radius: 18px; padding: 14px; }
.st b { font: 800 34px Archivo, sans-serif; letter-spacing: -0.05em; display: block; color: var(--sun); }
.st span { font-size: 12px; color: var(--stone); }
.tl { border-left: 2px solid var(--bd); margin-left: 6px; padding-left: 20px; }
.tl div { position: relative; padding-bottom: 16px; }
.tl div:before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--card);
  border: 2px solid var(--sun);
}
.tl b { font: 800 14px Archivo, sans-serif; color: var(--sun); }
.tl b.when { font: 500 12px "IBM Plex Mono", monospace; letter-spacing: 0; color: var(--sun); }
.cv h1 { font-size: 44px; line-height: 0.95; margin-bottom: 8px; }
.cv .cv-line { font: 600 16px/1.35 Inter, sans-serif; color: var(--lime); }
.cv .mut { margin-top: 4px; }
.cv-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 14px; }
.cv-links a {
  color: var(--sun);
  font: 600 14px Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cv-sec { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--bd); }
.cv h2 { font-size: 22px; margin-bottom: 12px; }
.cv p { font-size: 15px; line-height: 1.5; }
.cv ul { padding-left: 1.15em; }
.cv li { margin: 7px 0; color: var(--copy); }
.cv li::marker { color: var(--sun); }
.cv .tl h3 { font-size: 17px; line-height: 1.2; margin-top: 3px; }
.cv .tl .co { margin-top: 3px; }
.cv .tl p { margin-top: 6px; font-size: 14px; line-height: 1.45; }
.cv-skills div + div { margin-top: 12px; }
.cv-skills b { display: block; font: 700 13px Inter, sans-serif; color: var(--lime); margin-bottom: 4px; }
.cv-skills p { margin-top: 2px; }
.cv-skills.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px 18px;
}
.cv-skills.groups div + div { margin-top: 0; }
.cv-skills.groups li { margin: 5px 0; }
.cv-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0 28px;
}
.cv .tl ul { margin-top: 8px; }
.cv .tl li { margin: 4px 0; }
.cv a:not(.btn) {
  color: var(--sun);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cv-dl { margin-top: 16px; }
.cv { padding-bottom: 12px; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.gal.photos { grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gal.photos .gi { aspect-ratio: 1; padding: 0; }
.gal.photos .gi img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.gal.photos .gi:hover img { transform: scale(1.05); }
.photo-more { margin-top: 16px; }
.photo-more a {
  color: var(--sun);
  font: 600 14px Inter, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lb {
  --lb-inset: 16px;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  background: rgba(15, 15, 14, 0.97);
  display: flex;
  flex-direction: column;
  padding: 14px 0 0;
  touch-action: none;
}
.lb[hidden] { display: none !important; }
.lb-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 0 var(--lb-inset);
}
.lb-nav { display: flex; gap: 8px; }
.lb-bar .btn { padding: 8px 14px; }
.lb-stage {
  flex: 1;
  min-height: 0;
  min-width: 0;
  position: relative;
  margin-top: 10px;
}
.lb-frame {
  position: absolute;
  top: 0;
  left: var(--lb-inset);
  right: var(--lb-inset);
  bottom: var(--lb-inset);
  overflow: hidden;
  border-radius: var(--tile-radius);
}
.lb-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  border-radius: var(--tile-radius);
  clip-path: inset(0 round var(--tile-radius));
}
.lb-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 36px 14px 12px;
  text-align: center;
  font: 500 13px "IBM Plex Mono", monospace;
  color: var(--lime);
  background: linear-gradient(to top, rgba(15, 15, 14, 0.82), rgba(15, 15, 14, 0));
  pointer-events: none;
}
.gi {
  border-radius: var(--tile-radius);
  overflow: hidden;
  background: var(--card2);
  cursor: pointer;
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
}
.gi .ph { height: 130px; border-radius: 0; transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }
.gi:hover .ph { transform: scale(1.08); }
.gi .m { padding: 10px 12px; }
.gi:hover h3, .gi:focus-visible h3 { color: var(--sun); }
.gi:not(button) { cursor: default; }
.hero {
  height: 240px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 22px;
}
.hero.bc { background: linear-gradient(135deg, #000 40%, #3a0022); }
.hero .ph.fill { position: absolute; inset: 0; height: auto; border-radius: 0; }
.hero .copy { position: relative; }
.hero .display { font-size: 64px; margin: 8px 0 0; }
.sec { display: grid; grid-template-columns: 60px 1fr; gap: 12px; padding: 18px 0; border-top: 1px solid var(--bd); }
.sec .n { font: 800 30px Archivo, sans-serif; color: var(--sun); letter-spacing: -0.04em; }
.price { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pc2 {
  background: var(--card2);
  border-radius: 22px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--bd);
}
.pc2.hl { background: var(--sun); color: var(--ink); }
.pc2.hl p, .pc2.hl .mut { color: rgba(15, 15, 14, 0.82); }
.pc2 .idx { font: 800 13px Archivo, sans-serif; color: var(--sun); }
.pc2.hl .idx { color: var(--ink); }
.pc2 .amt { font: 800 30px Archivo, sans-serif; letter-spacing: -0.04em; }
.pc2 ul { list-style: none; font-size: 13px; }
.pc2 li:before { content: "✦ "; color: var(--sun); }
.pc2.hl li:before { color: var(--ink); }
form label { display: block; font: 600 12px Inter, sans-serif; color: var(--stone); margin: 12px 0 6px; }
input, textarea, select {
  width: 100%;
  background: rgba(239, 233, 221, 0.05);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--lime);
  font: 15px Inter, sans-serif;
  user-select: text;
}
input:focus, textarea:focus, select:focus { border-color: var(--sun); }
select option { color: var(--ink); background: var(--lime); }
.list button, .list a {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--bd);
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.list button:hover h3, .list a:hover h3, .list button.on h3 { color: var(--sun); }
.num { font: 800 22px Archivo, sans-serif; color: var(--sun); }
.ico-slot { width: 24px; flex: none; color: var(--sun); }
.ico-slot .glyph { width: 22px; height: 22px; }
.about-hero { display: grid; grid-template-columns: 180px 1fr; gap: 18px; align-items: end; }
.about-hero .ph { height: 200px; }
.about-portrait {
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}
.about-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  max-width: none;
}
.about-hero h1 { font-size: 48px; }
.cluster { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.my { margin: 18px 0; }
.my-s { margin: 16px 0; }
.mt-s { margin-top: 6px; }
.mt-m { margin-top: 14px; }
.mt-l { margin-top: 16px; }
.mt-auto { margin-top: auto; }
.mb-m { margin-bottom: 14px; }
.mb-l { margin-bottom: 16px; }
/* Dark gold (#8F6E00) is the brand caption colour on limestone.
   On limestone it is about 3.9:1, short of AA for small text, so UI
   captions on paper use ink. The token stays available as --gold. */
.gold { color: var(--gold); }
.gal.files { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); margin-top: 14px; }
.gi.file { background: none; text-align: center; padding: 8px; }
.file-ico { width: 64px; margin: 0 auto; }
.file-ico .tile { width: 64px; height: 64px; }
.gi.file h3 { font-size: 14px; margin-top: 6px; }
.player-actions { display: flex; gap: 8px; margin-top: 14px; }
.player-actions .btn { min-width: 64px; justify-content: center; }
.ph.h200 { height: 200px; }
.ph.h150 { height: 150px; }
[data-np-list] button { padding: 10px 0; }
.push { margin-left: auto; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; }

.dock {
  position: fixed;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-radius: 24px;
  background: rgba(26, 26, 24, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--bd);
  z-index: 9000;
  max-width: calc(100vw - 24px);
}
.dock > a, .dock > button, .dock .mn {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--lime);
  text-decoration: none;
  font: 800 15px Archivo, sans-serif;
  background: rgba(239, 233, 221, 0.06);
  transition: transform 0.2s var(--spring);
  cursor: pointer;
  position: relative;
  flex: none;
}
.dock > a:hover, .dock > button:hover, .dock .mn:hover { transform: translateY(-6px); }
.dock > a:hover, .dock > button:hover { background: var(--sun); color: var(--ink); }
.dock .mn { width: 40px; height: 40px; background: transparent; }
.dock .mn .tile { width: 40px; height: 40px; }
.dock .mn:after {
  content: "";
  position: absolute;
  bottom: -5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--sun);
}
.mins { display: flex; gap: 6px; }
.mins:not(:empty) { padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--bd); }
.mq {
  width: 280px;
  overflow: hidden;
  border-radius: 15px;
  background: rgba(245, 194, 17, 0.1);
  color: var(--sun);
  box-shadow: inset 0 0 0 1px rgba(245, 194, 17, 0.35);
  height: 46px;
  display: flex;
  align-items: center;
  font: 800 17px Archivo, sans-serif;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex: none;
}
.mq span { display: inline-block; padding-left: 14px; animation: ticker 18s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }

#status {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  z-index: 9500;
  background: var(--lime);
  color: var(--ink);
  font: 600 13px Inter, sans-serif;
  padding: 8px 14px;
  border-radius: 99px;
  pointer-events: none;
  max-width: min(90vw, 480px);
}
#status:empty { display: none; }
.noscript {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: var(--ink);
  color: var(--lime);
  text-align: center;
}
.noscript p { max-width: 36em; }

/* boot — variant AB */
#ab {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0B0B0A;
  color: var(--lime);
  overflow: hidden;
  transition: clip-path 0.8s cubic-bezier(0.7, 0, 0.2, 1);
}
#ab.out { clip-path: inset(0 0 100% 0); }
#ab:after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.25) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
#ab .hd {
  position: absolute;
  top: 28px;
  left: 40px;
  right: 40px;
  display: flex;
  justify-content: space-between;
  font: 15px "IBM Plex Mono", monospace;
  z-index: 2;
}
#ab .hd b { color: var(--sun); font-weight: 500; }
#ablog {
  position: absolute;
  top: 74px;
  left: 40px;
  right: 40px;
  font: 15px/1.65 "IBM Plex Mono", monospace;
  transition: transform 0.35s cubic-bezier(0.7, 0, 0.2, 1), opacity 0.35s, filter 0.35s;
  transform-origin: top left;
}
#ablog div { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
#ablog .ok { color: var(--sun); }
#ablog .wn { color: #ff8a3d; }
#ab.p2 #ablog { transform: scale(0.6) translateY(-20px); opacity: 0; filter: blur(3px); }
#abst {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  opacity: 0;
  transition: opacity 0.2s;
}
#ab.p2 #abst { opacity: 1; }
#ablogo { width: 210px; overflow: visible; }
#ablogo .abp { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) rotate(var(--r, 0deg)) scale(0.6); }
.abp.d0 { --d: 0; }
.abp.d1 { --d: 1; }
.abp.d2 { --d: 2; }
.abp.d3 { --d: 3; }
.abp.d4 { --d: 4; }
#ab.p2 #ablogo .abp {
  animation: abpin 0.6s var(--spring) forwards;
  animation-delay: calc(var(--d) * 0.14s);
}
@keyframes abpin { to { opacity: 1; transform: none; } }
#abln {
  width: 210px;
  height: 6px;
  border-radius: 3px;
  background: rgba(239, 233, 221, 0.1);
  overflow: hidden;
}
#abln i { display: block; height: 100%; width: 0; background: var(--sun); }
#abcap {
  font: 12px "IBM Plex Mono", monospace;
  color: var(--stone);
  letter-spacing: 0.08em;
  height: 16px;
}
#abskip {
  position: absolute;
  bottom: 18px;
  right: 24px;
  font: 12px "IBM Plex Mono", monospace;
  color: var(--stone);
  z-index: 2;
  background: none;
  border: 0;
  cursor: pointer;
}
#wipe {
  position: fixed;
  inset: 0;
  background: var(--sun);
  z-index: 100000;
  transform: translateY(100%);
  pointer-events: none;
}
#wipe.go { animation: wipe 0.9s cubic-bezier(0.7, 0, 0.2, 1) forwards; }
@keyframes wipe {
  0% { transform: translateY(100%); }
  45% { transform: translateY(0); }
  55% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}

.mob { display: none; }
.back, .grab { display: none; }

@media (max-width: 760px) {
  .top, .icons, .widgets, .dock, .mani { display: none; }
  .mob {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    padding: calc(env(safe-area-inset-top) + 12px) 0 0;
    z-index: 20;
  }
  .sbar { display: flex; justify-content: space-between; padding: 0 24px; font: 600 14px Inter, sans-serif; }
  .sbar span:last-child { font-size: 12px; display: flex; align-items: center; }
  .mw { margin: 14px 18px 6px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 10px; }
  .mw .wg { padding: 14px; border-radius: 24px; }
  .mw .wtime { font-size: 44px; }
  .mw .sticky textarea { height: 68px; font-size: 13px; }
  .pages {
    flex: 1;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pages::-webkit-scrollbar { display: none; }
  .pg {
    flex: 0 0 100%;
    scroll-snap-align: start;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 112px;
    padding: 16px 14px;
    align-content: start;
  }
  .pg .ic .tile, .mdock .ic .tile { width: 66px; height: 66px; }
  .pg .ic .l {
    font-size: 11px;
    text-shadow: 0 1px 3px #000;
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .pg .ic:hover .l { background: var(--sun); color: var(--ink); text-shadow: none; }
  .pdots { display: flex; justify-content: center; gap: 7px; padding: 6px; }
  .pdots button {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(239, 233, 221, 0.25);
    padding: 0;
  }
  .pdots button.on { background: var(--sun); width: 18px; border-radius: 4px; }
  .mdock {
    margin: 6px 14px calc(env(safe-area-inset-bottom) + 14px);
    background: rgba(239, 233, 221, 0.08);
    backdrop-filter: blur(14px);
    border-radius: 30px;
    padding: 10px 10px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .mdock-social { display: flex; justify-content: center; gap: 8px; }
  .mdock-social a {
    width: 44px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(239, 233, 221, 0.06);
    color: var(--lime);
    text-decoration: none;
    font: 800 14px Archivo, sans-serif;
  }
  .mdock-social a:hover { background: var(--sun); color: var(--ink); }
  .mdock .legal-links { justify-content: center; padding-bottom: 2px; }
  .mdock-apps { display: grid; grid-template-columns: repeat(4, 1fr); }
  .mdock .ic .l { display: none; }
  .win {
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0;
    border: 0;
    filter: none !important;
    box-shadow: none !important;
  }
  .win.opening { animation: so 0.45s cubic-bezier(0.2, 0.9, 0.3, 1); }
  @keyframes so { from { transform: translateY(100%); } }
  .win.closing { animation: sc 0.3s ease-in forwards; }
  @keyframes sc { to { transform: translateY(100%); } }
  .tb {
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 16px 12px;
    padding-top: calc(env(safe-area-inset-top) + 8px);
    cursor: default;
    touch-action: pan-y;
  }
  .grab {
    display: block;
    width: 44px;
    height: 5px;
    border-radius: 3px;
    background: rgba(239, 233, 221, 0.3);
    margin: 0 auto 10px;
  }
  .lights, .tools, .rs { display: none; }
  .crumb { margin: 0; }
  .back {
    display: flex !important;
    align-items: center;
    gap: 6px;
    font: 600 15px Inter, sans-serif;
    color: var(--sun);
    margin-bottom: 6px;
    width: max-content;
  }
  h1 { font-size: 44px; }
  .cv h1 { font-size: 34px; }
  .cv h2 { font-size: 20px; }
  .cv-links { gap: 6px 14px; }
  .hero .display { font-size: 40px; }
  .bd { padding: 18px; }
  .win > .bd, .win.browser .bd { margin: 0; }
  .win.browser .bd { padding: 0; }
  .browser-nav { padding: 8px 10px; }
  .browser-out { padding: 8px 10px; }
  .browser-fallback h2 { font-size: 28px; }
  .gal.photos { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .lb-bar .btn { padding: 10px 16px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  #ab .hd {
    left: 18px;
    right: 18px;
    font-size: 11px;
    flex-direction: column;
    gap: 2px;
  }
  #ablog { left: 18px; right: 18px; top: 80px; font-size: 11px; }
  #ablogo, #abln { width: 150px; }
  #status { bottom: calc(env(safe-area-inset-bottom) + 24px); }
}

/* Window width, not the viewport. 560px is the window's own inline size. */
@container mjb (max-width: 560px) {
  .about-hero {
    grid-template-columns: 1fr;
    justify-items: start;
    align-items: start;
    gap: 16px;
  }
  .about-portrait {
    width: min(220px, 100%);
    max-width: 220px;
    height: auto;
    aspect-ratio: 4 / 5;
  }
  .about-hero > div:not(.about-portrait) { width: 100%; }
  .about-hero h1 { font-size: 40px; }
  .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .cv-skills.groups,
  .cv-pair,
  .price,
  .gal:not(.photos):not(.files) { grid-template-columns: 1fr; }
  .gal.photos { grid-template-columns: repeat(2, 1fr); }
  .hero .display { font-size: 40px; }
}
@container mjb (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
}
@container mjb (max-width: 420px) {
  .gal.photos { grid-template-columns: 1fr; }
}
@container mjb (max-width: 400px) {
  #w-contact h1 { white-space: normal; font-size: 40px; }
}

/* Coming-soon lock. html.coming-soon is set before paint by boot-gate.js. */
#lock {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9400;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vh, 36px);
  padding:
    max(16px, env(safe-area-inset-top))
    24px
    max(16px, env(safe-area-inset-bottom));
  background: var(--ink) var(--wallpaper) center / cover no-repeat;
  overflow: hidden;
  text-align: center;
  color: var(--lime);
}
html.coming-soon #lock { display: flex; }
.lock-clock { pointer-events: none; }
.lock-id,
.lock-form,
.lock-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(640px, 100%);
}
.lock-mark {
  display: block;
  width: 136px;
  height: auto;
  margin: 0 0 14px;
}
.lock-id h1 {
  font: 800 clamp(28px, 4vw, 42px)/1 Archivo, sans-serif;
  letter-spacing: -0.03em;
  color: var(--lime);
}
.lock-id h1 em { color: var(--sun); font-style: normal; }
.lock-spec {
  margin-top: 8px;
  max-width: 40em;
  color: var(--stone);
  font-size: 13px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
}
.lock-form { width: min(340px, 100%); }
.lock-pass {
  width: 100%;
  height: 48px;
  padding: 0 20px;
  border: 1px solid rgba(239, 233, 221, 0.18);
  border-radius: 999px;
  background: rgba(15, 15, 14, 0.55);
  backdrop-filter: blur(10px);
  color: var(--lime);
  caret-color: var(--sun);
  font: 16px/1 Inter, sans-serif;
  text-align: center;
  appearance: none;
  -webkit-appearance: none;
}
.lock-pass::placeholder { color: var(--stone); opacity: 1; }
.lock-pass[aria-invalid="true"] { border-color: var(--sun); }
.lock-pass.shake { animation: lock-shake 0.48s ease; }
@keyframes lock-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}
.lock-msg {
  min-height: 1.4em;
  margin: 10px 0 0;
  color: var(--lime);
  font-size: 14px;
  line-height: 1.4;
}
.lock-foot { gap: 10px; }
.lock-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px 6px 12px;
  border-radius: 99px;
  background: var(--lime);
  color: var(--ink);
  font: 600 13px Inter, sans-serif;
}
.lock-mail { font-size: 14px; }
.lock-social { display: flex; gap: 8px; }
.lock-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--bd);
  border-radius: 14px;
  background: rgba(239, 233, 221, 0.06);
  color: var(--lime);
  text-decoration: none;
  font: 800 15px Archivo, sans-serif;
}
.lock-social a:hover { background: var(--sun); color: var(--ink); }
.lock-legal {
  display: flex;
  gap: 14px;
  margin-top: 2px;
  font: 500 12px/1 Inter, sans-serif;
}
.lock-legal a { color: var(--stone); text-decoration: none; }
.lock-legal a:hover { color: var(--sun); }
.find { margin-top: 14px; color: var(--stone); font-size: 14px; }
.find a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { margin-top: 12px; color: var(--stone); font-size: 13px; }
.legal-note a { color: var(--stone); text-decoration: underline; text-underline-offset: 3px; }
.legal-note a:hover { color: var(--sun); }
.legal-inline h1 { font-size: 44px; }
.legal-inline .updated {
  margin: -4px 0 8px;
  color: var(--stone);
  font: 500 12px/1.4 "IBM Plex Mono", monospace;
}
.legal-inline h2 { font-size: 22px; margin: 22px 0 8px; }
.legal-inline p { margin: 0 0 10px; }
.legal-inline ul { margin: 0 0 12px; padding-left: 1.15em; }
.legal-inline li { margin: 4px 0; color: var(--copy); }
.legal-inline li::marker { color: var(--sun); }
.legal-inline a { color: var(--sun); text-decoration: underline; text-underline-offset: 3px; }
.legal-inline code { font: 500 0.92em "IBM Plex Mono", monospace; color: var(--lime); }
@media (max-width: 760px) {
  #lock { gap: 14px; padding: 16px 20px; }
  .lock-mark { width: 104px; margin-bottom: 10px; }
  .lock-spec { font-size: 12px; }
  .lock-pass { height: 44px; }
  .lock-clock .ss-time { font-size: clamp(56px, 16vw, 84px); }
}

#ss {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: var(--ink);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s linear;
  touch-action: none;
  user-select: none;
}
#ss[hidden] { display: none !important; }
#ss.on {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.6s linear;
}
#ss.out {
  opacity: 0;
  pointer-events: auto;
  transition: opacity 0.2s linear;
}
.ss-seal {
  position: absolute;
  left: 0;
  top: 0;
  width: min(220px, 46vw);
  height: auto;
  pointer-events: none;
}
.ss-seal img {
  display: block;
  width: 100%;
  height: auto;
}
.ss-seal.tinted img { visibility: hidden; }
.ss-seal.tinted::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ss-tint, var(--sun));
  -webkit-mask: url("../mjb-lettermark-stacked-dark.svg") center / 100% 100% no-repeat;
  mask: url("../mjb-lettermark-stacked-dark.svg") center / 100% 100% no-repeat;
}
.ss-seal.flash { animation: ssflash 0.45s ease-out; }
@keyframes ssflash {
  0% { filter: brightness(2.5); }
  100% { filter: brightness(1); }
}
.ss-clock {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(8vh, calc(env(safe-area-inset-bottom) + 36px));
  text-align: center;
  pointer-events: none;
  z-index: 1;
}
.ss-time {
  margin: 0;
  font: 800 clamp(64px, 15vw, 156px)/0.85 Archivo, sans-serif;
  letter-spacing: -0.055em;
  color: var(--lime);
}
.ss-time em {
  color: var(--sun);
  font-style: normal;
  animation: ssblink 1s steps(2, end) infinite;
}
.ss-place {
  margin: 12px 0 0;
  font: 500 13px "IBM Plex Mono", monospace;
  letter-spacing: 0.28em;
  text-transform: lowercase;
  color: var(--stone);
}
@keyframes ssblink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0.2; }
}

@media (prefers-reduced-motion: reduce) {
  .ss-seal {
    left: 50%;
    top: 30%;
    transform: translate(-50%, -50%) !important;
  }
  .ss-time em { animation: none; opacity: 1; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mq span { animation: none; }
}

@media (forced-colors: active) {
  .win.front { outline: 2px solid Highlight; }
  .ic.sel { outline: 2px solid Highlight; }
}
