:root {
  --ink:   #16324A;
  --ink-2: rgba(22, 50, 74, .84);
  --ink-3: rgba(29, 63, 92, .58);
  --line:  rgba(100, 154, 198, .55);
  --line-strong: rgba(100, 154, 198, .6);
  --accent: #2E7AAE;
  --ease:  cubic-bezier(.22, .8, .24, 1);

  --font:    "Segoe UI Variable Text", "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", Inter, system-ui, sans-serif;

  --button: linear-gradient(180deg,
    rgba(255, 255, 255, .92) 0, rgba(252, 253, 254, .78) 46%,
    rgba(222, 236, 247, .68) 54%, rgba(198, 221, 240, .78) 100%);
}


*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { height: 100%; background: #EAF2F8; }   /* matches the bottom of the gradient */

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  color: var(--ink);
  font: 400 16px/1.7 var(--font);
  -webkit-font-smoothing: antialiased;
}
body.home   { overflow: hidden; }
body.lb-open { overflow: hidden; }

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(34% 40% at 50% 50%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 100%);
  opacity: 0; transition: opacity 1.8s ease;
}
body.home::before { opacity: 1; }

/* gradient bg */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, #fff, transparent 75%),
    linear-gradient(#FCFCFB, #EAF2F8);
}

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(86, 169, 224, .26); }
button { font: inherit; color: inherit; }

h1 { margin: 0; font: 600 34px/1.1 var(--display); letter-spacing: -.015em; }
p  { margin: 0 0 16px; max-width: 52ch; font-size: 17px; color: var(--ink-2); }
#siena .col > p { max-width: 56ch; text-wrap: balance; }   /* three even lines, no lone last word */


/* buttons */

.btn, .lb-btn {
  cursor: pointer;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: var(--button);
  transition: filter .15s, transform .15s;
}
.btn:hover, .lb-btn:hover { filter: brightness(1.05) saturate(1.1); }

.btn {
  display: inline-block;
  padding: 7px 18px;
  font-size: 14px; text-decoration: none;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(22, 50, 74, .1);
}
.btn:active { transform: translateY(1px); }


/* logo */

#mark {
  position: fixed; left: 0; top: 0; z-index: 10;
  width: 300px; /* set by script.js, along with --x0 --y0 --s1 --sh */
  --x1: 28px; --y1: 22px;
  transform-origin: 0 0;
  transform: translate(var(--x0, 0px), var(--y0, 0px));
  opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.6s ease;
  will-change: transform;
}
#mark.ready { opacity: 1; }
#mark.boot  { transition: opacity 1.6s ease; } 

body:not(.home) #mark       { transform: translate(var(--x1), var(--y1)) scale(var(--s1)); }
body:not(.home) #mark:hover {
  transform: translate(var(--x1), var(--y1)) scale(var(--sh));
  transition: transform .6s var(--ease) .05s, opacity 1.6s ease;
}

#mark svg  { display: block; width: 100%; height: auto; overflow: visible; fill: var(--ink); }
#mark path { outline: none; transition: opacity .5s ease; pointer-events: none; }

body:not(.home) #mark path     { opacity: .3; }
body:not(.home) #mark path.cur { opacity: 1; }

#mark[data-hl] path { opacity: .18 !important; }
#mark[data-hl=about]   path[data-k=about],
#mark[data-hl=siena]   path[data-k=siena],
#mark[data-hl=contact] path[data-k=contact] { opacity: 1 !important; }

#tip {
  position: fixed; left: 0; top: 0; z-index: 11;
  padding: 3px 12px;
  font-size: 12px; white-space: nowrap; color: var(--ink-2);
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(rgba(252, 253, 254, .95), rgba(208, 228, 244, .85));
  box-shadow: inset 0 1px 0 #fff, 0 2px 8px -2px rgba(22, 50, 74, .2);
  opacity: 0; transition: opacity .25s ease;
  pointer-events: none; will-change: transform;
}
#tip.on { opacity: 1; }

#caption {
  position: fixed; left: 0; right: 0; z-index: 9;
  top: var(--cap-y, 60%);
  margin: 0;
  max-width: none;
  text-align: center;
  font-size: 13px; color: var(--ink-3);
  opacity: 0; transition: opacity .8s ease;
  pointer-events: none;
}
#caption.on { opacity: 1; }


.view      { display: none; padding: 128px 28px 96px; }
.view.show { display: block; }
.view.out  { opacity: 0; transition: opacity .3s ease; }
@media (min-width: 900px) { .view { padding-top: 112px; } }

.col      { max-width: 620px; margin: 0 auto; }
.col.wide { max-width: 900px; }

.head { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.sub  { margin-top: 3px; font-size: 14px; color: var(--ink-3); }

.head.plain      { display: block; margin-bottom: 22px; }
.head.plain h1   { font-size: clamp(34px, 6vw, 46px); line-height: 1.08; letter-spacing: -.022em; }
.head.plain .sub { margin-top: 8px; font-size: 15px; }

.app-icon { flex: none; width: 128px; height: 128px; margin: -28px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.contact { display: grid; gap: 18px; }
.mail { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.addr { min-width: 0; font: 500 22px var(--display); user-select: all; overflow-wrap: anywhere; }


p a, .list a { color: var(--accent); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; transition: text-decoration-color .15s; }
p a:hover, .list a:hover { text-decoration-color: currentColor; }
strong { font-weight: 600; color: var(--ink); }

.list    { max-width: 52ch; margin: 0 0 16px; padding-left: 20px; font-size: 17px; color: var(--ink-2); }
.list li { margin-bottom: 6px; padding-left: 4px; }
.list li::marker { color: var(--ink-3); }


.issue-list { list-style: none; margin: 36px 0 0; padding: 0; }
.issue { padding: 0 0 22px; }
.issue-top {                      
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 20px;
}
.issue-title   { flex: 1 1 260px; min-width: 0; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.issue-status  { flex: none; font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.issue-status.fixed { color: var(--accent); }
.issue-details { margin: 2px 0 0; max-width: none; font-size: 15px; overflow-wrap: anywhere; }
.issue-date    { margin: 4px 0 0; max-width: none; font-size: 13px; color: var(--ink-3); }

.none { margin-top: 4px; color: var(--ink-3); }

.foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-top: 26px; font-size: 15px; }
.foot-q { color: var(--ink-3); }
#known[hidden] + .foot .foot-q { display: none; }
.foot-addr { min-width: 0; font-weight: 500; user-select: all; overflow-wrap: anywhere; }


.strip {
  display: flex; gap: 14px;
  margin: 44px calc(50% - 50vw) 0;                   
  padding: 6px max(28px, calc(50vw - 450px)) 24px;    
  overflow-x: auto; scrollbar-width: none;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.strip::-webkit-scrollbar { display: none; }
.strip.drag { cursor: grabbing; user-select: none; }

.shot {
  flex: none; margin: 0;
  height: clamp(220px, 42vh, 400px);
  border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
  background: #E1EDF6;
  box-shadow: 0 10px 28px -14px rgba(22, 50, 74, .35);
}
.shot img {
  display: block; height: 100%; width: auto;
  opacity: 0; transition: opacity .9s ease;
  -webkit-user-drag: none; user-select: none;
}
.shot img.loaded { opacity: 1; cursor: zoom-in; }
.strip.drag .shot img { cursor: grabbing; }


#lightbox {
  position: fixed; inset: 0; z-index: 20;
  background: rgba(240, 246, 251, .95);
  opacity: 0; transition: opacity .35s ease;
}
#lightbox.open { opacity: 1; }

.lb-stage {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 72px;
  overflow: hidden;
}
.lb-stage img {
  display: block; min-width: 0; min-height: 0;
  max-width: 100%; max-height: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 36px -20px rgba(22, 50, 74, .4);
  cursor: zoom-in;
  opacity: 0;
  transform-origin: 0 0;
  will-change: transform;
  transition: opacity .3s ease;
  user-select: none; -webkit-user-drag: none;
}
.lb-stage img.in     { opacity: 1; }
.lb-stage img.zoomed { cursor: zoom-out; touch-action: none; }
.lb-stage img.settle { transition: opacity .3s ease, transform .4s var(--ease); }

.lb-btn {
  position: absolute; z-index: 1;
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 2px 8px -2px rgba(22, 50, 74, .25);
}
.lb-close { top: 18px; right: 18px; }
.lb-nav   { top: 50%; margin-top: -21px; }
.lb-prev  { left: 16px; }
.lb-next  { right: 16px; }
@media (max-width: 700px) {
  .lb-nav  { top: auto; bottom: 16px; margin: 0; }
  .lb-prev { left: calc(50% - 52px); }
  .lb-next { right: calc(50% - 52px); }
}

.ico {
  width: 20px; height: 20px; background: var(--ink);
  -webkit-mask: var(--icon) center / contain no-repeat;
          mask: var(--icon) center / contain no-repeat;
}
.lb-close .ico { --icon: url(icons/close.svg); }
.lb-prev  .ico { --icon: url(icons/prev.svg); }
.lb-next  .ico { --icon: url(icons/next.svg); }

kbd {
  font: 600 11px/1 var(--font);
  color: var(--ink-2);
  padding: 3px 6px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
}
.lb-hint {
  position: absolute; z-index: 1;
  left: 0; right: 0; bottom: 18px;
  display: flex; justify-content: center; gap: 22px;
  font-size: 12px; color: var(--ink-3);
  pointer-events: none;
}
.lb-hint .pair { display: inline-flex; align-items: center; gap: 4px; }
.lb-hint .pair > span { margin-left: 3px; }
@media (hover: none), (pointer: coarse) { .lb-hint { display: none; } }

.rise { opacity: 0; }
.view.show .rise { animation: fade .9s ease both; animation-delay: calc(.1s * var(--i, 0) + .2s); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}
