/* Site stylesheet.
   Layout: a frosted sticky nav, centred headline sections separated by
   white and light-gray bands, and content grouped into large rounded tiles.
   The site is light-only by design. */

:root {
  color-scheme: light;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #86868b;
  --bg: #ffffff;
  --band: #f5f5f7;
  --tile: #f5f5f7;
  --tile-on-band: #ffffff;
  --dark: #000000;
  --on-dark: #f5f5f7;
  --on-dark-2: #a1a1a6;
  --rule: #d2d2d7;
  --link: #0066cc;
  --link-on-dark: #2997ff;
  --button: #0071e3;
  --button-hover: #0077ed;
  --accent: #bf4800;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 52px;
  --wrap: 1080px;
  --prose: 720px;
  --gutter: clamp(20px, 5vw, 44px);
  --radius: 28px;
  --radius-sm: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.47 var(--font);
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, 0.6);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.nav__inner {
  max-width: var(--wrap);
  height: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.nav__brand {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}
.nav__brand:hover { text-decoration: none; }
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  list-style: none;
}
.nav__links a {
  font-size: 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
  opacity: 0.8;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.nav__links a:hover { opacity: 1; text-decoration: none; }
.nav__links a[aria-current="page"] { opacity: 1; font-weight: 600; }
@media (max-width: 420px) {
  .nav__brand { font-size: 17px; }
}

/* ---------- Shared layout pieces ---------- */
.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.band { padding-block: clamp(64px, 10vw, 120px); }
.band--gray { background: var(--band); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }

.eyebrow {
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 600;
  letter-spacing: 0.004em;
  color: var(--ink-2);
}
.headline {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.subhead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.33;
  font-weight: 400;
  letter-spacing: 0.004em;
  color: var(--ink-2);
  text-wrap: balance;
}
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.section-head .subhead { max-width: 34em; }

.more {
  font-size: clamp(17px, 1.9vw, 21px);
  white-space: nowrap;
}
.more::after, .links a::after {
  content: "\203A";
  display: inline-block;
  margin-left: 0.3em;
  transition: transform 0.2s ease;
}
.more:hover::after, .links a:hover::after { transform: translateX(3px); }

.button {
  display: inline-block;
  font-size: 17px;
  line-height: 1.18;
  padding: 12px 22px;
  border-radius: 980px;
  background: var(--button);
  color: #fff;
  transition: background 0.2s ease;
}
.button:hover { background: var(--button-hover); text-decoration: none; }
.button--ghost {
  background: transparent;
  color: var(--link);
  box-shadow: inset 0 0 0 1px var(--link);
}
.button--ghost:hover { background: var(--link); color: #fff; }

/* ---------- Home hero ---------- */
.hero {
  padding-block: clamp(56px, 9vw, 104px) clamp(48px, 7vw, 80px);
  text-align: center;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.hero__title {
  font-size: clamp(48px, 9.5vw, 96px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero__tagline {
  font-size: clamp(24px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  text-wrap: balance;
}
.hero__meta { font-size: clamp(17px, 1.9vw, 21px); color: var(--ink-2); }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 14px;
}
.hero__photo {
  margin-top: clamp(28px, 5vw, 52px);
  width: min(100%, 340px);
  aspect-ratio: 5 / 6;
  object-fit: cover;
  border-radius: var(--radius);
}
/* Split hero: text on the left, a portrait photo on the right that runs to
   the edge of the window and fades into the page instead of sitting in a tile. */
.hero--split {
  position: relative;
  overflow: hidden;
  padding-block: 0;
  text-align: left;
}
.hero--split .hero__inner {
  position: relative;
  align-items: flex-start;
  justify-content: center;
  min-height: clamp(520px, 78vh, 760px);
  padding-block: clamp(48px, 8vw, 96px);
}
.hero--split .hero__inner > * { max-width: min(100%, 34rem); }
.hero--split .hero__title { font-size: clamp(48px, 7.4vw, 88px); }
.hero--split .hero__tagline { font-size: clamp(22px, 2.9vw, 34px); text-wrap: wrap; }
.hero--split .hero__actions { justify-content: flex-start; }
.hero__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(52%, 820px);
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 38%);
  mask-image: linear-gradient(to right, transparent 0%, #000 38%);
}
@media (max-width: 820px) {
  .hero--split { text-align: center; }
  .hero--split .hero__inner {
    align-items: center;
    min-height: 0;
    padding-block: 8px clamp(40px, 8vw, 64px);
  }
  .hero--split .hero__actions { justify-content: center; }
  .hero__media { position: static; width: 100%; aspect-ratio: 4 / 5; max-height: 68vh; }
  .hero__media img {
    object-position: 50% 18%;
    -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
  }
}

/* ---------- Statement (intro text) ---------- */
.statement {
  max-width: 680px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-size: clamp(17px, 1.7vw, 19px);
  line-height: 1.5;
  color: var(--ink);
  text-wrap: pretty;
}
.statement strong { font-weight: 600; }
.statement p + p { color: var(--ink-2); }
.statement p + p strong { color: var(--ink); }

/* ---------- Publication tiles: one horizontal tile per paper ---------- */
.tiles {
  max-width: 920px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.6vw, 16px);
}
.pub {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: clamp(18px, 3vw, 32px);
  padding: clamp(18px, 2.6vw, 28px);
  border-radius: var(--radius);
  background: var(--tile);
  min-width: 0;
}
.band--gray .pub { background: var(--tile-on-band); }
.pub__body {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.pub__venue {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--accent);
}
.pub__title {
  font-size: clamp(18px, 1.9vw, 21px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.008em;
  text-wrap: balance;
}
.pub__title a { color: inherit; }
.pub__authors {
  font-size: 14px;
  line-height: 1.43;
  letter-spacing: -0.016em;
  color: var(--ink-2);
}
.pub__authors strong { color: var(--ink); font-weight: 600; }
.pub__excerpt {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-2);
  text-wrap: pretty;
}
.pub__award {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--ink);
  color: #fff;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: 6px;
  font-size: 15px;
}
.pub__media {
  flex: none;
  width: clamp(120px, 18vw, 176px);
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #000;
}
.pub__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pub:hover .pub__media img { transform: scale(1.04); }
@media (max-width: 560px) {
  .pub { flex-direction: column-reverse; align-items: flex-start; }
  .pub__media { width: 132px; }
}

/* ---------- Split tile (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile);
}
.band--gray .split { background: var(--tile-on-band); }
.split__media { min-height: 520px; position: relative; }
.split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}
.split__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 5vw, 64px);
}
.split__body p { color: var(--ink-2); font-size: clamp(17px, 1.9vw, 21px); line-height: 1.38; }
@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split__media { min-height: 0; aspect-ratio: 4 / 3; }
}

/* ---------- Contact ---------- */
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  text-align: center;
}
.contact__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
  list-style: none;
}
.contact__note { font-size: 14px; color: var(--ink-2); margin-top: 12px; }

/* ---------- Page header (inner pages) ---------- */
.page-head {
  padding-block: clamp(48px, 8vw, 96px) clamp(28px, 4vw, 48px);
  text-align: center;
}
.page-head__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.page-head__title {
  font-size: clamp(40px, 7vw, 80px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
.page-head--article .page-head__title { font-size: clamp(30px, 4.6vw, 52px); max-width: 20em; }
.page-head .subhead { max-width: 36em; }
.page-body { padding-bottom: clamp(64px, 10vw, 120px); }

/* ---------- Prose (markdown content, CV) ---------- */
.prose {
  max-width: var(--prose);
  margin-inline: auto;
  display: flow-root;
}
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2 {
  font-size: clamp(26px, 3.2vw, 34px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-top: 2.2em;
  padding-top: 1.1em;
  border-top: 1px solid var(--rule);
}
.prose > h1:first-child, .prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.prose h3 { font-size: 21px; font-weight: 600; line-height: 1.2; margin-top: 1.8em; }
.prose h4 { font-size: 17px; font-weight: 600; margin-top: 1.6em; }
.prose p, .prose li { text-wrap: pretty; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li > ul, .prose li > ol { margin-top: 0.4em; }
.prose strong { font-weight: 600; }
.prose img { border-radius: var(--radius-sm); margin-inline: auto; }
.prose blockquote {
  padding-left: 1em;
  border-left: 3px solid var(--rule);
  color: var(--ink-2);
}
.prose code {
  font: 0.88em/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  background: var(--band);
  padding: 0.15em 0.4em;
  border-radius: 6px;
}
.prose pre {
  background: var(--band);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose .table-scroll { overflow-x: auto; }

/* CV: sections of entries, each a bold title with gray details */
.prose--cv > ul { list-style: none; padding-left: 0; }
.prose--cv > ul > li { padding-block: 14px; border-bottom: 1px solid var(--band); }
.prose--cv > ul > li + li { margin-top: 0; }
.prose--cv > ul > li:last-child { border-bottom: 0; }
.prose--cv > ul > li > ul {
  list-style: none;
  padding-left: 0;
  font-size: 15px;
  color: var(--ink-2);
}
.prose--cv > ul > li > ul > li + li { margin-top: 0.2em; }
.prose--cv .list__item + .list__item { margin-top: 0; }
.prose--cv .archive__item { padding-block: 14px; border-bottom: 1px solid var(--band); }
.prose--cv .archive__item li { list-style: none; }
.prose--cv .archive__item-title { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0; }
.prose--cv .archive__item-title a { color: var(--ink); }
.prose--cv .archive__item-title a:hover { color: var(--link); text-decoration: none; }
.prose--cv .archive__item-excerpt { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* ---------- Publication detail page ---------- */
.detail {
  max-width: var(--prose);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.detail .links { justify-content: center; font-size: 17px; }
.detail__media {
  width: min(100%, 300px);
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.detail__media img { width: 100%; height: 100%; object-fit: cover; }
.detail__citation {
  width: 100%;
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
  background: var(--band);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
}
.detail__citation b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }

.detail__bibtex {
  width: 100%;
  text-align: left;
  background: var(--band);
  border-radius: var(--radius-sm);
  padding: 14px 22px 18px;
}
.detail__bibtex-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.detail__bibtex-head b { font-weight: 600; }
.detail__bibtex pre {
  margin: 8px 0 0;
  overflow-x: auto;
  font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  letter-spacing: 0;
  color: var(--ink-2);
}
.copy-btn {
  font: inherit;
  font-size: 12px;
  color: var(--link);
  background: transparent;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--link);
  border-radius: 980px;
  padding: 5px 12px;
  cursor: pointer;
}
.copy-btn:hover { background: var(--link); color: #fff; }

/* ---------- Media frame (video embeds) ---------- */
.frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Skate page: photo gallery ---------- */
.gallery { --slide-h: clamp(280px, 58vh, 540px); }
.gallery__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  outline-offset: -3px;
}
.gallery__viewport::-webkit-scrollbar { display: none; }
.gallery__track {
  display: flex;
  align-items: flex-start;
  gap: clamp(12px, 2vw, 24px);
  width: max-content;
  padding: 4px 50vw;
  margin: 0;
  list-style: none;
}
.gallery__slide {
  flex: none;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  cursor: pointer;
  opacity: 0.32;
  transition: opacity 0.5s ease;
}
.gallery__slide.is-active { opacity: 1; cursor: default; }
.gallery__slide figure { display: flex; flex-direction: column; align-items: center; }
.gallery__slide img {
  display: block;
  width: auto;
  height: auto;
  max-height: var(--slide-h);
  max-width: min(84vw, 900px);
  border-radius: var(--radius);
  background: var(--rule);
}
.gallery__slide figcaption {
  max-width: min(84vw, 30em);
  padding-top: 18px;
  text-align: center;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.gallery__slide.is-active figcaption { opacity: 1; transform: none; transition-delay: 0.12s; }
.gallery__slide h3 { font-size: clamp(19px, 2.2vw, 24px); font-weight: 600; line-height: 1.17; }
.gallery__slide p { font-size: 17px; color: var(--ink-2); margin-top: 4px; }
.gallery:not(.is-ready) .gallery__slide { opacity: 1; }
.gallery:not(.is-ready) .gallery__slide figcaption { opacity: 1; transform: none; }

.gallery__controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
  padding-inline: var(--gutter);
}
.gallery__btn {
  flex: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: rgba(0, 0, 0, 0.64);
  background: rgba(210, 210, 215, 0.64);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.gallery__btn:hover { background: rgba(200, 200, 205, 0.9); color: rgba(0, 0, 0, 0.88); }
.gallery__btn:active { transform: scale(0.94); }
.gallery__btn svg { display: block; }
.gallery__btn .icon-play { display: none; }
.gallery__btn.is-paused .icon-play { display: block; }
.gallery__btn.is-paused .icon-pause { display: none; }
.gallery__dots {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding-inline: 12px;
  border-radius: 980px;
  background: rgba(210, 210, 215, 0.64);
}
.gallery__dot {
  width: 20px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.gallery__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 980px;
  background: rgba(0, 0, 0, 0.42);
  transition: width 0.3s ease, background 0.3s ease;
}
.gallery__dot:hover::before { background: rgba(0, 0, 0, 0.64); }
.gallery__dot.is-active { width: 34px; }
.gallery__dot.is-active::before { width: 24px; background: rgba(0, 0, 0, 0.88); }
@media (max-width: 560px) {
  .gallery__dot { width: 14px; }
  .gallery__dot::before { width: 6px; height: 6px; }
  .gallery__dot.is-active { width: 24px; }
  .gallery__dot.is-active::before { width: 16px; }
  .gallery__dots { padding-inline: 8px; }
}

/* ---------- Skate page: reels ---------- */
.reels-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(12px, 2vw, 20px);
}
.reel-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--tile);
  min-width: 0;
}
.reel-item .instagram-media {
  min-width: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}
.center { text-align: center; margin-top: clamp(28px, 4vw, 44px); }

/* ---------- Footer ---------- */
.footer {
  background: var(--band);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.34;
  letter-spacing: -0.01em;
  padding-block: 20px 28px;
}
.footer__inner { display: flex; flex-direction: column; gap: 12px; }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  list-style: none;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.footer__links a { color: #424245; }
.footer__links a:hover { color: var(--ink); }

/* ---------- Older theme layouts (talks, posts, archives) ---------- */
#main {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: clamp(40px, 6vw, 72px) var(--gutter) clamp(64px, 10vw, 120px);
}
#main .sidebar, .breadcrumbs, .page__share, .pagination { display: none; }
#main .page__title {
  font-size: clamp(34px, 5.4vw, 56px);
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin-bottom: 0.6em;
}

/* ---------- Typewriter ---------- */
/* Hidden until the script has set the line up, so the full text never flashes. */
.js [data-typewriter]:not(.tw-ready) { visibility: hidden; }
.tw-rest { visibility: hidden; }
.tw-caret {
  display: inline-block;
  position: relative;
  width: 0;
  height: 1em;
  vertical-align: -0.12em;
}
.tw-caret::after {
  content: "";
  position: absolute;
  left: 0.04em;
  top: 0;
  bottom: 0;
  width: max(2px, 0.055em);
  border-radius: 2px;
  background: var(--button);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.tw-caret.is-on::after { opacity: 1; animation: tw-blink 1.06s steps(1, end) infinite; }
.tw-caret.is-typing::after { animation: none; }
.tw-line { display: block; }
.subhead--lines { display: flex; flex-direction: column; gap: 0.25em; text-wrap: wrap; }
@keyframes tw-blink { 50% { opacity: 0; } }

/* ---------- Motion ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .pub__media img, .gallery__slide, .gallery__slide figcaption, .more::after, .links a::after { transition: none; }
}
@media print {
  .nav, .footer { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
