@font-face { font-family: 'Krid'; src: url('fonts/Krid-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
/* the Regular file in the site's fonts folder renders as a serif, so 400 uses Book too (Nov 17) */
@font-face { font-family: 'Suisse Intl Web'; src: url('fonts/SuisseIntl-Book.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Suisse Intl Web'; src: url('fonts/SuisseIntl-Book.woff2') format('woff2'); font-weight: 450; font-display: swap; }
@font-face { font-family: 'Suisse Intl Web'; src: url('fonts/SuisseIntl-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-400-latin.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('fonts/Inter-500-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter Display'; src: url('fonts/InterDisplay-500-latin.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* the studio grey of the rendered frames */
  --studio: #dcdcdc;
  --page: #ffffff;
  --ink: #111111;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --key: #f4f4f4;
  /* frosted controls (Geio, Nov 17 references): grey glass, white text and icons */
  --glass: rgba(62, 64, 66, 0.55);
  --glass-strong: rgba(44, 46, 48, 0.68);
  --glass-fill: rgba(255, 255, 255, 0.14);
  --glass-fill-hover: rgba(255, 255, 255, 0.22);
  --glass-blur: blur(22px) saturate(1.6);
  --glass-edge: 0 10px 30px rgba(0, 0, 0, 0.12);
  --glass-ink: #ffffff;
  /* the screen: frosted, the project's own picture blurred behind white text (Geio, Nov 17) */
  --crt: #3a3c3d;
  --crt-ink: #ffffff;
  --crt-muted: #e2e3e3;
  --radius: 20px;
  --pill: 999px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --edge-top-background: var(--studio);
  --edge-bottom-background: var(--studio);
  /* one family for everything (Geio, Nov 17, after the references): hierarchy by size and brightness, not weight or caps */
  /* Krid, the site's own face (one style, Suisse Intl Book outlines); Suisse Book behind it as a fallback */
  --font: 'Krid', 'Suisse Intl Web', 'Inter', system-ui, sans-serif;
  --font-display: var(--font);
  --mono: var(--font);
}

* { box-sizing: border-box; }
html { background: var(--edge-top-background); }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--edge-bottom-background);
  color: var(--ink);
  font: 400 15px/21px var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  font-synthesis: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Safari edges */
.edge-top, .edge-bottom { position: fixed; left: 0; right: 0; z-index: 50; pointer-events: none; }
.edge-top { top: 0; height: max(12px, env(safe-area-inset-top)); background: var(--edge-top-background); }
.edge-bottom { bottom: 0; height: max(12px, env(safe-area-inset-bottom)); background: var(--edge-bottom-background); }
.edge-top::after, .edge-bottom::after { content: ''; position: absolute; inset: 0; }
.edge-top::after { background: var(--edge-top-background); }
.edge-bottom::after { background: var(--edge-bottom-background); }

/* The device: frames fit by height so the whole machine is always in view */
.device { position: fixed; inset: 0; overflow: hidden; background: var(--studio); }
.stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* The arcade screen: a black bezel, a rounded tube, scanlines and glass */
.screen {
  position: absolute;
  left: 0;
  top: 0;
  width: 760px;
  height: 1000px;
  transform-origin: 0 0;
  /* the rendered model has its own black bezel around this quad (v2), so no frame here */
}
.tube {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 0;
  background: var(--crt);
  box-shadow: inset 0 0 36px rgba(0, 0, 0, 0.35);
}
.tube-bg { position: absolute; inset: 0; overflow: hidden; }
.tube-bg img {
  position: absolute;
  inset: -12%;
  width: 124%;
  height: 124%;
  object-fit: cover;
  filter: blur(48px) brightness(0.42);
  transition: opacity 600ms ease;
}
.tube-bg img.is-new { opacity: 0; }
.tube-content {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 16px;
  padding: 22px 22px 20px;
  color: var(--crt-ink);
  /* a faint phosphor bloom on everything drawn on the tube */
  text-shadow: none;
}
.crt-top, .crt-keys {
  display: flex;
  justify-content: space-between;
  font: 500 11px/14px var(--mono);
  
  letter-spacing: 0;
  color: var(--crt-muted);
}
.crt-keys b { color: var(--crt-ink); font-weight: 500; }
.crt-shot {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 11;
  border-radius: 10px;
  overflow: hidden;
  background: #2a2c2d;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.crt-shot > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.crt-panel {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
}
.crt-text h2 { margin: 0; font: 500 26px/30px var(--font-display); letter-spacing: -0.01em; }
.crt-text p { margin: 4px 0 0; color: var(--crt-muted); font-size: 14px; line-height: 19px; min-height: 38px; }
.tube-content.swap-l, .tube-content.swap-r { transition: none; }
.tube-content { transition: opacity 200ms ease, transform 260ms var(--ease-out), filter 200ms ease; }
.tube-content.out-l { opacity: 0; transform: translateX(-18px); filter: blur(3px); }
.tube-content.out-r { opacity: 0; transform: translateX(18px); filter: blur(3px); }
/* scanlines, curvature shading and a soft glare across the glass */
.tube-glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(140% 110% at 50% 50%, transparent 58%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.03) 30%, transparent 46%);
  mix-blend-mode: normal;
}
.crt-hit { position: absolute; top: 0; bottom: 0; }
.crt-prev { left: 0; width: 22%; cursor: w-resize; }
.crt-next { right: 0; width: 22%; cursor: e-resize; }
.crt-open { left: 22%; right: 22%; }
.device:not([data-state='arcade']) .crt-hit { pointer-events: none; }
.crt-hit:focus-visible { outline: 2px solid var(--crt-ink); outline-offset: -6px; border-radius: 20px; }

.top {
  position: absolute;
  top: max(20px, env(safe-area-inset-top));
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.logo {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--glass-ink);
  transition: opacity 240ms ease;
}
.logo svg { width: 22px; height: 22px; stroke: none; }
.loading { margin: 0; color: var(--muted); }
.loading[hidden] { display: none; }

/* White floating buttons for the other pages, beside the machine */
.side-col {
  position: absolute;
  display: grid;
  gap: 12px;
  transform: translateY(-50%);
}
.side-left { justify-items: end; }
.side-right { justify-items: start; }
.float {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--glass-ink);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--glass-edge);
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transition: opacity 260ms var(--ease-out), transform 360ms var(--ease-out), background-color 200ms ease;
  pointer-events: none;
}
.device[data-state='arcade'] .float { opacity: 1; transform: none; pointer-events: auto; }
.device[data-state='arcade'] .side-col .float:nth-child(2) { transition-delay: 60ms; }
.float:active { transform: scale(0.97); }
@media (hover: hover) {
  .float:hover { background: var(--glass-strong); }
}

/* The control strip at the bottom */
.deck {
  position: absolute;
  left: 50%;
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
  transform: translateX(-50%);
  padding: 8px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--glass-ink);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
}
.deck-arcade { display: none; align-items: center; gap: 8px; }
.device[data-state='idle'] .deck { opacity: 0; pointer-events: none; }

/* Start: a round frosted button on the doors; app.js places it and lets it drift after the cursor */
.start {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  width: 76px;
  height: 76px;
  margin: -38px 0 0 -38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--glass-ink);
  box-shadow: var(--glass-edge);
  will-change: transform;
}
.start svg { width: 26px; height: 26px; stroke-width: 1.5; transition: transform 300ms var(--ease-out); }
@media (hover: hover) { .start:hover svg { transform: scaleX(1.18); } }
.start:active svg { transform: scale(0.88); }
.start:focus-visible { outline: 3px solid var(--glass-ink); outline-offset: 4px; }
.device:not([data-state='idle']) .start { opacity: 0; pointer-events: none; transition: opacity 220ms ease; }
.device[data-state='idle'] .start { transition: opacity 300ms ease; }
.device[data-state='arcade'] .deck-arcade { display: flex; }
.device:is([data-state='opening'], [data-state='closing'], [data-state='away']) .deck,
.device:is([data-state='opening'], [data-state='closing'], [data-state='away']) .hint,
.device:is([data-state='opening'], [data-state='closing'], [data-state='away']) .logo { opacity: 0; pointer-events: none; }
.key {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--pill);
  background: var(--glass-fill);
  color: var(--glass-ink);
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.open {
  height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  background: var(--glass-ink);
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
  transition: transform 160ms var(--ease-out);
}
.key:active, .open:active { transform: scale(0.96); }
@media (hover: hover) { .key:hover { background: var(--glass-fill-hover); } }
.hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(88px, calc(env(safe-area-inset-bottom) + 76px));
  margin: 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  transition: opacity 240ms ease;
}

/* Back button shared by both page layers */
.back {
  position: fixed;
  top: max(16px, env(safe-area-inset-top));
  left: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px 0 12px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge);
  color: var(--glass-ink);
  font-weight: 500;
}

/* Project page, Detail 4 from Paper (sticky split). Values from the 1440 x 900 artboard. The glass pieces fade on their
   own (never through a parent), so the blur holds during the fade. No strokes. */
.detail {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  color: #fff;
  transition: visibility 0s linear 360ms;
}
.detail.is-open { visibility: visible; transition: visibility 0s; }
.d-scrim {
  position: fixed;
  inset: 0;
  background: rgba(40, 42, 44, 0.38);
  -webkit-backdrop-filter: blur(18px) saturate(0.75);
  backdrop-filter: blur(18px) saturate(0.75);
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.detail.is-open .d-scrim { opacity: 1; }
.d4-glass, .d4-pill, .d4-info {
  background: rgba(58, 60, 62, 0.62);
  -webkit-backdrop-filter: blur(36px);
  backdrop-filter: blur(36px);
}
.d4-top {
  position: fixed;
  z-index: 2;
  top: max(32px, env(safe-area-inset-top));
  left: 56px;
  right: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}
.d4-pill {
  pointer-events: auto;
  height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 0 16px;
  border-radius: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  color: #fff;
  font: 400 14px/17px var(--font);
  opacity: 0;
  transition: opacity 360ms var(--ease-out), background-color 160ms ease;
}
.detail.is-open .d4-pill { opacity: 1; }
.d4-pill svg, .d4-step svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.d4-nav { gap: 4px; padding: 4px; }
.d4-step { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 10px; border-radius: 20px; background: rgba(255, 255, 255, 0.07); font: 400 14px/17px var(--font); transition: background-color 160ms ease, transform 160ms var(--ease-out); }
.d4-step svg { width: 18px; height: 18px; }
.d4-next { padding: 0 10px 0 16px; }
#dPrevName { opacity: 0.8; }
.d4-count { width: 84px; text-align: center; font: 400 13px/15px var(--font); font-variant-numeric: tabular-nums; color: #d8d8d8; }
.d4-step:active, .d4-pill:active { transform: scale(0.97); }
@media (hover: hover) { .d4-step:hover { background: rgba(255, 255, 255, 0.14); } }

.d4-wrap {
  width: min(1328px, 100% - 112px);
  margin: 0 auto;
  padding: 104px 0 56px;
  display: grid;
  position: relative;
  grid-template-columns: 448px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}
.d4-info {
  position: sticky;
  top: 104px;
  height: min(740px, calc(100dvh - 160px));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 40px 40px 36px;
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
  overflow: auto;
  opacity: 0;
  transition: opacity 360ms var(--ease-out);
}
.detail.is-open .d4-info { opacity: 1; }
.d4-text { display: flex; flex-direction: column; gap: 20px; }
.d4-info h1 { margin: 0; font: 400 36px/38px var(--font); letter-spacing: -0.02em; }
.d4-line { margin: 0; max-width: 340px; font: 400 16px/19px var(--font); letter-spacing: -0.012em; color: #d8d8d8; }
.d4-intro { display: grid; gap: 10px; padding-top: 16px; max-width: 360px; color: #e6e6e6; font: 400 14px/17px var(--font); }
.d4-intro p { margin: 0; }
.d4-facts { margin: 0; display: grid; gap: 6px; }
.d4-facts div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 16px 20px; border-radius: 18px; background: rgba(255, 255, 255, 0.08); }
.d4-facts dt { color: #bdbdbd; font: 400 14px/17px var(--font); }
.d4-facts dd { margin: 0; font: 400 14px/17px var(--font); text-align: right; }
.d4-live { color: inherit; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 3px; }
.d4-live:hover { text-decoration-color: currentColor; }
.d4-pics { display: grid; gap: 16px; }
.d-hero { margin: 0; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; background: #2a2c2d; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); transform-origin: 0 0; }
.d-hero > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.d-gallery { display: grid; gap: 16px; }
.d-gallery img { width: 100%; height: auto; display: block; border-radius: 28px; background: #2a2c2d; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28); }
/* text and pictures settle in after the glass */
.detail .d4-text, .detail .d4-facts, .detail .d-gallery { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.detail.is-in .d4-text, .detail.is-in .d4-facts, .detail.is-in .d-gallery { opacity: 1; transform: none; }
.detail.is-in .d4-facts { transition-delay: 80ms; }
.detail.is-in .d-gallery { transition-delay: 160ms; }
.detail.is-swapping .d4-text, .detail.is-swapping .d4-facts, .detail.is-swapping .d4-pics { opacity: 0; transition: opacity 180ms ease; }
.d4-pics { transition: opacity 260ms ease; }

@media (max-width: 899px) {
  .d4-top { left: 16px; right: 16px; }
  .d4-wrap { width: calc(100% - 32px); grid-template-columns: 1fr; padding-top: 92px; gap: 16px; }
  .d4-info { position: static; height: auto; padding: 28px 24px 24px; }

  #dPrevName, #dNextName { display: none; }
  .d4-step, .d4-next { padding: 0 10px; }
  .d4-count { width: 64px; }
  .d4-pill { font-size: 14px; padding: 0 16px 0 12px; }
}

/* Other pages: the real site in a layer that grows out of its button (clip-path set in app.js) */
.page {
  position: fixed;
  inset: 0;
  z-index: 10;
  background: var(--page);
  visibility: hidden;
}
.page.is-open { visibility: visible; }
.page iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

@media (max-width: 719px) {
  .side-col { position: static; transform: none; display: flex; gap: 8px; }
  .side {
    position: absolute;
    left: 0;
    right: 0;
    top: auto;
    bottom: max(20px, calc(env(safe-area-inset-bottom) + 12px));
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 0 16px;
  }
  .float { height: 40px; padding: 0 16px; font-size: 14px; }
  .open { padding: 0 16px; }
  .hint { display: none; }
  .d-head h1 { font-size: 34px; line-height: 38px; }
  .d-sheet { width: calc(100% - 16px); margin-top: 72px; padding: 16px 16px 72px; border-radius: 24px 24px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .float, .tube-content { transition: opacity 200ms ease; transform: none; filter: none; }
  .detail .d-head, .detail .d-intro, .detail .d-facts, .detail .d-gallery { transform: none; transition: opacity 200ms ease; }
}

/* Temporary click spots on the deck controls: a faint dashed ring and a label, only while the doors are open */
.hot { position: absolute; inset: 0; pointer-events: none; }
.spot {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease, transform 160ms var(--ease-out);
}
.device[data-state='arcade'] .spot { opacity: 1; pointer-events: auto; }
.spot-tag {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--glass-ink);
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease;
}
@media (hover: hover) { .spot:hover .spot-tag { opacity: 1; } }
.spot.is-hit { animation: spot-hit 320ms var(--ease-out); }
@keyframes spot-hit { 0% { transform: scale(0.88); } 100% { transform: scale(1); } }
.toast {
  position: absolute;
  left: 50%;
  top: max(64px, calc(env(safe-area-inset-top) + 48px));
  transform: translate(-50%, -6px);
  margin: 0;
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--glass-ink);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* Screen 7, glass card stack (Paper, Nov 17). Values 1:1 from the 760 x 1000 artboard; the small type is larger than
   in Paper so it reads at the machine's real size. No backdrop-filter in here: the ground is already blurred, and the
   screen fades in as a whole, which would cut a live blur off. No strokes around anything. */
.tube { background: #0e0f11; box-shadow: none; }
.tube-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 17, 0.25) 0%, rgba(14, 15, 17, 0) 45%, rgba(14, 15, 17, 0.35) 100%); }
.s7 { position: absolute; inset: 0; color: #fff; }
/* card stack change: out states ease, in states start without a transition and then settle */
.s7-card, .s7-back { transition: transform 300ms var(--ease-out), opacity 240ms ease; transform-origin: 50% 0; }
.s7.next-out .s7-card { transform: translateY(70px) scale(1.03); opacity: 0; transition-duration: 210ms; }
.s7.next-out .s7-b2 { transform: translateY(50px) scale(1.06); opacity: 0; transition-duration: 210ms; }
.s7.next-out .s7-b3 { transform: translateY(42px) scale(1.06); transition-duration: 210ms; }
.s7.next-in .s7-card { transform: translateY(-40px) scale(0.92); opacity: 0; transition: none; }
.s7.next-in .s7-b2 { transform: translateY(-36px) scale(0.94); opacity: 0; transition: none; }
.s7.next-in .s7-b3 { transform: translateY(-30px) scale(0.94); opacity: 0; transition: none; }
.s7.prev-out .s7-card { transform: translateY(-40px) scale(0.92); opacity: 0; transition-duration: 210ms; }
.s7.prev-out .s7-back { transform: translateY(-30px) scale(0.94); opacity: 0; transition-duration: 210ms; }
.s7.prev-in .s7-card { transform: translateY(70px) scale(1.03); opacity: 0; transition: none; }
.s7.prev-in .s7-back { transform: translateY(46px) scale(1.06); opacity: 0; transition: none; }
.s7-top { position: absolute; left: 48px; top: 44px; width: 664px; display: flex; justify-content: space-between; align-items: center; }
.s7-label { font: 400 21px/25px var(--font); letter-spacing: -0.012em; }
.s7-mono { font: 400 18px/22px var(--font); font-variant-numeric: tabular-nums; color: #d8d8d8; }
.s7-back { position: absolute; height: 300px; display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18); }
.s7-b3 { left: 112px; top: 104px; width: 512px; padding: 14px 22px; border-radius: 28px; background: rgba(120, 124, 130, 0.22); }
.s7-b2 { left: 80px; top: 146px; width: 576px; padding: 14px 24px; border-radius: 30px; background: rgba(120, 124, 130, 0.26); }
.s7-row { display: flex; align-items: center; gap: 16px; height: 26px; }
.s7-b3 .s7-row { opacity: 0.5; }
.s7-b2 .s7-row { opacity: 0.7; }
.s7-row i { flex: 1; }
.s7-bt { font: 400 18px/22px var(--font); }
.s7-thumb { width: 38px; height: 26px; border-radius: 6px; background: #2a2c2d center / cover no-repeat; flex-shrink: 0; }
.s7-card {
  position: absolute;
  left: 48px;
  top: 196px;
  width: 640px;
  padding: 12px;
  border-radius: 34px;
  background: rgba(128, 132, 138, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
}
.s7-shot { position: relative; width: 616px; height: 462px; border-radius: 24px; overflow: hidden; background: #2a2c2d; }
.s7-shot > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s7-meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px 16px 18px; }
.s7-meta h2 { margin: 0; font: 400 47px/50px var(--font); letter-spacing: -0.02em; }
.s7-meta p { margin: 6px 0 0; color: #cfcfcf; font: 400 21px/25px var(--font); letter-spacing: -0.012em; }
.s7-num { opacity: 0.6; padding-bottom: 6px; }
.s7-rail { position: absolute; left: 712px; top: 212px; width: 24px; height: 530px; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.s7-rail b { display: block; height: 2px; width: 8px; border-radius: 1px; background: #fff; opacity: 0.45; transition: width 200ms var(--ease-out), opacity 200ms ease; }
.s7-rail b:nth-child(4n + 1) { width: 12px; }
.s7-rail b.is-on { width: 18px; opacity: 1; }
.s7-ctrl { position: absolute; left: 48px; top: 812px; width: 640px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.s7-round { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(128, 132, 138, 0.3); transition: transform 160ms var(--ease-out), background-color 160ms ease; }
.s7-round svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s7-open { height: 72px; padding: 0 40px; border-radius: 36px; display: inline-flex; align-items: center; gap: 12px; background: #fff; color: #0e0f11; font: 400 18px/22px var(--font); transition: transform 160ms var(--ease-out); }
.s7-open svg { width: 18px; height: 18px; fill: none; stroke: #0e0f11; stroke-width: 2; }
.s7-round:active, .s7-open:active { transform: scale(0.96); }
@media (hover: hover) { .s7-round:hover { background: rgba(128, 132, 138, 0.45); } }
.s7-keys { position: absolute; left: 48px; top: 916px; width: 640px; display: flex; justify-content: center; gap: 40px; opacity: 0.6; font: 400 16px/20px var(--font);  }
.device:not([data-state='arcade']) .s7 button { pointer-events: none; }
.s7 button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }

/* the bottom control bar is off for now; the screen's own buttons do the job (Geio, Nov 17) */
.deck { display: none; }

/* The card deck: one card type, placed by depth. Values from Paper: front card at (48, 196) 640 wide; the strips behind
   sit 42 and 92 px higher at 0.9 and 0.8 of its width. A card behind is clipped to its top strip; coming forward,
   the clip opens and the picture unfolds. */
.s7-deck { position: absolute; inset: 0; }
.s7c {
  position: absolute;
  left: 48px;
  top: 196px;
  width: 640px;
  padding: 12px;
  border-radius: 34px;
  background: rgba(128, 132, 138, 0.3);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.28);
  clip-path: inset(0 0 0 0 round 34px);
  /* depth moves the card's box (left, top, width), never a scale, so its text stays the same size (Geio, Nov 17) */
  transition:
    left 460ms cubic-bezier(0.22, 1, 0.36, 1),
    top 460ms cubic-bezier(0.22, 1, 0.36, 1),
    width 460ms cubic-bezier(0.22, 1, 0.36, 1),
    clip-path 460ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 460ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 320ms ease,
    background-color 320ms ease;
}
.s7c-head {
  position: absolute;
  left: 22px;
  right: 22px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 26px;
  transition: opacity 260ms ease;
}
.s7c-head i { flex: 1; }
.s7c-body { transition: opacity 300ms ease; }
.s7c[data-depth='0'] { z-index: 3; }
.s7c[data-depth='0'] .s7c-head { opacity: 0; }
.s7c[data-depth='1'] { left: 80px; top: 146px; width: 576px; border-radius: 30px; z-index: 2; background: rgba(120, 124, 130, 0.26); clip-path: inset(0 0 calc(100% - 54px) 0 round 30px); }
.s7c[data-depth='2'] { left: 112px; top: 104px; width: 512px; border-radius: 28px; z-index: 1; background: rgba(120, 124, 130, 0.22); clip-path: inset(0 0 calc(100% - 54px) 0 round 28px); }
.s7c[data-depth='3'] { left: 140px; top: 70px; width: 456px; border-radius: 26px; z-index: 0; opacity: 0; clip-path: inset(0 0 calc(100% - 54px) 0 round 26px); }
.s7c[data-depth='-1'] { left: 40px; top: 300px; width: 656px; z-index: 4; opacity: 0; }
.s7c[data-depth='1'] .s7c-body, .s7c[data-depth='2'] .s7c-body, .s7c[data-depth='3'] .s7c-body { opacity: 0; }
.s7c[data-depth='1'] .s7c-head { opacity: 0.75; }
.s7c[data-depth='2'] .s7c-head, .s7c[data-depth='3'] .s7c-head { opacity: 0.5; }
/* the body keeps its full width while the box narrows, so nothing reflows mid-move */
.s7c-body { width: 616px; }
@media (prefers-reduced-motion: reduce) { .s7c, .s7c-head, .s7c-body { transition: none; } }

/* Text and controls on the screen in real pixels (calc with --u from app.js), the same size whatever the zoom */
.screen { --u: 1.6; }
.s7-top { left: calc(28px * var(--u)); right: calc(28px * var(--u)); width: auto; top: calc(22px * var(--u)); }
.s7-label { font-size: calc(16px * var(--u)); line-height: calc(20px * var(--u)); }
.s7-mono { font-size: calc(13px * var(--u)); line-height: calc(16px * var(--u)); }
.s7-bt { font-size: calc(13px * var(--u)); line-height: calc(16px * var(--u)); }
.s7c-head { gap: calc(10px * var(--u)); }
.s7-thumb { width: calc(24px * var(--u)); height: calc(16px * var(--u)); border-radius: calc(4px * var(--u)); }
.s7-meta { padding: calc(12px * var(--u)) calc(10px * var(--u)) calc(8px * var(--u)); gap: calc(12px * var(--u)); }
.s7-meta h2 { font-size: calc(22px * var(--u)); line-height: calc(26px * var(--u)); }
.s7-meta p { margin-top: calc(4px * var(--u)); font-size: calc(14px * var(--u)); line-height: calc(17px * var(--u)); }
.s7-num { padding-bottom: calc(2px * var(--u)); }
.s7-ctrl { gap: calc(8px * var(--u)); top: auto; bottom: calc(64px * var(--u)); }
.s7-round { width: calc(36px * var(--u)); height: calc(36px * var(--u)); }
.s7-round svg { width: calc(16px * var(--u)); height: calc(16px * var(--u)); stroke-width: 1.6; }
.s7-open { height: calc(36px * var(--u)); padding: 0 calc(20px * var(--u)); border-radius: calc(18px * var(--u)); font-size: calc(14px * var(--u)); line-height: calc(17px * var(--u)); }
.s7-keys { top: auto; bottom: calc(28px * var(--u)); gap: calc(20px * var(--u)); font-size: calc(12px * var(--u)); line-height: calc(15px * var(--u)); }

/* Frosted cards: each card blurs what is behind it. The screen fades in part by part (--reveal), never as a whole. */
.tube { background: rgb(14 15 17 / var(--reveal, 1)); }
.tube-bg, .tube-shade, .s7-top, .s7-rail, .s7-ctrl, .s7-keys { opacity: var(--reveal, 1); }
.s7c {
  --o: 1;
  opacity: calc(var(--reveal, 1) * var(--o));
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  backdrop-filter: blur(28px) saturate(1.2);
}
.s7c[data-depth='3'], .s7c[data-depth='-1'] { opacity: 0; --o: 0; }
/* smaller project titles */
.s7-meta h2 { font-size: calc(19px * var(--u)); line-height: calc(23px * var(--u)); }
.s7-bt { font-size: calc(12px * var(--u)); line-height: calc(15px * var(--u)); }
.s7c-head .s7-mono { font-size: calc(12px * var(--u)); }

/* project pictures at 4:3, the site's card ratio (Geio, Nov 17); most covers are 4:3, so they show whole */

/* the info column floats on the blurred background, no container of its own (Geio, Nov 17) */
.d4-info {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  padding: 8px 8px 4px;
  border-radius: 0;
}
.d-scrim { background: linear-gradient(90deg, rgba(30, 32, 34, 0.66) 0%, rgba(30, 32, 34, 0.52) 38%, rgba(30, 32, 34, 0.4) 100%); }

/* no shadow behind the project pictures in the detail view (Geio, Nov 17) */
.d-hero, .d-gallery img { box-shadow: none; }

/* small windows: the screen is smaller but its text and buttons keep their real size, so the picture gives up
   height to keep the card clear of the buttons (card bottom = 220 + picture + 64u, buttons start at 1000 - 116u) */
.s7-shot { height: var(--shot-h, 462px); transition: height 300ms ease; }

/* earthy ground on the screen: slightly blurred, a little darker so the white text reads */
.tube-bg img { inset: -4%; width: 108%; height: 108%; filter: brightness(0.8) saturate(1.05); }

/* View all on the screen */
.s7-right { display: inline-flex; align-items: center; gap: calc(10px * var(--u)); }
.s7-all {
  height: calc(26px * var(--u));
  padding: 0 calc(12px * var(--u));
  border-radius: calc(13px * var(--u));
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: 400 calc(13px * var(--u)) / calc(16px * var(--u)) var(--font);
  opacity: var(--reveal, 1);
  transition: background-color 160ms ease, transform 160ms var(--ease-out);
}
.s7-all:active { transform: scale(0.96); }
@media (hover: hover) { .s7-all:hover { background: rgba(255, 255, 255, 0.24); } }
.device:not([data-state='arcade']) .s7-all { pointer-events: none; }

/* All projects: tiles float on the blurred machine, no boxes; they rise in one after another */
.overview {
  position: fixed;
  inset: 0;
  z-index: 10;
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  color: #fff;
  transition: visibility 0s linear 360ms;
}
.overview.is-open { visibility: visible; transition: visibility 0s; }
.overview.is-open .d-scrim { opacity: 1; }
.overview.is-open .d4-pill { opacity: 1; }
.ov-wrap { position: relative; width: min(1328px, 100% - 112px); margin: 0 auto; padding: 112px 0 96px; }
.ov-title { margin: 0 0 28px; font: 400 36px/38px var(--font); letter-spacing: -0.02em; }
.ov-title span { color: #9d9d9d; }
.ov-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 24px; }
.ov-item { display: grid; gap: 4px; text-align: left; color: #fff; }
.ov-shot { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: 10px; border-radius: 20px; overflow: hidden; background: #2a2c2d; }
.ov-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.ov-name { font: 400 16px/19px var(--font); letter-spacing: -0.012em; }
.ov-line { font: 400 14px/17px var(--font); color: #bdbdbd; }
@media (hover: hover) { .ov-item:hover .ov-shot img { transform: scale(1.03); } }
.ov-item:focus-visible { outline: none; }
.ov-item:focus-visible .ov-shot { outline: 2px solid #fff; outline-offset: 4px; }
/* the rise: every tile but the one that flew in waits its turn */
.overview .ov-item, .overview .ov-title { opacity: 0; transform: translateY(14px); }
.overview.is-in .ov-item, .overview.is-in .ov-title {
  opacity: 1;
  transform: none;
  transition: opacity 500ms var(--ease-out), transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 28ms + 60ms);
}
.overview.is-in .ov-title { transition-delay: 0ms; }
.overview .ov-item.is-current { opacity: 1; transform: none; }
html.vt-run .overview, html.vt-run .overview * { transition: none !important; }
@media (max-width: 899px) {
  .ov-wrap { width: calc(100% - 32px); padding-top: 92px; }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
  .ov-title { font-size: 28px; line-height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .overview .ov-item, .overview .ov-title { transform: none; }
}

/* no number on the front card (Geio, Nov 17) */
.s7c .s7-num { display: none; }
/* the deck layer lets clicks through to the row above it */
.s7-deck { pointer-events: none; }
.s7-top { z-index: 5; }

/* the click spots on the deck stay clickable but are invisible for now (Geio, Nov 17) */
.spot { background: transparent; }
.spot-tag { display: none; }

/* screen buttons blur what is behind them (Geio, Nov 17). Their rows no longer fade; each button and label fades
   itself, so the blur is never cut off by a fading parent. */
.s7-top, .s7-ctrl { opacity: 1; }
.s7-label, .s7-top .s7-mono, .s7-all, .s7-round, .s7-open { opacity: var(--reveal, 1); }
.s7-round, .s7-all {
  background: rgba(150, 152, 156, 0.26);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
}
@media (hover: hover) {
  .s7-round:hover, .s7-all:hover { background: rgba(170, 172, 176, 0.38); }
}

/* no drop shadows behind the glass buttons (Geio, Nov 17); the blur alone separates them. To bring them back,
   delete this block. */
:root { --glass-edge: none; }
.d4-pill, .float, .logo, .start, .back { box-shadow: none; }

/* the Safari edge strips are only for phone Safari's bars; on desktop they showed as grey bands over the render */
@media (hover: hover) and (pointer: fine) {
  .edge-top, .edge-bottom { display: none; }
}

/* View all, orbit ring (All 1 from Paper). Each item has its own 3D transform under one perspective; the front card
   is on top by z-index. Items further out are smaller in effect, softer and darker. */
.orb-count { position: fixed; z-index: 2; top: max(44px, calc(env(safe-area-inset-top) + 12px)); right: 56px; margin: 0; font: 400 14px/17px var(--font); font-variant-numeric: tabular-nums; color: #fff; opacity: 0; transition: opacity 360ms ease; }
.orb-count span { color: #9d9d9d; }
.overview.is-open .orb-count { opacity: 1; }
.orb { position: fixed; inset: 0; overflow: hidden; }
.orb-ring { position: absolute; left: 0; right: 0; top: 18vh; height: 0; perspective: 1400px; perspective-origin: 50% 20%; }
.orb-item { left: 50%; }
.orb-item {
  position: absolute;
  left: 50%;
  top: 0;
  width: min(520px, 70vw);
  color: #fff;
  transform-origin: 50% 50%;
  transition: transform 640ms cubic-bezier(0.53, 0, 0.12, 0.99), filter 500ms ease, opacity 400ms ease;
}
.orb-item .ov-shot { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #2a2c2d; }
.orb-item .ov-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.orb-cap { display: block; margin-top: 18px; text-align: center; font: 400 14px/17px var(--font); color: #cfcfcf; opacity: 0; transition: opacity 300ms ease; }
.orb-item[data-o='1'] .orb-cap, .orb-item[data-o='-1'] .orb-cap { opacity: 0.8; }
.orb-item[data-o='1'], .orb-item[data-o='-1'] { filter: blur(0.6px) brightness(0.82); }
.orb-item[data-o='2'], .orb-item[data-o='-2'] { filter: blur(1.6px) brightness(0.66); }
.orb-item[data-o='3'], .orb-item[data-o='-3'] { filter: blur(3px) brightness(0.5); opacity: 0.7; }
.orb-item[data-o='4'], .orb-item[data-o='-4'] { filter: blur(4px) brightness(0.4); opacity: 0; pointer-events: none; }
.orb-item.is-front { cursor: pointer; }
@media (hover: hover) { .orb-item:not(.is-front):hover { filter: blur(0) brightness(0.95); } }
.orb-item:focus-visible { outline: none; }
.orb-item:focus-visible .ov-shot { outline: 2px solid #fff; outline-offset: 4px; }
.orb-info { position: absolute; left: 0; right: 0; top: calc(18vh + min(390px, 52.5vw) + 36px); display: grid; justify-items: center; gap: 6px; text-align: center; color: #fff; }
.orb-title { margin: 0; font: 400 36px/38px var(--font); letter-spacing: -0.02em; }
.orb-line { margin: 0 0 14px; font: 400 14px/17px var(--font); color: #cfcfcf; }
.orb-open { gap: 8px; padding: 0 16px 0 18px; }
.orb-open svg { width: 18px; height: 18px; }
.orb-dial { position: absolute; left: 50%; bottom: 120px; width: 0; height: 0; }
.orb-dial i { position: absolute; left: 0; top: 0; width: 1px; height: 8px; background: #fff; transform-origin: 50% 100%; transition: transform 640ms cubic-bezier(0.53, 0, 0.12, 0.99), opacity 400ms ease; }
.orb-dial i.is-major { height: 16px; }
.orb-dial i.is-major::after { content: attr(data-n); position: absolute; top: 24px; left: 50%; transform: translateX(-50%); font: 400 13px/15px var(--font); color: #bdbdbd; font-variant-numeric: tabular-nums; }
.orb-dial i.is-on { height: 26px; width: 2px; }
.orb-dial i.is-on::after { color: #fff; top: 34px; }
/* opening: the neighbours swing in from the middle outward, the dial and text after */
.overview .orb-item:not(.is-front), .overview .orb-info, .overview .orb-dial { opacity: 0; }
.overview.is-in .orb-item:not(.is-front), .overview.is-in .orb-info, .overview.is-in .orb-dial { opacity: 1; transition: transform 640ms cubic-bezier(0.53, 0, 0.12, 0.99), filter 500ms ease, opacity 500ms ease; }
.overview.is-in .orb-item[data-o='1'], .overview.is-in .orb-item[data-o='-1'] { transition-delay: 60ms; }
.overview.is-in .orb-item[data-o='2'], .overview.is-in .orb-item[data-o='-2'] { transition-delay: 120ms; }
.overview.is-in .orb-item[data-o='3'], .overview.is-in .orb-item[data-o='-3'] { transition-delay: 180ms; opacity: 0.7; }
.overview.is-in .orb-item[data-o='4'], .overview.is-in .orb-item[data-o='-4'] { opacity: 0; }
.overview.is-in .orb-info { transition-delay: 120ms; }
.overview.is-in .orb-dial { transition-delay: 220ms; }
.overview .ov-wrap { display: none; }
@media (max-width: 899px) {
  .orb-count { right: 16px; top: max(28px, calc(env(safe-area-inset-top) + 12px)); }
  .orb-ring { top: 22vh; }
  .orb-info { top: calc(22vh + 52.5vw + 28px); }
  .orb-title { font-size: 28px; line-height: 32px; }
  .orb-dial { bottom: 90px; }
}
@media (max-width: 899px) { .orb-cap { display: none; } }

/* quieter sides: the front project stands alone (Geio, Nov 17) */
.orb-item[data-o='1'], .orb-item[data-o='-1'] { filter: blur(1px) brightness(0.5); opacity: 0.75; }
.orb-item[data-o='2'], .orb-item[data-o='-2'] { filter: blur(2.5px) brightness(0.38); opacity: 0.45; }
.orb-item[data-o='3'], .orb-item[data-o='-3'] { filter: blur(4px) brightness(0.3); opacity: 0.2; }
.overview.is-in .orb-item[data-o='1'], .overview.is-in .orb-item[data-o='-1'] { opacity: 0.75; }
.overview.is-in .orb-item[data-o='2'], .overview.is-in .orb-item[data-o='-2'] { opacity: 0.45; }
.overview.is-in .orb-item[data-o='3'], .overview.is-in .orb-item[data-o='-3'] { opacity: 0.2; }
.orb-item[data-o='1'] .orb-cap, .orb-item[data-o='-1'] .orb-cap { opacity: 0.6; }
@media (hover: hover) { .orb-item:not(.is-front):hover { filter: blur(0) brightness(0.8); opacity: 1; } }
/* a fast run of turns should not lag: the ring moves a little quicker */
.orb-item { transition-duration: 460ms, 400ms, 300ms; }

/* bigger front picture: as wide as the height allows, title and dial fitted below (Geio, Nov 17) */
.orb { --ow: min(780px, 62vw, calc((100dvh - 390px) * 4 / 3)); }
.orb-ring { top: 11vh; }
.orb-item { width: var(--ow); }
.orb-item .ov-shot { border-radius: 20px; }
.orb-info { top: calc(11vh + var(--ow) * 3 / 4 + 26px); gap: 4px; }
.orb-line { margin-bottom: 12px; }
.orb-dial { bottom: 34px; }
@media (max-width: 899px) {
  .orb { --ow: 78vw; }
  .orb-ring { top: 20vh; }
  .orb-info { top: calc(20vh + 58.5vw + 24px); }
}

.orb-dial { bottom: 96px; }
.orb-item .ov-shot video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* sound toggle: a round glass button, top right, above every layer */
.sound {
  position: fixed;
  z-index: 40;
  top: max(20px, env(safe-area-inset-top));
  right: 24px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: #fff;
  transition: transform 160ms var(--ease-out), background-color 160ms ease;
}
.sound svg { width: 20px; height: 20px; stroke-width: 1.5; }
.sound:active { transform: scale(0.94); }
.sound .sound-off { display: none; }
.sound[aria-pressed='false'] .sound-on { display: none; }
.sound[aria-pressed='false'] .sound-off { display: block; }
@media (hover: hover) { .sound:hover { background: var(--glass-strong); } }
/* the count in View all moves left of the sound button */
.orb-count { right: 84px; }

/* gradient blur from the sides over the neighbours: a glass layer whose blur fades in toward the edge (the mask sits
   on the glass layer itself, never on a parent) */
.orb-fog {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 34vw;
  z-index: 20;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  transition: opacity 500ms ease;
}
.orb-fog-l { left: 0; -webkit-mask-image: linear-gradient(to right, #000 25%, transparent); mask-image: linear-gradient(to right, #000 25%, transparent); }
.orb-fog-r { right: 0; -webkit-mask-image: linear-gradient(to left, #000 25%, transparent); mask-image: linear-gradient(to left, #000 25%, transparent); }
.overview.is-open .orb-fog { opacity: 1; }
.orb-item[data-o='1'], .orb-item[data-o='-1'] { filter: blur(2.5px) brightness(0.5); }
/* the dial hangs just under the title block, so it never drops below the window */
.orb-dial { top: calc(11vh + var(--ow) * 3 / 4 + 178px); bottom: auto; }
@media (max-width: 899px) { .orb-dial { top: calc(20vh + 58.5vw + 168px); } }

/* "eye vision" (Geio, Nov 17): one round falloff instead of two side strips. Sharp in the middle where you look,
   blur and a faint darkening growing evenly toward every edge. */
.orb-fog-r { display: none; }
.orb-fog-l {
  left: 0;
  right: 0;
  width: auto;
  background: radial-gradient(ellipse 66% 95% at 50% 50%, transparent 50%, rgba(20, 22, 24, 0.35) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  -webkit-mask-image: radial-gradient(ellipse 60% 92% at 50% 50%, transparent 46%, #000 86%);
  mask-image: radial-gradient(ellipse 60% 92% at 50% 50%, transparent 46%, #000 86%);
}

/* Closed machine "calling" (stand-in, Geio Nov 17): a small shudder every few seconds and a light pulsing from the
   screen behind the frost. The rendered idle loop replaces this later. */
.glow {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 252, 245, 0.75), rgba(255, 248, 235, 0.25) 45%, transparent 75%);
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0;
  transition: opacity 500ms ease;
}
.device[data-state='idle'] .glow { opacity: 1; animation: glow-pulse 3.2s ease-in-out infinite; }
@keyframes glow-pulse {
  0%, 100% { opacity: 0.35; }
  12% { opacity: 0.9; }
  16% { opacity: 0.55; }
  20% { opacity: 1; }
  55% { opacity: 0.5; }
}
.device[data-state='idle'] .stage { animation: shudder 3.2s ease-in-out infinite; }
@keyframes shudder {
  0%, 9%, 26%, 100% { transform: translate(-50%, -50%); }
  11% { transform: translate(calc(-50% + 1.5px), calc(-50% - 0.5px)) rotate(0.08deg); }
  13% { transform: translate(calc(-50% - 1.5px), calc(-50% + 0.5px)) rotate(-0.08deg); }
  15% { transform: translate(calc(-50% + 1px), -50%) rotate(0.05deg); }
  17% { transform: translate(calc(-50% - 1px), -50%) rotate(-0.04deg); }
  19% { transform: translate(calc(-50% + 0.5px), -50%); }
  21% { transform: translate(-50%, -50%); }
}
@media (prefers-reduced-motion: reduce) {
  .device[data-state='idle'] .stage { animation: none; }
  .device[data-state='idle'] .glow { animation: none; opacity: 0.6; }
}

/* the screen flickering inside the closed machine (Geio, Nov 17): its dark blurred shape seen through the frost,
   switching on and off irregularly like a monitor warming up, with brighter flashes */
.glow {
  border-radius: 6%;
  background:
    radial-gradient(closest-side, rgba(255, 255, 255, 0.55), transparent 80%),
    url('video/textures/texture-25.webp') center / cover;
  mix-blend-mode: normal;
  filter: blur(9px) saturate(0.7);
}
.device[data-state='idle'] .glow { animation: screen-flicker 3.2s steps(1, end) infinite; }
@keyframes screen-flicker {
  0% { opacity: 0.28; }
  6% { opacity: 0.08; }
  8% { opacity: 0.42; }
  10% { opacity: 0.12; }
  12% { opacity: 0.55; filter: blur(9px) saturate(0.7) brightness(1.3); }
  15% { opacity: 0.2; }
  18% { opacity: 0.48; }
  30% { opacity: 0.32; }
  47% { opacity: 0.06; }
  49% { opacity: 0.36; }
  70% { opacity: 0.3; }
  86% { opacity: 0.14; }
  88% { opacity: 0.4; }
  100% { opacity: 0.28; }
}

/* the CSS stand-in for the idle shudder and flicker is off: it will be part of the Blender render (Geio, Nov 17) */
.glow { display: none; }
.device[data-state='idle'] .stage { animation: none; }

/* Menu (phones): a round glass button; the page buttons and the sound switch open from it as a frosted list */
.menu-btn, .menu { display: none; }
.d4-pill .short { display: none; }
@media (max-width: 719px) {
  .side, .sound { display: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    position: fixed;
    z-index: 41;
    top: max(20px, env(safe-area-inset-top));
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    color: #fff;
    transition: opacity 240ms ease, transform 160ms var(--ease-out);
  }
  .menu-btn svg { width: 20px; height: 20px; stroke-width: 1.6; }
  .menu-btn:active { transform: scale(0.94); }
  .menu-btn[aria-expanded='true'] svg path { d: path('M5.5 5.5l9 9M14.5 5.5l-9 9'); }
  /* the menu belongs to the machine views; each overlay has its own controls up there */
  body:has(.device[data-state='away']) .menu-btn,
  body:has(.device[data-state='opening']) .menu-btn,
  body:has(.device[data-state='closing']) .menu-btn { opacity: 0; pointer-events: none; }
  .menu {
    display: grid;
    gap: 4px;
    position: fixed;
    z-index: 41;
    top: calc(max(20px, env(safe-area-inset-top)) + 52px);
    right: 16px;
    min-width: 180px;
    padding: 6px;
    border-radius: 24px;
    background: var(--glass);
    -webkit-backdrop-filter: var(--glass-blur);
    backdrop-filter: var(--glass-blur);
    transform-origin: 100% 0;
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
    transition: opacity 200ms ease, transform 220ms var(--ease-out);
  }
  .menu[hidden] { display: none; }
  .menu.is-open { opacity: 1; transform: none; }
  .menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border-radius: 18px;
    color: #fff;
    text-decoration: none;
    font: 400 15px/18px var(--font);
    text-align: left;
  }
  .menu-item:active { background: rgba(255, 255, 255, 0.12); }
  .menu-sound span { color: #bdbdbd; }
  /* overlays: short back label, switcher with arrows and count only, no count up top in View all */
  .d4-pill .long { display: none; }
  .d4-pill .short { display: inline; }
  .orb-count { display: none; }
  .logo { width: 40px; height: 40px; }
}

/* phones: the open views zoom a little further so the deck's bottom edge meets the bottom of the screen */
@media (max-width: 719px) {
  .stage { transition: transform 700ms cubic-bezier(0.53, 0, 0.12, 0.99); }
  .device:is([data-state='arcade'], [data-state='away']) .stage { transform: translate(-50%, calc(-50% + var(--mty, 0px))) scale(var(--ms, 1)); }
}
/* phones: no key hints under the buttons; there are no keys to press (Geio, Nov 17) */
@media (max-width: 719px) { .s7-keys { display: none; } }
/* phones: buttons down to the screen's bottom edge, picture grows into the space; the tick rail would be cut by the
   phone's edge, so it is hidden */
@media (max-width: 719px) {
  .s7-ctrl { bottom: calc(26px * var(--u)); }
  .s7-rail { display: none; }
}
/* smaller card text (Geio, Nov 17): title, line, back-card names, numbers and the top bar */
.s7-meta h2 { font-size: calc(16px * var(--u)); line-height: calc(20px * var(--u)); }
.s7-meta p { margin-top: calc(3px * var(--u)); font-size: calc(12.5px * var(--u)); line-height: calc(16px * var(--u)); }
.s7-bt, .s7c-head .s7-mono, .s7-mono { font-size: calc(11px * var(--u)); line-height: calc(14px * var(--u)); }
.s7-label { font-size: calc(14px * var(--u)); line-height: calc(18px * var(--u)); }
.s7-all { font-size: calc(12px * var(--u)); }
.s7-open { font-size: calc(13px * var(--u)); }
/* Split 6 from Paper, "wide pictures" (Geio, Nov 17): a narrow info column at the left, the pictures run off the
   right edge, rounded on the left only; facts as quiet label and value pairs at the column's foot */
.d-gallery figure { margin: 0; }
.d-gallery figcaption { margin-top: 10px; padding-left: 4px; color: rgba(255, 255, 255, 0.5); font: 400 12px/15px var(--font); }
@media (min-width: 900px) {
  .d4-wrap { width: 100%; margin: 0; padding: 104px 0 56px 56px; grid-template-columns: 272px minmax(0, 1fr); gap: 64px; }
  .d4-info { top: 112px; height: calc(100dvh - 168px); padding: 0; gap: 24px; }
  .d4-text { gap: 10px; }
  .d4-info h1 { letter-spacing: -0.01em; }
  .d4-line { color: rgba(255, 255, 255, 0.56); }
  .d4-intro { padding-top: 14px; color: rgba(255, 255, 255, 0.78); }
  .d4-facts { gap: 16px; }
  .d4-facts div { display: grid; gap: 3px; padding: 0; border-radius: 0; background: none; }
  .d4-facts dt { color: rgba(255, 255, 255, 0.46); font: 400 12px/15px var(--font); }
  .d4-facts dd { text-align: left; color: rgba(255, 255, 255, 0.88); }
  .d-hero { aspect-ratio: 1048 / 732; border-radius: 24px 0 0 24px; }
  .d-gallery img { border-radius: 24px 0 0 24px; }
  .d4-top { left: 56px; right: 28px; }
}
/* variant C: the rendered idle loop has its own flicker, so the CSS glow stands down */
[data-clips='1'] .glow { display: none; }
/* key hints off everywhere (Geio, Nov 17): buttons drop to the screen's foot, the picture takes the room */
.s7-keys { display: none; }
.s7-ctrl { bottom: calc(26px * var(--u)); }
/* desktop: the open views sit 5% closer, top kept, bottom cut under the plate's first screws (Geio, Nov 17) */
@media (min-width: 720px) {
  .stage { transition: transform 700ms cubic-bezier(0.53, 0, 0.12, 0.99); }
  .device:is([data-state='arcade'], [data-state='away']) .stage { transform: translate(-50%, calc(-50% + var(--dty, 0px))) scale(var(--dms, 1)); }
}
/* the card stack sits a little lower, closer to the buttons (Geio, Nov 17); DECK_Y in app.js matches */
.s7-deck { transform: translateY(36px); }

/* ambient life on the open machine (Geio, Nov 17): very quiet, white only, gone while the doors are shut.
   Each part fades on its own (no faded ancestor over the screen's glass) */
.amb { position: absolute; inset: 0; pointer-events: none; }
.amb > i { position: absolute; display: block; opacity: 0; transition: opacity 900ms ease; }
.amb-spill {
  left: calc(290px * var(--k)); top: calc(296px * var(--k)); width: calc(220px * var(--k)); height: calc(24px * var(--k));
  background: radial-gradient(50% 50% at 50% 40%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 70%);
  mix-blend-mode: screen;
}
.amb-led {
  left: calc(var(--x) * 1px * var(--k)); top: calc(var(--y) * 1px * var(--k));
  width: calc(1.7px * var(--k)); height: calc(1.7px * var(--k)); margin: calc(-0.85px * var(--k)) 0 0 calc(-0.85px * var(--k));
  border-radius: 50%; background: #fff;
  box-shadow: 0 0 calc(1.5px * var(--k)) rgba(255, 255, 255, 0.9), 0 0 calc(4px * var(--k)) rgba(255, 255, 255, 0.45);
}
.device:is([data-state='arcade'], [data-state='away']) .amb-spill { opacity: 1; animation: amb-breathe 7s ease-in-out infinite; }
.device:is([data-state='arcade'], [data-state='away']) .amb-led { opacity: 0.25; animation: amb-chase 3.6s ease-in-out var(--d) infinite; }
.device:is([data-state='arcade'], [data-state='away']) .amb-status { animation: amb-blink 4.8s steps(1, end) infinite; }
@keyframes amb-breathe { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.9; } }
@keyframes amb-chase { 0%, 100% { opacity: 0.2; } 18% { opacity: 0.95; } 40% { opacity: 0.2; } }
@keyframes amb-blink { 0%, 86% { opacity: 0.9; } 88%, 92% { opacity: 0.15; } 94%, 100% { opacity: 0.9; } }

/* a faint light sweep across the screen glass now and then */
.tube-sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 6;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.06) 50%, rgba(255, 255, 255, 0) 60%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0; opacity: 0;
}
.device:is([data-state='arcade'], [data-state='away']) .tube-sheen { opacity: 1; animation: amb-sheen 11s ease-in-out 2s infinite; }
@keyframes amb-sheen { 0% { background-position: 150% 0; } 22%, 100% { background-position: -50% 0; } }

@media (prefers-reduced-motion: reduce) {
  .amb > i, .tube-sheen { animation: none !important; }
  .tube-sheen { display: none; }
}
/* the two toggle guards glow red, breathing slowly (Geio, Nov 17); stand-in until Blender's open-idle loop */
.amb-red {
  left: calc((var(--x) - 9) * 1px * var(--k)); top: calc(308px * var(--k));
  width: calc(18px * var(--k)); height: calc(22px * var(--k));
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 64, 40, 0.5), rgba(255, 64, 40, 0) 72%);
}
.device:is([data-state='arcade'], [data-state='away']) .amb-red { opacity: 0.5; animation: amb-red 4.8s ease-in-out var(--d) infinite; }
@keyframes amb-red { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.amb-red { top: calc(314px * var(--k)); height: calc(24px * var(--k)); }
/* white LEDs blink like a machine thinking (Geio, Nov 17): quick uneven data bursts, each its own rhythm, hard on/off */
.device:is([data-state='arcade'], [data-state='away']) .amb-led:not(.amb-status) { animation: var(--a) var(--t) steps(1, end) var(--d) infinite; }
@keyframes amb-data1 { 0% { opacity: 0.95; } 4% { opacity: 0.15; } 8% { opacity: 0.95; } 11% { opacity: 0.15; } 34% { opacity: 0.95; } 37% { opacity: 0.15; } 62% { opacity: 0.9; } 70% { opacity: 0.15; } 100% { opacity: 0.15; } }
@keyframes amb-data2 { 0% { opacity: 0.15; } 12% { opacity: 0.95; } 15% { opacity: 0.15; } 18% { opacity: 0.95; } 21% { opacity: 0.15; } 24% { opacity: 0.95; } 27% { opacity: 0.15; } 71% { opacity: 0.95; } 86% { opacity: 0.15; } 100% { opacity: 0.15; } }
@keyframes amb-data3 { 0% { opacity: 0.95; } 6% { opacity: 0.15; } 29% { opacity: 0.95; } 33% { opacity: 0.15; } 48% { opacity: 0.95; } 51% { opacity: 0.15; } 54% { opacity: 0.95; } 58% { opacity: 0.15; } 100% { opacity: 0.15; } }
/* the status LED: steady, with a quick double blink every few seconds */
@keyframes amb-blink { 0%, 80% { opacity: 0.9; } 82% { opacity: 0.12; } 84% { opacity: 0.9; } 86% { opacity: 0.12; } 88%, 100% { opacity: 0.9; } }
/* a thin white light ring in the joystick's base plate, breathing (Geio, Nov 17) */
.amb-ring {
  left: calc(289px * var(--k)); top: calc(342.6px * var(--k)); width: calc(32px * var(--k)); height: calc(7px * var(--k));
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.95) 80%, rgba(255, 255, 255, 0) 98%);
  filter: blur(calc(0.4px * var(--k)));
}
.device:is([data-state='arcade'], [data-state='away']) .amb-ring { opacity: 0.6; animation: amb-ring 4.8s ease-in-out infinite; }
@keyframes amb-ring { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* subtler (Geio, Nov 17): small brightness steps with soft edges, fewer bursts, longer pauses, a smaller glow */
.amb-led { box-shadow: 0 0 calc(1px * var(--k)) rgba(255, 255, 255, 0.7), 0 0 calc(2.5px * var(--k)) rgba(255, 255, 255, 0.25); }
.device:is([data-state='arcade'], [data-state='away']) .amb-led:not(.amb-status) { animation-timing-function: linear; }
@keyframes amb-data1 { 0%, 100% { opacity: 0.4; } 3% { opacity: 0.75; } 6% { opacity: 0.4; } 9% { opacity: 0.75; } 12% { opacity: 0.4; } 55% { opacity: 0.4; } 58% { opacity: 0.7; } 68% { opacity: 0.7; } 71% { opacity: 0.4; } }
@keyframes amb-data2 { 0%, 100% { opacity: 0.4; } 30% { opacity: 0.4; } 33% { opacity: 0.75; } 36% { opacity: 0.4; } 39% { opacity: 0.75; } 42% { opacity: 0.4; } 45% { opacity: 0.75; } 48% { opacity: 0.4; } }
@keyframes amb-data3 { 0%, 100% { opacity: 0.4; } 15% { opacity: 0.4; } 18% { opacity: 0.7; } 30% { opacity: 0.7; } 33% { opacity: 0.4; } 75% { opacity: 0.4; } 78% { opacity: 0.75; } 81% { opacity: 0.4; } }
.device:is([data-state='arcade'], [data-state='away']) .amb-status { animation: amb-blink 6s linear infinite; }
@keyframes amb-blink { 0%, 84% { opacity: 0.7; } 86% { opacity: 0.4; } 88% { opacity: 0.7; } 90% { opacity: 0.4; } 92%, 100% { opacity: 0.7; } }

/* krid.ee's type scale (astro/src/styles/tokens.css), Geio Nov 17: one small scale, no big titles on cards.
   Cards read like the site's project captions: name and line at the same size, the line muted */
:root {
  --display: 36px; --lh-display: 38px; --ls-display: -0.02em;
  --lead: 16px; --lh-lead: 19px; --ls-lead: -0.012em;
  --body: 14px; --lh-body: 17px;
  --meta: 13px; --lh-meta: 15px;
  --small: 12px; --lh-small: 15px;
  --muted-dark: rgba(255, 255, 255, 0.6);
}
@media (max-width: 809px) {
  :root { --display: 26px; --lh-display: 28px; --lead: 15px; --lh-lead: 18px; }
}
/* the screen (sizes in real px via --u) */
.s7-meta h2 { font-size: calc(var(--body) * var(--u)); line-height: calc(var(--lh-body) * var(--u)); letter-spacing: 0; }
.s7-meta p { margin-top: 0; font-size: calc(var(--body) * var(--u)); line-height: calc(var(--lh-body) * var(--u)); color: var(--muted-dark); }
.s7-bt, .s7c-head .s7-mono, .s7-mono { font-size: calc(var(--meta) * var(--u)); line-height: calc(var(--lh-meta) * var(--u)); }
.s7-label { font-size: calc(var(--body) * var(--u)); line-height: calc(var(--lh-body) * var(--u)); }
.s7-all { font-size: calc(var(--meta) * var(--u)); }
.s7-open { font-size: calc(var(--body) * var(--u)); }
/* project detail and view all */
.d4-info h1, .orb-title { font-size: var(--display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.d4-line { font-size: var(--lead); line-height: var(--lh-lead); letter-spacing: var(--ls-lead); }
.d4-intro { font-size: var(--body); line-height: var(--lh-body); }
.d4-facts dd { font-size: var(--body); line-height: var(--lh-body); }
.d4-facts dt, .d-gallery figcaption { font-size: var(--small); line-height: var(--lh-small); }
.orb-line { font-size: var(--body); line-height: var(--lh-body); color: var(--muted-dark); }
.d4-pill, .float { font-size: var(--body); }
.d4-count { font-size: var(--meta); line-height: var(--lh-meta); }

/* making the machine obvious (Geio, Nov 17) */
/* projects seen through the frost: soft colour, multiplied into the white glass */
.peek { position: absolute; transform: translate(-50%, -50%); overflow: hidden; pointer-events: none; border-radius: 4%; opacity: 0; transition: opacity 600ms ease; mix-blend-mode: multiply; }
.peek img { position: absolute; inset: -10%; width: 120%; height: 120%; object-fit: cover; filter: blur(calc(5px * var(--k))) saturate(1.1); opacity: 0; transition: opacity 1400ms ease; }
.peek img.on { opacity: 0.32; }
.device[data-state='idle'] .peek { opacity: 1; }

/* the start button says what it does, until the first visit has opened it */
.start-label {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  height: 40px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 20px; white-space: nowrap;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--glass-ink);
  font: 400 var(--body)/var(--lh-body) var(--font); pointer-events: none;
}
.start.is-known .start-label { display: none; }

/* the intro beside the shut machine, gone once it opens */
.intro {
  position: fixed; z-index: 3; left: 56px; bottom: max(56px, env(safe-area-inset-bottom)); max-width: 320px;
  display: grid; gap: 10px; color: #0a0a0a; transition: opacity 400ms ease, visibility 0s 400ms; opacity: 0; visibility: hidden;
}
.device[data-state='idle'] .intro { opacity: 1; visibility: visible; transition: opacity 500ms ease 200ms; }
.intro p { margin: 0; }
.intro-name { font: 400 var(--meta)/var(--lh-meta) var(--font); color: #757575; }
.intro-title { font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); text-wrap: balance; }
.intro-count { font: 400 var(--body)/var(--lh-body) var(--font); color: #757575; }
.intro-skip { justify-self: start; margin-top: 6px; font: 400 var(--body)/var(--lh-body) var(--font); color: #0a0a0a; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(10, 10, 10, 0.3); }
@media (hover: hover) { .intro-skip:hover { text-decoration-color: currentColor; } }
@media (max-width: 719px) {
  .intro { left: 20px; right: 20px; bottom: max(24px, env(safe-area-inset-bottom)); max-width: none; gap: 6px; }
  .start-label { display: none; }
}

/* door tease (stand-in until Blender's clip): hovering the start button rattles the machine a touch */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .device[data-state='idle']:has(.start:hover) #frames { animation: door-tease 520ms ease-in-out; }
}
@keyframes door-tease {
  0%, 100% { transform: none; }
  20% { transform: translateX(-1.2px) rotate(-0.12deg); }
  45% { transform: translateX(1.2px) rotate(0.12deg); }
  70% { transform: translateX(-0.6px) rotate(-0.05deg); }
}
.start-label { left: 0; top: 0; transform: none; z-index: 2; transition: opacity 220ms ease; will-change: transform; }
.device:not([data-state='idle']) .start-label { opacity: 0; }
.start-label[hidden] { display: none; }
/* the intro much smaller (Geio, Nov 17): the line at lead size, like a caption beside the machine */
.intro { max-width: 260px; gap: 6px; }
.intro-title { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); }
.intro-skip { margin-top: 4px; }
.start-label { z-index: 1; } /* when it trails, it slides under the circle, not over it */
/* hidden until the mouse moves (Geio, Nov 17) */
.start-label { opacity: 0; transition: opacity 320ms ease; }
.device[data-state='idle'] .start-label.is-on { opacity: 1; }

/* "17 projects inside" under the shut machine (Geio, Nov 17): a quiet read-out with hairline rules either side,
   decoding itself now and then; gone once the doors open */
.intro-count, .intro-skip { display: none; }
.inside {
  position: absolute; margin: 0; transform: translate(-50%, 0); display: flex; align-items: center; gap: 10px;
  white-space: nowrap; pointer-events: none; color: #4a4a4a;
  font: 400 var(--small)/var(--lh-small) var(--font); font-variant-numeric: tabular-nums;
  opacity: 0; transition: opacity 400ms ease;
}
.inside-rule { display: block; width: 18px; height: 1px; background: #4a4a4a; opacity: 0.5; }
.device[data-state='idle'] .inside { opacity: 1; transition: opacity 600ms ease 300ms; }
.inside-rule { display: none; }
/* all caps, as a tiny 11px label (Geio, Nov 17) */
.inside { font-size: 11px; line-height: 13px; text-transform: uppercase; letter-spacing: 0.08em; }
/* PP Supply Mono for the read-out under the machine (Geio, Nov 17); from Geio's installed copy, local sketch only:
   a web licence is needed before this goes live */
@font-face { font-family: 'PP Supply Mono'; src: url('type/PPSupplyMono-Regular.woff') format('woff'); font-weight: 400; font-display: swap; }
.inside { font-family: 'PP Supply Mono', var(--font); letter-spacing: 0.04em; }
/* the sound button lives bottom right on every screen (Geio, Nov 17): the top corners belong to the logo and each
   view's own navigation, which it used to sit on */
.sound { top: auto; bottom: max(24px, env(safe-area-inset-bottom)); right: 24px; }
.orb-count { right: 24px; }
/* the name in the same mono as the read-out (Geio, Nov 17) */
.intro-name { font-family: 'PP Supply Mono', var(--font); font-size: 11px; line-height: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: #4a4a4a; }
/* the start icon's arrows spread as the cursor nears (--spread 0 to 1, set in app.js); the old hover stretch goes */
@media (hover: hover) { .start:hover svg { transform: none; } }
.start svg { overflow: visible; }
.start .arr-l, .start .arr-r { transition: transform 180ms var(--ease-out); }
.start .arr-l { transform: translateX(calc(var(--spread, 0) * -3.5px)); }
.start .arr-r { transform: translateX(calc(var(--spread, 0) * 3.5px)); }
/* variant C with Blender's v4 desktop camera: the 5% crop and the lights are in the render now */
@media (min-width: 720px) {
  [data-clips='1'] .device:is([data-state='arcade'], [data-state='away']) .stage { transform: translate(-50%, -50%); }
}
[data-clips='1'] .amb { display: none; }

/* satisfying controls (Geio, Nov 17): one hover language for every pill, a crisp focus ring, no grey tap flash;
   the press squash and spring are done in app.js */
button, a { -webkit-tap-highlight-color: transparent; }
@media (hover: hover) {
  .d4-pill:hover, .logo:hover, .menu-btn:hover, .s7-all:hover, .s7-round:hover, .orb-open:hover { background: var(--glass-strong); }
  .s7-open:hover, .menu-item:hover { filter: brightness(0.94); }
  .float:hover, .d4-pill:hover, .s7-all:hover, .s7-round:hover { transition: background-color 120ms ease, opacity 360ms var(--ease-out); }
  .s7-round:hover svg, .d4-step:hover svg { transform: translateY(var(--nudge, 0)); }
  #crtPrev:hover { --nudge: -1.5px; }
  #crtNext:hover { --nudge: 1.5px; }
  #dPrev:hover svg { transform: translateX(-2px); }
  #dNext:hover svg, .orb-open:hover svg { transform: translateX(2px); }
  #back:hover svg, #ovBack:hover svg, #pageBack:hover svg { transform: translateX(-2px); }
}
.s7-round svg, .d4-step svg, .d4-pill svg, .orb-open svg, .back svg { transition: transform 200ms var(--ease-out); }
:where(button, a):focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
/* darker ground behind the detail views (Geio, Nov 18) */
.d-scrim { background: linear-gradient(90deg, rgba(22, 24, 26, 0.82) 0%, rgba(22, 24, 26, 0.72) 38%, rgba(22, 24, 26, 0.64) 100%); }
/* the snapshot ground (app.js blurSnap): a pre-blurred picture under the dark gradient, plus a fine grain so
   the soft gradients never band. No live backdrop blur while the snapshot exists */
:root[style*='--snap'] .d-scrim {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background:
    linear-gradient(90deg, rgba(22, 24, 26, 0.82) 0%, rgba(22, 24, 26, 0.72) 38%, rgba(22, 24, 26, 0.64) 100%),
    var(--snap) center / cover no-repeat;
}
.d-scrim::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* the dark grounds are decoration only: they never catch clicks (a closed overlay's ground was sitting over the
   start button and swallowing some clicks, Geio Nov 18) */
.d-scrim, .d-scrim::after { pointer-events: none; }

/* language dropdown, top right (Geio, Nov 18). Shown on the machine; the overlays have their own top bar */
.lang { position: fixed; z-index: 42; top: max(20px, env(safe-area-inset-top)); right: 24px; transition: opacity 240ms ease, visibility 0s 240ms; }
body:has(.detail.is-open, .overview.is-open, .page.is-open) .lang { opacity: 0; visibility: hidden; }
.lang-btn {
  height: 44px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px 0 16px; border-radius: 22px;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  color: #fff; font: 400 var(--meta)/var(--lh-meta) var(--font);
}
.lang-btn svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 200ms var(--ease-out); }
.lang-btn[aria-expanded='true'] svg { transform: rotate(180deg); }
@media (hover: hover) { .lang-btn:hover { background: var(--glass-strong); } }
.lang-list {
  position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 148px;
  border-radius: 20px; background: var(--glass-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  transform-origin: top right; animation: lang-in 180ms var(--ease-out);
}
@keyframes lang-in { from { opacity: 0; transform: scale(0.96) translateY(-4px); } }
.lang-list li {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 14px; border-radius: 14px;
  color: rgba(255, 255, 255, 0.78); font: 400 var(--body)/var(--lh-body) var(--font); cursor: pointer; outline: none;
}
.lang-list li[aria-selected='true'] { color: #fff; }
.lang-list li[aria-selected='true']::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.lang-list li:focus-visible, .lang-list li:hover { background: rgba(255, 255, 255, 0.1); }
@media (max-width: 719px) { .lang { right: 68px; } }
@media (prefers-reduced-motion: reduce) { .lang-list { animation: none; } }

/* phones: the screen's text and controls about 15% smaller (Geio, Nov 18); a long name on a back card stays on one
   line and ends with an ellipsis */
.s7-bt { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.s7c-head { min-width: 0; }
@media (max-width: 719px) {
  .s7-label { font-size: calc(12px * var(--u)); line-height: calc(15px * var(--u)); }
  .s7-bt, .s7c-head .s7-mono, .s7-mono { font-size: calc(11px * var(--u)); line-height: calc(13px * var(--u)); }
  .s7-all { font-size: calc(11px * var(--u)); height: calc(26px * var(--u)); padding: 0 calc(11px * var(--u)); }
  .s7-meta h2, .s7-meta p { font-size: calc(12px * var(--u)); line-height: calc(15px * var(--u)); }
  .s7-meta { padding: calc(10px * var(--u)) calc(8px * var(--u)) calc(6px * var(--u)); }
  .s7-round { width: calc(30px * var(--u)); height: calc(30px * var(--u)); }
  .s7-round svg { width: calc(13px * var(--u)); height: calc(13px * var(--u)); }
  .s7-open { height: calc(30px * var(--u)); padding: 0 calc(16px * var(--u)); font-size: calc(12px * var(--u)); line-height: calc(15px * var(--u)); }
  .s7-ctrl { gap: calc(6px * var(--u)); }
}
/* the new native pages have their own top bar too: the language pill steps aside there; on Contact the form takes
   the bottom right, so the sound button steps aside as well (Geio, Nov 18) */
body:has(.kp.is-open) .lang { opacity: 0; visibility: hidden; }
body:has(.kp-contact.is-open) .sound { opacity: 0; visibility: hidden; pointer-events: none; }
.sound { transition: transform 160ms var(--ease-out), background-color 160ms ease, opacity 240ms ease, visibility 0s; }

/* phones (Geio, Nov 18): the screen's content a little lower, clear of the logo and menu; DECK_Y_PHONE in app.js
   matches the deck shift. The language moves into the menu */
@media (max-width: 719px) {
  .s7-top { top: calc(44px * var(--u)); }
  .s7-deck { transform: translateY(60px); }
  .lang { display: none; }
}
.menu-lang { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.menu-lang-opts { display: inline-flex; gap: 4px; }
.menu-lang-opts button { height: 32px; min-width: 44px; padding: 0 10px; border-radius: 16px; background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); font: inherit; }
.menu-lang-opts button[aria-pressed='true'] { background: #fff; color: #0e0f11; }
/* phones: a smaller Open button, arrows matched to it (Geio, Nov 18) */
@media (max-width: 719px) {
  .s7-open { height: calc(26px * var(--u)); padding: 0 calc(13px * var(--u)); border-radius: calc(13px * var(--u)); font-size: calc(11px * var(--u)); line-height: calc(13px * var(--u)); }
  .s7-round { width: calc(26px * var(--u)); height: calc(26px * var(--u)); }
  .s7-round svg { width: calc(11px * var(--u)); height: calc(11px * var(--u)); }
}
/* phones: "Projects" and View all back where they were; only the cards sit lower (Geio, Nov 18) */
@media (max-width: 719px) { .s7-top { top: calc(22px * var(--u)); } }
/* the machine view never scrolls or rubber-bands; projects and pages scroll inside their own layers (Geio, Nov 18) */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
@media (max-width: 719px) { .device { touch-action: none; } }
/* phones: arrows and Open a size up again, easier to tap (Geio, Nov 18) */
@media (max-width: 719px) {
  .s7-open { height: calc(32px * var(--u)); padding: 0 calc(17px * var(--u)); border-radius: calc(16px * var(--u)); font-size: calc(13px * var(--u)); line-height: calc(16px * var(--u)); }
  .s7-round { width: calc(32px * var(--u)); height: calc(32px * var(--u)); }
  .s7-round svg { width: calc(14px * var(--u)); height: calc(14px * var(--u)); }
}
/* bigger cards (Geio, Nov 18): pictures may grow taller (up to about 5:4, set in fitShot), and on phones, where
   the tick rail is hidden, the front card takes the screen's full width */
@media (max-width: 719px) {
  .s7c[data-depth='0'] { left: 28px; width: 704px; }
  .s7c[data-depth='-1'] { left: 20px; width: 720px; }
}
/* phones: every picture outside the machine gets the same corner as a project picture on the screen card,
   24 screen units times the screen's scale, about 13 px (Geio, Nov 18) */
@media (max-width: 719px) {
  .d-hero, .d-gallery img, .hw-fig, .ab-portrait, .ab-offices img, .ab-home img { border-radius: 13px; }
}
@media (max-width: 719px) {
  html .d-hero, html .d-gallery img, html .hw-fig, html .ab-portrait, html .ab-offices img, html .ab-home img { border-radius: 13px; }
}
/* phones: the picture fills the wider card */
@media (max-width: 719px) { .s7c .s7-shot { width: auto; } }
@media (max-width: 719px) { .s7c[data-depth] .s7c-body { width: auto; } }
/* the pictures' alt text is for screen readers, not a visible caption (Geio, Nov 18) */
.d-gallery figcaption { display: none; }
/* logo and menu circles a size up (Geio, Nov 18) */
.logo { width: 48px; height: 48px; }
.logo svg { width: 24px; height: 24px; }
.lang-btn { height: 48px; border-radius: 24px; }
@media (max-width: 719px) {
  .logo { width: 48px; height: 48px; }
  .menu-btn { width: 48px; height: 48px; }
  .menu-btn svg { width: 22px; height: 22px; }
}
/* the live reflection of the screen in the deck (reflect.js): multiplied onto the render, only while open */
.reflect { position: absolute; pointer-events: none; mix-blend-mode: multiply; opacity: 0; transition: opacity 600ms ease; }
.device:is([data-state='arcade'], [data-state='away']) .reflect { opacity: 1; }
/* section titles and text between the pictures, as on the site's project pages (Geio, Nov 18) */
.d-sec { display: grid; gap: 8px; max-width: 560px; padding: 24px 4px 4px; }
.d-sec h2 { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.d-sec p { margin: 0; font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.72); }
.d-gallery video { width: 100%; height: auto; display: block; border-radius: 24px 0 0 24px; background: #2a2c2d; }
@media (max-width: 899px) { .d-gallery video { border-radius: 28px; } }
@media (max-width: 719px) { html .d-gallery video { border-radius: 13px; } }
/* the cards behind are cut straight at the bottom, as if they carry on behind the front card (Geio, Nov 18) */
.s7c[data-depth='1'] { clip-path: inset(0 0 calc(100% - 54px) 0 round 30px 30px 0 0); }
.s7c[data-depth='2'] { clip-path: inset(0 0 calc(100% - 54px) 0 round 28px 28px 0 0); }
.s7c[data-depth='3'] { clip-path: inset(0 0 calc(100% - 54px) 0 round 26px 26px 0 0); }
/* quieter reflection (Geio, Nov 18) */
.device:is([data-state='arcade'], [data-state='away']) .reflect { opacity: 0.55; }
/* test (Geio, Nov 18): a faint white dot grid on the project page's ground, fixed while the page scrolls */
.detail .d-scrim::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 1px, transparent 1.4px);
  background-size: 20px 20px; background-position: 10px 10px;
}

/* project pictures: soft corners on every side, squircles where the browser has them (Geio, Nov 18) */
.d-hero, .d-gallery img, .d-gallery video { border-radius: 24px; }
@supports (corner-shape: none-geio-no-smoothing) {
  .d-hero, .d-gallery img, .d-gallery video { border-radius: 48px;; }
}
/* several screens from one image: separate pictures in a row, the same height, with gaps */
.d-row { display: flex; gap: 16px; align-items: flex-start; margin: 0; padding-right: 56px; }
.d-row img { min-width: 0; width: 100%; height: auto; object-fit: cover; }
@media (max-width: 719px) {
  html .d-hero, html .d-gallery img, html .d-gallery video { border-radius: 13px; }
  @supports (corner-shape: none-geio-no-smoothing) { html .d-hero, html .d-gallery img, html .d-gallery video { border-radius: 26px; } }
  .d-row { gap: 8px; padding-right: 0; }
}
/* one right edge for every picture (Geio, Nov 18): now that the corners round on the right too, the picture column
   keeps the same 28px margin as the top bar, and rows of screens span exactly the same width */
@media (min-width: 900px) { .d4-pics { padding-right: 28px; } }
.d-row { padding-right: 0; }
/* softer, not rounder (Geio, Nov 18): smaller picture corners; screens in a row a little smaller still */
.d-hero, .d-gallery img, .d-gallery video { border-radius: 16px; }
.d-row img { border-radius: 12px; }
@supports (corner-shape: none-geio-no-smoothing) {
  .d-hero, .d-gallery img, .d-gallery video { border-radius: 28px; }
  .d-row img { border-radius: 22px; }
}
@media (max-width: 719px) {
  html .d-hero, html .d-gallery img, html .d-gallery video { border-radius: 10px; }
  html .d-row img { border-radius: 8px; }
  @supports (corner-shape: none-geio-no-smoothing) { html .d-hero, html .d-gallery img, html .d-gallery video { border-radius: 18px; } html .d-row img { border-radius: 14px; } }
}
/* smaller dots (Geio, Nov 18) */
.detail .d-scrim::before { background-image: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0.6px, transparent 0.9px); }
/* Services: parts rise in as they scroll into view (reveal.js) */
.rv { opacity: 0; transform: translateY(14px); transition: opacity 600ms cubic-bezier(0.23, 1, 0.32, 1), transform 700ms cubic-bezier(0.23, 1, 0.32, 1); }
.rv.rv-in { opacity: 1; transform: none; }
/* cut-out screenshots keep their own transparent corners: no rounding, no grey behind them (Geio, Nov 18) */
html .d-gallery .is-cut img, html .d-gallery .is-cut.d-row img { border-radius: 0; corner-shape: round; background: none; }

/* the site's lightbox (ramka) in the sketch's dark skin (Geio, Nov 18): the site's skin reads its tokens, so they
   are set here for the viewer only. A deep blurred ground over everything, glass pills for the chrome */
[data-ramka-portal] {
  --white: rgba(14, 15, 17, 0.9);
  --ink: #fff;
  --muted: rgba(255, 255, 255, 0.6);
  --surface: var(--glass);
  --line: var(--glass-strong);
  --pad: 56px;
  --radius-media: 16px;
  --radius-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-ui: cubic-bezier(0.23, 1, 0.32, 1);
}
[data-ramka-portal] .lb-backdrop { z-index: 200; -webkit-backdrop-filter: blur(24px) saturate(0.8); backdrop-filter: blur(24px) saturate(0.8); }
[data-ramka-portal] .lb-content { z-index: 201; }
[data-ramka-portal] .lb-btn { -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: #fff; }
[data-ramka-portal] .lb-btn svg { stroke: #fff; }
[data-ramka-portal] .lb-counter { line-height: 44px; padding: 0 4px; }
[data-ramka-portal] .lb-caption { color: rgba(255, 255, 255, 0.7); }
@supports (corner-shape: none-geio-no-smoothing) { [data-ramka-portal] { --radius-media: 28px; } }
@media (max-width: 809px) { [data-ramka-portal] { --pad: 16px; --radius-media: 12px; } }
/* while the viewer is open, the page's own top bars and the sound button step aside */
body:has([data-ramka-portal] .lb-content) :is(.d4-top, .sound, .lang, .logo, .menu-btn) { visibility: hidden; }
/* How I work: the small text under a section title stays a short, readable measure (Geio, Nov 18) */
html .hw-sec-head :is(p, .kp-lead, .kp-small) { max-width: 360px; }
@media (max-width: 719px) { html .hw-sec-head :is(p, .kp-lead, .kp-small) { max-width: none; } }
/* project intros: the rest of a long intro opens in place (detail-more.js) */
.d-more-rest { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 420ms cubic-bezier(0.23, 1, 0.32, 1); }
.d-more-rest.is-open { grid-template-rows: 1fr; }
.d-more-inner { min-height: 0; overflow: hidden; display: grid; gap: 10px; }
.d-more-rest:not(.is-open) .d-more-inner { visibility: hidden; transition: visibility 0s 420ms; }
.d-more-btn { justify-self: start; padding: 0; border: 0; background: none; cursor: pointer; }
.d-more-btn svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .d-more-rest { transition: none; } }
/* long words (Estonian compounds) break with a hyphen instead of running out of the column, and the info column
   never scrolls sideways (Geio, Nov 18) */
.d4-info { overflow-x: hidden; }
.d4-info h1, .d4-line, .d4-intro, .orb-title, .kp-title { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
/* if a word is still too long after fit-title.js, it breaks inside the column rather than overflowing */
html :is(#dTitle, #svTitle, .orb-title, .kp-title) { overflow-wrap: anywhere; min-width: 0; }
html .sv-side, html .sv-head { min-width: 0; }

/* first-load intro, krid.ee's "Through the ring" in white (intro.js) */
@property --r { syntax: '<length>'; inherits: true; initial-value: 26px; }
@property --h { syntax: '<length>'; inherits: true; initial-value: 0px; }
.intro-ld { display: none; }
html.ld-on .intro-ld { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; --r: 26px; --h: 0px; font-family: var(--font); }
html.ld-opening .intro-ld { animation: ld-open 1000ms cubic-bezier(0.7, 0, 0.2, 1) forwards; }
html.ld-on body { overflow: hidden; }
html.ld-opening .device { animation: ld-page 900ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.intro-ld .hole {
  position: absolute; inset: 0; background: #fff;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--h), #000 calc(var(--h) + 0.5px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--h), #000 calc(var(--h) + 0.5px));
}
.intro-ld .hole::after {
  content: ''; position: absolute; left: 50%; top: 50%; width: calc(var(--r) * 2); height: calc(var(--r) * 2);
  translate: -50% -50%; border-radius: 50%; box-shadow: inset 0 0 0 4px #0a0a0a; animation: ld-ring 500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.intro-ld .aperture { position: relative; display: grid; grid-template-columns: 1fr 52px 1fr; align-items: center; gap: 24px; width: min(640px, 100%); padding-inline: 24px; color: #0a0a0a; }
html.ld-opening .intro-ld .aperture { animation: ld-out 250ms ease forwards; }
.intro-ld .mark { display: block; width: 52px; height: 52px; animation: ld-g 500ms cubic-bezier(0.22, 1, 0.36, 1) both; }
.intro-ld .side { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); opacity: 0; }
.intro-ld .side.l { text-align: right; animation: ld-side-l 700ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards; }
.intro-ld .side.r { color: #8a8a8a; animation: ld-side-r 700ms cubic-bezier(0.22, 1, 0.36, 1) 380ms forwards; }
.intro-ld.skip { transition: opacity 250ms ease; opacity: 0; }
@keyframes ld-open { from { --r: 26px; --h: 22px; } 99% { --r: 120vmax; --h: calc(120vmax - 4px); visibility: visible; } to { --r: 120vmax; --h: 120vmax; visibility: hidden; } }
@keyframes ld-page { from { transform: scale(1.04); } to { transform: none; } }
@keyframes ld-ring { from { opacity: 0; scale: 0.8; } }
@keyframes ld-g { from { opacity: 0; transform: scale(0.8); } }
@keyframes ld-out { to { opacity: 0; transform: scale(0.96); } }
@keyframes ld-side-l { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }
@keyframes ld-side-r { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .intro-ld .aperture { grid-template-columns: 1fr; justify-items: center; gap: 72px; }
  .intro-ld .side.l, .intro-ld .side.r { text-align: center; }
  .intro-ld .mark { position: absolute; top: 50%; left: 50%; translate: -50% -50%; }
}
/* the loader shows the real krid logo; the hole opens clean, with no ring drawn on its edge (Geio, Nov 18) */
.intro-ld .hole::after { display: none; }
.intro-ld .mark { width: 56px; height: 56px; color: #0a0a0a; }
/* the sheet is solid until it opens; only then does the hole cut through it (the cut showed a dark disc behind the
   logo before) */
html.ld-on:not(.ld-opening) .intro-ld .hole { -webkit-mask: none; mask: none; }
.intro-ld .mark, .intro-ld .mark path { stroke: none; } /* the sketch's icon stroke rule must not thicken the logo */
/* a much smaller logo in the loader (Geio, Nov 18) */
.intro-ld .mark { width: 28px; height: 28px; }
.intro-ld .aperture { grid-template-columns: 1fr 28px 1fr; gap: 18px; }
/* the machine's controls say what they do (Geio, Nov 18): a small glass tip over each, on hover or keyboard focus,
   and for a moment after a tap on touch screens. They follow the controls' rendered places (S.controls), so the
   Blender clips' positions carry them along */
.spot-tag { display: block; translate: 0 4px; transition: opacity 160ms ease, translate 200ms var(--ease-out); pointer-events: none; }
@media (hover: hover) { .spot:hover .spot-tag { opacity: 1; translate: 0 0; } }
.spot:focus-visible .spot-tag, .spot.is-hit .spot-tag { opacity: 1; translate: 0 0; }
@media (hover: none) { .spot.is-hit .spot-tag { transition-delay: 0s, 0s; } }

/* opening the doors (Geio, Nov 18): everything that belongs to the shut machine leaves together on one curve, the
   start button and its label shrink slightly as they go, the text drifts down a touch; the logo stays put (it
   used to blink out and back) */
.device[data-state='opening'] .logo { opacity: 1; pointer-events: auto; }
.start, .start-label { transition: opacity 280ms cubic-bezier(0.23, 1, 0.32, 1), scale 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.device:not([data-state='idle']) .start { opacity: 0; scale: 0.88; transition: opacity 280ms cubic-bezier(0.23, 1, 0.32, 1), scale 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.device:not([data-state='idle']) .start-label { opacity: 0; scale: 0.94; transition: opacity 200ms ease, scale 320ms cubic-bezier(0.23, 1, 0.32, 1); }
.intro { transition: opacity 300ms ease, translate 360ms cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 360ms; }
.device:not([data-state='idle']) .intro { translate: 0 8px; }
.device[data-state='idle'] .intro { translate: 0 0; transition: opacity 500ms ease 200ms, translate 600ms cubic-bezier(0.23, 1, 0.32, 1) 200ms, visibility 0s; }
.inside { transition: opacity 280ms ease, translate 360ms cubic-bezier(0.23, 1, 0.32, 1); }
.device:not([data-state='idle']) .inside { translate: 0 6px; }

/* test (Geio, Nov 18): light grey screen cards with dark text. ?cards=dark brings the dark glass back to compare */
html:not([data-cards='dark']) .s7c { background: rgba(232, 233, 235, 0.94); box-shadow: none; }
html:not([data-cards='dark']) .s7c[data-depth='1'] { background: rgba(214, 216, 219, 0.82); }
html:not([data-cards='dark']) .s7c[data-depth='2'], html:not([data-cards='dark']) .s7c[data-depth='3'] { background: rgba(196, 198, 202, 0.72); }
html:not([data-cards='dark']) .s7-meta h2 { color: #111214; }
html:not([data-cards='dark']) .s7-meta p { color: #5d6066; }
html:not([data-cards='dark']) .s7c-head, html:not([data-cards='dark']) .s7-bt { color: #232426; }
html:not([data-cards='dark']) .s7c-head .s7-mono, html:not([data-cards='dark']) .s7-num { color: #6a6d72; }
html:not([data-cards='dark']) .s7-shot { background: #d2d4d7; }
/* lighter, solid cards: no frosted blur (its edges drew a faint rim on light cards) (Geio, Nov 18) */
html:not([data-cards='dark']) .s7c { background: #f1f2f3; -webkit-backdrop-filter: none; backdrop-filter: none; }
html:not([data-cards='dark']) .s7c[data-depth='1'] { background: #e3e4e6; }
html:not([data-cards='dark']) .s7c[data-depth='2'], html:not([data-cards='dark']) .s7c[data-depth='3'] { background: #d5d7da; }
html:not([data-cards='dark']) .s7-shot { background: #e3e4e6; }
/* white front card, a smaller line under the title (Geio, Nov 18) */
html:not([data-cards='dark']) .s7c, html:not([data-cards='dark']) .s7c[data-depth='0'] { background: #ffffff; }
html:not([data-cards='dark']) .s7c[data-depth='1'] { background: #ececee; }
html:not([data-cards='dark']) .s7c[data-depth='2'], html:not([data-cards='dark']) .s7c[data-depth='3'] { background: #dfe0e3; }
.s7-meta p { font-size: calc(var(--small) * var(--u)); line-height: calc(var(--lh-small) * var(--u)); }
@media (max-width: 719px) { .s7-meta p { font-size: calc(11px * var(--u)); line-height: calc(14px * var(--u)); } }
/* the cards behind are plain: no number, name or thumbnail on them (Geio, Nov 18) */
.s7c:not([data-depth='0']) .s7c-head { visibility: hidden; }

/* smoother swaps (Geio, Nov 18). The ground: a slow crossfade, the new texture settling from a touch larger, so
   the colour flows instead of switching. The cards: a longer, softer curve with no hard start, the fades overlapping
   the moves */
.tube-bg img { transition: opacity 1100ms cubic-bezier(0.33, 0, 0.2, 1), scale 1400ms cubic-bezier(0.22, 1, 0.36, 1); scale: 1; }
.tube-bg img.is-new { opacity: 0; scale: 1.06; }
html[data-flow='b'] .s7c {
  --nav: cubic-bezier(0.32, 0.72, 0, 1);
  transition: left 620ms var(--nav), top 620ms var(--nav), width 620ms var(--nav), clip-path 620ms var(--nav), border-radius 620ms var(--nav), opacity 420ms cubic-bezier(0.33, 0, 0.2, 1), background-color 420ms ease;
}
html[data-flow='b'] .s7c-body, html[data-flow='b'] .s7c-head { transition: opacity 360ms cubic-bezier(0.33, 0, 0.2, 1); }
@media (prefers-reduced-motion: reduce) { .tube-bg img { transition: opacity 300ms ease; scale: 1; } }

/* the cards behind fade further back, and a swap reads as motion (Geio, Nov 18): the incoming card's picture and
   text rise into place a beat after the card itself moves forward; the outgoing front card drops away as it fades */
.s7c[data-depth='1'] { --o: 0.55; }
.s7c[data-depth='2'] { --o: 0.26; }
html[data-flow='b'] .s7c-body { transform-origin: 50% 0; transition: opacity 420ms cubic-bezier(0.33, 0, 0.2, 1), transform 680ms cubic-bezier(0.32, 0.72, 0, 1); }
.s7c:not([data-depth='0']) .s7c-body { transform: translateY(14px) scale(0.97); }
.s7c[data-depth='0'] .s7c-body { transform: none; transition-delay: 90ms, 40ms; }
.s7c[data-depth='-1'] { top: 340px; }
@media (prefers-reduced-motion: reduce) { .s7c .s7c-body { transform: none; } }
/* no white flash at the sides on a swap (Geio, Nov 18): the picture never shrinks inside its white card. The
   outgoing card keeps its picture full width as it drops and fades; the incoming one rises without a scale, its
   picture leads and the card turns white a beat later */
.s7c[data-depth] .s7c-body { scale: none; }
.s7c:not([data-depth='0']) .s7c-body { transform: translateY(14px); }
.s7c[data-depth='-1'] .s7c-body { transform: none; opacity: 1; }
html[data-flow='b'] .s7c[data-depth='0'] { transition-delay: 0s, 0s, 0s, 0s, 0s, 0s, 140ms; }
.s7c[data-depth='0'] .s7c-body { transition-delay: 0s, 0s; transition-duration: 260ms, 680ms; }

/* hovering the front card's picture: a white round "Open" that drifts after the cursor (card-hover.js) */
.s7-deck .s7c[data-depth='0'] { pointer-events: auto; }
.s7-shot { cursor: pointer; }
.s7-hoverbtn {
  position: absolute; left: 50%; top: 50%; z-index: 3; margin: calc(-44px * var(--u)) 0 0 calc(-44px * var(--u));
  width: calc(88px * var(--u)); height: calc(88px * var(--u)); border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; background: #fff; color: #0e0f11; cursor: pointer;
  font: 400 calc(var(--body) * var(--u)) / 1 var(--font);
  opacity: 0; scale: 0.8; transition: opacity 220ms ease, scale 320ms cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none;
}
.s7-hoverbtn.is-on { opacity: 1; scale: 1; pointer-events: auto; }
/* the card swap's curve wins over flow-b.css's older one */
html[data-flow='b'] .s7-deck .s7c {
  transition: left 620ms cubic-bezier(0.32, 0.72, 0, 1), top 620ms cubic-bezier(0.32, 0.72, 0, 1), width 620ms cubic-bezier(0.32, 0.72, 0, 1), clip-path 620ms cubic-bezier(0.32, 0.72, 0, 1), border-radius 620ms cubic-bezier(0.32, 0.72, 0, 1), opacity 420ms cubic-bezier(0.33, 0, 0.2, 1), background-color 420ms ease;
}

/* the cards behind (Geio, Nov 18): frosted glass, thinner strips that sit edge to edge (no strip shows through
   another), and quieter. Each card shows only the part above the next one: front at 196, then 168, then 140 */
html:not([data-cards='dark']) .s7c[data-depth='1'], html:not([data-cards='dark']) .s7c[data-depth='2'], html:not([data-cards='dark']) .s7c[data-depth='3'] {
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
}
.s7c[data-depth='1'] { top: 168px; clip-path: inset(0 0 calc(100% - 28px) 0 round 26px 26px 0 0); }
.s7c[data-depth='2'] { top: 140px; clip-path: inset(0 0 calc(100% - 28px) 0 round 24px 24px 0 0); }
.s7c[data-depth='3'] { top: 112px; clip-path: inset(0 0 calc(100% - 28px) 0 round 22px 22px 0 0); }
.s7c[data-depth='1'] { --o: 0.8; }
.s7c[data-depth='2'] { --o: 0.45; }
/* no card shows its number and name strip any more, not even mid-swap (Geio, Nov 18) */
.s7c .s7c-head { display: none; }
/* the cards behind: clearly frosted, and no line where one strip meets the next (Geio, Nov 18). The strips tuck
   2px under the next card so no seam of background shows between them */
html:not([data-cards='dark']) .s7c:is([data-depth='1'], [data-depth='2'], [data-depth='3']) {
  background: rgba(255, 255, 255, 0.42); box-shadow: none; border: 0; outline: 0;
  -webkit-backdrop-filter: blur(40px) saturate(1.3) brightness(1.08); backdrop-filter: blur(40px) saturate(1.3) brightness(1.08);
}
.s7c[data-depth='1'] { clip-path: inset(0 0 calc(100% - 30px) 0 round 26px 26px 0 0); }
.s7c[data-depth='2'] { clip-path: inset(0 0 calc(100% - 30px) 0 round 24px 24px 0 0); }
.s7c[data-depth='3'] { clip-path: inset(0 0 calc(100% - 30px) 0 round 22px 22px 0 0); }

/* frost with no delay (Geio, Nov 18), the krid.ee way: the glass is always there and always on its own layer, so
   it never has to be built at the moment it appears. Every glass element keeps its backdrop blur in every state and
   is promoted ahead of time; cards waiting off-stage stay painted at a hair above zero instead of fully hidden */
.s7c, .d4-pill, .float, .start, .start-label, .lang-btn, .lang-list, .sound, .logo, .menu-btn, .menu, .spot-tag, .s7-all, .s7-round {
  will-change: opacity, backdrop-filter;
}
html:not([data-cards='dark']) .s7c { -webkit-backdrop-filter: blur(40px) saturate(1.3) brightness(1.08); backdrop-filter: blur(40px) saturate(1.3) brightness(1.08); }
html:not([data-cards='dark']) .s7c[data-depth='0'] { background: #fff; }
.s7c[data-depth='3'], .s7c[data-depth='-1'] { --o: 0.001; opacity: 0.001; }
/* frost that really frosts (Geio, Nov 18): fading a glass element with opacity mixes the sharp background back in,
   so the cards behind stay at full opacity and get quieter through their tint instead */
.s7c[data-depth='1'], .s7c[data-depth='2'] { --o: 1; }
html:not([data-cards='dark']) .s7c[data-depth='1'] { background: rgba(255, 255, 255, 0.36); }
html:not([data-cards='dark']) .s7c[data-depth='2'] { background: rgba(255, 255, 255, 0.2); }
/* the orange grounds blend over a longer, even curve */
.tube-bg img { transition: opacity 1500ms cubic-bezier(0.45, 0, 0.25, 1), scale 1800ms cubic-bezier(0.22, 1, 0.36, 1); }

/* studio screen ground (Geio, Nov 18): light grey Flora stills of white industrial objects, barely softened, and
   the screen's own labels and controls turn dark to sit on them */
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .tube-bg img { filter: blur(3px) brightness(0.97) saturate(0.9); }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .tube { background: rgb(214 215 217 / var(--reveal, 1)); }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) :is(.s7-label, #count) { color: #141516; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-all { background: rgba(255, 255, 255, 0.6); color: #141516; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-round { background: rgba(255, 255, 255, 0.6); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-round svg { stroke: #141516; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-open { background: #141516; color: #fff; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-rail b { background: #141516; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .tube-shade { opacity: 0; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7c:is([data-depth='1'], [data-depth='2']) { background: rgba(255, 255, 255, 0.5); }


/* the screen behind the cards (Geio, Nov 18): the grey Flora grid pattern, output 1, sharp, for every project */
html[data-bg='pattern'] .tube-bg img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; scale: 1; }
html[data-bg='pattern'] .tube-bg img.is-new { scale: 1; }
html[data-bg='pattern'] .tube { background: rgb(177 177 177 / var(--reveal, 1)); }
/* the screen's grid in the machine's own grey (Geio, Nov 18): lifted from #b1b1b1 to the render's light cool grey,
   a touch softer in contrast so the grid stays a whisper */
html[data-bg='pattern'] .tube-bg img { filter: brightness(1.13) contrast(0.88); }
html[data-bg='pattern'] .tube-bg::after { content: ''; position: absolute; inset: 0; background: rgb(196 200 206 / 0.18); mix-blend-mode: color; pointer-events: none; }
html[data-bg='pattern'] .tube { background: rgb(196 198 201 / var(--reveal, 1)); }
/* the screen's buttons keep the frosted look on the light grounds (Geio, Nov 18): Open white, View all and the
   arrows grey glass with white text and icons */
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-open { background: #fff; color: #141516; }
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) :is(.s7-all, .s7-round) {
  background: rgba(96, 100, 106, 0.42); color: #fff;
  -webkit-backdrop-filter: blur(22px) saturate(1.3); backdrop-filter: blur(22px) saturate(1.3);
}
html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) .s7-round svg { stroke: #fff; }
@media (hover: hover) { html:is([data-bg='studio'], [data-bg='abstract'], [data-bg='pattern']) :is(.s7-all, .s7-round):hover { background: rgba(80, 84, 90, 0.55); } }
/* a little more air between the card's name and its line (Geio, Nov 18) */
.s7-meta p { margin-top: calc(5px * var(--u)); }

/* variant D (index-d.html, Geio Nov 18): the previous screen cards kept as they were, dark frosted glass with the
   number and name strip on the cards behind, on the earthy grounds */
html[data-cards='dark'] .s7c .s7c-head { display: flex; }
html[data-cards='dark'] .s7c:not([data-depth='0']) .s7c-head { visibility: visible; }
html[data-cards='dark'] .s7c[data-depth='1'] { top: 146px; clip-path: inset(0 0 calc(100% - 54px) 0 round 30px 30px 0 0); }
html[data-cards='dark'] .s7c[data-depth='2'] { top: 104px; clip-path: inset(0 0 calc(100% - 54px) 0 round 28px 28px 0 0); }
html[data-cards='dark'] .s7c[data-depth='3'] { top: 70px; clip-path: inset(0 0 calc(100% - 54px) 0 round 26px 26px 0 0); }
html[data-cards='dark'] .s7c:is([data-depth='1'], [data-depth='2']) { --o: 1; }

/* Project sidebar, "Sidebar 3, name top, specs bottom" from Paper (Geio, Nov 18): the name with its line under it in
   grey at the same size; the intro beside a thin rule, first paragraph brighter; the facts as label and value rows
   and the live site large at the column's foot */
.d4-foot { display: grid; gap: 40px; }
.d4-visit { display: grid; gap: 6px; justify-items: start; }
.d4-visit[hidden] { display: none; }
.d4-visit-label { color: rgba(255, 255, 255, 0.46); font: 400 var(--body)/var(--lh-body) var(--font); }
.d4-visit-link { color: #fff; text-decoration: none; font: 400 24px/28px var(--font); letter-spacing: -0.01em; overflow-wrap: anywhere; }
@media (hover: hover) { .d4-visit-link:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.d4-visit-link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }
.detail .d4-foot { opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out) 80ms, transform 400ms var(--ease-out) 80ms; }
.detail.is-in .d4-foot { opacity: 1; transform: none; }
.detail.is-swapping .d4-foot { opacity: 0; transition: opacity 180ms ease; }
@media (min-width: 900px) {
  .d4-text { gap: 0; }
  .d4-info h1 { color: #fff; }
  .d4-line { max-width: none; font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); color: rgba(255, 255, 255, 0.36); }
  .d4-intro { margin-top: 32px; padding: 0 0 0 14px; gap: 6px; border-left: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.56); font: 400 var(--body)/var(--lh-body) var(--font); }
  .d4-intro > p:first-child { color: rgba(255, 255, 255, 0.88); }
  .d4-facts { gap: 10px; }
  .d4-facts div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 0; padding: 0; border-radius: 0; background: none; }
  .d4-facts dt { color: rgba(255, 255, 255, 0.46); font: 400 var(--body)/var(--lh-body) var(--font); }
  .d4-facts dd { text-align: left; color: rgba(255, 255, 255, 0.88); }
}
@media (max-width: 899px) {
  .d4-text { gap: 0; }
  .d4-line { margin-top: 2px; font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); color: rgba(255, 255, 255, 0.36); }
  .d4-intro { margin-top: 20px; padding: 0 0 0 12px; gap: 6px; border-left: 1px solid rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.56); }
  .d4-intro > p:first-child { color: rgba(255, 255, 255, 0.88); }
  .d4-foot { gap: 28px; }
  .d4-facts { gap: 8px; }
  .d4-facts div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 0; padding: 0; border-radius: 0; background: none; }
  .d4-facts dt { color: rgba(255, 255, 255, 0.46); font: 400 var(--body)/var(--lh-body) var(--font); }
  .d4-facts dd { text-align: left; color: rgba(255, 255, 255, 0.88); }
  .d4-visit-link { font-size: 22px; line-height: 26px; }
}

/* project pictures like the service pages (Geio, Nov 18): one 960px column, centred in the space beside the sidebar,
   instead of running to the window's edge */
@media (min-width: 900px) {
  .d4-wrap { padding-right: 56px; }
  .d4-pics { width: 100%; max-width: 960px; margin-inline: auto; padding-right: 0; justify-self: center; }
}

/* screenshots cut out with their own shape (transparent corners, "-cut" files) show as they are (Geio, Nov 18): no
   container of ours, no background behind them, no second corner clipping theirs. Opaque pictures keep the corners.
   No dark placeholder behind any project picture either, so nothing shows a different shape while it loads */
.d-hero, .d-gallery figure, .d-gallery img, .d-gallery video, .sv-media img, .sv-cards img, .ov-shot, .ov-shot img { background: none !important; }
/* which cut-outs keep their own shape: shaped.css, generated from the files */

/* Services used under a project's pictures (Geio, Nov 18, like the site's project page): a card per service, its
   name and short line, opening the service page */
.d-svc { margin-top: 72px; display: grid; gap: 20px; }
.d-svc[hidden] { display: none; }
.d-svc-h { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.d-svc-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.d-svc-card { position: relative; display: grid; gap: 6px; align-content: start; min-height: 132px; padding: 22px 52px 22px 24px; border-radius: 20px; background: rgba(255, 255, 255, 0.06); color: inherit; text-decoration: none; transition: background-color 200ms ease, transform 160ms ease-out; }
.d-svc-name { font: 400 var(--lead)/var(--lh-lead) var(--font); letter-spacing: var(--ls-lead); color: #fff; }
.d-svc-short { font: 400 var(--body)/var(--lh-body) var(--font); color: rgba(255, 255, 255, 0.6); }
.d-svc-arrow { position: absolute; top: 24px; right: 22px; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0.6; transition: opacity 200ms ease, transform 200ms ease-out; }
@media (hover: hover) { .d-svc-card:hover { background: rgba(255, 255, 255, 0.1); } .d-svc-card:hover .d-svc-arrow { opacity: 1; transform: translateX(2px); } }
.d-svc-card:active { transform: scale(0.98); }
.d-svc-card:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
@media (max-width: 719px) { .d-svc { margin-top: 48px; } .d-svc-card { min-height: 0; border-radius: 16px; } }

/* more air around project pictures (Geio, Nov 18): wider gaps between screens in a row and between pictures */
@media (min-width: 900px) {
  .d4-pics, .d-gallery { gap: 40px; }
  .d-row { gap: 32px; }
  .d-sec { padding-top: 48px; }
}
@media (max-width: 899px) { .d4-pics, .d-gallery { gap: 24px; } .d-row { gap: 12px; } }

/* View all S3, "Simple, View all" in Paper (Geio, Nov 18): the title on the left, the projects as a quiet grid of
   small pictures with their name and time, the current one at full strength; a Grid and Ring toggle on top */
.ovg { display: none; }
.overview[data-mode='grid'] .ovg { display: grid; grid-template-columns: 272px minmax(0, 1fr); column-gap: 64px; padding: 112px 56px 96px; position: relative; }
.overview[data-mode='grid'] :is(.orb, .orb-count, .ovg-toggle-ring) { display: none; }
.overview[data-mode='ring'] .ovg { display: none; }
.ovg-side { display: grid; gap: 10px; align-content: start; }
.ovg-title { margin: 0; font: 400 var(--display)/var(--lh-display) var(--font); letter-spacing: var(--ls-display); color: #fff; }
.ovg-lead { margin: 0; font: 400 var(--lead)/var(--lh-lead) var(--font); color: rgba(255, 255, 255, 0.56); }
.ovg-main { width: 100%; max-width: 992px; }
.ovg-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.2); }
.ovg-h { font: 400 var(--lead)/var(--lh-lead) var(--font); color: #fff; }
.ovg-toggle { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(62, 64, 66, 0.55); -webkit-backdrop-filter: blur(36px); backdrop-filter: blur(36px); }
.ovg-toggle button { border: 0; padding: 6px 14px; border-radius: 999px; background: none; color: rgba(255, 255, 255, 0.62); font: 400 13px/15px var(--font); cursor: pointer; transition: background-color 200ms ease, color 200ms ease; }
.ovg-toggle button[aria-pressed='true'] { background: rgba(255, 255, 255, 0.14); color: #fff; }
@media (hover: hover) { .ovg-toggle button:hover { color: #fff; } }
.ovg-toggle button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ovg-toggle-ring { position: fixed; top: 28px; left: 50%; transform: translateX(-50%); z-index: 3; }
.ovg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 36px 24px; padding-top: 24px; }
.ovg-item { display: grid; gap: 3px; align-content: start; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.ovg-shot { display: block; aspect-ratio: 3 / 2; margin-bottom: 9px; overflow: hidden; border-radius: 6px; opacity: 0.72; transition: opacity 200ms ease, transform 200ms ease-out; }
.ovg-shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ovg-name { font: 400 14px/17px var(--font); color: rgba(255, 255, 255, 0.78); transition: color 200ms ease; }
.ovg-meta { font: 400 12px/15px var(--font); color: rgba(255, 255, 255, 0.46); }
.ovg-item.is-cur .ovg-shot { opacity: 1; }
.ovg-item.is-cur .ovg-name { color: #fff; }
@media (hover: hover) { .ovg-item:hover .ovg-shot { opacity: 1; } .ovg-item:hover .ovg-name { color: #fff; } }
.ovg-item:active .ovg-shot { transform: scale(0.98); }
.ovg-item:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 6px; }
.overview.is-in .ovg-item { animation: ovg-in 420ms var(--ease-out) both; }
@keyframes ovg-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .overview.is-in .ovg-item { animation: none; } }
@media (max-width: 899px) {
  .overview[data-mode='grid'] .ovg { grid-template-columns: minmax(0, 1fr); row-gap: 28px; padding: 92px 16px 64px; }
  .ovg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
}

/* the spread dots on the screen's grey ground (screen-dots.js): faint, fading in with the screen */
.screen-dots { position: absolute; inset: 0; pointer-events: none; opacity: calc(var(--reveal, 1) * 0.55); }
/* with the dots, the screen's ground is the plain grey the picture used to give (sampled from it) */
html.dots-screen .tube-bg { background: #bcbdbe; }
html.dots-screen .tube-bg img { display: none; }

/* the views' moving dots (view-dots.js) replace the static dot grid test on the project page */
.view-dots { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; }
.detail .d-scrim:has(.view-dots)::before { display: none; }

/* Services on the screen (Geio, Nov 18): the six services as white rows that scroll smoothly, the chosen one solid
   with a dark arrow; the project deck slides away to the right and its cards fade one by one (never the deck as a
   whole, their glass needs it) */
.s7c { opacity: calc(var(--reveal, 1) * var(--o) * var(--sec, 1)); }
.s7-deck { transition: transform 460ms cubic-bezier(0.32, 0.72, 0, 1); }
.s7[data-section='services'] .s7-deck { --sec: 0; transform: translate(60px, 36px); pointer-events: none; }
.s7[data-section='services'] .s7-deck .s7c { pointer-events: none; }
.s7[data-section='services'] .s7-rail { opacity: 0; }
.s7-rail { transition: opacity 240ms ease; }
.s7-svc {
  position: absolute; left: calc(28px * var(--u)); right: calc(28px * var(--u)); top: calc(62px * var(--u)); bottom: calc(78px * var(--u));
  overflow: hidden; z-index: 3; opacity: 0; transform: translateX(-60px); pointer-events: none; visibility: hidden;
  transition: opacity 320ms ease, transform 460ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s 460ms;
}
.s7[data-section='services'] .s7-svc { opacity: var(--reveal, 1); transform: none; pointer-events: auto; visibility: visible; transition: opacity 360ms ease 60ms, transform 460ms cubic-bezier(0.32, 0.72, 0, 1), visibility 0s; }
.s7-svc-track { display: grid; gap: calc(8px * var(--u)); transition: transform 520ms cubic-bezier(0.32, 0.72, 0, 1); }
.s7-svc-row {
  display: flex; align-items: center; gap: calc(12px * var(--u)); width: 100%; margin: 0; text-align: left; cursor: pointer;
  padding: calc(14px * var(--u)) calc(14px * var(--u)) calc(14px * var(--u)) calc(16px * var(--u)); border: 0; border-radius: calc(14px * var(--u));
  background: rgba(255, 255, 255, 0.6); color: #1d1e20; transition: background-color 260ms ease, transform 160ms ease-out;
}
.s7-svc-row.is-on { background: #fff; }
@media (hover: hover) { .s7-svc-row:hover { background: rgba(255, 255, 255, 0.85); } .s7-svc-row.is-on:hover { background: #fff; } }
.s7-svc-row:active { transform: scale(0.985); }
.s7-svc-text { flex: 1; min-width: 0; display: grid; gap: calc(2px * var(--u)); }
.s7-svc-name { font: 400 calc(15px * var(--u)) / 1.25 var(--font); letter-spacing: -0.01em; }
.s7-svc-short { font: 400 calc(11px * var(--u)) / 1.4 var(--font); color: rgba(29, 30, 32, 0.6); }
.s7-svc-go { flex: none; display: grid; place-items: center; width: calc(26px * var(--u)); height: calc(26px * var(--u)); border-radius: 50%; transition: background-color 260ms ease; }
.s7-svc-go svg { width: calc(12px * var(--u)); height: calc(12px * var(--u)); fill: none; stroke: #1d1e20; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke 260ms ease; }
.s7-svc-row.is-on .s7-svc-go { background: #1d1e20; }
.s7-svc-row.is-on .s7-svc-go svg { stroke: #fff; }
@media (prefers-reduced-motion: reduce) { .s7-svc, .s7-svc-track, .s7-deck { transition: none; } }

/* the joystick's pad on hover (Paper "Joystick hover pad, glass"; Geio, Nov 18: more fluid): the four ways open out
   from the stick one after another, the pad drifts after the mouse, and the way the pointer is on grows and turns
   white with its label in full */
.spot[data-id='stick']:focus-visible { outline: none; }
.stick-pad { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.stick-way {
  --d: 6px; --s: 0.7;
  position: absolute; left: 50%; top: 50%; display: flex; align-items: center; gap: 6px; opacity: 0; pointer-events: none;
  transition: opacity 200ms ease, transform 420ms cubic-bezier(0.34, 1.4, 0.64, 1);
}
.stick-way svg {
  flex: none; width: 26px; height: 26px; padding: 6px; box-sizing: border-box; border-radius: 50%;
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  fill: none; stroke: var(--glass-ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
  scale: var(--s); transition: scale 320ms cubic-bezier(0.34, 1.56, 0.64, 1), background-color 200ms ease, stroke 200ms ease;
}
.stick-way i {
  font: 400 11px/14px var(--font); font-style: normal; white-space: nowrap; padding: 3px 8px; border-radius: var(--pill);
  background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); color: var(--glass-ink);
  opacity: 0.72; transition: opacity 200ms ease, translate 320ms cubic-bezier(0.34, 1.56, 0.64, 1);
}
.stick-way[data-way='up'] { flex-direction: column-reverse; transform: translate(-50%, calc(-100% - var(--d))); }
.stick-way[data-way='down'] { flex-direction: column; transform: translate(-50%, var(--d)); }
.stick-way[data-way='left'] { flex-direction: row-reverse; transform: translate(calc(-100% - var(--d)), -50%); }
.stick-way[data-way='right'] { transform: translate(var(--d), -50%); }
.stick-way[data-way='down'] { transition-delay: 30ms; }
.stick-way[data-way='left'] { transition-delay: 60ms; }
.stick-way[data-way='right'] { transition-delay: 90ms; }
@media (hover: hover) {
  .spot[data-id='stick']:hover .stick-way { --d: 22px; --s: 1; opacity: 1; pointer-events: auto; cursor: pointer; }
  .spot[data-id='stick']:hover .spot-tag { opacity: 0; }
  .stick-pad[data-active='up'] [data-way='up'], .stick-pad[data-active='down'] [data-way='down'],
  .stick-pad[data-active='left'] [data-way='left'], .stick-pad[data-active='right'] [data-way='right'] { --s: 1.3; --d: 28px; }
  .stick-pad[data-active='up'] [data-way='up'] svg, .stick-pad[data-active='down'] [data-way='down'] svg,
  .stick-pad[data-active='left'] [data-way='left'] svg, .stick-pad[data-active='right'] [data-way='right'] svg { background: #fff; stroke: #1d1e20; }
  .stick-pad[data-active='up'] [data-way='up'] i, .stick-pad[data-active='down'] [data-way='down'] i,
  .stick-pad[data-active='left'] [data-way='left'] i, .stick-pad[data-active='right'] [data-way='right'] i { opacity: 1; background: rgba(255, 255, 255, 0.92); color: #1d1e20; }
}
@media (prefers-reduced-motion: reduce) { .stick-way, .stick-way svg, .stick-way i { transition: opacity 120ms ease; } }

/* the services rows fill the screen from top to bottom, all the same height (Geio, Nov 18: "cards should be taller
   and fill the screen"); a soft fade at the ends only when a small screen makes the list scroll */
.s7-svc { top: calc(58px * var(--u)); bottom: calc(70px * var(--u)); }
.s7-svc-track { height: 100%; grid-template-rows: repeat(6, minmax(calc(52px * var(--u)), 1fr)); }
.s7-svc-row { padding-top: 0; padding-bottom: 0; border-radius: calc(16px * var(--u)); }
.s7-svc-name { font-size: calc(17px * var(--u)); }
.s7-svc-short { font-size: calc(12px * var(--u)); }
.s7-svc.is-scroll { -webkit-mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(transparent, #000 10%, #000 90%, transparent); }

/* the cards behind on the plain grey screen (Geio, Nov 18: "not looking right"): see-through white sheets instead
   of flat grey tabs, so the dots and the ground show through them like glass */
html:not([data-cards='dark']) .s7-deck .s7c[data-depth='1'] { background: rgba(255, 255, 255, 0.38); --o: 1; }
html:not([data-cards='dark']) .s7-deck .s7c[data-depth='2'] { background: rgba(255, 255, 255, 0.2); --o: 1; }
.s7-svc { top: calc(64px * var(--u)); bottom: calc(74px * var(--u)); }
/* rows back to their own height, the list centred in the screen (Geio, Nov 18) */
.s7-svc-track { grid-template-rows: none; grid-auto-rows: auto; align-content: center; }
.s7-svc-row { padding-top: calc(15px * var(--u)); padding-bottom: calc(15px * var(--u)); }
.s7-svc-track { gap: calc(6px * var(--u)); }
.s7-svc-row { padding-top: calc(11px * var(--u)); padding-bottom: calc(11px * var(--u)); }
.s7-svc-name { font-size: calc(16px * var(--u)); }
.s7-svc-short { font-size: calc(11px * var(--u)); }

/* the joystick wins over its neighbours (Geio, Nov 18): it sits above the toggles' spots, its pad takes the place of
   its own tip, and while it is hovered the other tips stay hidden */
.spot[data-id='stick'] { z-index: 2; }
.spot[data-id='stick'] .spot-tag { display: none; }
#hot:has(.spot[data-id='stick']:hover) .spot:not([data-id='stick']) .spot-tag { opacity: 0 !important; }
.spot:not(:hover) .spot-tag { transition-delay: 0s; }

/* pushing right brings the next section in from the right (the list going round) */
.s7[data-dir='r']:not([data-section='services']) .s7-svc { transform: translateX(60px); }
.s7[data-dir='r'][data-section='services'] .s7-deck { transform: translate(-60px, 36px); }

/* Services on the screen as two rows of square cards (Geio, Nov 18): name and short line at the top, the arrow at the
   foot; the chosen one solid white */
.s7-svc-track { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto; gap: calc(8px * var(--u)); align-content: center; }
.s7-svc-row {
  aspect-ratio: 1; flex-direction: column; align-items: stretch; justify-content: space-between; gap: calc(8px * var(--u));
  padding: calc(14px * var(--u)); border-radius: calc(16px * var(--u));
}
.s7-svc-text { flex: none; gap: calc(4px * var(--u)); }
.s7-svc-name { font-size: calc(15px * var(--u)); line-height: 1.2; }
.s7-svc-short { font-size: calc(11px * var(--u)); }
.s7-svc-go { align-self: flex-end; }
/* every card the same square: smaller type so the longest line fits, nothing grows a card */
.s7-svc-track { align-items: stretch; }
.s7-svc-row { aspect-ratio: 1 / 1; height: auto; min-height: 0; overflow: hidden; align-self: stretch; padding: calc(13px * var(--u)); }
.s7-svc-name { font-size: calc(14px * var(--u)); }
.s7-svc-short { font-size: calc(10px * var(--u)); line-height: 1.35; }
.s7-svc-go { width: calc(22px * var(--u)); height: calc(22px * var(--u)); }
/* the arrow sits in the card's corner and shows on the chosen card (and on hover), so long lines never push it out */
.s7-svc-row { position: relative; }
.s7-svc-go { position: absolute; right: calc(12px * var(--u)); bottom: calc(12px * var(--u)); opacity: 0; transition: opacity 200ms ease, background-color 260ms ease; }
.s7-svc-row.is-on .s7-svc-go { opacity: 1; }
@media (hover: hover) { .s7-svc-row:hover .s7-svc-go { opacity: 1; } }
/* Services screen, two cards side by side at most (Geio, Nov 18): three rows of squares sized to the screen's height,
   the name and line at the card's foot, the arrow in the top right corner */
.s7-svc-track {
  grid-template-columns: repeat(2, var(--c, 1fr)); justify-content: center; align-content: center;
}
.s7-svc-row { width: 100%; justify-content: flex-end; }
.s7-svc-go { top: calc(12px * var(--u)); bottom: auto; right: calc(12px * var(--u)); }
.s7-svc-text { padding-right: 0; }

/* The door menu (Paper "Arcade nav spots" 3): a small printed card taped inside the left door, the pages as a short
   list. It comes in with the open machine and goes with it; ?nav=float brings the floating buttons back */
.side-head { display: none; }
.side.is-door {
  position: fixed; right: auto; bottom: auto; display: grid; gap: 14px; padding: 20px 20px 22px; box-sizing: border-box;
  background: #fff; border-radius: 6px; rotate: -2deg; transform-origin: 0 0; pointer-events: none; z-index: 4;
  opacity: 0; translate: 0 10px; transition: opacity 320ms var(--ease-out), translate 420ms var(--ease-out);
}
.device[data-state='arcade'] .side.is-door { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: 700ms; } /* after the doors, zoom and views have settled (Geio, Nov 18) */
.side.is-door { transition-delay: 0s; transition-duration: 160ms, 160ms; }
.device[data-state='arcade'] .side.is-door { transition-duration: 420ms, 520ms; }
.side.is-door::before { content: ''; position: absolute; left: 32%; top: -12px; width: 64px; height: 22px; border-radius: 2px; background: rgba(236, 236, 230, 0.85); rotate: 5deg; }
.side.is-door .side-head { display: block; font: 400 12px/16px var(--font); color: #6b6b6b; }
.side.is-door .side-col { position: static; display: grid; gap: 10px; justify-items: start; transform: none; }
.side.is-door .side-col + .side-col { margin-top: -4px; }
.side.is-door .float {
  height: auto; padding: 0; border-radius: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  color: #111; font: 400 17px/22px var(--font); opacity: 1; transform: none; pointer-events: auto;
  transition: color 160ms ease, translate 200ms var(--ease-out);
}
@media (hover: hover) { .side.is-door .float:hover { color: #000; translate: 3px 0; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; } }
.side.is-door .float:focus-visible { outline: 2px solid #111; outline-offset: 3px; }
/* the service cards fill the screen's width; their height is what three rows leave */
.s7-svc-row { aspect-ratio: auto; height: var(--ch, auto); }
/* service cards: the name only, the arrow always there (Geio, Nov 18) */
.s7-svc-short { display: none; }
.s7-svc-go { opacity: 1; }
.s7-svc-name { font-size: calc(16px * var(--u)); }
