:root {
  --bg: #efece6;
  --card: #ffffff;
  --ink: #141519;
  --soft: #7b7c84;
  --faint: #b8b8bf;
  --line: rgba(20, 21, 25, 0.08);
  --accent: #ff5a1f;
  --size: clamp(9.5px, min(2.9vw, 2.75vh), 16px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(110% 70% at 50% 0%, #f7f5f1 0%, rgba(247, 245, 241, 0) 62%),
    var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
/* a very fine grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%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");
  z-index: 30;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 12px;
}

/* the card: measured in em, and the em follows both the width and the height of the window */
.card {
  position: relative;
  font-size: var(--size);
  width: min(40em, 100%);
  padding: 1.35em 0.8em 0.9em;
  border-radius: 1.6em;
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
  box-shadow:
    0 0 0 1px rgba(20, 21, 25, 0.06),
    0 1px 0 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 2px rgba(20, 21, 25, 0.05),
    0 6px 14px -6px rgba(20, 21, 25, 0.1),
    0 30px 64px -26px rgba(60, 40, 20, 0.24);
}
.card__sheen {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(55% 40% at 85% 0%, rgba(255, 90, 31, 0.06), rgba(255, 90, 31, 0) 70%);
}

.head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  padding: 0 0.6em 1.1em;
}
.head__who { display: flex; align-items: center; gap: 0.7em; min-width: 0; }
.head__mark {
  flex: none;
  width: 2.3em;
  height: 2.3em;
  fill: var(--ink);
  stroke: #ffffff;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.head__mark rect { stroke: none; }
.head__brand { font-size: 0.78em; color: var(--soft); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.head__title { font-size: 1.3em; font-weight: 650; font-stretch: 104%; letter-spacing: -0.012em; line-height: 1.15; white-space: nowrap; }
.head__count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.76em;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 560;
  white-space: nowrap;
}
.head__years { color: var(--soft); font-weight: 460; }

.cols, .row__in {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1.05fr) 3.2em 1.5em;
  align-items: center;
  gap: 0.8em;
}
.cols {
  padding: 0 0.6em 0.55em;
  font-size: 0.7em;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.cols span:nth-child(4) { text-align: right; }

.list { list-style: none; border-top: 1px solid var(--line); }
.row {
  position: relative;
  --w: 440;
  --s: 100;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}
.row__bg {
  position: absolute;
  inset: 2px 0;
  border-radius: 0.8em;
  background: linear-gradient(180deg, #faf9f7, #f5f3f0);
  box-shadow: 0 0 0 1px rgba(20, 21, 25, 0.04) inset;
  opacity: 0;
  pointer-events: none;
}
.row__in {
  position: relative;
  padding: 0.95em 0.6em;
}
.row__name {
  display: block;
  font-size: 1.16em;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variation-settings: "wght" var(--w), "wdth" var(--s);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__nm { display: inline-block; }
.row__client, .row__year { font-size: 0.86em; color: var(--soft); font-weight: 470; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__year { text-align: right; font-variant-numeric: tabular-nums; }
.tag {
  position: relative;
  justify-self: start;
  max-width: 100%;
  overflow: hidden;
  border-radius: 99em;
  padding: 0.32em 0.72em 0.36em;
  font-size: 0.74em;
  font-weight: 540;
  color: var(--ink);
  white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(20, 21, 25, 0.1) inset;
}
.tag__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.tag__t { position: relative; }
.go {
  justify-self: end;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 1px rgba(20, 21, 25, 0.1) inset;
}
.go svg {
  width: 0.9em;
  height: 0.9em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--soft);
}

.foot {
  display: flex;
  align-items: center;
  gap: 0.45em;
  padding: 0.9em 0.6em 0;
  font-size: 0.74em;
  color: var(--soft);
}
.foot svg { width: 1.1em; height: 1.1em; fill: var(--ink); stroke: #fff; stroke-width: 0.8; stroke-linejoin: round; }
.foot__touch { display: none; }
@media (hover: none) {
  .foot__fine { display: none; }
  .foot__touch { display: inline; }
}

/* ---- the preview ---- */
.pv {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  font-size: var(--size);
  width: min(17.5em, 52vw);
  pointer-events: none;
  visibility: hidden;
}
.pv__tilt { transform-origin: 50% 40%; }
.pv__pop { position: relative; transform-origin: 50% 60%; }
.pv__shade {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% - 2.6em);
  border-radius: 0.95em;
  box-shadow:
    0 0 0 1px rgba(20, 21, 25, 0.1),
    0 2px 4px rgba(20, 21, 25, 0.08),
    0 14px 26px -10px rgba(20, 21, 25, 0.28),
    0 40px 70px -30px rgba(20, 21, 25, 0.4);
}
.pv__clip {
  position: relative;
  border-radius: 0.95em;
  overflow: hidden;
  clip-path: inset(100% 0% 0% 0% round 0.95em);
  background: #1b1c21;
}
.pv__bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.95em;
  background: #1f4a3f;
  box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.18) inset;
}
.pv__bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 70%);
}
.pv__url {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  height: 1.3em;
  padding: 0 0.7em 0 0.55em;
  border-radius: 0.5em;
  background: rgba(0, 0, 0, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.7em;
  font-weight: 520;
  letter-spacing: 0.01em;
}
.pv__url svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; opacity: 0.8; }
.pv__addr { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.pv__addr span { display: inline-block; white-space: nowrap; }
.pv__load {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.75);
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0;
}
.pv__view {
  position: relative;
  height: 11.2em;
  overflow: hidden;
}
.pv__strip { position: absolute; inset: 0; }
.pv__gloss {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.14) 0%, rgba(255, 255, 255, 0) 38%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.pv__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.55em;
  margin-left: 0.15em;
  height: 2em;
  padding: 0 0.75em 0 0.85em;
  border-radius: 99em;
  background: var(--ink);
  color: #fff;
  font-size: 0.74em;
  font-weight: 560;
  box-shadow: 0 6px 14px -6px rgba(20, 21, 25, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}
.pv__tagtxt { display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; }
.pv__tagtxt span { display: inline-block; white-space: nowrap; }
.pv__tag svg { width: 1.05em; height: 1.05em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---- the five sites, drawn in em inside the window ---- */
.site {
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.site__in { position: absolute; inset: 0; padding: 0.8em 0.95em; }
.site__nav { display: flex; justify-content: space-between; align-items: center; font-size: 0.56em; font-weight: 560; letter-spacing: 0.02em; }
.site__nav i { font-style: normal; opacity: 0.6; margin-left: 0.9em; }

/* Verso, a bank */
.s-verso { background: radial-gradient(120% 90% at 20% 0%, #2d7a64 0%, #13392f 70%); color: #e9f5ef; }
.s-verso .bal { position: absolute; left: 0.95em; right: 0.95em; top: 2.2em; padding: 0.7em 0.8em; border-radius: 0.7em; background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05)); box-shadow: 0 0 0 1px rgba(255,255,255,0.14) inset, 0 10px 18px -10px rgba(0,0,0,0.5); }
.s-verso .bal__k { font-size: 0.5em; opacity: 0.7; }
.s-verso .bal__v { font-size: 1.15em; font-weight: 640; font-stretch: 106%; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.s-verso .bal svg { display: block; width: 100%; height: 2.6em; margin-top: 0.25em; overflow: visible; }
.s-verso .bal svg path { fill: none; stroke: #9ff0c9; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s-verso .bal svg .area { fill: url(#versoFade); stroke: none; }
.s-verso .acts { position: absolute; left: 0.95em; bottom: 0.75em; display: flex; gap: 0.4em; }
.s-verso .acts span { font-size: 0.5em; padding: 0.5em 1em; border-radius: 99em; background: #e9f5ef; color: #13392f; font-weight: 600; }
.s-verso .acts span + span { background: rgba(255,255,255,0.12); color: #e9f5ef; box-shadow: 0 0 0 1px rgba(255,255,255,0.18) inset; }

/* Oriel, a coffee roaster */
.s-oriel { background: linear-gradient(160deg, #f4b04a 0%, #e46c22 100%); color: #2a1306; }
.s-oriel .sun { position: absolute; right: -2.2em; top: 1.2em; width: 9.5em; height: 9.5em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff1d6, #f7d49a 60%, #f0b867); box-shadow: 0 20px 40px -20px rgba(80, 20, 0, 0.6); }
.s-oriel .sun::after { content: ""; position: absolute; inset: 1.1em; border-radius: 50%; border: 1px solid rgba(42, 19, 6, 0.16); }
.s-oriel .word { position: absolute; left: 0.8em; bottom: 1.9em; font-size: 2.9em; font-weight: 800; font-stretch: 125%; letter-spacing: -0.04em; line-height: 0.9; }
.s-oriel .sub { position: absolute; left: 1.55em; bottom: 1.15em; font-size: 0.52em; font-weight: 560; opacity: 0.75; }
.s-oriel .shop { position: absolute; right: 0.95em; bottom: 0.8em; font-size: 0.5em; padding: 0.55em 1.05em; border-radius: 99em; background: #2a1306; color: #fff1d6; font-weight: 600; }

/* Kiln, a museum */
.s-kiln { background: linear-gradient(180deg, #f3ece2, #e9dfd1); color: #3a2219; }
.s-kiln .arches { position: absolute; left: 0.95em; right: 0.95em; bottom: 0; height: 5.4em; display: flex; gap: 0.45em; align-items: flex-end; }
.s-kiln .arch { flex: 1; border-radius: 3em 3em 0 0; background: linear-gradient(180deg, #c8643f, #a8482a); box-shadow: 0 0 0 1px rgba(255,255,255,0.15) inset; }
.s-kiln .arch:nth-child(1) { height: 72%; }
.s-kiln .arch:nth-child(2) { height: 100%; background: linear-gradient(180deg, #e19a6c, #c8643f); }
.s-kiln .arch:nth-child(3) { height: 58%; background: linear-gradient(180deg, #8a3d26, #6d2e1c); }
.s-kiln .ttl { position: absolute; left: 0.95em; top: 2em; font-size: 1.25em; font-weight: 700; font-stretch: 92%; letter-spacing: -0.02em; line-height: 1; }
.s-kiln .when { position: absolute; left: 1.83em; top: 10.3em; font-size: 0.52em; font-weight: 520; opacity: 0.7; }

/* Wavefield, a music app */
.s-wave { background: radial-gradient(110% 90% at 80% 0%, #7a5cff 0%, #2a1a6e 64%, #170e3f 100%); color: #efeaff; }
.s-wave .wave { position: absolute; left: 0.95em; right: 0.95em; top: 2.6em; height: 4em; display: flex; align-items: center; gap: 0.16em; }
.s-wave .wave i { flex: 1; height: 100%; border-radius: 1em; background: linear-gradient(180deg, #c9bbff, #8a6cff); transform-origin: 50% 50%; }
.s-wave .wave i.is-past { background: linear-gradient(180deg, #ffffff, #d9d0ff); }
.s-wave .player { position: absolute; left: 0.95em; right: 0.95em; bottom: 0.8em; display: flex; align-items: center; gap: 0.6em; }
.s-wave .play { width: 1.9em; height: 1.9em; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.6); }
.s-wave .play svg { width: 0.8em; height: 0.8em; fill: #2a1a6e; }
.s-wave .trk { font-size: 0.56em; line-height: 1.3; }
.s-wave .trk b { display: block; font-weight: 620; }
.s-wave .trk span { opacity: 0.65; }
.s-wave .time { margin-left: auto; font-size: 0.52em; opacity: 0.7; font-variant-numeric: tabular-nums; }

/* Mira, a skincare shop */
.s-mira { background: radial-gradient(100% 80% at 70% 30%, #fbe9e4 0%, #f1cfc6 100%); color: #3b2420; }
.s-mira .halo { position: absolute; right: 1.6em; top: 1.6em; width: 7em; height: 7em; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0) 68%); }
.s-mira .bottle { position: absolute; right: 3.6em; top: 2.2em; width: 2.6em; height: 6.6em; }
.s-mira .cap { position: absolute; left: 0.75em; right: 0.75em; top: 0; height: 1.6em; border-radius: 0.3em 0.3em 0.15em 0.15em; background: linear-gradient(90deg, #2b1a17, #5a3a33 45%, #2b1a17); }
.s-mira .body { position: absolute; left: 0; right: 0; top: 1.5em; bottom: 0; border-radius: 0.55em; background: linear-gradient(90deg, #e7b3a6 0%, #fff4f0 38%, #e9b9ad 70%, #d59a8c 100%); box-shadow: 0 14px 22px -12px rgba(80, 30, 20, 0.55); }
.s-mira .body::after { content: "MIRA"; position: absolute; left: 0; right: 0; top: 1.8em; text-align: center; font-size: 0.42em; font-weight: 700; letter-spacing: 0.2em; color: #3b2420; }
.s-mira .info { position: absolute; left: 0.95em; top: 2.3em; }
.s-mira .info b { display: block; font-size: 0.92em; font-weight: 680; letter-spacing: -0.01em; line-height: 1.1; }
.s-mira .info span { display: block; margin-top: 0.35em; font-size: 0.56em; opacity: 0.7; }
.s-mira .price { position: absolute; left: 0.95em; top: 5.9em; font-size: 0.9em; font-weight: 640; font-variant-numeric: tabular-nums; }
.s-mira .bag { position: absolute; left: 0.95em; bottom: 0.8em; font-size: 0.5em; padding: 0.55em 1.1em; border-radius: 99em; background: #3b2420; color: #fbe9e4; font-weight: 600; }

/* narrow windows: the client column leaves, the name keeps the room */
@media (max-width: 560px) {
  .cols, .row__in { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 2.8em 1.5em; gap: 0.6em; }
  .col-client, .row__client { display: none; }
  .row__in { padding: 0.9em 0.5em; }
  .cols { padding: 0 0.5em 0.55em; }
  .head { padding: 0 0.5em 1em; }
}

@media (hover: hover) {
  .row:hover .go { box-shadow: 0 0 0 1px rgba(20, 21, 25, 0.16) inset; }
}

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
