/* FURTHUR MODE (hidden: type "transform")
   Level 1 "archivo": grey ground, cut-out collage, glitter cursor, blackletter on hover.
   Level 2 "geocities": + spinning stars, marquee, caution tape, rainbow wordart, blinking DONATE!.
   Level 3 "lorna": + flat chroma grounds, looping repeated figures, mirrored parades.
   The default look of every public page (render.js); "Plain Jane" turns it off on a device. */

@font-face {
  font-family: "FF Pixel"; /* Silkscreen (OFL), for the MENU label */
  src: url("/furthur/silkscreen.woff2") format("woff2");
}
@font-face {
  font-family: "FF Display"; /* New Rocker (OFL): old-school and curly, but every letter reads as itself */
  src: url("/furthur/newrocker.woff2") format("woff2");
}

#ff-root { display: none; }
html.ff-on #ff-root { display: contents; }

/* ---------- ground ---------- */
html.ff-on, html.ff-on body {
  background: #f5f5f5 !important;
  background-image: none !important;
}
html.ff-on body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  letter-spacing: 0.025em;
  -webkit-font-smoothing: antialiased;
  cursor: crosshair;
}
html.ff-on ::selection { color: #ffccf3; background: transparent; }
html.ff-on ::-webkit-scrollbar { display: none; }

/* strip the site's own grounds so the collage shows through */
html.ff-on body :is(div, section, header, footer, main, article, nav, span, figure):not([class^="ff-"]):not([class*=" ff-"]) {
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
}
html.ff-on .section-background,
html.ff-on .header-announcement-bar-wrapper .section-background { display: none !important; }

/* the photos have become the collage */
html.ff-on :is(.fluid-image-container, .sqs-block-image, .user-items-list-carousel__media-container, .image-block-outer-wrapper, .sqs-image) {
  visibility: hidden !important;
}
/* ...except the timeline, Current Projects (its intro and the six project
   tiles after it) and every page but home ([data-ff-photos], furthur.js), which
   keep their photographs exactly as the site shows them */
html.ff-on :is(.user-items-list-section, #projects, #projects + .page-section, [data-ff-photos]) :is(.fluid-image-container, .sqs-block-image, .user-items-list-carousel__media-container, .image-block-outer-wrapper, .sqs-image) {
  visibility: visible !important;
}
/* each one in a thin Polaroid frame with square corners: white all round,
   a little deeper at the bottom */
html.ff-on #siteWrapper :is(.user-items-list-section, #projects, #projects + .page-section, [data-ff-photos]) :is(.fluid-image-container, .user-items-list-carousel__media-container) {
  box-sizing: border-box;
  background-color: #fff !important;
  border: 6px solid #fff;
  border-bottom-width: 20px;
  border-radius: 0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22) !important;
}
html.ff-on #siteWrapper :is(.user-items-list-section, #projects, #projects + .page-section, [data-ff-photos]) :is(.fluid-image-container, .user-items-list-carousel__media-container) * {
  border-radius: 0 !important;
}
/* a partner logo on a project page shows as itself, without the frame */
html.ff-on #siteWrapper [data-ff-photos] .fluid-image-container.ff-logo-img {
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* the timeline's slides are list items; keep them straight and unstripped,
   as the site lays them out (their headings and text still get strips) */
html.ff-on #siteWrapper .user-items-list-section li.user-items-list-carousel__slide {
  rotate: 0deg !important;
  background: none !important;
  padding: 0 !important;
}

/* content sits above resting collage pieces; a grabbed piece goes above it */
html.ff-on #siteWrapper, html.ff-on .site-wrapper, html.ff-on main, html.ff-on footer {
  position: relative;
  z-index: 100;
}
html.ff-on #header, html.ff-on header#header { z-index: 2147482000 !important; }
html.ff-on #siteWrapper, html.ff-on main, html.ff-on .kf-footer { pointer-events: none; }
html.ff-on #siteWrapper :is(p, h1, h2, h3, h4, h5, li, blockquote, a, button, input, select, textarea, label, form, iframe, summary, details, [role="button"]),
html.ff-on .kf-footer :is(p, h1, h2, h3, h4, li, a, button, input, form, label) {
  pointer-events: auto;
}

/* ---------- type: torn paper strips ---------- */
html.ff-on body :is(h1, h2, h3, h4, h5, p, li, blockquote, a, strong, em):not(.kf-archive-link) {
  color: #222 !important;
  font-family: inherit;
}
html.ff-on #siteWrapper :is(h1, h2, h3, h4, p, blockquote, li),
html.ff-on .kf-footer :is(h1, h2, h3, h4, p, label, legend) {
  color: #222 !important;
  width: fit-content;
  max-width: 100%;
  background: rgba(245, 245, 245, 0.94) !important;
  padding: 0.12em 0.4em !important;
  rotate: var(--ff-r, 0deg);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
  text-transform: none !important;
  box-sizing: border-box;
}
html.ff-on #siteWrapper :is(h1, h2, h3, h4, h5, a):hover,
html.ff-on .kf-footer :is(h1, h2, h3, h4, a):hover,
html.ff-on #header a:not(.kf-archive-link):hover {
  font-family: "FF Display", serif !important;
}
html.ff-on a { text-decoration: none !important; }
html.ff-on #siteWrapper p a { border-bottom: 1px solid #222; }

/* the site sets some words in its accent blue (marked spans, the donation
   total); in this mode all body text is one black */
html.ff-on #siteWrapper :is([class*="sqsrte-text-color"], .sqs-donation-block-total-amount__total-label, .sqs-donation-block-total-amount__total-amount) {
  color: #222 !important;
}
/* inside a rainbow title, let the rainbow show through */
html.ff-on:is([data-ff-level="2"], [data-ff-level="3"]) #siteWrapper :is(h1, h3, .ff-title):not(.kf-footer *) * {
  color: transparent !important;
}
/* a dropdown's arrow is drawn in its heading's colour; keep it visible */
html.ff-on #siteWrapper .accordion-icon-container,
html.ff-on #siteWrapper .accordion-icon-container *,
html.ff-on:is([data-ff-level="2"], [data-ff-level="3"]) #siteWrapper :is(h1, h3, .ff-title):not(.kf-footer *) .accordion-icon-container * {
  color: #222 !important;
}

/* the header is its own clean bar, above every collage piece, so the nav
   reads plainly as buttons */
html.ff-on body header#header {
  background-color: #f5f5f5 !important;
  border-bottom: 0 !important;
}

/* header, archivo style */
html.ff-on #header :is(a, .header-title-text, .header-nav-item a):not(.kf-archive-link) {
  color: #222 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 400 !important;
}
html.ff-on #header :is(svg, path) { fill: #222 !important; color: #222 !important; }
html.ff-on #header :is(.header-nav-item a, .header-title-text a, .header-actions a) {
  /* a strip that takes no layout space: the nav lays out right to left */
  background: rgba(245, 245, 245, 0.92) !important;
  box-shadow: 0 0 0 0.2em rgba(245, 245, 245, 0.92) !important;
}
html.ff-on #header .kf-archive-link { color: #222 !important; }
html.ff-on #header .header-nav-item a:hover,
html.ff-on #header .header-title-text a:hover { font-family: "FF Display", serif !important; }

/* the desktop "Enter the Archive" gives way to a plain Archive nav item */
html.ff-on #header .header-display-desktop .kf-archive-link { display: none !important; }
/* ...and the room the header kept for it goes back to the nav */
html.ff-on #header .header-display-desktop .header-nav { padding-left: 0 !important; }

/* with Archive added the nav has six items; on narrower desktops pull them
   closer so they stay on one line */
@media (max-width: 1299px) {
  html.ff-on #header .header-display-desktop .header-nav-item:not(:first-child) { margin-left: 1.3vw !important; }
  html.ff-on #header .header-display-desktop .header-nav-item:not(:last-child) { margin-right: 1.3vw !important; }
}

/* Projects dropdown (furthur.js projectsMenu) */
html.ff-on #header .ff-has-sub { position: relative; }
html.ff-on #header .ff-has-sub > a::after { content: " \25BE"; font-size: 0.7em; }
html.ff-on #header .ff-sub {
  position: absolute;
  top: 100%;
  left: -14px;
  z-index: 10;
  display: none;
  flex-direction: column;
  min-width: 280px;
  margin-top: 12px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid #222;
  box-shadow: 6px 6px 0 #222;
  text-align: left;
}
/* a bridge over the gap, so the pointer can travel down without it closing */
html.ff-on #header .ff-sub::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
html.ff-on #header .ff-has-sub:hover .ff-sub,
html.ff-on #header .ff-has-sub:focus-within .ff-sub { display: flex; }
html.ff-on #header .ff-sub a {
  display: block;
  padding: 7px 18px;
  font-size: 18px !important;
  line-height: 1.25;
  white-space: nowrap;
  text-align: left;
  background: none !important;
  box-shadow: none !important;
}
html.ff-on #header .ff-sub a::before { content: "\2605  "; color: #ff00c8; }
html.ff-on #header .ff-sub a[aria-current] { text-decoration: underline !important; }

/* buttons: plain outlined slips */
html.ff-on :is(.sqs-button-element--primary, .sqs-button-element--secondary, .kfh__btn, .sqs-block-button-element) {
  background: #f5f5f5 !important;
  color: #222 !important;
  border: 1px solid #222 !important;
  border-radius: 0 !important;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}
html.ff-on :is(.sqs-button-element--primary, .sqs-button-element--secondary, .kfh__btn, .sqs-block-button-element):hover {
  font-family: "FF Display", serif !important;
  background: #ffccf3 !important;
}

/* ---------- giving stays easy ----------
   The Support section and the donate pop-up sit on a solid floating tile,
   in a heavier weight, so the collage never washes out how to give. */
html.ff-on #support > .content-wrapper,
html.ff-on #kfp-donate .kfp-modal__card {
  background: #fff !important;
  border: 1px solid #222 !important;
  box-shadow: 8px 8px 0 #222 !important;
}
html.ff-on #support > .content-wrapper {
  position: relative;
  margin: 4vh 3vw !important;
  width: auto !important;
}
html.ff-on #kfp-donate { background: rgba(245, 245, 245, 0.6) !important; }
/* Compact: the whole Support card fits on one screen. The site's layout
   grid spaces the blocks on fixed rows and keeps a tall photo slot (the
   photo is hidden here), so the card gets its own flow instead: on a
   desktop the words on the left and the donation form on the right; on a
   phone one column. furthur.js keeps the site's order (style.order) and
   tags the form and photo blocks. */
html.ff-on #support.ff-compact .fluid-engine {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  grid-template-rows: none !important;
  grid-auto-rows: auto !important;
  grid-auto-flow: row dense;
  column-gap: 48px !important;
  row-gap: 0 !important;
  align-items: start;
  padding: 28px 36px 30px !important;
  height: auto !important;
}
html.ff-on #support.ff-compact .fe-block {
  grid-area: auto !important;
  grid-column: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 12px !important;
}
html.ff-on #support.ff-compact .fe-block > *,
html.ff-on #support.ff-compact .fe-block .sqs-block,
html.ff-on #support.ff-compact .fe-block .sqs-block-content { height: auto !important; min-height: 0 !important; }
html.ff-on #support.ff-compact .fe-block.ff-give-form { grid-column: 2 !important; grid-row: 1 / span 6 !important; margin: 0 !important; }
html.ff-on #support.ff-compact .fe-block.ff-hide { display: none !important; }
html.ff-on #support.ff-compact > .content-wrapper { padding: 0 !important; min-height: 0 !important; }
html.ff-on #support.ff-compact { min-height: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
html.ff-on #support.ff-compact p { font-size: 17px !important; line-height: 1.45 !important; margin: 0 0 8px !important; }
html.ff-on #support.ff-compact h4 { font-size: 21px !important; line-height: 1.25 !important; margin: 0 !important; }
html.ff-on #support.ff-compact form .sqs-donation-block-disclaimer-text { font-size: 13px !important; line-height: 1.4 !important; margin-top: 10px !important; }
@media (max-width: 767px) {
  html.ff-on #support.ff-compact .fluid-engine { grid-template-columns: minmax(0, 1fr) !important; padding: 20px 18px 22px !important; }
  html.ff-on #support.ff-compact .fe-block.ff-give-form { grid-column: 1 !important; grid-row: auto !important; }
  html.ff-on #support.ff-compact p { font-size: 14px !important; line-height: 1.4 !important; }
  html.ff-on #support.ff-compact h4 { font-size: 17px !important; }
  html.ff-on #support.ff-compact .fe-block { margin-bottom: 8px !important; }
  html.ff-on #support.ff-compact form :is(.radio-label, .sqs-cover-the-fees-description, select, option) { font-size: 14px !important; }
  html.ff-on #support.ff-compact form [class*="sqs-donation-block-total-amount"] { font-size: 15px !important; }
  html.ff-on #support.ff-compact form :is(.form-item, .field, fieldset, .react-form-contents > *) { margin-bottom: 8px !important; }
  html.ff-on #support.ff-compact form .sqs-donation-block-disclaimer-text { font-size: 12px !important; }
}
html.ff-on :is(#support, #kfp-donate) :is(p, h4, label, li, legend, select, option, input, .form-item, .donation-amount, [class*="frequency"], [class*="cover-the-fees"]) {
  color: #111 !important;
  font-weight: 500 !important;
}
/* inside the tile, plain text rather than tilted paper strips */
html.ff-on :is(#support, #kfp-donate) :is(p, h4, li, blockquote) {
  rotate: 0deg !important;
  background: none !important;
  padding: 0 !important;
}
html.ff-on :is(#support, #kfp-donate) :is(.sqs-button-element--primary, .form-submit-button) {
  background: #222 !important;
  color: #fff !important;
  border: 1px solid #222 !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
}
html.ff-on :is(#support, #kfp-donate) :is(.sqs-button-element--primary, .form-submit-button):hover {
  background: #ffccf3 !important;
  color: #222 !important;
}

/* ---------- footer ----------
   Its own solid white section, set apart from the collage, in plain type,
   with room at the bottom so the dock and marquee never sit on it. */
html.ff-on #siteWrapper footer.kf-footer {
  position: relative;
  z-index: 101;
  pointer-events: auto;
  background-color: #fff !important;
  border-top: 1px solid #222;
  padding-bottom: 96px;
}
/* tight, even bottom: the editor's saved bottom spacing (300px) and the
   site's base margins give way, leaving just room for the dock */
html.ff-on body .kf-footer[data-kf-space] .kf-footer__inner,
html.ff-on body .kf-footer .kf-footer__inner { padding-bottom: 8px !important; }
html.ff-on #siteWrapper .kf-footer .kf-footer__base { margin-top: 18px !important; padding-top: 12px !important; }
html.ff-on #siteWrapper .kf-footer :is(h1, h2, h3, h4, p, label, legend, li) {
  rotate: 0deg !important;
  background: none !important;
  padding: 0 !important;
}

/* the supporters' logos in the footer: tilted cut-outs that dance */
.ff-logos { margin: 26px 0 0; text-align: center; }
.ff-logos .kf-footer__label { margin: 0 auto 6px !important; }
.ff-logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 22px 38px;
  padding: 10px 0 4px;
}
.ff-logos-row img {
  height: 66px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  rotate: var(--ff-r, 0deg);
  filter: drop-shadow(2px 3px 0 rgba(0, 0, 0, 0.18));
  animation: ff-dance 1.4s steps(2) infinite;
}
.ff-logos-row > :nth-child(even) img, .ff-logos-row > img:nth-child(even) { animation-name: ff-dance-b; animation-duration: 1.1s; }
.ff-logos-row a { border: 0 !important; line-height: 0; }
.ff-logos-row img:hover { animation-duration: 0.35s; }
@keyframes ff-dance { 50% { translate: 0 -9px; rotate: calc(var(--ff-r, 0deg) + 7deg); } }
@keyframes ff-dance-b { 50% { translate: 0 6px; rotate: calc(var(--ff-r, 0deg) - 7deg); scale: 1.07; } }
@media (max-width: 640px) {
  .ff-logos-row { gap: 18px 24px; }
  .ff-logos-row img { height: 48px; max-width: 140px; }
}

/* ---------- the Living Archive film ----------
   Floats clear of the header, centred, with room around it. */
html.ff-on #page .kfh__stage { padding: 56px 4vw 18px !important; position: relative; z-index: 101; }
html.ff-on #page .kfh__film {
  width: min(84vw, 980px, calc((100svh - var(--kf-header-h, 80px) - 220px) * 16 / 9)) !important;
  min-width: min(300px, 84vw);
}
@media (max-width: 640px) {
  html.ff-on #page .kfh__stage { padding: 28px 14px 10px !important; }
  html.ff-on #page .kfh__film { width: calc(100vw - 28px) !important; }
}

/* ---------- collage pieces ---------- */
.ff-piece {
  position: fixed;
  left: 0;
  top: 0;
  display: block;
  height: auto;
  max-height: 48vh;
  object-fit: contain;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  pointer-events: auto;
  transform-origin: center;
  transition: opacity 0.6s ease, rotate 0.2s, left 0.5s ease-in-out, top 0.5s ease-in-out;
  rotate: var(--ff-rot, 0deg);
}
.ff-piece:hover { rotate: calc(var(--ff-rot, 0deg) - 5deg); }
.ff-piece.ff-dragging {
  cursor: grabbing;
  transition: rotate 0.2s, scale 0.15s;
  scale: 1.06;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.35));
}
.ff-piece.ff-snap { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25); }

/* scrolled (furthur.js): the cut-outs fade to 60% transparent, except one in hand */
.ff-piece, .ff-row, .ff-kaleido { transition: opacity 0.6s ease, rotate 0.2s, left 0.5s ease-in-out, top 0.5s ease-in-out; }
html.ff-scrolled :is(.ff-piece, .ff-row, .ff-kaleido) { opacity: 0.4; }
html.ff-scrolled .ff-piece.ff-dragging { opacity: 1; }

/* ---------- glitter cursor ---------- */
.ff-spark {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 2147483600;
  background: radial-gradient(circle, #fff 0 18%, #ffd34d 30%, #ff73ef 55%, transparent 70%);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  filter: drop-shadow(0 0 3px #ff73ef);
  animation: ff-spark var(--ff-d, 3s) cubic-bezier(0.2, 0.7, 0.3, 1) forwards;
}
@keyframes ff-spark {
  from { transform: translate(var(--x0), var(--y0)) scale(1) rotate(0deg); opacity: 1; }
  to   { transform: translate(var(--x1), var(--y1)) scale(0) rotate(180deg); opacity: 0; }
}

/* ---------- timeline arrows: chunky, obvious buttons ----------
   The desktop pair (.user-items-list-carousel__arrow-button) and the phone
   pair (.mobile-arrow-button) get the same treatment. */
html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button) {
  width: 66px !important;
  height: 66px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: #ffe600 !important;
  border: 3px solid #222 !important;
  border-radius: 0 !important;
  box-shadow: 6px 6px 0 #222 !important;
  cursor: pointer;
  opacity: 1 !important;
  rotate: -4deg;
  transition: translate 0.12s, box-shadow 0.12s, background 0.12s;
}
html.ff-on :is(.user-items-list-carousel__arrow-button--right, .mobile-arrow-button--right) { rotate: 4deg; }
html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button) .user-items-list-carousel__arrow-icon-background { display: none !important; }
html.ff-on :is(.user-items-list-carousel__arrow-icon, .mobile-arrow-icon) {
  width: 42px !important;
  height: auto !important;
  overflow: visible;
  animation: ff-nudge-l 1.1s ease-in-out infinite;
}
html.ff-on :is(.user-items-list-carousel__arrow-button--right, .mobile-arrow-button--right) :is(.user-items-list-carousel__arrow-icon, .mobile-arrow-icon) { animation-name: ff-nudge-r; }
html.ff-on :is(.user-items-list-carousel__arrow-icon, .mobile-arrow-icon) path {
  stroke: #222 !important;
  stroke-width: 4.5px !important;
  stroke-linecap: square;
  fill: none !important;
}
html.ff-on .mobile-arrow-icon path { stroke-width: 2.6px !important; }
html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button):hover { background: #ff73ef !important; translate: -2px -2px; box-shadow: 8px 8px 0 #222 !important; }
html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button):active { translate: 4px 4px; box-shadow: 2px 2px 0 #222 !important; }
html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button):focus-visible { outline: 3px solid #ff00c8; outline-offset: 4px; }
html.ff-on .mobile-arrows { gap: 22px; }
@keyframes ff-nudge-l { 50% { translate: -5px 0; } }
@keyframes ff-nudge-r { 50% { translate: 5px 0; } }
@media (max-width: 767px) {
  html.ff-on :is(.user-items-list-carousel__arrow-button, .mobile-arrow-button) { width: 54px !important; height: 54px !important; box-shadow: 4px 4px 0 #222 !important; }
  html.ff-on :is(.user-items-list-carousel__arrow-icon, .mobile-arrow-icon) { width: 32px !important; }
}

/* desktop: the header stays put instead of sliding away on scroll */
@media (min-width: 800px) and (pointer: fine) {
  html.ff-on header#header { transform: none !important; }
}

/* ---------- desktop scroll bar (furthur.js scrollBar) ---------- */
.ff-track {
  position: fixed;
  top: 0;
  right: 0;
  width: 16px;
  height: 100vh;
  z-index: 2147483550;
  opacity: 0;
  transition: opacity 0.35s;
}
.ff-track.ff-show, .ff-track:hover, .ff-track.ff-dragging { opacity: 1; }
.ff-thumb {
  position: absolute;
  top: 0;
  right: 4px;
  width: 8px;
  border-radius: 4px;
  background: #222;
  cursor: grab;
  transition: width 0.15s, right 0.15s;
}
.ff-track:hover .ff-thumb, .ff-dragging .ff-thumb { width: 11px; right: 3px; }
.ff-dragging .ff-thumb { cursor: grabbing; }

/* ---------- dock ---------- */
.ff-dock {
  position: fixed;
  left: 20px;
  bottom: 18px;
  z-index: 2147483500;
  display: flex;
  align-items: center;
  font: 18px/1 "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #222;
  background: rgba(245, 245, 245, 0.94);
  padding: 6px 4px;
  letter-spacing: 0.025em;
}
.ff-dock button {
  all: unset;
  cursor: pointer;
  padding: 0 10px;
  border-right: 1px solid #222;
  color: #222;
  min-width: 18px;
  text-align: center;
}
.ff-dock button:last-child { border-right: 0; }
.ff-dock button:hover, .ff-dock button[aria-pressed="true"] { font-family: "FF Display", serif; font-size: 21px; }
.ff-dock .ff-dock-name {
  padding: 0 10px;
  border-right: 1px solid #222;
  font-family: "FF Display", serif;
  font-size: 21px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* rainbow cycle mode (three quick clicks on MODE): a see-through layer over
   everything that turns the colours of whatever is under it round the
   wheel. A filter on the page itself would unpin the fixed header and dock. */
.ff-trip {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  -webkit-backdrop-filter: hue-rotate(0deg) saturate(1.6);
  backdrop-filter: hue-rotate(0deg) saturate(1.6);
  animation: ff-trip 3s linear infinite;
}
@keyframes ff-trip {
  25%  { -webkit-backdrop-filter: hue-rotate(90deg) saturate(1.6);  backdrop-filter: hue-rotate(90deg) saturate(1.6); }
  50%  { -webkit-backdrop-filter: hue-rotate(180deg) saturate(1.6); backdrop-filter: hue-rotate(180deg) saturate(1.6); }
  75%  { -webkit-backdrop-filter: hue-rotate(270deg) saturate(1.6); backdrop-filter: hue-rotate(270deg) saturate(1.6); }
  100% { -webkit-backdrop-filter: hue-rotate(360deg) saturate(1.6); backdrop-filter: hue-rotate(360deg) saturate(1.6); }
}

/* ---------- level 2: geocities ---------- */
.ff-l2 { display: none !important; }
html.ff-on[data-ff-level="2"] .ff-l2, html.ff-on[data-ff-level="3"] .ff-l2 { display: block !important; }

/* the main section headings (and History, which the site marks up one
   level down; furthur.js tags it .ff-title); subheadings stay as they are */
html.ff-on:is([data-ff-level="2"], [data-ff-level="3"]) #siteWrapper :is(h1, h3, .ff-title):not(.kf-footer *) {
  font-family: "FF Display", serif !important;
  background: linear-gradient(90deg, #ff0040, #ff9a00, #ffe600, #2bff00, #00d5ff, #3b2bff, #e100ff, #ff0040) 0 0 / 300% 100% !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-stroke: 1px #222;
  animation: ff-rainbow 2.4s steps(8) infinite;
  padding: 0 0.1em !important;
}
@keyframes ff-rainbow { to { background-position: 300% 0; } }

.ff-marquee {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 62px;
  z-index: 2147483400;
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
  font: 22px/1.4 "FF Display", serif;
  color: #222;
}
.ff-marquee > span {
  display: inline-block;
  padding-left: 100%;
  animation: ff-marq 40s linear infinite;
  background: rgba(245, 245, 245, 0.9);
}
@keyframes ff-marq { to { transform: translateX(-100%); } }

.ff-star {
  position: fixed;
  z-index: 50;
  width: 46px;
  height: 46px;
  pointer-events: none;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: conic-gradient(#ff0040, #ffe600, #2bff00, #00d5ff, #e100ff, #ff0040);
  animation: ff-spin 1.2s steps(10) infinite, ff-hue 1.8s steps(6) infinite;
}
@keyframes ff-spin { to { transform: rotateY(360deg); } }
@keyframes ff-hue { to { filter: hue-rotate(360deg); } }

.ff-tape {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  padding: 6px 26px;
  font: 700 15px/1 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.12em;
  color: #111;
  background: repeating-linear-gradient(-45deg, #ffd800 0 16px, #111 16px 32px);
  rotate: -14deg;
}
.ff-tape b {
  background: #ffd800;
  padding: 2px 8px;
  animation: ff-blink 1s steps(1) infinite;
}
@keyframes ff-blink { 50% { visibility: hidden; } }

.ff-new {
  position: absolute;
  right: -34px;
  top: -4px;
  z-index: 2;
  white-space: nowrap;
  padding: 3px 6px;
  font: 700 13px/1 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.04em;
  color: #ffe600 !important;
  background: #ff0040 !important;
  rotate: 12deg;
  animation: ff-blink 0.8s steps(1) infinite;
  pointer-events: none;
}

.ff-counter {
  position: fixed;
  right: 20px;
  bottom: 18px;
  z-index: 2147483500;
  font: 13px/1 "Courier New", monospace;
  color: #222;
  background: rgba(245, 245, 245, 0.94);
  padding: 6px 8px;
  pointer-events: none;
}
.ff-counter i {
  font-style: normal;
  display: inline-block;
  background: #111;
  color: #2bff00;
  padding: 3px 3px;
  margin-left: 1px;
  font-size: 15px;
}


/* ---------- level 3: lorna ---------- */
.ff-l3 { display: none !important; }
html.ff-on[data-ff-level="3"] .ff-l3 { display: block !important; }
html.ff-on[data-ff-level="3"] .ff-kaleido { display: grid !important; }

.ff-ground {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  animation: ff-ground 9s steps(1) infinite;
}
@keyframes ff-ground {
  0%   { background-color: #00ff3c; }
  16%  { background-color: #ff00c8; }
  33%  { background-color: #1c1cff; }
  50%  { background-color: #fff200; }
  66%  { background-color: #ff5a00; }
  83%  { background-color: #00e5ff; }
}

/* a parade: one figure repeated, staggered, mirrored, colour-shifted */
.ff-row {
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}
.ff-row-track {
  display: flex;
  width: max-content;
  animation: ff-march var(--ff-speed, 30s) linear infinite;
}
.ff-row.ff-rev .ff-row-track { animation-direction: reverse; }
@keyframes ff-march { to { transform: translateX(-50%); } }
.ff-row img {
  height: var(--ff-h, 16vh);
  width: auto;
  margin-right: var(--ff-gap, 1vw);
  animation: var(--ff-move, ff-bob) var(--ff-beat, 0.6s) steps(2) infinite;
  animation-delay: var(--ff-delay, 0s);
}
.ff-row img.ff-mirror { scale: -1 1; }
@keyframes ff-bob { 50% { translate: 0 -14%; } }
@keyframes ff-flip { 50% { rotate: 180deg; } }
@keyframes ff-wobble { 25% { rotate: -8deg; } 75% { rotate: 8deg; } }
@keyframes ff-pulse { 50% { scale: 1.18; } }

.ff-kaleido {
  position: fixed;
  z-index: 45;
  width: 26vw;
  height: 26vw;
  pointer-events: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  animation: ff-spinflat 6s steps(24) infinite;
}
.ff-kaleido img { width: 100%; height: 100%; object-fit: contain; }
.ff-kaleido img:nth-child(2) { scale: -1 1; }
.ff-kaleido img:nth-child(3) { scale: 1 -1; }
.ff-kaleido img:nth-child(4) { scale: -1 -1; }
@keyframes ff-spinflat { to { rotate: 360deg; } }

html.ff-on[data-ff-level="3"] .ff-piece:nth-of-type(3n) { mix-blend-mode: difference; }
html.ff-on[data-ff-level="3"] .ff-piece:nth-of-type(5n) { animation: ff-hue 2s steps(6) infinite; }

/* phones: the dock fills the bottom edge, so the counter rides above it */
@media (max-width: 640px) {
  .ff-dock { left: 8px; right: 8px; bottom: 10px; font-size: 15px; white-space: nowrap; justify-content: space-between; }
  .ff-dock button { padding: 0 7px; }
  .ff-dock .ff-dock-name { padding: 0 7px; font-size: 17px; }
  .ff-counter { right: 8px; bottom: 54px; }
  .ff-marquee { bottom: 88px; font-size: 18px; }
  .ff-tape { font-size: 12px; padding: 5px 18px; }
  .ff-kaleido { width: 44vw; height: 44vw; }
}

/* phones: sections flow top to bottom (furthur.js flowPhones) */
@media (max-width: 767px) {
  html.ff-on #page .fluid-engine.ff-flow {
    display: flex !important;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 24px !important;
  }
  html.ff-on #page .ff-flow > .fe-block {
    grid-area: auto !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 14px !important;
    position: relative !important;
  }
  html.ff-on #page .ff-flow > .fe-block[style*="--ff-h"] { height: var(--ff-h) !important; }
  html.ff-on #page .ff-flow > .fe-block.ff-hide { display: none !important; }
  html.ff-on #page .ff-flow > .fe-block:not([style*="--ff-h"]) :is(.sqs-block, .sqs-block-content) { height: auto !important; min-height: 0 !important; }
  html.ff-on #page .page-section:has(.ff-flow) { min-height: 0 !important; }
  html.ff-on #page .page-section:has(.ff-flow) > .content-wrapper { padding-top: 34px !important; padding-bottom: 20px !important; min-height: 0 !important; }
  /* the counter is decoration; on a phone the screen is for reading */
  html.ff-on[data-ff-level] .ff-counter.ff-l2 { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.ff-on *, html.ff-on *::before { animation: none !important; }
  .ff-spark { display: none; }
}

/* ---------- phones: the pixel burger ----------
   Same breakpoint as the site's own burger, which it replaces. The phone
   "Enter the Archive" link moves into the menu. */
.ff-burger, .ff-menu { display: none; }
@media only screen and (pointer: coarse) and (max-width: 1024px), screen and (max-width: 799px) {
  html.ff-on #header .header-burger,
  html.ff-on #header .header-display-mobile .kf-archive-link { display: none !important; }
  html.ff-on[data-ff-level] .ff-marquee.ff-l2 { display: none !important; }
  html.ff-on .ff-burger {
    all: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    flex: 0 0 52px;
    width: 52px;
    min-height: 48px;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  html.ff-on .ff-burger svg {
    width: 40px;
    height: auto;
    shape-rendering: crispEdges;
    image-rendering: pixelated;
    filter: drop-shadow(2px 2px 0 #222);
    animation: ff-wobble 1.6s steps(2) infinite;
  }
  html.ff-on .ff-burger:active svg { scale: 0.88; }
  html.ff-on .ff-burger span {
    font: 10px/1 "FF Pixel", "Courier New", monospace;
    letter-spacing: 0.08em;
    color: #222;
    background: rgba(245, 245, 245, 0.92);
    padding: 1px 3px;
  }
  /* the two lines of the name are separate strips; give them room */
  html.ff-on #header .header-display-mobile #site-title {
    line-height: 1.3 !important;
    box-shadow: 0.2em 0 0 rgba(245, 245, 245, 0.92), -0.2em 0 0 rgba(245, 245, 245, 0.92) !important;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
  }
}
/* a tap is not a hover: keep the name and nav steady on touchscreens */
@media (hover: none) {
  html.ff-on #header a:not(.kf-archive-link):hover { font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important; }
}

html.ff-on .ff-menu[open] {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  overflow-y: auto;
  padding: 20px 24px 60px;
  color: #222;
  background: #fff;
  border-top: 10px solid transparent;
  border-image: linear-gradient(90deg, #ff0040, #ff9a00, #ffe600, #2bff00, #00d5ff, #3b2bff, #e100ff) 1;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
html.ff-menu-open, html.ff-menu-open body { overflow: hidden !important; }
.ff-menu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ff-menu-title {
  font: 44px/1 "FF Display", serif;
  background: linear-gradient(90deg, #ff0040, #ff9a00, #ffe600, #2bff00, #00d5ff, #3b2bff, #e100ff, #ff0040) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: ff-rainbow 2.4s steps(8) infinite;
  -webkit-text-stroke: 1px #222;
}
.ff-menu button.ff-menu-close {
  all: unset;
  cursor: pointer;
  background: #c0c0c0;
  color: #000;
  border: 3px outset #eee;
  padding: 8px 12px;
  font: 700 15px/1 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.1em;
}
.ff-menu button.ff-menu-close:active { border-style: inset; }
.ff-menu h2 {
  margin: 30px 0 10px;
  font: 700 15px/1.2 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #222;
}
.ff-menu ul { list-style: none; margin: 0; padding: 0; }
.ff-menu li { margin: 0; }
.ff-menu li a {
  display: block;
  padding: 9px 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: #222;
  text-decoration: none;
  border-bottom: 1px dashed rgba(34, 34, 34, 0.3);
}
.ff-menu li a::before { content: "\2605  "; color: #ff00c8; }
.ff-menu li a:active { color: #e100ff; font-family: "FF Display", serif; }
.ff-menu button.ff-menu-plain {
  all: unset;
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 14px 0 0;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  background: #c0c0c0;
  color: #000;
  border: 3px outset #eee;
  font: 700 18px/1 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.1em;
}
.ff-menu button.ff-menu-plain:active { border-style: inset; }
.ff-menu a.ff-menu-give {
  display: block;
  margin: 34px 0 0;
  padding: 14px;
  text-align: center;
  background: #ffe600;
  color: #111;
  border: 3px outset #fff7a8;
  box-shadow: 0 0 0 1px #222;
  font: 700 22px/1 Impact, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.12em;
  text-decoration: none;
}


/* ---------- in Kate's editor ----------
   The collage is scenery only (furthur.js leaves the page alone there):
   every photo shows so it can be replaced, everything on the page stays
   clickable, and the cut-outs never catch a click. */
html.ff-on[data-kf-edit] :is(.fluid-image-container, .sqs-block-image, .user-items-list-carousel__media-container, .image-block-outer-wrapper, .sqs-image) {
  visibility: visible !important;
}
html.ff-on[data-kf-edit] #siteWrapper,
html.ff-on[data-kf-edit] #siteWrapper *,
html.ff-on[data-kf-edit] .kf-footer { pointer-events: auto !important; }
html.ff-on[data-kf-edit] .ff-piece { pointer-events: none !important; }
html.ff-on[data-kf-edit] #header .header-burger { display: flex !important; }


/* ---------- Plain Jane: black, not blue ----------
   The site's theme sets both its "black" and its accent to the same blue;
   on the plain site (no collage) both become near-black. */
html:not(.ff-on):not([data-kf-edit]) {
  --black-hsl: 0, 0%, 13%;
  --accent-hsl: 0, 0%, 13%;
  --safeLightAccent-hsl: 0, 0%, 13%;
  --safeDarkAccent-hsl: 0, 0%, 13%;
}
html:not(.ff-on):not([data-kf-edit]) .kf-footer { --kf-blue: #222; }

/* in the collage, the footer's email box and Sign Up button are black too */
html.ff-on .kf-footer__field {
  --black-hsl: 0, 0%, 13%;
  --accent-hsl: 0, 0%, 13%;
  --kf-blue: #222;
}
html.ff-on .kf-footer__field input { border-color: #222 !important; color: #222 !important; }
html.ff-on .kf-footer__field input::placeholder { color: #222 !important; opacity: 0.55; }
html.ff-on .kf-footer__field button { background: #222 !important; border-color: #222 !important; color: #fff !important; }

/* Plain Jane: no Enter the Archive button in the header */
html:not(.ff-on):not([data-kf-edit]) #header .kf-archive-link { display: none !important; }
