/* ---------- fonts (self-hosted, SIL Open Font License) ---------- */

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("assets/fonts/fraunces-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Sans";
  src: url("assets/fonts/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- tokens ----------
   Day: a pale morning sky over warm paper. Night: deep blue, moonlight.
   Coral and sky blue come from the original site. */

:root {
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(22px, 5.2vw, 72px);
  --nav-h: 72px;
  --r-card: 26px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #fbf6ee;
  --card: #ffffff;
  --ink: #1d1e36;
  --ink-2: #51546d;
  --ink-3: #6d7089;
  --rule: rgba(29, 30, 54, .14);
  --rule-soft: rgba(29, 30, 54, .07);
  --accent: #e2562d;
  --accent-ink: #c0421d;
  --blue: #2b6cb3;
  --shadow: 0 1px 2px rgba(29, 30, 54, .05), 0 14px 34px -18px rgba(29, 30, 54, .28);
  --shadow-lift: 0 2px 4px rgba(29, 30, 54, .06), 0 26px 46px -22px rgba(29, 30, 54, .38);

  --tint-sky: #e2effa;
  --tint-peach: #fde8da;
  --tint-mint: #e1f2e8;
  --tint-butter: #fbf0cd;
  --tint-rose: #fbe3e4;
  --tint-lilac: #e9e7fa;

  /* what the cat, the sky and the sun are drawn in */
  --felis-cat: #1d1e36;
  --felis-sky: #ffffff;
  --felis-disc: #f0703f;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0e20;
  --card: #141936;
  --ink: #f1ede4;
  --ink-2: #b0b4ca;
  --ink-3: #8d92b0;
  --rule: rgba(214, 220, 245, .16);
  --rule-soft: rgba(214, 220, 245, .08);
  --accent: #ff8a5f;
  --accent-ink: #ff9d78;
  --blue: #8ebdf2;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .3), 0 30px 52px -22px rgba(0, 0, 0, .8);

  --tint-sky: #16254a;
  --tint-peach: #33212b;
  --tint-mint: #14302f;
  --tint-butter: #312a1d;
  --tint-rose: #341e30;
  --tint-lilac: #211f48;

  --felis-cat: #f4efe4;
  --felis-sky: #c9d6f5;
  --felis-disc: #f7e6b8;
}

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

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* while the theme is changing, everything eases across together */
.theme-shift,
.theme-shift *,
.theme-shift *::before,
.theme-shift *::after {
  transition: background-color .9s ease, color .9s ease, border-color .9s ease, box-shadow .9s ease, fill .9s ease, opacity .9s ease !important;
}

h1,
h2,
h3,
p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

::selection {
  background: var(--accent);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--bg);
  font: 500 .875rem var(--sans);
  text-decoration: none;
  border-radius: 10px;
  transition: top .2s;
}

.skip:focus {
  top: 16px;
}

.spark {
  display: inline-block;
  width: 1.9em;
  height: 1.14em;
  color: var(--accent);
  vertical-align: -.18em;
}

.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 36px);
  padding-inline: var(--gutter);
  font-size: .9375rem;
  transition: background-color .4s, box-shadow .4s;
}

.nav.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--rule-soft);
}

.nav-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
  min-height: 44px;
}

.nav-mark .spark {
  flex: none;
  width: 36px;
  height: 22px;
  transition: transform .6s var(--spring);
}

.nav-mark:hover .spark {
  transform: rotate(-10deg) scale(1.12);
}

.nav-name {
  font: 500 1.0625rem/1 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 24;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .4s, transform .5s var(--ease);
}

.nav.is-scrolled .nav-name {
  opacity: 1;
  transform: none;
}

.nav-links {
  display: flex;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding-inline: 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: none;
  transition: color .25s, background-color .25s;
}

.nav-links a:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}

.nav-links a[aria-current] {
  color: var(--ink);
  background: color-mix(in srgb, var(--ink) 9%, transparent);
}

.theme-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule);
  color: var(--ink);
  transition: transform .6s var(--spring), background-color .3s;
}

.theme-toggle:hover {
  transform: rotate(24deg) scale(1.06);
}

.theme-toggle svg {
  width: 19px;
  height: 19px;
}

:root[data-theme="dark"] #icon-moon,
:root:not([data-theme="dark"]) #icon-sun {
  display: none;
}

/* ---------- buttons ---------- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .55em;
  min-height: 48px;
  padding: 0 1.25em 0 1.05em;
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font: 600 .9375rem/1 var(--sans);
  text-decoration: none;
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow);
  transition: transform .45s var(--spring), box-shadow .3s, background-color .3s, color .3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow-lift);
}

.btn:active {
  transform: translateY(0) scale(.98);
}

.btn .ico {
  transition: transform .5s var(--spring), color .3s;
}

.btn:hover .ico {
  transform: rotate(-8deg) scale(1.12);
  color: var(--accent);
}

/* a ⟡ pops out of the corner on hover */
.btn::after {
  content: "";
  position: absolute;
  right: -4px;
  top: -8px;
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  transform: scale(0) rotate(-40deg);
  transition: transform .5s var(--spring);
}

.btn:hover::after {
  transform: scale(1) rotate(0deg);
}

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

.hero {
  position: relative;
  z-index: 2;                 /* the tail hangs over whatever comes next */
  /* a little short of the full window, so the ledge and the tail are in view on arrival */
  min-height: 76vh;
  min-height: 76svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(var(--nav-h) + 20px) var(--gutter) clamp(48px, 8vh, 96px);
  margin-bottom: var(--tail-room, 0px);
}

/* both skies are always there; the theme decides which one you see */
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  transition: opacity 1.1s ease;
}

.hero-sky-day {
  background:
    radial-gradient(120% 70% at 78% 100%, #ffd9bd 0%, rgba(255, 217, 189, 0) 62%),
    linear-gradient(180deg, #c5dff5 0%, #dcebf7 38%, #f3ece6 74%, #fbe6d5 100%);
}

.hero-sky-night {
  opacity: 0;
  background:
    radial-gradient(110% 64% at 76% 100%, #2a3f86 0%, rgba(42, 63, 134, 0) 64%),
    linear-gradient(180deg, #050716 0%, #0a1030 44%, #121c4a 82%, #1a2659 100%);
}

:root[data-theme="dark"] .hero-sky-day {
  opacity: 0;
}

:root[data-theme="dark"] .hero-sky-night {
  opacity: 1;
}

/* the ledge */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: var(--rule);
  z-index: -1;
}

.felis {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.no-felis .felis {
  display: none;
}

.hero-copy {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  pointer-events: none;
}

.hero-copy .line,
.hero-copy .hero-role,
.hero-copy .hero-links {
  width: fit-content;
  pointer-events: auto;
}

.hero-name {
  font-family: var(--display);
  font-size: clamp(3rem, 1.1rem + 6.5vw, 7.2rem);
  font-weight: 420;
  line-height: .96;
  letter-spacing: -.03em;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 144;
}

.hero-name i {
  font-weight: 340;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  color: var(--accent-ink);
  padding-right: .06em;
}

.hero-name .line {
  display: block;
  overflow: hidden;
  padding: .06em .04em .14em 0;
  margin-bottom: -.14em;
}

.hero-name .line > span {
  display: block;
}

.hero-role {
  margin-top: clamp(1.1rem, 2.6vh, 1.8rem);
  font-size: clamp(1.1rem, 1rem + .5vw, 1.4rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
}

.hero-role .spark {
  margin-left: .3em;
  animation: glint 5.5s ease-in-out infinite;
  transform-origin: 50% 55%;
}

@keyframes glint {
  0%, 82%, 100% { transform: none; }
  88% { transform: rotate(-9deg) scale(1.16); }
  94% { transform: rotate(5deg) scale(.96); }
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(1.7rem, 4.2vh, 2.8rem);
}

.moon-note {
  position: absolute;
  left: var(--moon-x, 50%);
  top: calc(var(--moon-y, 30%) + var(--moon-r, 60px) + 14px);
  transform: translateX(-50%);
  padding: 6px 13px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 62%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--ink-2);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}

.has-felis .moon-note.is-on {
  opacity: 1;
}

/* entrance */
.js .hero-name .line > span {
  transform: translateY(112%);
}

.js .hero-role,
.js .hero-links {
  opacity: 0;
  transform: translateY(12px);
}

.js.is-ready .hero-name .line > span {
  transform: none;
  transition: transform 1.1s var(--ease) .08s;
}

.js.is-ready .hero-name .line + .line > span {
  transition-delay: .2s;
}

.js.is-ready .hero-role,
.js.is-ready .hero-links {
  opacity: 1;
  transform: none;
  transition: opacity .9s ease .55s, transform .9s var(--ease) .55s;
}

.js.is-ready .hero-links {
  transition-delay: .7s;
}

/* ---------- sections ---------- */

main > section:not(.hero) {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.3rem, 1.4rem + 3.6vw, 4.1rem);
  font-weight: 420;
  line-height: 1.02;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 100, "opsz" 144;
}

.section-head h2::after {
  content: "";
  display: inline-block;
  width: .36em;
  height: .36em;
  margin-left: .16em;
  vertical-align: .62em;
  background: var(--accent);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
}

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease var(--delay, 0ms), transform .7s var(--ease) var(--delay, 0ms);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ---------- about ---------- */

main > section.about {
  padding-top: clamp(1.5rem, 3vw, 3rem);      /* the tail already left a gap above */
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr);
  gap: clamp(2.2rem, 6vw, 6rem);
  align-items: center;
}

/* her photo, as a print */
.portrait {
  position: relative;
  max-width: 380px;
  padding: 12px 12px 14px;
  background: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow-lift);
  rotate: -2.4deg;
  transition: rotate .8s var(--spring), translate .8s var(--spring);
}

.portrait:hover {
  rotate: 0deg;
  translate: 0 -4px;
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 26%;
  border-radius: 3px;
  background: #e9edf2;
}

/* a strip of tape */
.portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -13px;
  width: 104px;
  height: 28px;
  margin-left: -52px;
  background: rgba(250, 232, 178, .86);
  box-shadow: 0 1px 2px rgba(29, 30, 54, .12);
  rotate: 2.5deg;
}

.portrait .spark {
  position: absolute;
  right: -22px;
  bottom: -18px;
  width: 66px;
  height: 40px;
  rotate: 8deg;
  filter: drop-shadow(0 2px 3px rgba(29, 30, 54, .18));
}

.about-text {
  max-width: 42rem;
}

.lead {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.3rem);
  font-weight: 380;
  line-height: 1.28;
  letter-spacing: -.016em;
  font-variation-settings: "SOFT" 100, "opsz" 48;
  text-wrap: pretty;
}

.lead i {
  color: var(--ink-3);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
}

.lead + p {
  margin-top: 1.4em;
  max-width: 35rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- experience ---------- */

.experience {
  display: grid;
  grid-template-columns: minmax(0, 4.3fr) minmax(0, 7.7fr);
  column-gap: clamp(2rem, 6vw, 6rem);
  row-gap: clamp(1.4rem, 3vw, 2rem);
}

.experience .section-head {
  grid-row: 1 / span 2;
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
}

/* the calendar strip */
.span {
  --years: 6;
  --now: 7;
  position: relative;
  padding: clamp(18px, 2.6vw, 28px) clamp(18px, 2.8vw, 30px) clamp(14px, 2vw, 20px);
  background: linear-gradient(120deg, var(--tint-sky), var(--tint-peach));
  border-radius: var(--r-card);
}

.span-years {
  display: grid;
  grid-template-columns: repeat(var(--years), 1fr);
  font-size: .75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
}

.span-years span {
  padding: 0 0 12px 8px;
}

.span-rows {
  position: relative;
  padding-block: 4px 10px;
}

/* dashed year lines */
.span-rows::before {
  content: "";
  position: absolute;
  inset: -22px 0 0 0;
  background: repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px calc(100% / var(--years)));
  -webkit-mask-image: repeating-linear-gradient(to bottom, #000 0 3px, transparent 3px 7px);
  mask-image: repeating-linear-gradient(to bottom, #000 0 3px, transparent 3px 7px);
}

.span-row {
  position: relative;
  height: 46px;
}

.span-label {
  position: absolute;
  bottom: 19px;
  left: calc((var(--from) - 1) / var(--years) * 100% + 8px);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}

.span-label.end {
  left: auto;
  right: calc((var(--years) + 1 - var(--to)) / var(--years) * 100% + 4px);
}

.span .bar,
.span .dot {
  position: absolute;
  display: block;
}

.span .bar {
  bottom: 6px;
  left: calc((var(--from) - 1) / var(--years) * 100%);
  width: calc((var(--to) - var(--from)) / var(--years) * 100%);
  height: 7px;
  border-radius: 4px;
  background: var(--ink);
  transform-origin: left;
}

.span .bar.accent {
  background: var(--accent);
}

/* still going */
.span .bar.open::after {
  content: "";
  position: absolute;
  right: -7px;
  top: 50%;
  width: 15px;
  height: 15px;
  margin-top: -7.5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 26%, transparent);
  animation: still-going 2.6s ease-in-out infinite;
}

@keyframes still-going {
  50% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); }
}

.span .dot {
  bottom: 2px;
  left: calc((var(--at) - 1) / var(--years) * 100%);
  width: 15px;
  height: 15px;
  margin-left: -7.5px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 3px var(--ink);
}

.span-key {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: .75rem;
  font-weight: 500;
  color: var(--ink-2);
}

.span-key .dot {
  position: static;
  margin: 0;
  width: 11px;
  height: 11px;
  box-shadow: inset 0 0 0 2.5px var(--ink-2);
}

.js .span .bar {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease);
}

.js .span .dot,
.js .span-label {
  opacity: 0;
  scale: .6;
  transition: opacity .5s ease, scale .6s var(--spring);
}

.js .span.is-in .bar {
  transform: none;
}

.js .span.is-in .dot,
.js .span.is-in .span-label {
  opacity: 1;
  scale: 1;
}

.span-row:nth-child(1) > * { transition-delay: .9s !important; }
.span-row:nth-child(2) > * { transition-delay: .7s !important; }
.span-row:nth-child(3) > * { transition-delay: .5s !important; }
.span-row:nth-child(4) > * { transition-delay: .3s !important; }
.span-row:nth-child(5) > * { transition-delay: .1s !important; }

/* the roles */
.roles {
  display: grid;
  gap: 12px;
}

.role {
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: clamp(16px, 2.2vw, 26px);
  padding: clamp(18px, 2.4vw, 26px) clamp(18px, 2.6vw, 30px);
  background: var(--card);
  border-radius: var(--r-card);
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow);
  transition: translate .5s var(--spring), box-shadow .4s;
}

.role:hover {
  translate: 0 -3px;
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow-lift);
}

.logo {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  padding: 7px;
  border-radius: 20px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(29, 30, 54, .08);
  overflow: hidden;
  transition: rotate .6s var(--spring), scale .6s var(--spring);
}

.role:hover .logo,
.circle:hover .logo {
  rotate: -6deg;
  scale: 1.06;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-nasa {
  padding: 3px;
}

.role h3,
.circle h3 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.15rem + .9vw, 1.8rem);
  font-weight: 480;
  line-height: 1.15;
  letter-spacing: -.018em;
  font-variation-settings: "SOFT" 100, "opsz" 36;
}

.role h3 {
  margin-top: .42em;
}

.role-group {
  margin-top: .7rem;
}

.role-group + .role-group {
  margin-top: 1.05rem;
  padding-top: 1.05rem;
  border-top: 1px dashed var(--rule);
}

.role-unit {
  margin-bottom: .15rem;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.role-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 20px;
  flex-wrap: wrap;
  color: var(--ink);
  line-height: 1.5;
}

.role-line .sep {
  display: none;
}

.role-line time {
  font-size: .875rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-3);
  white-space: nowrap;
}

/* ---------- communities ---------- */

.communities .section-head {
  margin-bottom: clamp(2rem, 4.5vw, 3.4rem);
}

.circles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 22px);
}

.circle {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  column-gap: clamp(16px, 2vw, 24px);
  align-items: start;
  min-height: 176px;
  padding: clamp(20px, 2.6vw, 30px);
  border-radius: var(--r-card);
  background: var(--tint, var(--tint-sky));
  transition: translate .5s var(--spring);
}

.circle:nth-child(6n + 1) { --tint: var(--tint-sky); }
.circle:nth-child(6n + 2) { --tint: var(--tint-lilac); }
.circle:nth-child(6n + 3) { --tint: var(--tint-mint); }
.circle:nth-child(6n + 4) { --tint: var(--tint-butter); }
.circle:nth-child(6n + 5) { --tint: var(--tint-peach); }
.circle:nth-child(6n + 6) { --tint: var(--tint-rose); }

.circle:hover {
  translate: 0 -3px;
}

.circle h3 {
  margin-top: .3em;
  text-wrap: balance;
}

.circle p {
  margin-top: .45em;
  color: var(--ink-2);
  font-size: .97em;
}

.circle p i {
  display: block;
  margin-top: .55em;
  font-size: .9em;
  color: var(--ink-3);
}

/* a snapshot, tucked into the corner of the card a little crooked; the words run around it */
.print {
  float: right;
  width: clamp(150px, 15vw, 196px);
  margin: -34px -12px 10px 22px;
  padding: 8px 8px 0;
  background: #fff;
  color: #3a3d52;
  border-radius: 5px;
  box-shadow: var(--shadow-lift);
  rotate: 4deg;
  transition: rotate .6s var(--spring), scale .6s var(--spring);
  cursor: zoom-in;
  position: relative;
  z-index: 1;
}

.circle:nth-child(odd) .print {
  rotate: -3.5deg;
}

.print:hover,
.print:focus-visible {
  rotate: 0deg;
  scale: 1.07;
}

.print img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 2px;
}

.print-caption {
  display: block;
  padding: 7px 2px 9px;
  font: italic 500 .8125rem/1.2 var(--display);
  font-variation-settings: "SOFT" 100, "opsz" 14;
  text-align: center;
  color: #4b4e66;
}

/* ---------- contact ---------- */

.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(28px, 5vw, 64px);
  border-radius: calc(var(--r-card) + 10px);
  background: linear-gradient(120deg, var(--tint-sky) 0%, var(--tint-peach) 100%);
  overflow: hidden;
}

.contact-message {
  font-family: var(--display);
  font-size: clamp(2rem, 1.1rem + 3.5vw, 3.9rem);
  font-weight: 380;
  line-height: 1.06;
  letter-spacing: -.028em;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  text-wrap: balance;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  max-width: 30rem;
}

.contact-links a {
  display: grid;
  grid-template-columns: auto 5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--card) 86%, transparent);
  box-shadow: inset 0 0 0 1px var(--rule-soft);
  text-decoration: none;
  transition: translate .45s var(--spring), background-color .3s, box-shadow .3s;
}

.contact-links .ico {
  width: 20px;
  height: 20px;
  transition: color .3s, rotate .5s var(--spring);
}

.contact-links .k {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-links .v {
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-links .arrow {
  color: var(--accent);
  font-weight: 600;
  transition: translate .45s var(--spring);
}

.contact-links a:hover {
  translate: 4px 0;
  background: var(--card);
  box-shadow: inset 0 0 0 1px var(--rule-soft), var(--shadow);
}

.contact-links a:hover .ico {
  color: var(--accent);
  rotate: -8deg;
}

.contact-links a:hover .arrow {
  translate: 3px -3px;
}

/* her cat */
.cat3d {
  position: relative;
  aspect-ratio: 1 / .92;
  min-height: 260px;
}

.cat3d model-viewer {
  width: 100%;
  height: 100%;
  --progress-bar-height: 0;
  --progress-bar-color: transparent;
  --poster-color: transparent;
  background: transparent;
  cursor: grab;
}

.cat3d model-viewer:active {
  cursor: grabbing;
}

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

.footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 40px;
  padding-block: 1.6rem 2.6rem;
  font-size: .875rem;
  color: var(--ink-2);
}

.footer a {
  text-decoration-color: var(--ink-3);
  transition: color .25s;
}

.footer a:hover {
  color: var(--accent-ink);
}

.footer-links {
  display: flex;
  gap: 6px;
}

.footer-links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: color .25s, background-color .25s, translate .45s var(--spring);
}

.footer-links a:hover {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  translate: 0 -3px;
}

.footer-links .ico {
  width: 20px;
  height: 20px;
}

/* ---------- lightbox ---------- */

.lightbox {
  padding: 0;
  border: 0;
  background: transparent;
  color: #eef0f4;
  max-width: none;
  max-height: none;
  overflow: visible;
}

.lightbox::backdrop {
  background: rgba(8, 10, 24, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.lightbox[open] {
  animation: lightbox-in .5s var(--ease);
}

@keyframes lightbox-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

.lightbox figure {
  padding: 12px 12px 0;
  background: #fff;
  border-radius: 8px;
}

.lightbox img {
  width: auto;
  height: auto;
  max-width: min(90vw, 1160px);
  max-height: 78vh;
  border-radius: 3px;
}

.lightbox figcaption {
  padding: 10px 4px 12px;
  font: italic 500 1rem var(--display);
  text-align: center;
  color: #3a3d52;
}

.lightbox form {
  position: fixed;
  top: 18px;
  right: 20px;
}

.lightbox button {
  min-height: 44px;
  padding: 0 18px;
  font: 600 .875rem var(--sans);
  color: #eef0f4;
  border-radius: 22px;
  box-shadow: inset 0 0 0 1px rgba(238, 240, 244, .34);
}

.lightbox button:hover {
  background: rgba(238, 240, 244, .14);
}

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

@media (max-width: 1040px) {
  .circles {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 880px) {
  .about,
  .experience,
  .contact-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .experience .section-head {
    position: static;
    grid-row: auto;
  }

  .portrait {
    width: min(74%, 320px);
    margin-inline: auto 8%;
  }

  .nav-links a:not([href="#contact"]) {
    display: none;
  }

  .cat3d {
    max-width: 380px;
    margin-inline: auto;
    width: 100%;
  }
}

/* portrait screens: the words above, the cat below */
@media (max-aspect-ratio: 92/100) {
  .hero {
    justify-content: flex-start;
    padding-top: calc(var(--nav-h) + 7vh);
  }

  .hero-name {
    font-size: clamp(2.8rem, 13.4vw, 6rem);
  }

  /* no room under the moon here: the note sits on the ledge instead */
  .moon-note {
    left: var(--gutter);
    top: auto;
    bottom: 14px;
    transform: none;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    max-width: 46%;
    white-space: normal;
    text-align: left;
  }
}

@media (max-width: 620px) {
  .circle,
  .role {
    grid-template-columns: 54px minmax(0, 1fr);
    column-gap: 14px;
  }

  .logo {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    padding: 8px;
  }

  .logo-nasa {
    padding: 2px;
  }

  .circle-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .print {
    order: 3;
    float: none;
    width: min(100%, 210px);
    margin: 18px 0 4px;
  }

  .nav-name {
    display: none;
  }

  .span-label {
    font-size: .7rem;
  }

  .role-line time {
    flex-basis: 100%;
  }

  .contact-links a {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .contact-links .k {
    display: none;
  }

  .btn {
    padding-inline: .95em 1.1em;
  }
}

/* short, wide windows */
@media (max-height: 560px) and (min-aspect-ratio: 92/100) {
  .hero-name {
    font-size: clamp(2.4rem, 12vh, 5rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
}

@media print {
  .nav,
  .felis,
  .hero-sky,
  .moon-note,
  .cat3d {
    display: none;
  }

  .hero {
    min-height: 0;
    padding: 0 0 2rem;
    margin: 0;
  }

  .js .reveal,
  .js .hero-name .line > span,
  .js .hero-role,
  .js .hero-links {
    opacity: 1 !important;
    transform: none !important;
  }
}
