/*
  jessewilson.us
  One continuous sky. No borders, no rules, no bands, no hard edges.
  data-tone on a section names its TEXT colour: "light" text or "dark" text.
  When Jesse's real signature replaces assets/img/jesse-signature.svg,
  bump the ?v= on its url() below (images are cached for a year).
*/

/* ------------------------------------------------------------ base */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--sky-0-top);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem);
  line-height: 1.65;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  margin: 0;
}

p { margin: 0; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }

[data-tone="light"] { color: var(--text-on-dark); }
[data-tone="dark"] { color: var(--text-on-light); }

main:focus { outline: none; }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 10px;
}

/* Inline links: a soft wave instead of a flat underline */
.soft-link {
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
  text-decoration-color: currentColor;
  text-decoration-skip-ink: auto;
}

.ext-mark {
  display: inline-block;
  width: .62em;
  height: .62em;
  margin-left: .22em;
  vertical-align: .32em;
  opacity: .7;
}
.menu__link .ext-mark {
  position: relative;
  top: -.62em;
  width: .24em;
  height: .24em;
  margin-left: .08em;
  vertical-align: baseline;
}

.skip-link {
  position: fixed;
  z-index: 90;
  left: calc(env(safe-area-inset-left, 0px) + 12px);
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding: .7rem 1.15rem;
  border-radius: var(--radius-small);
  background: var(--paper);
  color: var(--ink);
  font-size: .95rem;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 300ms var(--ease-soft);
}
.skip-link:focus { transform: none; }

/* ------------------------------------------------------------ the sky */

/* No JavaScript: one static gradient laid down the whole page, with stops
   placed so each section sits on the tone its text was checked against. */
.sky {
  position: absolute;
  z-index: -2;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(180deg,
    var(--sky-0-top) 0,
    var(--sky-0-bottom) 100vh,
    var(--sky-1-top) 125vh,
    var(--sky-1-bottom) 200vh,
    var(--sky-2-bottom) calc(100% - 160vh),
    var(--sky-3-bottom) calc(100% - 110vh),
    var(--sky-4-top) calc(100% - 75vh),
    var(--sky-4-bottom) 100%);
}
.sky__layer, .sky__mist { display: none; }

/* JavaScript: a fixed sky, five states cross-faded by sky.js */
.js .sky {
  position: fixed;
  inset: 0;
  height: auto;
  background: var(--sky-0-top);
}
.js .sky__layer {
  display: block;
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, var(--top) 0%, var(--bottom) 100%);
  will-change: opacity;
}
.js .sky__layer--0 { opacity: 1; }
.sky__layer--0 { --top: var(--sky-0-top); --bottom: var(--sky-0-bottom); }
.sky__layer--1 { --top: var(--sky-1-top); --bottom: var(--sky-1-bottom); }
.sky__layer--2 { --top: var(--sky-2-top); --bottom: var(--sky-2-bottom); }
.sky__layer--3 { --top: var(--sky-3-top); --bottom: var(--sky-3-bottom); }
.js .sky__layer--4 {
  --top: var(--sky-4-top);
  --bottom: var(--sky-4-bottom);
  background:
    radial-gradient(75% 42% at 50% 74%, rgb(var(--ember-glow) / .34), rgb(var(--ember-glow) / 0) 72%),
    linear-gradient(180deg, var(--top) 0%, var(--bottom) 100%);
}
.js .sky__mist {
  display: block;
  position: absolute;
  inset: -12%;
  background:
    radial-gradient(42% 11% at 28% 62%, rgb(243 237 227 / .09), transparent 70%),
    radial-gradient(36% 9% at 74% 72%, rgb(243 237 227 / .07), transparent 70%);
  filter: blur(8px);
  transform: translate3d(calc(var(--p, 0) * -5%), calc(var(--p, 0) * -9vh), 0);
}

/* ------------------------------------------------------------ the veil beneath the signature */
/* Once the page has moved, what passes up under the JW blurs away by degrees, a little more the higher it goes (as the
   headings soften on their way in from the foot), so words and the signature never sit on top of each other, and there
   is no band with an edge. Three layers, each blurring a little more over a shorter reach from the top. At rest, at
   the very top, it isn't there at all. (Each layer fades in on its own: a fading parent would leave them nothing to blur.) */
.top-veil {
  position: fixed;
  z-index: 55;
  inset: 0 0 auto 0;
  height: calc(env(safe-area-inset-top, 0px) + clamp(120px, 13vw, 176px));
  pointer-events: none;
}
.top-veil span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 500ms var(--ease-soft, ease);
}
.top-veil span:nth-child(1) {
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgb(0 0 0 / .6) 58%, rgb(0 0 0 / .22) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 30%, rgb(0 0 0 / .6) 58%, rgb(0 0 0 / .22) 80%, transparent 100%);
}
.top-veil span:nth-child(2) {
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 18%, rgb(0 0 0 / .5) 42%, rgb(0 0 0 / .15) 60%, transparent 74%);
  mask-image: linear-gradient(180deg, #000 0%, #000 18%, rgb(0 0 0 / .5) 42%, rgb(0 0 0 / .15) 60%, transparent 74%);
}
.top-veil span:nth-child(3) {
  -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 8%, rgb(0 0 0 / .45) 26%, rgb(0 0 0 / .1) 40%, transparent 50%);
  mask-image: linear-gradient(180deg, #000 0%, #000 8%, rgb(0 0 0 / .45) 26%, rgb(0 0 0 / .1) 40%, transparent 50%);
}
.is-scrolled .top-veil span { opacity: 1; }
@media print { .top-veil { display: none; } }

/* ------------------------------------------------------------ signature (the menu button) */

.signature {
  position: fixed;
  z-index: 70;
  top: calc(env(safe-area-inset-top, 0px) + clamp(10px, 2.4vw, 22px));
  right: calc(env(safe-area-inset-right, 0px) + clamp(12px, 2.6vw, 28px));
  display: block;
  width: clamp(96px, 9vw, 124px);
  aspect-ratio: 12 / 5;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--chrome-ink);
  opacity: .78;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 600ms var(--ease-soft), color 900ms var(--ease-soft);
}
.signature__mark {
  position: absolute;
  inset: 8% 6%;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/jesse-signature.svg?v=2") center / contain no-repeat;
  mask: url("/assets/img/jesse-signature.svg?v=2") center / contain no-repeat;
  transform-origin: 50% 60%;
}
/* Light ink over bright footage (the hero mist): a soft local halo, not a box */
.signature {
  filter: drop-shadow(0 0 5px rgb(16 21 27 / .55)) drop-shadow(0 0 14px rgb(16 21 27 / .3));
  transition: opacity 600ms var(--ease-soft), color 900ms var(--ease-soft), filter 900ms var(--ease-soft);
}
:root[data-chrome-ink="dark"] .signature,
.is-menu-open .signature { filter: none; }
.signature::before,
.signature::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 86px;
  height: 86px;
  margin: -43px 0 0 -43px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  box-shadow: 0 0 0 1px currentColor, 0 0 28px 0 currentColor;
}
.signature::after {
  transform: scale(.55);
  transition: transform 1000ms var(--ease-soft), opacity 700ms var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .signature:hover { opacity: 1; color: var(--chrome-warm); }
  .signature:hover::after { opacity: .22; transform: scale(1.22); }
}
.signature:focus-visible { opacity: 1; }

.signature.is-rippling::before { animation: sig-ripple 2600ms var(--ease-soft) 1; }
.signature.is-rippling .signature__mark { animation: sig-wave 2600ms var(--ease-water) 1; }
@keyframes sig-ripple {
  0% { opacity: 0; transform: scale(.4); }
  22% { opacity: .32; }
  100% { opacity: 0; transform: scale(2.4); }
}
@keyframes sig-wave {
  0%, 100% { transform: none; }
  30% { transform: skewX(-5deg) scaleY(1.04); }
  55% { transform: skewX(3deg) scaleY(.985); }
  78% { transform: skewX(-1deg); }
}

.is-menu-open .signature { opacity: 1; color: var(--menu-ink, var(--paper)); }

/* No JavaScript: the signature is a link down to the menu list */
.signature--static { text-decoration: none; }
.js .signature--static { display: none; }

/* ------------------------------------------------------------ menu */

/* No JavaScript: a quiet list near the end of the page */
.menu {
  padding: 16vh var(--gutter) 14vh;
  color: var(--ink);
  text-align: center;
}
.menu__nav { width: 100%; max-width: 46rem; margin: 0 auto; }
.menu__primary, .menu__secondary { list-style: none; margin: 0; padding: 0; }
.menu__link {
  display: inline-block;
  padding: .02em .25em;
  border-radius: 18px;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(2.5rem, 1.45rem + 5.2vw, 5.6rem);
  line-height: 1.1;
  letter-spacing: -.01em;
  color: inherit;
  text-decoration: none;
}
.menu__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .25rem 1.4rem;
  margin-top: clamp(2.25rem, 7vh, 4.5rem);
  font-size: 1.0625rem;
  letter-spacing: .02em;
}
.menu__secondary a {
  display: inline-block;
  padding: .6rem .55rem;
  border-radius: 12px;
  color: inherit;
  text-decoration: none;
}

/* JavaScript: full-screen overlay revealed from the signature */
.js .menu {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(env(safe-area-inset-top, 0px) + 13vh) var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 8vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  visibility: hidden;
  background-color: rgb(var(--tint, 38 49 59) / .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
  backdrop-filter: blur(20px) saturate(1.12);
  clip-path: circle(0px at var(--mx, calc(100% - 64px)) var(--my, 44px));
  transition: clip-path 1000ms var(--ease-water), visibility 0s linear 1000ms;
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .js .menu { background-color: rgb(var(--tint, 38 49 59) / .96); }
}
.js .menu.is-open {
  visibility: visible;
  clip-path: circle(var(--r, 160vmax) at var(--mx, calc(100% - 64px)) var(--my, 44px));
  transition: clip-path 1000ms var(--ease-water), visibility 0s;
}
.js .menu .menu__nav { margin: auto; }
.menu[data-tone="light"] { color: var(--paper); }
.menu[data-tone="dark"] { color: var(--ink); }

.js .menu .menu__link,
.js .menu .menu__secondary a {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(.18em);
  transition:
    opacity 350ms var(--ease-soft),
    filter 350ms var(--ease-soft),
    transform 350ms var(--ease-soft);
}
.js .menu.is-open .menu__link,
.js .menu.is-open .menu__secondary a {
  opacity: 1;
  filter: blur(0);
  transform: none;
  transition:
    opacity 900ms var(--ease-soft),
    filter 1100ms var(--ease-soft),
    transform 1100ms var(--ease-soft);
  transition-delay: calc(240ms + var(--i, 0) * 90ms);
}
.js .menu.is-open.is-settled .menu__link,
.js .menu.is-open.is-settled .menu__secondary a {
  transition-delay: 0s;
  transition-duration: 500ms;
}
@media (hover: hover) and (pointer: fine) {
  .js .menu.is-open.is-settled .menu__primary:hover .menu__link:not(:hover) { opacity: .64; }
  .js .menu.is-open.is-settled .menu__link:hover { filter: blur(0); transform: translateY(-.03em); }
}

html.is-menu-open,
html.is-menu-open body { overflow: hidden; }
html.is-menu-open body { padding-right: var(--sbw, 0px); }

/* ------------------------------------------------------------ hero */

.hero {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 16vh var(--gutter) 14vh;
  isolation: isolate;
}
.hero__frame {
  position: absolute;
  z-index: -2;
  inset: 0 0 -8vh 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgb(0 0 0 / .55) 80%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgb(0 0 0 / .55) 80%, transparent 100%);
}
/* The camera always moves, even over the fallback gradient. */
.hero__media {
  position: absolute;
  inset: -5%;
  background:
    radial-gradient(120% 60% at 50% 96%, rgb(215 184 148 / .26), transparent 62%),
    radial-gradient(80% 45% at 28% 38%, rgb(147 166 177 / .20), transparent 70%),
    linear-gradient(180deg, var(--sky-0-top) 0%, #34444f 56%, var(--sky-0-bottom) 100%);
  animation: camera-drift 46s var(--ease-water) infinite alternate;
  will-change: transform;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 14% at 36% 70%, rgb(243 237 227 / .14), transparent 72%),
    radial-gradient(45% 11% at 70% 78%, rgb(243 237 227 / .10), transparent 72%);
  filter: blur(10px);
  animation: mist-drift 70s linear infinite alternate;
  pointer-events: none;
}
@keyframes camera-drift {
  from { transform: scale(1.04) translate3d(-1%, .6%, 0); }
  to { transform: scale(1.1) translate3d(1.2%, -1.3%, 0); }
}
@keyframes mist-drift {
  from { transform: translate3d(-6%, 0, 0); }
  to { transform: translate3d(6%, -2%, 0); }
}
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0;
  transition: opacity 2600ms var(--ease-soft);
}
.hero__media.is-playing .hero__video,
.hero__video[poster] { opacity: 1; }

.hero__scrim {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(72% 48% at 50% 52%, rgb(16 21 27 / .52), rgb(16 21 27 / 0) 76%);
}
.hero__title {
  max-width: 15ch;
  font-size: clamp(2.3rem, 1.25rem + 4.7vw, 5.4rem);
  line-height: 1.07;
  letter-spacing: -.012em;
  text-align: center;
  text-wrap: balance;
  color: var(--paper);
  text-shadow: 0 1px 28px rgb(16 21 27 / .4);
}
.hero__title span { display: block; font-style: italic; }
.js .hero__title { animation: arrive 2200ms var(--ease-soft) 350ms both; }
@keyframes arrive {
  from { opacity: 0; filter: blur(14px); transform: translateY(10px); }
  to { opacity: 1; filter: blur(0); transform: none; }
}

/* ------------------------------------------------------------ reveal (shared) */

.js [data-reveal] {
  opacity: 0;
  filter: blur(12px);
  transform: translate3d(0, 14px, 0);
  transition:
    opacity 1200ms var(--ease-soft) var(--reveal-delay, 0ms),
    filter 1300ms var(--ease-soft) var(--reveal-delay, 0ms),
    transform 1400ms var(--ease-soft) var(--reveal-delay, 0ms);
}
.js [data-reveal].is-revealed { opacity: 1; filter: blur(0); transform: none; }

/* ------------------------------------------------------------ recognition */

.recognition { padding: 26vh var(--gutter) 30vh; }
.recognition__list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 58rem;
}
.recognition__item { margin: 0 0 clamp(5rem, 22vh, 13rem); }
.recognition__item:last-child { margin-bottom: 0; }
.recognition__item:nth-child(even) { padding-left: clamp(0rem, 9vw, 9rem); }

.recognition__line {
  display: block;
  max-width: 22ch;
  margin: 0;
  padding: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(1.65rem, 1.05rem + 2.4vw, 2.9rem);
  line-height: 1.22;
  letter-spacing: -.005em;
  text-wrap: pretty;
  color: inherit;
}
button.recognition__line {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: 12px;
  background: none;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.recognition__hint {
  display: inline-block;
  position: relative;
  width: .36em;
  height: .36em;
  margin-left: .32em;
  vertical-align: .12em;
  border-radius: 50%;
  box-shadow: 0 0 0 1px currentColor;
  opacity: .55;
  transition: transform 900ms var(--ease-soft), opacity 700ms var(--ease-soft);
}
@media (hover: hover) and (pointer: fine) {
  .has-unfold:hover .recognition__hint { opacity: .9; transform: scale(1.5); }
}
.has-unfold.is-open .recognition__hint { opacity: .9; transform: scale(1.8); box-shadow: 0 0 0 1px currentColor, 0 0 12px currentColor; }

/* The unfold panel grows open; its content arrives out of blur */
.unfold { display: grid; grid-template-rows: 1fr; }
.js .unfold {
  grid-template-rows: 0fr;
  transition: grid-template-rows 1000ms var(--ease-soft);
}
.js .unfold.is-open { grid-template-rows: 1fr; }
.unfold__inner { position: relative; min-height: 0; overflow: hidden; }
.js .unfold__inner { visibility: hidden; transition: visibility 0s linear 1000ms; }
.js .unfold.is-open .unfold__inner { visibility: visible; transition-delay: 0s; }

.unfold__content {
  position: relative;
  max-width: 34rem;
  padding: 1.75rem 0 .5rem;
}
.js .unfold__content {
  opacity: 0;
  filter: blur(8px);
  transition: opacity 700ms var(--ease-soft), filter 700ms var(--ease-soft);
}
.js .unfold.is-open .unfold__content {
  opacity: 1;
  filter: blur(0);
  transition-duration: 1100ms;
  transition-delay: 200ms;
}
.unfold__body {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.12rem, 1rem + .5vw, 1.35rem);
  line-height: 1.6;
}
.unfold__body p + p { margin-top: 1em; }
.unfold__source {
  margin-top: 1.1rem;
  font-size: .875rem;
  letter-spacing: .02em;
}
.unfold__hand {
  position: absolute;
  z-index: 0;
  top: 0;
  right: 0;
  width: min(85%, 28rem);
  height: auto;
  opacity: .12;
  filter: blur(1.2px);
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
}

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

.site-footer {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 85vh;
  min-height: 85svh;
  padding: 20vh var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 2.25rem);
  text-align: center;
}
.site-footer__sig {
  display: block;
  width: 112px;
  aspect-ratio: 12 / 5;
  margin: 0 auto .85rem;
  background-color: currentColor;
  -webkit-mask: url("/assets/img/jesse-signature.svg?v=2") center / contain no-repeat;
  mask: url("/assets/img/jesse-signature.svg?v=2") center / contain no-repeat;
}
.site-footer__role {
  margin-bottom: clamp(3.5rem, 11vh, 6.5rem);
  font-size: .9375rem;
  letter-spacing: .03em;
}
.site-footer__closing {
  max-width: 22ch;
  margin: 0 auto clamp(4.5rem, 15vh, 8.5rem);
  font-family: var(--font-display);
  font-weight: var(--weight-display);
  font-size: clamp(1.6rem, 1.1rem + 1.9vw, 2.6rem);
  line-height: 1.25;
  text-wrap: balance;
}
/* staying in touch: one quiet line, then name and email side by side on one underline, a hairline between them and
   the arrow at the end (on a phone, the name on its own line above) */
.site-footer__keep {
  width: min(100%, 31rem);
  margin: 0 auto clamp(2.5rem, 7vh, 4rem);
  text-align: center;
}
.site-footer__keep .iv-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site-footer__keep-ask {
  display: block;
  margin: 0 auto .9rem;
  max-width: 30ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.4;
  text-wrap: balance;
  opacity: .86;
}
.site-footer__keep-line {
  display: flex;
  align-items: center;
  border-bottom: 1px solid color-mix(in srgb, currentColor 38%, transparent);
  transition: border-color 500ms var(--ease-soft);
}
.site-footer__keep-line:focus-within { border-bottom-color: currentColor; }
.site-footer__keep-line input {
  flex: 1;
  min-width: 0;
  padding: .55rem .5rem .5rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-family: var(--font-body);
  font-size: 1rem;   /* 16px: phones don't zoom in on it */
  letter-spacing: .01em;
  text-align: center;
}
.site-footer__keep-line input::placeholder { color: inherit; opacity: .5; }
.site-footer__keep-line input + input { border-left: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.site-footer__keep-line input:first-child { padding-left: 2.5rem; }   /* balances the arrow at the other end */
@media (max-width: 520px) {
  .site-footer__keep-line { flex-wrap: wrap; }
  .site-footer__keep-line input:first-child { flex-basis: 100%; padding-left: .5rem; border-bottom: 1px solid color-mix(in srgb, currentColor 38%, transparent); margin-bottom: .35rem; }
  .site-footer__keep-line input + input { border-left: 0; padding-left: 2.5rem; }
}
.site-footer__keep-line input:focus { outline: none; }
.site-footer__keep-line input:focus::placeholder { opacity: .3; }
.site-footer__keep-line button {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: .7;
  transition: opacity 400ms var(--ease-soft), translate 500ms var(--ease-soft);
}
.site-footer__keep-line button svg { width: 22px; height: 11px; }
.site-footer__keep-line button:hover,
.site-footer__keep-line button:focus-visible { opacity: 1; translate: 3px 0; }
.site-footer__keep-line button:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; }
.site-footer__keep.is-sending .site-footer__keep-line { opacity: .5; }
.site-footer__keep-thanks {
  margin: .9rem 0 0;
  font-family: var(--font-display);
  font-size: 1.0625rem;
}
.site-footer__keep.is-sent .site-footer__keep-line,
.site-footer__keep.is-sent .site-footer__keep-ask { display: none; }
.js .site-footer__keep.is-sent .site-footer__keep-thanks { margin: 0; animation: keep-in 1200ms var(--ease-soft) both; }
@keyframes keep-in { from { opacity: 0; filter: blur(6px); } }
.wx-page .site-footer__keep { order: 4; }   /* the writing pages order their footer: after the links, before the small print */
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .3rem 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: .8125rem;
  letter-spacing: .02em;
}
.site-footer__legal a {
  display: inline-block;
  padding: .55rem .2rem;
  text-decoration: none;
}
.site-footer__legal a:hover { text-decoration: underline wavy 1px; text-underline-offset: .3em; }

/* ------------------------------------------------------------ the end of every page (footer-end.js) */

/* keep scrolling at the very bottom: the closing words give a little and settle back, and the JW monogram swells
   softly, a glow rolling out from it, to say the menu is there (as on the homepage) */
.site-footer__closing.is-nudge { animation: footer-nudge 1000ms cubic-bezier(.3, .7, .3, 1); }
@keyframes footer-nudge { 0%, 100% { translate: 0 0; } 32% { translate: 0 -7px; } 66% { translate: 0 2px; } }
.signature.is-beckon { animation: jw-beckon 2400ms ease-in-out; }
@keyframes jw-beckon {
  0%, 100% { opacity: .78; scale: 1; }
  22%, 66% { opacity: 1; scale: 1.08; }
  44% { opacity: .82; scale: 1; }
}
/* the glow rolling out (read.css draws it as a soft drop of light on the pages that load it) */
.signature.is-rippling::before { animation: sig-glow 2600ms var(--ease-soft) 1; }
@keyframes sig-glow {
  0% { opacity: 0; transform: scale(.7); }
  22% { opacity: .9; }
  58% { opacity: .4; }
  100% { opacity: 0; transform: scale(4); }
}

/* resting at the footer: a thin chevron at the top of the screen, breathing upward; it glides back to the top */
.foot-up {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + clamp(20px, 3.4vw, 40px) + clamp(4px, .7vw, 10px));
  z-index: 6;
  width: 48px;
  height: 36px;
  margin-left: -24px;
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--paper);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  filter: drop-shadow(0 1px 8px rgb(16 21 27 / .55));
  transition: opacity 700ms var(--ease-soft), visibility 0s linear 700ms;
}
.foot-up.is-shown { opacity: 1; visibility: visible; transition: opacity 2000ms var(--ease-soft), visibility 0s; }
.is-menu-open .foot-up { opacity: 0 !important; visibility: hidden !important; }
.foot-up svg { display: block; width: 100%; height: 100%; opacity: .6; }
.foot-up.is-shown svg { animation: foot-up-breathe 3400ms ease-in-out infinite; }
@keyframes foot-up-breathe {
  0%, 100% { opacity: .4; transform: translateY(2px); }
  50% { opacity: .95; transform: translateY(-4px); }
}
.foot-up:focus-visible { outline: 1px solid currentColor; outline-offset: 4px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .site-footer__closing.is-nudge, .signature.is-beckon, .signature.is-rippling::before { animation: none; }
  .foot-up.is-shown svg { animation: none; opacity: .8; }
}

/* ------------------------------------------------------------ reduced motion */

@media (prefers-reduced-motion: reduce) {
  .hero__media,
  .hero__media::after,
  .js .hero__title { animation: none; }
  .hero__video:not([poster]) { display: none; }
  .js .sky__mist { transform: none; }

  .js [data-reveal] {
    filter: none;
    transform: none;
    transition: opacity 150ms linear;
  }
  .js .unfold { transition: none; }
  .js .unfold__inner { transition: none; }
  .js .unfold__content,
  .js .unfold.is-open .unfold__content { filter: none; transition: opacity 150ms linear; transition-delay: 0s; }
  .recognition__hint { transition: none; }

  .signature,
  .signature::after { transition: opacity 150ms linear; }
  .signature.is-rippling::before,
  .signature.is-rippling .signature__mark { animation: none; }
  @media (hover: hover) and (pointer: fine) {
    .signature:hover::after { transform: scale(.55); opacity: 0; }
  }

  /* Menu: a plain 150ms crossfade instead of ripple, clip-path and blur */
  .js .menu,
  .js .menu.is-open {
    clip-path: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-color: rgb(var(--tint, 38 49 59) / .97);
  }
  .js .menu { opacity: 0; transition: opacity 150ms linear, visibility 0s linear 150ms; }
  .js .menu.is-open { opacity: 1; transition: opacity 150ms linear, visibility 0s; }
  .js .menu .menu__link,
  .js .menu .menu__secondary a,
  .js .menu.is-open .menu__link,
  .js .menu.is-open .menu__secondary a {
    filter: none;
    transform: none;
    opacity: 1;
    transition: none;
  }
}

/* the menu takes the colour of the screen it opens over, as a translucent wash (set by menu.js); the screen shows through,
   softly blurred, and the words take dark or light ink to suit */
.js .menu.is-washed, .js .menu.is-washed[data-tone] {
  background: linear-gradient(180deg, rgb(var(--wash) / .66) 0%, rgb(var(--wash) / .74) 45%, rgb(var(--wash-deep) / .84) 100%) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.15); backdrop-filter: blur(22px) saturate(1.15);
}
.js .menu.is-washed[data-tone="dark"] { color: var(--ink); }
.js .menu.is-washed[data-tone="light"] { color: var(--paper); }

/* ------------------------------------------------------------ the JW on phones: top right, where it keeps clear of the
   words as the page scrolls beneath it (on wider screens it stays top left) */
@media (max-width: 700px) {
  html body .signature { left: auto; right: calc(env(safe-area-inset-right, 0px) + clamp(16px, 4.5vw, 24px)); }
}
/* with the JW at the top right on phones, the light / dark toggle on the writing pages takes the top left */
@media (max-width: 700px) {
  html body .wx-theme { right: auto; left: calc(env(safe-area-inset-left, 0px) + clamp(14px, 4vw, 22px)); }
}
/* on wider screens, the line asking to keep in touch can run on one line, wider than the field beneath it */
@media (min-width: 760px) { .site-footer__keep-ask { max-width: none; margin-left: -6rem; margin-right: -6rem; } }
/* link cards (link-cards.js; the Questions page, the writings): as on About, a small card in the margin beside a link,
   waiting until the link is rested on; a page's small picture, or a writing's polaroid */
.lc { display: none; }
@media (min-width: 1240px) and (hover: hover) {
  .lc-host { position: relative; }
  .lc { position: absolute; z-index: 2; top: var(--card-y, 0); left: calc(100% + clamp(2rem, 3.5vw, 4rem)); display: flex; flex-direction: column; box-sizing: border-box;
    width: clamp(9rem, 11vw, 10.5rem); aspect-ratio: .86; padding: .5rem .5rem 0; border-radius: 3px; background: #f8f4ec; color: rgb(31 36 42 / .78); text-decoration: none !important;
    box-shadow: 0 18px 36px -18px rgb(31 36 42 / .5), 0 1px 3px rgb(31 36 42 / .12); --tilt: 1.6deg;
    opacity: 0; filter: blur(14px); rotate: -1deg; pointer-events: none; font-style: normal;
    transition: opacity 1000ms var(--ease-soft), filter 1200ms var(--ease-soft), rotate 1400ms var(--ease-soft), scale 900ms var(--ease-soft), top 900ms var(--ease-soft); }
  .lc.is-shown { opacity: 1; filter: none; rotate: var(--tilt); pointer-events: auto; }
  .lc.is-shown:hover { rotate: 0deg; scale: 1.04; }
  .lc img { display: block; flex: 1 1 0; min-height: 0; width: 100%; height: auto; object-fit: cover; object-position: var(--pos, 50% 55%); border-radius: 1px; }
  .lc__t { display: flex; align-items: center; justify-content: center; flex: 0 0 1.9rem; padding-top: .1rem; text-align: center; font-family: var(--font-display); font-size: .95rem; line-height: 1.2; letter-spacing: 0; text-transform: none; }
  .lc:hover .lc__t { color: rgb(31 36 42); }
  .lc--shot { width: clamp(8.5rem, 9.5vw, 9.75rem); aspect-ratio: auto; padding: .25rem .25rem 0; border-radius: 5px; --tilt: 0deg; }
  .lc--shot img { flex: none; aspect-ratio: 16 / 10; object-position: 50% 50%; border-radius: 3px; }
  .lc--shot .lc__t { flex-basis: 1.6rem; font-family: var(--font-body); font-size: .74rem; letter-spacing: .02em; }
  .lc.is-nudged { animation: lc-sway 1500ms cubic-bezier(.45, 0, .25, 1); }
}
@keyframes lc-sway { 0%, 100% { transform: none; } 28% { transform: translateY(-3px) rotate(-1.4deg); } 60% { transform: translateY(-1px) rotate(.8deg); } 84% { transform: rotate(-.2deg); } }
@media (prefers-reduced-motion: reduce) { .lc { transition: opacity 300ms linear; filter: none; } .lc.is-nudged { animation: none; } }
/* every underlined link, unless it says otherwise: the quiet underline used across the site (a hairline, a little below
   the words, softened; full strength under the mouse). Just enough to win over Bootstrap's own, so any link styled on
   purpose still wins */
a { text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); transition: text-decoration-color 400ms ease; }
a:hover, a:focus-visible { text-decoration-color: currentColor; }
