@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/fraunces-600.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/fonts/outfit.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/plexmono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "IBM Plex Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/plexmono-500.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@view-transition { navigation: auto; }

:root {
  --bg: #0b0a09;
  --bg-elev: #161310;
  --ink: #f4efe6;
  --muted: #a39a8c;
  --faint: #969086;
  --line: rgba(244, 239, 230, 0.11);
  --line-strong: rgba(244, 239, 230, 0.2);
  --accent: #e2a36a;
  --accent-dim: rgba(226, 163, 106, 0.14);
  --display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", ui-monospace, monospace;
  --max: 1180px;
  /* one rule, held everywhere: hairline borders, square edges, mono chrome */
  --edge: 2px;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
  background: var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, a, input { font: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -40px;
  z-index: 30;
  padding: 8px 12px;
  background: var(--accent);
  color: #1a140e;
  border-radius: var(--edge);
}
.skip:focus { top: 16px; }

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 40;
  pointer-events: none;
  background: transparent;
  transform: scaleX(0);
  transform-origin: left center;
  background-color: var(--accent);
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.wash {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(1100px 640px at 6% -12%, rgba(226, 163, 106, 0.28), transparent 58%),
    radial-gradient(800px 520px at 92% 8%, rgba(120, 72, 40, 0.22), transparent 52%),
    radial-gradient(720px 480px at 70% 115%, rgba(40, 48, 52, 0.4), transparent 55%);
  animation: washDrift 28s ease-in-out infinite alternate;
}

.dust {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.site-nav,
main,
.site-foot {
  position: relative;
  z-index: 1;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 12;
  backdrop-filter: blur(18px) saturate(140%);
  background: rgba(11, 10, 9, 0.62);
  border-bottom: 1px solid var(--line);
}

.nav-inner,
main,
.site-foot {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}

.mark {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-nav nav {
  display: flex;
  gap: 26px;
}

.site-nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.site-nav nav a:hover,
.site-nav nav a:focus-visible,
.site-nav nav a[aria-current="page"],
.site-nav nav a.is-active { color: var(--ink); }

main { padding-bottom: 88px; }

.kicker {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.doorway {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 28px;
  padding: 40px 0 56px;
  scroll-margin-top: 64px;
}

.doorway__head { max-width: 46rem; }

.doorway h1 {
  margin: 0;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(3rem, 8vw, 5.4rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.doorway .kicker,
.doorway h1,
.doorway .lede,
.doorway .chat-shell,
.doorway .now {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.doorway h1 { animation-delay: 0.06s; }
.doorway .lede { animation-delay: 0.14s; }
.doorway .chat-shell { animation-delay: 0.22s; }
.doorway .now { animation-delay: 0.34s; }

.doorway .lede { margin-top: 20px; }

.doorway .now {
  margin: 0;
  text-align: right;
}

.lede {
  max-width: 36rem;
  margin: 32px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.42rem);
  font-weight: 300;
  line-height: 1.45;
  color: #ddd6c8;
}

.now {
  margin: 18px 0 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border: 1px solid var(--accent);
  border-radius: var(--edge);
  text-decoration: none;
  background: transparent;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent);
  color: #1a140e;
}

.btn--ghost {
  border-color: var(--line-strong);
  color: var(--muted);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.section-head { margin-bottom: 8px; }

.section-head h2 {
  margin: 0 0 28px;
  font-family: var(--display);
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.work {
  padding: 84px 0 24px;
  scroll-margin-top: 72px;
}

.work-index {
  border-top: 1px solid var(--line);
}

.work-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 20px 28px;
  align-items: baseline;
  padding: 28px 8px;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease, padding-left 0.2s ease;
}

.work-row:hover,
.work-row:focus-visible {
  background: var(--accent-dim);
  padding-left: 16px;
}

.work-num {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--accent);
}

.work-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.work-body p {
  margin: 8px 0 0;
  max-width: 38rem;
  color: var(--muted);
}

.work-go {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--faint);
  white-space: nowrap;
}

.work-row:hover .work-go { color: var(--accent); }

.live {
  padding: 84px 0 24px;
  scroll-margin-top: 72px;
}

.live .lede {
  margin: 0 0 28px;
  max-width: 38rem;
}

.stream {
  border: 1px solid var(--line-strong);
  border-radius: var(--edge);
  overflow: hidden;
  background: #000;
}

.stream__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.stream__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.stream__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px 16px;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: rgba(22, 19, 16, 0.55);
}

.stream__meta p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.stream__meta a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-decoration: none;
}

.stream__meta a:hover,
.stream__meta a:focus-visible {
  border-bottom: 1px solid var(--accent);
}

.chat-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--edge);
  background: rgba(22, 19, 16, 0.55);
}

.chat-shell--breaking { pointer-events: none; }
.chat-shell--sleep .chat-layout { opacity: 0; }

.chat-shell__shards {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(8, 1fr);
  pointer-events: none;
  z-index: 3;
}

.chat-shell__shard {
  border: 1px solid rgba(226, 163, 106, 0.2);
  background: rgba(12, 10, 8, 0.4);
  animation: shardFall var(--dur, 1.5s) ease-in forwards;
  opacity: 0;
}

.chat-layout {
  display: flex;
  flex-direction: column;
  min-height: 540px;
  transition: opacity 0.35s ease;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.chat-window {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 540px;
  background: rgba(244, 239, 230, 0.03);
}

.chat-presence {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--line);
}

.chat-presence img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  object-position: 50% 16%;
  border-radius: var(--edge);
  border: 1px solid var(--line-strong);
  filter: saturate(0.9) contrast(1.05);
  flex: none;
}

.chat-presence p { margin: 0; }

.chat-presence__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-presence__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(226, 163, 106, 0.6);
  animation: presencePulse 2.4s ease-out infinite;
}

@keyframes presencePulse {
  0% { box-shadow: 0 0 0 0 rgba(226, 163, 106, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(226, 163, 106, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 163, 106, 0); }
}

.chat-log {
  flex: 1;
  max-height: 420px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 28px 12px;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 28px 12px;
  min-height: 44px;
}

.chat-chip {
  padding: 8px 12px;
  font-size: 0.86rem;
  line-height: 1.3;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--edge);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.chat-chip:hover,
.chat-chip:focus-visible {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.chat-chip:disabled { opacity: 0.4; cursor: default; }

.chat-form {
  display: flex;
  gap: 10px;
  padding: 14px 28px 18px;
  border-top: 1px solid var(--line);
}

.chat-form__input {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: rgba(244, 239, 230, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: var(--edge);
  transition: border-color 0.2s ease;
}

.chat-form__input::placeholder { color: var(--muted); }

.chat-form__input:focus-visible {
  outline: none;
  border-color: var(--accent);
}

.chat-form__send {
  flex: none;
  padding: 10px 18px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--edge);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.chat-form__send:hover,
.chat-form__send:focus-visible {
  background: var(--accent-dim);
  border-color: var(--accent);
}

.chat-form__input:disabled,
.chat-form__send:disabled { opacity: 0.45; cursor: default; }

.message {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-width: 88%;
}
.message--ai { align-items: flex-start; }
.message--user {
  align-items: flex-end;
  margin-left: auto;
}

.message__who {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}

.message__bubble {
  padding: 14px 16px;
  border-radius: var(--edge);
  background: rgba(244, 239, 230, 0.05);
  border: 1px solid var(--line);
  border-left: 1px solid var(--accent);
  font-size: 0.98rem;
  line-height: 1.55;
}

.message--user .message__bubble {
  background: transparent;
  border: 1px solid var(--line);
  border-right: 1px solid var(--line-strong);
  border-left: 0;
  color: var(--muted);
}

.message__bubble p { margin: 0 0 8px; }
.message__bubble p:last-child { margin-bottom: 0; }

.message__link {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-dim);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.message__link:hover,
.message__link:focus-visible { border-bottom-color: var(--accent); }

.message--typing .message__bubble {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 44px;
}

.message--typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1s ease-in-out infinite;
}

.message--typing span:nth-child(2) { animation-delay: 0.15s; }
.message--typing span:nth-child(3) { animation-delay: 0.3s; }

.message--writing .message__bubble p:last-of-type::after {
  content: "▍";
  margin-left: 2px;
  color: var(--accent);
  animation: caretBlink 0.9s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.essay {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 28px 72px;
}

.essay-hero { margin-bottom: 12px; }

.essay h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.essay .lede { margin-top: 22px; }

.essay h2 {
  margin: 2.8em 0 0.7em;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.essay section {
  padding-top: 4px;
  border-top: 1px solid var(--line);
  margin-top: 44px;
}

.essay section:first-of-type { margin-top: 52px; }

.essay p {
  color: #ddd6c8;
  font-size: 1.02rem;
  line-height: 1.7;
  margin: 0 0 1.15em;
}

.essay-out {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--muted) !important;
}

.essay-out a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.essay-out a:hover { text-decoration-thickness: 2px; }

.site-foot {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 48px;
  border-top: 1px solid var(--line);
}

.elsewhere {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 22px;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.elsewhere__label {
  color: var(--faint);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.elsewhere a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.elsewhere a:hover,
.elsewhere a:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.foot-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

#hashtag {
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  cursor: pointer;
}

#hashtag:hover,
#hashtag:focus-visible { color: var(--accent); }

.foot-note {
  margin: 0;
  color: var(--faint);
  font-size: 0.85rem;
}

.foot-note a {
  color: inherit;
  text-decoration: none;
}

.foot-note a:hover,
.foot-note a:focus-visible { color: var(--accent); }

.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.legal h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: -0.03em;
}

.legal .lede,
.legal .meta { color: var(--muted); }

.key-block {
  margin: 36px 0;
  padding: 20px;
  background: rgba(22, 19, 16, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--edge);
}

.key-block header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.key-block h2 {
  min-width: 0;
  flex: 1 1 200px;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.copy-key {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--accent);
  border-radius: var(--edge);
  padding: 6px 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.copy-key:hover,
.copy-key:focus-visible { border-color: var(--accent); }

.key-block pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.55;
  color: #ddd6c8;
}

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.back-link:hover { color: var(--accent); }

.resume {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}

.resume-hero { margin-bottom: 20px; }

.resume h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.resume-contact {
  margin: 16px 0 24px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.resume-contact a { text-decoration: none; }
.resume-contact a:hover { color: var(--accent); }

.resume h2 {
  margin: 2.6em 0 0.75em;
  font-family: var(--display);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
}

.resume .label { color: var(--ink); font-weight: 600; }
.resume p,
.resume li { color: #ddd6c8; }
.resume ul { margin: 8px 0 0; padding-left: 1.15em; }
.resume li { margin: 0.45em 0; }

.role {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.role-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.role-line h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 500;
}

.date {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  white-space: nowrap;
}

.role-place {
  margin: 4px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.education-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.education-line p { margin: 0; }

.sub {
  margin: 6px 0 16px;
  color: var(--muted);
}

@keyframes washDrift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-2%, 1.5%, 0) scale(1.04); }
}

@keyframes shardFall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); opacity: 0; }
  10% { opacity: 1; }
  100% { transform: translate3d(var(--tx, 0), var(--ty, 120vh), 0) rotate(var(--rot, 15deg)); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { opacity: 0.25; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 860px) {
  .nav-inner, main, .site-foot, .resume, .essay { padding-left: 20px; padding-right: 20px; }

  .site-nav nav { gap: 18px; }
  .site-nav nav a { font-size: 0.86rem; }

  .doorway { min-height: 0; padding-top: 36px; }
  .doorway .now { text-align: left; }

  .role-line,
  .education-line { flex-direction: column; gap: 4px; }

  .chat-layout,
  .chat-window { min-height: 0; }

  .chat-log { max-height: 340px; padding: 20px 18px 8px; }

  .chat-chips { padding: 4px 18px 12px; }

  .chat-form { padding: 12px 18px 16px; }

  .chat-presence { padding: 14px 18px; }

  .work-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .work-go {
    grid-column: 2;
    margin-top: -12px;
  }

  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (max-width: 480px) {
  .nav-inner {
    height: auto;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .site-nav nav {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .site-nav nav a { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wash,
  .chat-shell__shard,
  .message--typing span,
  .chat-presence__dot,
  .message--writing .message__bubble p:last-of-type::after,
  .doorway .kicker,
  .doorway h1,
  .doorway .lede,
  .doorway .chat-shell,
  .doorway .now { animation: none; }
  .work-row, .elsewhere a, .chat-chip, .btn { transition: none; }
  .progress { display: none; }
  @view-transition { navigation: none; }
}

@media print {
  .atmosphere,
  .site-nav,
  .site-foot,
  .back-link,
  .dust,
  .progress,
  .btn,
  .stream { display: none !important; }
  html, body { background: #fff !important; color: #111 !important; }
  .essay,
  .essay p,
  .essay h1,
  .essay h2,
  .essay .lede,
  .resume,
  .resume p,
  .resume li,
  .resume h1,
  .resume h2,
  .resume h3,
  .resume .label,
  .resume-contact,
  .role-place,
  .sub { color: #111 !important; }
  .date { color: #444 !important; }
  .role { border-color: #ccc !important; }
  a { color: #111 !important; text-decoration: none; }
}
