/* Drone Bee. Warm white for the bee, the dark of the hive for the stages; every part one screen tall.
   Type: Mona Sans throughout: a little wide for headlines, fully wide in small capitals for labels.
   Self-hosted (SIL Open Font License, file and licence in /fonts). */

@font-face {
  font-family: "Mona Sans";
  src: url(/fonts/mona-sans.woff2) format("woff2-variations"), url(/fonts/mona-sans.woff2) format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  --paper: #fbf9f4;
  --ink: #15110c;
  --ink-2: #6b6359;
  --ink-3: #a59c8f;
  --hair: rgb(21 17 12 / 0.1);
  --hive: #0f0b07;
  --hive-2: #1a140d;
  --light: #f6f0e6;
  --light-2: #a99f91;
  --light-3: #6f665b;
  --line: rgb(246 240 230 / 0.1);
  --honey: #f2ab33;
  --honey-2: #c98410;
  --sans: "Mona Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  --hex: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  /* one screen; home.js sets it in pixels once, see there. Never write vh below: write calc(N * var(--vh)). */
  --vh: 1svh;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%,
      0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); }
html:has(body.home) { scroll-snap-type: y mandatory; background: var(--hive); }
@media (max-height: 520px) { html:has(body.home) { scroll-snap-type: y proximity; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.5 var(--sans);
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--honey); color: var(--ink); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }

/* ---------- the header ---------- */

.top {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 48px);
  padding-top: env(safe-area-inset-top);
  color: var(--ink);
  transition: color 0.45s ease;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 650; font-stretch: 115%; letter-spacing: -0.035em; text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; transition: transform 0.7s var(--spring); }
.brand:hover .mark { transform: translate(2px, -2px) rotate(-6deg); }
body.on-dark .top { color: var(--light); }
.inner .top {
  background: rgb(251 249 244 / 0.78);
  -webkit-backdrop-filter: saturate(1.8) blur(18px);
  backdrop-filter: saturate(1.8) blur(18px);
  box-shadow: 0 1px 0 var(--hair);
}

/* ---------- the bee: one see-through canvas over the whole page ---------- */

#bee {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 30;
  width: 100%;
  height: 100lvh;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
body.bee-on #bee { opacity: 1; }
body.intro #bee { transition-duration: 0.35s; }
.spot { position: absolute; height: 2px; pointer-events: none; }
.dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-in, .next { position: relative; z-index: 1; }

/* ---------- screens ---------- */

.screen {
  position: relative;
  height: calc(100 * var(--vh));
  min-height: 560px;
  overflow: hidden;
  scroll-snap-align: start;
}

/* screen 1: the headline, with the bee hovering above it */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px calc(17 * var(--vh)); /* high enough that the bee's legs just cross the headline */
  background: radial-gradient(120% 70% at 50% 26%, #fff 0%, var(--paper) 62%);
  text-align: center;
}
.spot-hero { left: 50%; top: calc(26 * var(--vh)); width: min(24vw, 380px, calc(38 * var(--vh))); translate: -50% 0; }
.hero h1 {
  margin: 0;
  font-size: clamp(50px, min(9.4vw, calc(15.5 * var(--vh))), 152px);
  line-height: 0.92;
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: -0.045em;
}
.hero h1 span { display: block; }
.hero h1 .dim { color: var(--ink-3); }
.lead { text-wrap: balance; margin: 28px 0 0; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.45; color: var(--ink-2); letter-spacing: -0.008em; }
.ctas { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 32px 0 0; }
.btn {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 16px;
  font-weight: 560;
  font-stretch: 106%;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 30px -10px rgb(21 17 12 / 0.45);
  transition: transform 0.55s var(--spring), box-shadow 0.4s;
}
.btn:hover { transform: scale(1.045); box-shadow: 0 16px 38px -12px rgb(21 17 12 / 0.5); }
.btn:active { transform: scale(0.98); }
.next {
  position: absolute;
  left: 50%;
  bottom: calc(3.2 * var(--vh));
  translate: -50% 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color 0.2s, transform 0.5s var(--spring);
}
.next:hover { color: var(--ink); transform: translateY(3px); }
.next i { width: 9px; height: 9px; border-right: 1.6px solid; border-bottom: 1.6px solid; rotate: 45deg; translate: 0 -3px; }

/* screen 2: the hive */
.stages {
  display: flex;
  flex-direction: column;
  background: var(--hive);
  color: var(--light);
}
.stages::after { /* warm light from the comb */
  content: "";
  position: absolute;
  left: 66%;
  top: 48%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(242 171 51 / 0.1), rgb(242 171 51 / 0.03) 55%, transparent);
  pointer-events: none;
}
.stages-in {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: center;
  gap: clamp(40px, 6vw, 120px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 48px clamp(20px, 5vw, 64px) 72px; /* sits a little high: the footer below weighs it down */
}
.panel h2 {
  margin: 0;
  font-size: clamp(38px, min(4.3vw, calc(7.6 * var(--vh))), 68px);
  line-height: 0.98;
  font-weight: 640;
  font-stretch: 112%;
  letter-spacing: -0.042em;
}
.panel h2 span { display: block; color: var(--light-3); }
.detail { margin-top: clamp(28px, calc(6 * var(--vh)), 60px); min-height: 172px; }
.d-v { margin: 0; font-size: 14px; font-weight: 500; color: var(--light-2); }
.d-name { margin: 14px 0 0; font-size: clamp(28px, 2.5vw, 34px); line-height: 1.05; font-weight: 640; font-stretch: 110%; letter-spacing: -0.035em; }
.d-line { margin: 8px 0 0; font-size: 17px; color: var(--light-2); letter-spacing: -0.006em; }
.d-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.d-links a {
  display: inline-flex;
  align-items: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: rgb(246 240 230 / 0.05);
  font-size: 15px;
  font-weight: 560;
  font-stretch: 104%;
  text-decoration: none;
  transition: transform 0.5s var(--spring), background 0.25s, border-color 0.25s;
}
.d-links a:first-child { background: var(--light); color: var(--hive); border-color: transparent; }
.d-links a:hover { transform: scale(1.045); border-color: rgb(246 240 230 / 0.3); }
.swap { animation: swap 0.5s var(--out); }
@keyframes swap { from { opacity: 0; filter: blur(6px); transform: translateY(8px); } }

/* the comb: seven cells, each one stage */
.comb {
  --s: min(calc((100 * var(--vh) - 230px) / 5), 8.4vw, 142px);
  position: relative;
  width: calc(var(--s) * 5.196);
  height: calc(var(--s) * 5);
}
.cell {
  position: absolute;
  width: calc(var(--s) * 1.732);
  height: calc(var(--s) * 2);
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.65s var(--spring), opacity 0.45s ease;
}
.p-c { left: calc(var(--s) * 1.732); top: calc(var(--s) * 1.5); }
.p-l { left: 0; top: calc(var(--s) * 1.5); }
.p-r { left: calc(var(--s) * 3.464); top: calc(var(--s) * 1.5); }
.p-tl { left: calc(var(--s) * 0.866); top: 0; }
.p-tr { left: calc(var(--s) * 2.598); top: 0; }
.p-bl { left: calc(var(--s) * 0.866); top: calc(var(--s) * 3); }
.p-br { left: calc(var(--s) * 2.598); top: calc(var(--s) * 3); }
.hex {
  position: absolute;
  inset: 0;
  clip-path: var(--hex);
  scale: 0.955;
  background: var(--hive-2);
  overflow: hidden;
}
.hex img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(0.8);
  transform: scale(1.08);
  transition: filter 0.6s ease, transform 1.4s var(--out);
}
.hex::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 38%, rgb(10 7 4 / 0.82)); }
.label { position: absolute; left: 0; right: 0; bottom: 20%; z-index: 2; text-align: center; color: #fff; pointer-events: none; }
.label b { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 500; opacity: 0.68; }
.label span { font-size: clamp(16px, calc(var(--s) * 0.165), 23px); font-weight: 620; font-stretch: 110%; letter-spacing: -0.03em; }
.ring { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; scale: 0.955; pointer-events: none; }
.ring polygon { fill: none; stroke: var(--honey); stroke-width: 1.6px; vector-effect: non-scaling-stroke; }
.now-tag {
  position: absolute;
  top: 16%;
  left: 50%;
  z-index: 2;
  translate: -50% 0;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--honey);
  color: var(--hive);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.cell.is-on { z-index: 3; transform: scale(1.07); }
.cell.is-on .hex img { filter: none; transform: scale(1); }
.comb.hot .cell:not(.is-on) { opacity: 0.5; }
.cell .spot { left: -30%; top: 2%; width: 66%; }
.comb:not(.in) .cell { opacity: 0; }
.comb.in .cell { animation: pop 1s var(--spring) backwards; }
.comb.in .cell:nth-child(2) { animation-delay: 0.06s; } .comb.in .cell:nth-child(3) { animation-delay: 0.12s; }
.comb.in .cell:nth-child(4) { animation-delay: 0.18s; } .comb.in .cell:nth-child(5) { animation-delay: 0.24s; }
.comb.in .cell:nth-child(6) { animation-delay: 0.3s; } .comb.in .cell:nth-child(7) { animation-delay: 0.36s; }
@keyframes pop { from { opacity: 0; transform: scale(0.72); } }

/* ---------- the footer ---------- */

.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  width: min(1152px, 100% - 2 * clamp(20px, 5vw, 64px));
  margin: 0 auto;
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--light-3);
}
.foot p { margin: 0; }
.foot, .foot a { font-stretch: 104%; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; transition: color 0.2s; }
.foot a:hover { color: var(--light); }
.inner .foot { width: min(680px, 100% - 2 * clamp(20px, 5vw, 40px)); margin-top: 40px; color: var(--ink-3); }
.inner .foot a:hover { color: var(--ink); }

/* ---------- the opening ---------- */

body.intro { overflow: hidden; }
body.intro .top, body.intro main { opacity: 0; pointer-events: none; }
body.ready .top { animation: fade 1s 0.1s ease backwards; }
body.ready .hero h1 span, body.ready .lead, body.ready .ctas { animation: rise 1.2s var(--out) backwards; }
body.ready .hero h1 span:nth-child(2) { animation-delay: 0.08s; }
body.ready .lead { animation-delay: 0.18s; }
body.ready .ctas { animation-delay: 0.26s; }
body.ready .next { animation: fade 1s 0.6s ease backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(26px); filter: blur(10px); } }
@keyframes fade { from { opacity: 0; } }
.skip {
  position: fixed;
  right: clamp(20px, 4vw, 48px);
  bottom: calc(28px + env(safe-area-inset-bottom));
  z-index: 70;
  padding: 11px 18px;
  border: 1px solid var(--hair);
  border-radius: 99px;
  background: rgb(255 255 255 / 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--ink-2);
  font: 520 14px/1 var(--sans);
  cursor: pointer;
  animation: fade 0.8s 0.6s ease backwards;
}
.skip:hover { color: var(--ink); }

/* ---------- reading pages: log, posts, legal ---------- */

.read { max-width: 760px; margin: 0 auto; padding: 132px clamp(20px, 5vw, 40px) 40px; }
.read h1 { margin: 0; font-size: clamp(40px, 5.6vw, 64px); line-height: 1; font-weight: 640; font-stretch: 112%; letter-spacing: -0.042em; }
.sub, .updated { margin: 14px 0 0; font-size: 18px; color: var(--ink-2); }
.updated { font-size: 15px; color: var(--ink-3); }
.sub a { color: var(--ink); }
.posts { display: grid; margin-top: 44px; border-top: 1px solid var(--hair); }
.post { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--hair); text-decoration: none; transition: padding 0.5s var(--spring); }
.post:hover { padding-left: 8px; }
.post b { font-size: 22px; font-weight: 620; font-stretch: 108%; letter-spacing: -0.025em; line-height: 1.2; }
.post-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); }
.post-sum { color: var(--ink-2); font-size: 16px; }
.tag { display: inline-block; padding: 4px 9px; border-radius: 99px; background: rgb(242 171 51 / 0.16); color: #8a5a07; font-size: 12.5px; font-weight: 500; line-height: 1.2; }
.tag.draft { background: var(--hair); color: var(--ink-2); }
.kicker { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 15px; color: var(--ink-3); }
.prose { font-size: 18px; line-height: 1.65; letter-spacing: -0.004em; }
.prose h1 { margin-bottom: 34px; }
.prose h2 { margin: 48px 0 10px; font-size: 26px; line-height: 1.2; font-weight: 640; font-stretch: 108%; letter-spacing: -0.03em; }
.prose h3 { margin: 32px 0 8px; font-size: 20px; font-weight: 620; font-stretch: 106%; letter-spacing: -0.02em; }
.prose p, .prose ul, .prose ol { margin: 0 0 18px; }
.prose li { margin: 6px 0; }
.prose a { text-decoration-color: rgb(21 17 12 / 0.3); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose strong { font-weight: 600; }
.prose code { font: 0.88em var(--mono); background: rgb(21 17 12 / 0.06); padding: 2px 6px; border-radius: 6px; }
.prose blockquote { margin: 24px 0; padding: 14px 20px; border-radius: 14px; background: rgb(242 171 51 / 0.1); color: var(--ink-2); }
.prose blockquote p { margin: 0; }
.prose table { width: 100%; margin: 24px 0; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--hair); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; }
.prose img { max-width: 100%; border-radius: 16px; }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 16px; }
.back { margin-top: 48px !important; font-size: 16px; }
.back a { text-decoration: none; color: var(--ink-2); }
.legal h2 { font-size: 21px; margin-top: 40px; }
.legal .updated { margin-bottom: 34px; }
.credits { list-style: none; padding: 0; margin: 28px 0 0 !important; border-top: 1px solid var(--hair); }
.credits li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 8.5em; gap: 16px; margin: 0; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 16px; }
.c-what { color: var(--ink-2); }
.c-lic { color: var(--ink-3); font-size: 14px; text-decoration: none; text-align: right; }
.lost { min-height: calc(70 * var(--vh)); }

/* ---------- phones and narrow windows ---------- */

@media (max-width: 860px) {
  .spot-hero { top: calc(37 * var(--vh)); width: min(72vw, calc(33 * var(--vh))); }
  .cell .spot { left: -4%; top: -18%; width: 72%; }
  .hero { padding-bottom: calc(22 * var(--vh)); }
  .hero h1 { font-size: clamp(38px, 11.2vw, 70px); }
  .lead { margin-top: 20px; font-size: 16.5px; }
  .ctas { flex-direction: column; gap: 16px; margin-top: 26px; }
  .stages-in { grid-template-columns: 1fr; justify-items: center; align-content: center; gap: 22px; padding: 56px 20px 44px; text-align: center; }
  .panel { display: contents; }
  .panel h2 { order: 0; font-size: clamp(30px, 8.2vw, 40px); }
  .comb { order: 1; --s: min(calc((100 * var(--vh) - 400px) / 5), 17.2vw); }
  .detail { order: 2; margin-top: 0; min-height: 132px; }
  .d-name { font-size: 26px; margin-top: 8px; }
  .d-line { font-size: 16px; }
  .d-links { justify-content: center; margin-top: 16px; }
  .d-links a { height: 38px; padding: 0 14px; font-size: 14px; }
  .now-tag { font-size: 10px; padding: 4px 8px; }
  .foot { justify-content: center; text-align: center; padding-top: 16px; }
  .credits li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
