/* home/footer.css: the AXON band and the site footer, on every page. Owned by footer.
   Self contained: most pages load only global.css before it (no home/base.css), so the curves, the
   spring and the button are defined here, falling back to base's tokens where base is present.
   Every rule is scoped to .h-footer-band or .hp-footer.

   The band's one job is the last ask, made calm: the name, one line about it, one field. The drawing
   is the cell AXON is named after, a neuron: its cell body by the name, a myelinated axon across the
   band, its terminal on the field (built by home/footer.js to fit the layout). What you type is its
   stimulus. The footer's one job is the way around the site: page links that answer the pointer,
   platforms shown by their own marks, which take their own colours when pointed at. */

/* -- 0. TOKENS ------------------------------------------------------------------------------ */
.h-footer-band,
.hp-footer {
  --h-footer-ease: var(--h-ease, cubic-bezier(0.28, 0.11, 0.32, 1));
  --h-footer-ease-out: var(--h-ease-out, cubic-bezier(0, 0, 0.5, 1));
  --h-footer-ease-std: var(--h-ease-std, cubic-bezier(0.4, 0, 0.6, 1));
  --h-footer-ease-sheet: var(--h-ease-sheet, cubic-bezier(0.32, 0.72, 0, 1));
  --h-footer-spring: cubic-bezier(0.34, 1.3, 0.64, 1);
  --h-footer-spring-dur: 500ms;
  --h-footer-t: 320ms;
  --h-footer-quick: 200ms;
  --h-footer-press: 120ms;
  --h-footer-ink: rgba(255, 255, 255, 0.64);      /* links and marks at rest on the navy */
}
@supports (transition-timing-function: linear(0, 1)) {
  .h-footer-band,
  .hp-footer {
    /* SwiftUI .snappy, the same spring base.css uses: 0.6 percent overshoot. */
    --h-footer-spring: linear(0, 0.006 1.2%, 0.014 2%, 0.025 2.8%, 0.056 4.2%, 0.095 5.8%, 0.141 7.2%, 0.19 8.8%, 0.411 15%, 0.512 18%, 0.567 19.8%, 0.61 21.2%, 0.658 23%, 0.696 24.5%, 0.763 27.5%, 0.793 29%, 0.823 30.8%, 0.872 34%, 0.912 37.5%, 0.945 41.2%, 0.97 45.5%, 0.988 50.2%, 1 55.8%, 1.005 61%, 1.006 67.8%, 1);
    --h-footer-spring-dur: 560ms;
  }
}

/* -- 1. THE AXON BAND ----------------------------------------------------------------------- */
.footer-guide.h-footer-band {
  position: relative;
  padding: clamp(5.5rem, 9vw, 8rem) 5vw clamp(5rem, 8vw, 7rem);
  border: 0;
  overflow: clip;
}
/* The teal glow orb and the ghost FREE watermark stay gone. */
.footer-guide.h-footer-band::before,
.footer-guide.h-footer-band::after { content: none; }

.h-footer-band .footer-guide__inner {
  display: grid;
  grid-template-columns: auto minmax(13rem, 1fr) minmax(20rem, 26.5rem);
  grid-template-areas:
    "title . form"
    "sub   . note";
  column-gap: clamp(1.25rem, 2.6vw, 2.25rem);
  row-gap: 1.6rem;
  align-items: center;
}
.h-footer-band .h-footer-signup { display: contents; }

.h-footer-band .footer-guide__title {
  grid-area: title;
  margin: 0;
  font-size: clamp(3.4rem, 5.8vw, 5.25rem);
  line-height: 0.8;
  letter-spacing: 0.012em;
  padding-top: 0.06em;              /* Bebas sits high in its box; this centres the caps on the row */
}
.h-footer-band .footer-guide__sub {
  grid-area: sub;
  grid-column: 1 / 3;
  align-self: start;
  max-width: 25rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}

/* -- 1a. THE NEURON (drawn by footer.js into this svg, in band pixels) -------------------------
   Engraved the way the anatomy plates on this site are, in white line on the dark: every contour a
   hairline, the cell filled with the site's navy so it reads as a body, the myelin wound in fine
   oblique lines, the nodes of Ranvier left bare between the sheaths. Teal only where it fires. */
.h-footer-neuron {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transition: opacity 1.2s var(--h-footer-ease);
}
.h-footer-neuron * { vector-effect: non-scaling-stroke; }
.h-footer-n-edge { fill: none; stroke: rgba(255, 255, 255, 0.54); stroke-width: 1.4; stroke-linejoin: round; transition: stroke 0.6s var(--h-footer-ease); }
.h-footer-n-body { fill: var(--ink); }
.h-footer-n-fine { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 0.8; stroke-linecap: round; }
.h-footer-n-fibre { stroke: rgba(255, 255, 255, 0.36); stroke-linejoin: round; }
.h-footer-n-stip { fill: rgba(255, 255, 255, 0.42); }
.h-footer-n-nuc { fill: var(--ink); stroke: rgba(255, 255, 255, 0.52); stroke-width: 0.9; }
.h-footer-n-nuc2 { fill: none; stroke: rgba(255, 255, 255, 0.24); stroke-width: 0.75; }
.h-footer-n-nucleolus { fill: rgba(255, 255, 255, 0.8); }
.h-footer-n-sheath { fill: var(--ink); stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.9; stroke-linejoin: round; }
.h-footer-n-lam { fill: none; stroke: rgba(255, 255, 255, 0.17); stroke-width: 0.65; }
.h-footer-n-shade { fill: none; stroke: rgba(255, 255, 255, 0.26); stroke-width: 0.7; stroke-linecap: round; }
.h-footer-n-bouton { fill: var(--ink); stroke: rgba(255, 255, 255, 0.56); stroke-width: 0.9; }
.h-footer-n-lit { fill: var(--teal); opacity: 0; }
.h-footer-n-ring { fill: none; stroke: var(--teal); stroke-width: 1; opacity: 0; }
.h-footer-n-flash { fill: none; stroke: var(--teal); stroke-width: 1.5; stroke-linejoin: round; opacity: 0; }
.h-footer-n-tx { fill: var(--teal); }
.h-footer-n-hit { fill: transparent; stroke: none; pointer-events: all; cursor: pointer; -webkit-tap-highlight-color: transparent; }

/* A fine pointer near the cell: its dendrites lean toward it (footer.js) and their contours lift. */
.h-footer-near .h-footer-n-edge--cell { stroke: rgba(255, 255, 255, 0.68); transition-duration: 0.35s; }

/* After a failed send: the refractory period, the cell dim and unable to fire, then it recovers. */
.h-footer-refractory .h-footer-neuron { opacity: 0.3; transition-duration: 0.25s; }

/* -- 1b. THE FIELD -------------------------------------------------------------------------- */
.h-footer-band .footer-guide__form {
  grid-area: form;
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  min-height: 60px;
  padding: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition:
    background-color var(--h-footer-t) var(--h-footer-ease-out),
    box-shadow var(--h-footer-t) var(--h-footer-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .h-footer-band .footer-guide__form:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3); }
}
.h-footer-band .footer-guide__form:has(.footer-guide__input:focus) {
  background: rgba(255, 255, 255, 0.09);
  box-shadow: inset 0 0 0 2px var(--teal);
}
.h-footer-band .footer-guide__input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  height: 48px;
  padding: 0 0.75rem 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  box-shadow: none;
  outline: none;
  font-family: var(--sans);
  font-size: 1rem;                   /* 16px, so iPhones do not zoom on focus */
  color: #fff;
  caret-color: var(--teal);
}
.h-footer-band .footer-guide__input::placeholder { color: rgba(255, 255, 255, 0.52); }
.h-footer-band .footer-guide__input:focus { border: 0; background: transparent; box-shadow: none; }
.h-footer-band .footer-guide__input:-webkit-autofill {
  -webkit-text-fill-color: #fff;
  caret-color: var(--teal);
  transition: background-color 600000s 0s, color 600000s 0s;
}

/* The button: a white pill on the dark. When an address is complete and a signal has reached the
   terminal it lights (teal, the arrow leaning in): the signal arrived, the address can go. */
.h-footer-band .footer-guide__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 48px;
  min-height: 48px;
  min-width: 8.75rem;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px -10px rgba(0, 0, 0, 0.6);
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-transform: none;
  white-space: nowrap;
  cursor: pointer;
  overflow: visible;
  transform: none;
  filter: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--h-footer-t) var(--h-footer-ease-out),
    color var(--h-footer-t) var(--h-footer-ease-out),
    box-shadow var(--h-footer-t) var(--h-footer-ease-out),
    opacity var(--h-footer-t) var(--h-footer-ease-out),
    scale var(--h-footer-spring-dur) var(--h-footer-spring);
}
.h-footer-band .footer-guide__btn::before { content: none; }
.h-footer-band .footer-guide__btn:hover { transform: none; filter: none; }
@media (hover: hover) and (pointer: fine) {
  .h-footer-band .footer-guide__btn:hover { background: #fff; box-shadow: inset 0 1px 0 #fff, 0 14px 32px -12px rgba(0, 0, 0, 0.7); }
  .h-footer-band .footer-guide__btn:hover .h-footer-arrow { translate: 3px 0; }
}
.h-footer-band .footer-guide__btn:active {
  scale: 0.97;
  background: var(--bg-3);
  transition-duration: var(--h-footer-press);
  transition-timing-function: var(--h-footer-ease-out);
}
.h-footer-band .footer-guide__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.h-footer-band .footer-guide__btn:disabled { opacity: 0.74; cursor: progress; }
.h-footer-band .h-footer-arrow { display: inline-block; transition: translate var(--h-footer-spring-dur) var(--h-footer-spring); }
.h-footer-lit .footer-guide__btn,
.h-footer-lit .footer-guide__btn:hover { background: var(--teal); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 8px 22px -10px rgba(0, 0, 0, 0.6); }
.h-footer-lit .footer-guide__btn .h-footer-arrow { translate: 3px 0; }

.h-footer-band .footer-guide__note {
  grid-area: note;
  align-self: start;
  margin: 0;
  padding-left: calc(6px + 1.15rem);   /* starts where the typed address starts */
  font-family: var(--sans);
  font-size: 0.8rem;
  line-height: 1.55;
  letter-spacing: 0.005em;
  text-align: left;
  text-wrap: pretty;
  color: rgba(255, 255, 255, 0.62);
}
.h-footer-band .h-footer-cadence { color: rgba(255, 255, 255, 0.86); }

/* -- 1c. WHAT THE BAND SAYS BACK (footer.js sets data-h-footer-state) -------------------------
   rest      the drawing still; each keystroke a small signal that fizzles until the address is whole
   invalid   the field shakes once (the macOS "not quite" shake) and the note says what to fix
   sending   a volley runs the length of the axon for as long as the post takes
   done      transmitter leaves the terminal and settles into the tick; the cell stays faintly lit
   error     the refractory dim and a plain message
   known     this browser already joined: the confirmation, and a way to add another address */
@keyframes h-footer-shake {
  0%, 100% { translate: 0 0; }
  16% { translate: -9px 0; }
  36% { translate: 7px 0; }
  56% { translate: -4px 0; }
  76% { translate: 2px 0; }
}
.h-footer-band[data-h-footer-state="invalid"] .footer-guide__form { animation: h-footer-shake 0.44s var(--h-footer-ease-out); }
.h-footer-band[data-h-footer-state="invalid"] .footer-guide__form,
.h-footer-band[data-h-footer-state="error"] .footer-guide__form { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72); }
.h-footer-band .h-footer-fix { color: #fff; font-weight: 500; }

.h-footer-band[data-h-footer-state="done"] .footer-guide__form,
.h-footer-band[data-h-footer-state="known"] .footer-guide__form { box-shadow: inset 0 0 0 1px rgba(14, 165, 233, 0.55); }
.h-footer-band .footer-guide__success,
.h-footer-band .h-footer-ok {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  min-height: 48px;
  padding: 0.35rem 0.6rem 0.35rem 1.05rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.4;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.72);
  outline: none;
}
.h-footer-band .h-footer-ok-text strong { font-weight: 600; color: #fff; }
.h-footer-tick {
  flex: none;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
}
@keyframes h-footer-in { from { opacity: 0; translate: 0 8px; filter: blur(6px); } }
@keyframes h-footer-out { to { opacity: 0; translate: 0 -4px; filter: blur(4px); } }
@keyframes h-footer-draw { from { stroke-dashoffset: 24; } }
.h-footer-band[data-h-footer-state="sending"] .footer-guide__success { opacity: 0; }
.h-footer-band[data-h-footer-state="done"] .footer-guide__success { animation: h-footer-in 0.5s var(--h-footer-ease) 0.12s backwards; }
/* The tick draws as the transmitter lands on it. */
.h-footer-band[data-h-footer-state="done"] .h-footer-tick { animation: h-footer-draw 0.42s var(--h-footer-ease-out) 0.46s backwards; }
.h-footer-ghost {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: inherit;
  pointer-events: none;
}
.h-footer-band[data-h-footer-state="done"] .h-footer-ghost { animation: h-footer-out 0.24s var(--h-footer-ease-std) forwards; }

.h-footer-band[data-h-footer-state="known"] .footer-guide__input,
.h-footer-band[data-h-footer-state="known"] .footer-guide__btn { display: none; }
.h-footer-band .h-footer-again {
  position: relative;
  margin-left: 0.35rem;
  padding: 0 0 2px;
  border: 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  font: inherit;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--h-footer-quick) var(--h-footer-ease-out);
}
.h-footer-band .h-footer-again::before { content: ''; position: absolute; inset: -14px -8px; }
.h-footer-band .h-footer-again:active { opacity: 0.7; }
.h-footer-band .h-footer-again:focus-visible { outline: 2px solid #fff; outline-offset: 4px; border-radius: 4px; }

/* Read by screen readers, not drawn. */
.h-footer-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* -- 1d. ARRIVAL (footer.js adds .h-footer-js when motion is allowed, .h-footer-on when seen) --
   The name rises, the cell settles in beside it, the sheaths appear one after another out along
   the axon, the terminal and the field arrive last: the path a signal takes, from AXON to you. */
@keyframes h-footer-rise { from { opacity: 0; translate: 0 18px; filter: blur(8px); } }
@keyframes h-footer-appear { from { opacity: 0; } }
@keyframes h-footer-settle { from { opacity: 0; scale: 0.9; } }
.h-footer-js:not(.h-footer-on) :is(.footer-guide__title, .footer-guide__sub, .footer-guide__form, .footer-guide__note),
.h-footer-js:not(.h-footer-on) .h-footer-neuron { opacity: 0; }
.h-footer-on:not(.h-footer-arrived) .footer-guide__title { animation: h-footer-rise 0.9s var(--h-footer-ease) backwards; }
.h-footer-on:not(.h-footer-arrived) .footer-guide__sub { animation: h-footer-rise 0.9s var(--h-footer-ease) 0.14s backwards; }
.h-footer-on:not(.h-footer-arrived) .footer-guide__form { animation: h-footer-rise 0.9s var(--h-footer-ease) 0.62s backwards; }
.h-footer-on:not(.h-footer-arrived) .footer-guide__note { animation: h-footer-rise 0.9s var(--h-footer-ease) 0.76s backwards; }
.h-footer-on:not(.h-footer-arrived) .h-footer-n-cell { animation: h-footer-settle 0.8s var(--h-footer-ease) 0.12s backwards; }
.h-footer-on:not(.h-footer-arrived) .h-footer-n-seg { animation: h-footer-appear 0.5s var(--h-footer-ease) calc(0.32s + var(--h-footer-i, 0) * 60ms) backwards; }
.h-footer-on:not(.h-footer-arrived) .h-footer-n-term { animation: h-footer-appear 0.6s var(--h-footer-ease) calc(0.4s + var(--h-footer-i, 0) * 60ms) backwards; }

/* -- 1e. STACKED (tablets and phones): the name and the cell on top, the copy, then the field. The
   axon runs out from the cell, turns down past the copy and ends on the Subscribe button. -- */
@media (max-width: 900px) {
  .h-footer-band .footer-guide__inner {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "title ."
      "sub   sub"
      "form  form"
      "note  note";
    column-gap: 1.1rem;
    row-gap: 0;
  }
  .h-footer-band .footer-guide__title { font-size: clamp(3rem, 15vw, 3.75rem); }
  .h-footer-band .footer-guide__sub {
    grid-column: 1 / -1;
    max-width: min(25rem, calc(100% - 3.25rem));   /* leaves the lane the axon runs down */
    margin: 1.35rem 0 2.6rem;
    font-size: 0.95rem;
  }
  .h-footer-band .footer-guide__form,
  .h-footer-band .footer-guide__note { width: 100%; max-width: 36rem; }
  .h-footer-band .footer-guide__note { margin-top: 0.85rem; }
}
@media (max-width: 600px) {
  .footer-guide.h-footer-band { padding: 6.25rem 5vw 4.5rem; }
  .h-footer-band .footer-guide__btn { padding: 0 1.15rem; min-width: 0; }
  .h-footer-band .footer-guide__form { min-height: 58px; padding: 5px; }
  .h-footer-band .footer-guide__input { padding-left: 1rem; }
  .h-footer-band .footer-guide__note { padding-left: calc(5px + 1rem); }
  .h-footer-band .footer-guide__success,
  .h-footer-band .h-footer-ok { padding: 0.55rem 1rem 0.55rem 0.95rem; }
  .h-footer-band .h-footer-ok-text strong { display: block; }
}
@media (max-width: 360px) {
  .h-footer-band .footer-guide__btn { padding: 0 1rem; }
  .h-footer-band .footer-guide__input { padding: 0 0.25rem 0 0.9rem; }
  .h-footer-band .footer-guide__btn .h-footer-arrow { display: none; }
}

/* -- 2. THE FOOTER -------------------------------------------------------------------------- */
.hp-footer {
  background: var(--ink);
  padding: clamp(4.25rem, 7vw, 5.5rem) 5vw 0;
  color: var(--h-footer-ink);
}
.hp-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.hp-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* The logo: the nav's own file and crop (the name, without its NEUROSURGEON line), set white. */
.hp-footer .h-footer-logo {
  position: relative;
  display: block;
  width: 13rem;
  max-width: 100%;
  aspect-ratio: 422 / 108;
  margin: -0.2rem 0 0.85rem;
  overflow: hidden;
  border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: opacity var(--h-footer-t) var(--h-footer-ease-out);
}
.hp-footer .h-footer-logo img {
  position: absolute;
  left: -32.23%;
  top: -88.89%;
  width: 163.27%;
  max-width: none;
  height: auto;
  filter: brightness(0) invert(1);
  opacity: 0.94;
  transition: translate var(--h-footer-spring-dur) var(--h-footer-spring), opacity var(--h-footer-t) var(--h-footer-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hp-footer .h-footer-logo:hover img { opacity: 1; translate: 0 -1px; }
}
.hp-footer .h-footer-logo:active { opacity: 0.7; transition-duration: var(--h-footer-press); }
.hp-footer .h-footer-logo:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.hp-footer .hp-footer__brand-role {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--muted);
}
.hp-footer .h-footer-role-2 { display: block; }   /* the title breaks after "Chief of Spine," */
/* Column titles: a semibold word in the brand teal. Sentence case, no tracking. */
.hp-footer .hp-footer__col-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--teal);
}
.hp-footer .hp-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* The page links. Colour lifts and an underline sweeps through: it draws in from the left and leaves
   to the right. A link that leaves the site carries a small arrow that leans out. The page you are on
   is marked by its underline already drawn. */
.hp-footer .hp-footer__links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  min-height: 2.15rem;
  font-family: var(--sans);
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--h-footer-ink);
  text-decoration: none;
  background: linear-gradient(var(--teal), var(--teal)) no-repeat 100% calc(50% + 0.78em) / 0% 1px;
  -webkit-tap-highlight-color: transparent;
  transition:
    color var(--h-footer-t) var(--h-footer-ease-out),
    background-size 0.5s var(--h-footer-ease-sheet),
    opacity var(--h-footer-quick) var(--h-footer-ease-out);
}
.hp-footer .hp-footer__links a[target="_blank"]::after {
  content: '\2197';
  font-size: 0.8em;
  line-height: 1;
  opacity: 0.55;
  transition: translate var(--h-footer-spring-dur) var(--h-footer-spring), opacity var(--h-footer-t) var(--h-footer-ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .hp-footer .hp-footer__links a:not(.h-footer-soc):hover {
    color: #fff;
    background-position: 0 calc(50% + 0.78em);
    background-size: 100% 1px;
  }
  .hp-footer .hp-footer__links a[target="_blank"]:hover::after { opacity: 1; translate: 2px -2px; }
}
.hp-footer .hp-footer__links a[aria-current="page"] {
  color: #fff;
  background-position: 0 calc(50% + 0.78em);
  background-size: 100% 1px;
}
.hp-footer .hp-footer__links a:focus-visible {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}
.hp-footer .hp-footer__links a:active { opacity: 0.7; transition-duration: var(--h-footer-press); }

/* -- 2a. THE MARKS (Connect, and the Substack row) ---------------------------------------------
   Each mark is drawn twice in one svg, as the About page's affiliations are: in the footer's ink,
   and in the platform's own colours above it. Pointed at, focused or pressed, the mark lifts a touch
   on the spring and its colours come up over the ink before the ink goes, so no frame is ever see
   through; leaving, the ink returns first. */
.hp-footer .h-footer-soc { gap: 0.7rem; }
.hp-footer .h-footer-glyph,
.hp-footer .sbstk-strip__mark {
  flex: none;
  display: block;
  width: 18px;
  height: 18px;
  overflow: visible;
  transition: translate var(--h-footer-spring-dur) var(--h-footer-spring), scale var(--h-footer-spring-dur) var(--h-footer-spring);
}
.hp-footer .h-footer-glyph-ink { fill: currentColor; transition: opacity var(--h-footer-quick) var(--h-footer-ease) 0ms; }
.hp-footer .h-footer-glyph-color { opacity: 0; transition: opacity var(--h-footer-t) var(--h-footer-ease) 140ms; }
.hp-footer .h-footer-soc-name { transition: color var(--h-footer-t) var(--h-footer-ease-out); }
@media (hover: hover) and (pointer: fine) {
  .hp-footer .h-footer-soc:hover { color: #fff; }
  .hp-footer .h-footer-soc:hover .h-footer-glyph,
  .hp-footer .sbstk-strip:hover .sbstk-strip__mark { translate: 0 -2px; scale: 1.08; }
  .hp-footer .h-footer-soc:hover .h-footer-glyph-color,
  .hp-footer .sbstk-strip:hover .h-footer-glyph-color { opacity: 1; transition: opacity var(--h-footer-t) var(--h-footer-ease) 0ms; }
  .hp-footer .h-footer-soc:hover .h-footer-glyph-ink,
  .hp-footer .sbstk-strip:hover .h-footer-glyph-ink { opacity: 0; transition: opacity var(--h-footer-t) var(--h-footer-ease) 220ms; }
}
.hp-footer .h-footer-soc:is(:focus-visible, :active) { color: #fff; }
.hp-footer .h-footer-soc:is(:focus-visible, :active) .h-footer-glyph,
.hp-footer .sbstk-strip:focus-within .sbstk-strip__mark { translate: 0 -2px; scale: 1.08; }
.hp-footer .h-footer-soc:is(:focus-visible, :active) .h-footer-glyph-color,
.hp-footer .sbstk-strip:focus-within .h-footer-glyph-color { opacity: 1; transition: opacity var(--h-footer-t) var(--h-footer-ease) 0ms; }
.hp-footer .h-footer-soc:is(:focus-visible, :active) .h-footer-glyph-ink,
.hp-footer .sbstk-strip:focus-within .h-footer-glyph-ink { opacity: 0; transition: opacity var(--h-footer-t) var(--h-footer-ease) 220ms; }
.hp-footer .h-footer-soc:active { opacity: 1; }
.hp-footer .h-footer-soc:active .h-footer-glyph { scale: 1; transition-duration: var(--h-footer-press); }

/* The Substack row: the mark in the ink at rest like the platforms, the link in the ink with
   Substack's orange underline and colour when the row is pointed at. */
.hp-footer .sbstk-strip__mark { width: 20px; height: 20px; color: var(--h-footer-ink); transform: none; }
.hp-footer .sbstk-strip__link {
  color: rgba(255, 255, 255, 0.82);
  transition: color var(--h-footer-t) var(--h-footer-ease-out), background-size 0.5s var(--h-footer-ease-sheet);
}
.hp-footer .sbstk-strip:hover .sbstk-strip__link,
.hp-footer .sbstk-strip:focus-within .sbstk-strip__link { color: var(--sbstk); }
.hp-footer .sbstk-strip:hover .sbstk-strip__mark,
.hp-footer .sbstk-strip:focus-within .sbstk-strip__mark { transform: none; }
/* .hp-footer__grid already closes on a hairline; the strip's own top rule would draw twice. */
.hp-footer__grid + .sbstk-strip { border-top: 0; }

/* -- 2b. THE BOTTOM BAR --------------------------------------------------------------------- */
.hp-footer__bottom {
  background: #070B24;
  margin: 0 -5vw;
  padding: 1.15rem 5vw 1.6rem;
}
.h-footer-bottom-in {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
.hp-footer .hp-footer__copyright {
  font-family: var(--sans);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.56);
}
.hp-footer .hp-footer__privacy {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  color: var(--h-footer-ink);
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 100% calc(50% + 0.75em) / 0% 1px;
  transition: color var(--h-footer-t) var(--h-footer-ease-out), background-size 0.5s var(--h-footer-ease-sheet);
}
@media (hover: hover) and (pointer: fine) {
  .hp-footer .hp-footer__privacy:hover { color: #fff; background-position: 0 calc(50% + 0.75em); background-size: 100% 1px; }
}
.hp-footer .hp-footer__privacy:focus-visible { color: #fff; outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.hp-footer .h-footer-disclosure {
  max-width: var(--max-w);
  margin: 0.2rem auto 0;
  font-family: var(--sans);
  font-size: 0.72rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.5);
}
.hp-footer .h-footer-disclosure span { display: block; max-width: 46rem; text-wrap: pretty; }

@media (max-width: 960px) {
  .hp-footer__grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
  .h-footer-brand { grid-column: 1 / -1; }
}
/* Phones and any touch screen: every link is a 44px row. Explore and Clinical sit side by side and
   Connect lays its six marks out in two columns. */
@media (max-width: 600px), (pointer: coarse) {
  .hp-footer .hp-footer__links a,
  .hp-footer .hp-footer__privacy { min-height: 44px; }
}
@media (max-width: 600px) {
  .hp-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.25rem 1.25rem; padding-bottom: 2.5rem; }
  .h-footer-col--connect { grid-column: 1 / -1; }
  .h-footer-col--connect .hp-footer__links { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
  .hp-footer .hp-footer__links a { font-size: 0.95rem; }
  .hp-footer .hp-footer__col-title { font-size: 0.875rem; margin-bottom: 0.35rem; }
  .hp-footer .h-footer-logo { width: 12rem; }
  .hp-footer__bottom { margin: 0 -5vw; padding: 0.9rem 5vw 1.4rem; }
  .h-footer-bottom-in { flex-direction: column; align-items: flex-start; gap: 0; }
  .hp-footer .h-footer-disclosure { margin-top: 0.5rem; }
}

/* -- 3. REDUCED MOTION, PRINT --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .h-footer-band *, .h-footer-band .h-footer-neuron { animation: none !important; }
  .h-footer-ghost { display: none; }
  .h-footer-band .footer-guide__form,
  .h-footer-band .footer-guide__btn,
  .h-footer-band .h-footer-arrow,
  .h-footer-neuron,
  .h-footer-n-edge,
  .hp-footer .hp-footer__links a,
  .hp-footer .hp-footer__links a::after,
  .hp-footer .hp-footer__privacy,
  .hp-footer .h-footer-logo img,
  .hp-footer .h-footer-glyph,
  .hp-footer .sbstk-strip__mark,
  .hp-footer .h-footer-glyph-ink,
  .hp-footer .h-footer-glyph-color,
  .hp-footer .h-footer-soc-name,
  .hp-footer .sbstk-strip__link { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .hp-footer .h-footer-glyph, .hp-footer .sbstk-strip__mark, .hp-footer .h-footer-logo img { translate: none !important; scale: none !important; }
  .h-footer-band .footer-guide__btn:active { scale: none; }
}
@media print {
  .h-footer-neuron { display: none; }
}
