:root {
  --bg: #fafafa;
  --surface: #ffffff;
  --ink: #111113;
  --mute: #8b8b92;
  --line: rgba(17, 17, 19, 0.08);
  --accent: #4f46e5;
  --radius: 18px;
  --pad: clamp(14px, min(3.2vw, 4.4vh), 44px);
  --gap: clamp(8px, 2.2vh, 26px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  height: 100vh;
  max-height: 100vh;
  padding: var(--pad);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  overflow: hidden;
}

/* the top bar */
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(11px, min(1.2vw, 2.2vh), 14px);
  flex: none;
  position: relative;
  z-index: 3;
}
.bar__brand { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 640; letter-spacing: -0.01em; }
.bar__brand svg { width: 1.3em; height: 1.3em; fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.bar__nav { display: flex; gap: clamp(10px, 2vw, 26px); color: var(--mute); }
.bar__link.is-on { color: var(--ink); }

/* the project page */
.page {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  position: relative;
  z-index: 1;
}

.hero {
  position: relative;
  flex: 1 1 auto;
  min-height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e9e9ec;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -24px rgba(17, 17, 19, 0.35);
}
.hero__img,
.band__img,
.fly__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex: none;
}
.title {
  font-size: clamp(24px, min(6.2vw, 8.2vh), 92px);
  font-weight: 620;
  font-variation-settings: "wdth" 100;
  letter-spacing: -0.035em;
  line-height: 0.95;
  white-space: nowrap;
}
.kicker {
  font-size: clamp(10px, min(1.1vw, 2vh), 13px);
  color: var(--mute);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.meta {
  display: flex;
  gap: clamp(14px, 4vw, 56px);
  font-size: clamp(10px, min(1.15vw, 2.1vh), 14px);
  flex: none;
  padding-top: clamp(6px, 1.4vh, 14px);
  border-top: 1px solid var(--line);
}
.meta dt { color: var(--mute); margin-bottom: 2px; }
.meta dd { font-weight: 560; white-space: nowrap; }

/* the band of the next project */
.band {
  flex: none;
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 2;
  -webkit-tap-highlight-color: transparent;
}
.band__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(5px, 1vh, 10px);
  font-size: clamp(11px, min(1.3vw, 2.3vh), 15px);
}
.band__label { color: var(--mute); }
.band__title { font-weight: 600; letter-spacing: -0.01em; display: inline-block; transform-origin: left center; }
.band__arrow {
  width: 1.2em;
  height: 1.2em;
  margin-left: auto;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.band__cover {
  display: block;
  position: relative;
  height: clamp(34px, 9vh, 110px);
  border-radius: 14px;
  overflow: hidden;
  background: #e9e9ec;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(17, 17, 19, 0.4);
}
.band:focus-visible { outline: none; }
.band:focus-visible .band__cover { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }

/* the flying copies */
.fly {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
  background: #e9e9ec;
  will-change: transform, width, height;
}
.fly-title {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 6;
  pointer-events: none;
  white-space: nowrap;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 0.95;
  transform-origin: left top;
}

/* the drawn pointer of the autopilot */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  z-index: 10;
  fill: #111113;
  stroke: #ffffff;
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

@media (max-width: 520px) {
  .head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bar__nav .bar__link:not(.is-on) { display: none; }
}
