/* Sono House — one stylesheet for the whole site.
   Layout follows the reference: a fixed menu column on the left, content on
   the right, and the logo mark built from four sliding slices. */

@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/inter-tight.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Shed";
  src: url("../fonts/shed.woff2") format("woff2"), url("../fonts/shed.otf") format("opentype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Shed";
  src: url("../fonts/shed-bold.woff2") format("woff2"), url("../fonts/shed-bold.otf") format("opentype");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #111;
  --paper: #fff;
  --muted: #6b6b6b;
  --line: #dcdcdc;
  --g: clamp(1rem, 5vmin, 4.5rem);      /* outer gutter */
  --nav-w: 34vw;                         /* menu column width on desktop */
  --mark-h-inner: 8rem;
  --ease-out: cubic-bezier(.16, .84, .3, 1);
  --ease-in: cubic-bezier(.6, 0, .9, .4);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.5 "Inter Tight", Helvetica, Arial, sans-serif;
  letter-spacing: -0.005em;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip { position: absolute; left: -999px; }
/* Read out by screen readers, not shown. */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip:focus { left: var(--g); top: var(--g); z-index: 100; background: var(--paper); padding: .5rem 1rem; }

/* Header + menu ---------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--nav-w);
  padding: var(--g);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  z-index: 20;
}
.brand {
  font-size: clamp(2rem, 3.6vw, 3.75rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: .95;
  text-decoration: none;
}
.brand-h1 { margin: 0; font: inherit; }   /* home: the name is the page's main heading */
.menu-toggle { display: none; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.nav-primary a {
  display: inline-block;
  font-size: clamp(1.25rem, 1.9vw, 2rem);
  font-weight: 450;
  letter-spacing: -0.025em;
  line-height: 1.22;
  text-decoration: none;
}
.nav-primary a:hover, .nav-primary a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; }
.nav-secondary { margin-top: 1.5rem !important; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav-secondary a { font-size: .95rem; color: var(--muted); }

/* Main column ------------------------------------------------------------- */
.main {
  margin-left: var(--nav-w);
  padding: var(--g);
  padding-right: calc(var(--g) * 2 + var(--mark-h-inner) * 1.1);
  max-width: calc(var(--nav-w) + 54rem);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.main > :last-child { margin-top: auto; }

.page-title {
  font-size: clamp(2.25rem, 4.6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.5rem;
}
.lede { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.35; letter-spacing: -0.015em; max-width: 34ch; margin: 0 0 2rem; }
.lede:empty { display: none; }
.eyebrow { margin: 0 0 .75rem; color: var(--muted); }
.prose { max-width: 38rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose h2, .prose h3 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin: 2em 0 .5em; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose img { margin: 1.5em 0; }
.hero-image { margin: 0 0 2rem; width: 100%; max-width: 38rem; border: 1px solid var(--ink); }   /* posters are often white: keep an edge */

.block { margin-top: clamp(3rem, 8vh, 6rem); }
.block__title {
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.empty { color: var(--muted); margin: 0; }
.more { display: inline-block; margin-top: 1rem; }

/* Event / workshop rows */
.listing { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ink); }
.listing__row {
  position: relative;
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: .8rem .5rem;
  border-top: 1px solid var(--ink);
  transition: background-color .12s, color .12s;
}
.listing__row:hover { background: var(--ink); color: var(--paper); }
.listing__link { color: inherit; text-decoration: none; }
.listing__link::after { content: ""; position: absolute; inset: 0; }   /* whole row clickable */
.listing__link:focus-visible { outline: none; }
.listing__link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; }
.listing__date { font-variant-numeric: tabular-nums; }
.listing__title { font-size: 1.2rem; letter-spacing: -0.015em; line-height: 1.25; }
.listing__meta { color: var(--muted); font-size: .9rem; text-align: right; }
/* Line-up on its own line under the event name. */
.listing__lineup { display: block; margin-top: .2rem; font-size: .95rem; color: var(--muted); letter-spacing: 0; }
.listing__row:hover .listing__lineup, .listing__row:hover .listing__meta { color: inherit; }
[data-split="past"] .tix { display: none; }   /* no tickets for past nights */

/* Item facts (date, time, venue...) */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem 2rem; margin: 0 0 2rem; }
.facts div { border-top: 1px solid var(--ink); padding-top: .5rem; }
.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: .15rem 0 0; }

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: .7rem 1.4rem;
  text-decoration: none;
  font-weight: 500;
  transition: background-color .12s, color .12s;
}
.button:hover { background: var(--paper); color: var(--ink); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); color: var(--paper); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Ticket symbol ---------------------------------------------------------- */
.tix {
  position: relative; z-index: 1;          /* above the row's stretched link */
  display: inline-flex; align-items: center; gap: .45rem;
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
}
.listing__lineup .tix { display: flex; width: max-content; margin-top: .45rem; }
.listing__row:hover .tix { color: var(--paper); }
.tix--soon { cursor: default; }
.tix:not(.tix--soon):hover .tix__label { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
.tix__icon { width: 3.3em; height: auto; overflow: visible; }
.tix--large { font-size: 1.15rem; gap: .5rem; }
.tix--large .tix__icon { width: 4.4em; }
.facts .facts__tickets { padding-top: .5rem; display: flex; align-items: center; }
.facts .facts__tickets dd { margin: 0; }
.facts__address { display: block; margin-top: .15rem; font-size: .9rem; color: var(--muted); }
.tix__body { stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; fill: #fedbb3;
  animation: tix-colour 15s ease-in-out infinite; }
.tix__body--back { animation-delay: -7.5s; }
.tix__perf { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-dasharray: 2.2 2.8; }
.tix__scribble { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; opacity: .55; }
.tix__shuffle, .tix__wave { transform-box: fill-box; transform-origin: 50% 50%; }
/* Always: the two tickets shuffle against each other, very gently. */
.tix__shuffle--front { animation: tix-shuffle-front 5.5s ease-in-out infinite alternate; }
.tix__shuffle--back  { animation: tix-shuffle-back 6.7s ease-in-out infinite alternate; }
/* Hover: they quiver and ripple like a cuttlefish, colours flickering through. */
.tix:hover .tix__wave, .tix:focus-visible .tix__wave { animation: tix-cuttle .5s ease-in-out infinite; }
.tix:hover .tix__wave--back, .tix:focus-visible .tix__wave--back { animation-delay: -.25s; animation-duration: .58s; }
.tix:hover .tix__body, .tix:focus-visible .tix__body { animation-duration: 1.6s; }
@keyframes tix-colour {
  0%, 100% { fill: #fedbb3; }   /* peach */
  33%      { fill: #ddcdfe; }   /* lavender */
  66%      { fill: #debbd9; }   /* soft pink */
}
@keyframes tix-shuffle-front {
  0%   { transform: none; }
  50%  { transform: translate(-2px, 1px) rotate(-3deg); }
  100% { transform: translate(3px, -1px) rotate(3deg); }
}
@keyframes tix-shuffle-back {
  0%   { transform: none; }
  50%  { transform: translate(3px, -2px) rotate(4deg); }
  100% { transform: translate(-3px, 1px) rotate(-3deg); }
}
@keyframes tix-cuttle {
  0%, 100% { transform: none; }
  20% { transform: skewX(7deg) scale(1.03, .96); }
  45% { transform: translateY(-1px) skewX(-6deg) scale(.97, 1.04); }
  70% { transform: skewX(4deg) scale(1.02, .98); }
}
@media (prefers-reduced-motion: reduce) {
  .tix__body, .tix__shuffle, .tix__wave, .tix:hover .tix__wave { animation: none !important; }
}

/* Artists on an event page ------------------------------------------------ */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.facts dd a { text-decoration-thickness: 1px; }
.artists { margin-top: clamp(3rem, 8vh, 5rem); }
.artists__grid { display: grid; gap: 0; border-bottom: 1px solid var(--ink); }
/* One artist per row: square photo on the left, bio and links on the right. */
.artist {
  display: grid; grid-template-columns: minmax(9rem, 15rem) 1fr; gap: 0 2rem; align-items: start;
  padding: 2rem 0; border-top: 1px solid var(--ink); scroll-margin-top: 1.5rem;
}
.artist__text { min-width: 0; }
.artist:target .artist__photo { animation: artist-hello 1.6s ease-out; }
@keyframes artist-hello {
  0% { box-shadow: 0 0 0 0 var(--ink); }
  25% { box-shadow: 0 0 0 6px var(--ink); }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.artist__photo { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1px solid var(--ink); }
.artist__photo--placeholder { display: grid; place-items: center; }
.artist__photo--placeholder span { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 500; letter-spacing: -0.03em; }
.artist__photo--1 { background: #fedbb3; }   /* the eye colours */
.artist__photo--2 { background: #ddcdfe; }
.artist__photo--3 { background: #debbd9; }
.artist__name { font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 .8rem; }
.artist__bio { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.5; max-width: 36rem; }
.artist__links { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1.25rem; font-size: .95rem; font-weight: 500; }
.artist__links:empty { display: none; }
@media (max-width: 640px) {
  .artist { grid-template-columns: 1fr; gap: 1rem; }
  .artist__photo { max-width: 18rem; }
}

/* Mixcloud players */
.mixes { display: grid; gap: 1.5rem; }
.mix { margin: 2rem 0 0; }
.mixes .mix { margin: 0; }
.mix figcaption { font-size: .9rem; margin-bottom: .4rem; }
.mix iframe { display: block; width: 100%; height: 120px; border: 0; }
.mix figcaption { font-size: 1.05rem; margin-bottom: .6rem; }
.mix figcaption a { text-decoration: none; }
.mix figcaption a:hover { text-decoration: underline; }
.mix__lineup { display: block; margin-top: .15rem; font-size: .9rem; color: var(--muted); }
/* Event page: the recording, just under the details and as wide as the poster. */
.listen { margin: 0 0 2.5rem; max-width: 38rem; }
.listen__player { display: block; width: 100%; height: 120px; border: 0; }
/* Mixcloud: a play button the same size as the player it turns into. */
.mixcloud-frame { display: block; width: 100%; height: 120px; border: 0; }
.mixcloud {
  display: flex; align-items: center; gap: 1.1rem; height: 120px; padding: 0 1.4rem;
  border: 1px solid var(--ink); color: var(--ink); background: var(--paper); text-decoration: none;
}
.mixcloud__play {
  flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; background: var(--ink);
  display: grid; place-items: center;
}
.mixcloud__play::before {
  content: ""; margin-left: .25rem; border-style: solid; border-width: .65rem 0 .65rem 1.05rem;
  border-color: transparent transparent transparent var(--paper);
}
.mixcloud__text { display: grid; gap: .2rem; min-width: 0; }
.mixcloud__label { font-weight: 500; font-size: 1.05rem; line-height: 1.2; }
.mixcloud__note { font-size: .85rem; color: var(--muted); }
.mixcloud:hover { background: var(--ink); color: var(--paper); }
.mixcloud:hover .mixcloud__play { background: var(--paper); }
.mixcloud:hover .mixcloud__play::before { border-left-color: var(--ink); }
.mixcloud:hover .mixcloud__note { color: var(--paper); }

/* Series */
.series--shed .series__title, .shed-font {
  font-family: "Shed", "Inter Tight", sans-serif;
  font-weight: 400;          /* the regular Shed lettering, not the bold cut */
  font-synthesis: none;      /* never let the browser fake a bold */
  letter-spacing: 0;
}
.series--shed .series__title { font-size: clamp(3rem, 7vw, 7rem); line-height: .9; }
.series-grid { list-style: none; margin: 0; padding: 0 1px 1px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); }
/* Each card has its own border, overlapped by 1px so lines don't double up. */
.series-grid li { border: 1px solid var(--ink); margin: 0 -1px -1px 0; }
.series-grid a { display: flex; flex-direction: column; gap: .35rem; height: 100%; padding: 1.25rem; background: var(--paper); text-decoration: none; }
.series-grid a:hover { background: #f2f2f2; }
.series-grid img { height: 6rem; width: auto; margin-bottom: .75rem; }
.series-grid strong { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.series-grid strong.shed-font { font-size: 1.9rem; }
.series-grid span { color: var(--muted); font-size: .95rem; }

.support p { max-width: 38rem; }

.site-footer { margin-top: auto; padding-top: clamp(4rem, 12vh, 8rem); font-size: .85rem; color: var(--muted); }
.site-footer p { margin: 0 0 .25rem; }

/* The mark --------------------------------------------------------------- */
.mark {
  position: fixed;
  right: var(--g);
  bottom: var(--g);
  height: var(--mark-h-inner);
  display: grid;
  pointer-events: none;
  z-index: 10;
}
.mark__slice {
  grid-area: 1 / 1;
  height: 100%;
  width: auto;
  max-width: none;
  user-select: none;
  /* Each copy shows one quarter: slice 0 = left quarter ... slice 3 = right quarter. */
  /* The half-pixel overlap hides hairline seams between slices. */
  clip-path: inset(0 calc((3 - var(--i)) * 25% - .5px) 0 calc(var(--i) * 25% - .5px));
}

/* Home: a big mark top-right, statement underneath in the first screen. */
.home .main { padding-right: var(--g); }
.home .mark {
  position: absolute;
  top: var(--g);
  bottom: auto;
  height: min(32rem, 56vh);
}
.home .hero {
  min-height: calc(100vh - var(--g) * 2);
  display: flex;
  align-items: flex-end;
}
.statement {
  margin: 0;
  max-width: 30ch;
  font-size: clamp(1.25rem, 1.75vw, 1.8rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* Drop animation (corner logo on every page except home).
   Falls from the very top, lands with a squash, two small bounces, settles.
   Leaving: a tiny crouch, then it springs up and away (≈0.3s).
   The "js" class is added in the page head, so without JavaScript (or with
   reduced motion) the logo simply sits there. */
.mark__img { height: 100%; width: auto; max-width: none; user-select: none; transform-origin: 50% 100%; }
.js .mark--drop .mark__img { transform: translateY(-120vh); }
.js .mark--drop.is-in .mark__img { animation: mark-drop 1.15s 80ms both; }
.js .mark--drop.is-out .mark__img { animation: mark-leave .3s both; }
@keyframes mark-drop {
  0%   { transform: translateY(-120vh) scale(.94, 1.06); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  48%  { transform: translateY(0) scale(.94, 1.06); animation-timing-function: ease-out; }
  56%  { transform: translateY(0) scale(1.14, .84); animation-timing-function: ease-out; }
  70%  { transform: translateY(-16%) scale(.97, 1.04); animation-timing-function: ease-in; }
  80%  { transform: translateY(0) scale(1.06, .94); animation-timing-function: ease-out; }
  89%  { transform: translateY(-5%) scale(1); animation-timing-function: ease-in; }
  95%  { transform: translateY(0) scale(1.02, .98); }
  100% { transform: none; }
}
@keyframes mark-leave {
  0%   { transform: none; }
  30%  { transform: scale(1.08, .9); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  100% { transform: translateY(-120vh) scale(.92, 1.08); }
}

/* Archived: four-slice mark (partials/mark-slices.njk, not currently used). */
.js .mark__slice {
  transform: translate3d(0, var(--from), 0);
  transition: transform var(--dur, 1.1s) var(--ease-out);
  transition-delay: calc(var(--i) * 90ms);
}
.js .mark__slice:nth-child(1) { --from: -110vh; --to: -110vh; }
.js .mark__slice:nth-child(2) { --from: 110vh;  --to: 110vh; }
.js .mark__slice:nth-child(3) { --from: 110vh;  --to: 110vh; transition-delay: 40ms; }
.js .mark__slice:nth-child(4) { --from: -110vh; --to: -110vh; transition-delay: 130ms; }
.inner { --dur: .75s; }
.js .mark.is-in .mark__slice { transform: none; }
.js .mark.is-out .mark__slice {
  transform: translate3d(0, var(--to), 0);
  transition: transform .32s var(--ease-in);
  transition-delay: calc(var(--i) * 25ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .mark__slice, .js .mark.is-out .mark__slice { transform: none; transition: none; }
  .js .mark--drop .mark__img, .js .mark--drop.is-in .mark__img, .js .mark--drop.is-out .mark__img { transform: none; animation: none; }
}

/* Small screens ------------------------------------------------------------ */
@media (max-width: 899px) {
  :root { --g: 1rem; }
  .site-header {
    position: sticky;
    top: 0;
    width: auto;
    padding: 1rem var(--g);
    background: var(--paper);
    border-bottom: 1px solid var(--ink);
  }
  .site-header__top { display: flex; justify-content: space-between; align-items: center; }
  .brand { font-size: 1.6rem; }
  .menu-toggle {
    display: block;
    font: inherit;
    background: none;
    border: 1px solid var(--ink);
    padding: .35rem .9rem;
    color: var(--ink);
    cursor: pointer;
  }
  .site-nav { display: none; padding: 1.5rem 0 .5rem; }
  .site-header.is-open .site-nav { display: block; }
  .site-header.is-open { position: fixed; inset: 0; overflow-y: auto; border-bottom: 0; }
  .nav-primary a { font-size: 2rem; }

  .main { margin-left: 0; padding: var(--g); padding-top: 2rem; max-width: none; min-height: 0; }
  .mark { display: none; }
  .home .mark {
    display: grid;
    position: absolute;
    top: 5.5rem;
    left: 50%;
    right: auto;
    translate: -50% 0;
    height: min(48vw, 38vh);
  }
  .home .hero { min-height: 0; padding-top: calc(min(48vw, 38vh) + 2.5rem); }
  .listing__row { grid-template-columns: 4.5rem 1fr; }
  .listing__meta { grid-column: 2; text-align: left; }
}

/* Home: the three eyes -------------------------------------------------------
   Each eye flies in from its own side, overshoots a little and settles,
   then the pupils glance at each other. On leaving, they scatter out. */
.mark--eyes { aspect-ratio: 950 / 725; }
.eyes { display: block; height: 100%; width: auto; overflow: visible; }
.eye, .eye__look { transform-box: fill-box; transform-origin: 50% 50%; }
.eye--big   { --from: translate(-60vw, -45vh) rotate(-35deg); --to: translate(-60vw, -30vh) rotate(-20deg); --delay: 0ms; }
.eye--med   { --from: translate(70vw, 15vh) rotate(40deg);    --to: translate(60vw, 10vh) rotate(25deg);    --delay: 180ms; }
.eye--small { --from: translate(-15vw, 75vh) rotate(-25deg);  --to: translate(-10vw, 60vh) rotate(-15deg);  --delay: 320ms; }
.eye--big   .eye__look { --lx: 30px;  --ly: 22px; }
.eye--med   .eye__look { --lx: -26px; --ly: -10px; }
.eye--small .eye__look { --lx: 18px;  --ly: -16px; }

.js .eye { transform: var(--from); }
.js .mark--eyes.is-in .eye {
  animation: eye-arrive 1.25s cubic-bezier(.2, .9, .3, 1) var(--delay) both;
}
/* After the glance, the pupils now and then wander a little, with long pauses. */
.js .mark--eyes.is-in .eye__look {
  animation:
    eye-glance 2.2s ease-in-out calc(var(--delay) + 1.5s) both,
    eye-wander var(--wander) ease-in-out calc(var(--delay) + 4.5s) infinite;
}
.eye--big   .eye__look { --wander: 11s;  --wx1: -9px; --wy1: 4px;  --wx2: 7px;  --wy2: -5px; }
.eye--med   .eye__look { --wander: 13s;  --wx1: 6px;  --wy1: 3px;  --wx2: -5px; --wy2: -3px; }
.eye--small .eye__look { --wander: 9.5s; --wx1: 5px;  --wy1: -4px; --wx2: -6px; --wy2: 2px; }

/* Once landed, each eye floats very gently, each on its own rhythm,
   so the three never move in step. */
.eye__float { transform-box: fill-box; transform-origin: 50% 65%; }
.js .mark--eyes.is-in .eye__float {
  animation: var(--float-name) var(--float) ease-in-out calc(var(--delay) + 1.25s) infinite;
}
.eye--big   .eye__float { --float-name: eye-float-a; --float: 7.3s; }
.eye--med   .eye__float { --float-name: eye-float-b; --float: 6.1s; }
.eye--small .eye__float { --float-name: eye-float-c; --float: 5.3s; }
@keyframes eye-float-a {
  0%, 100% { transform: none; }
  30% { transform: translate(3px, -5px) rotate(1deg); }
  55% { transform: translate(-1px, -7px) rotate(-.3deg) scale(1.008); }
  80% { transform: translate(-3px, -2px) rotate(-1deg); }
}
@keyframes eye-float-b {
  0%, 100% { transform: none; }
  25% { transform: translate(-3px, -3px) rotate(-1.2deg); }
  60% { transform: translate(2px, -6px) rotate(.6deg) scale(1.01); }
  85% { transform: translate(3px, -1px) rotate(1deg); }
}
@keyframes eye-float-c {
  0%, 100% { transform: none; }
  20% { transform: translate(2px, -4px) rotate(1.5deg); }
  50% { transform: translate(-2px, -6px) rotate(-.8deg); }
  75% { transform: translate(-3px, -1px) rotate(-1.4deg) scale(1.01); }
}
@keyframes eye-wander {
  0%, 20%, 100% { transform: none; }
  28%, 42% { transform: translate(var(--wx1), var(--wy1)); }
  52%, 64% { transform: none; }
  73%, 86% { transform: translate(var(--wx2), var(--wy2)); }
}
.js .mark--eyes.is-out .eye {
  animation: eye-leave .3s cubic-bezier(.6, 0, .9, .4) both;
}
@keyframes eye-arrive {
  0%   { transform: var(--from); }
  62%  { transform: translate(0, 0) rotate(5deg) scale(1.04, .96); }
  78%  { transform: rotate(-3deg) scale(.98, 1.02); }
  90%  { transform: rotate(1deg); }
  100% { transform: none; }
}
@keyframes eye-glance {
  0%, 100%  { transform: none; }
  20%, 70%  { transform: translate(var(--lx), var(--ly)); }
}
@keyframes eye-leave {
  from { transform: none; }
  to   { transform: var(--to); }
}
/* Text pages: the eyes drop into the corner one by one (small, medium, big),
   each with a bounce; once the big one has landed they look at each other,
   then settle and float like on the home page. */
/* Distances are in the logo's own drawing units, which are shrunk to fit the
   corner, so "-6000px" lands well above the top of the window. */
.mark--eyes-drop .eye { transform-origin: 50% 100%; --from: translateY(-6000px); --to: translateY(-6000px) scale(.92, 1.08); }
.mark--eyes-drop .eye--small { --delay: 0ms; }
.mark--eyes-drop .eye--med   { --delay: 350ms; }
.mark--eyes-drop .eye--big   { --delay: 700ms; }
.js .mark--eyes-drop.is-in .eye { animation: eye-drop 1s var(--delay) both; }
/* The corner logo is small, so the look at each other is twice as wide. */
.mark--eyes-drop .eye--big   .eye__look { --lx: 60px;  --ly: 40px; }
.mark--eyes-drop .eye--med   .eye__look { --lx: -55px; --ly: -18px; }
.mark--eyes-drop .eye--small .eye__look { --lx: 34px;  --ly: -30px; }
.js .mark--eyes-drop.is-in .eye__look {
  animation:
    eye-glance 2.2s ease-in-out 1.35s both,
    eye-wander var(--wander) ease-in-out 4.5s infinite;
}
@keyframes eye-drop {
  0%   { transform: translateY(-6000px) scale(.94, 1.06); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  50%  { transform: translateY(0) scale(.94, 1.06); animation-timing-function: ease-out; }
  60%  { transform: translateY(0) scale(1.15, .82); animation-timing-function: ease-out; }
  74%  { transform: translateY(-18%) scale(.97, 1.04); animation-timing-function: ease-in; }
  86%  { transform: translateY(0) scale(1.05, .95); animation-timing-function: ease-out; }
  94%  { transform: translateY(-4%); animation-timing-function: ease-in; }
  100% { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .eye, .js .mark--eyes.is-in .eye, .js .mark--eyes.is-in .eye__look, .js .mark--eyes.is-in .eye__float, .js .mark--eyes.is-out .eye { transform: none; animation: none; }
}
