/* Scenes rolled by the dice (see themes.js). The default "paper" scene is the inline style in index.html. */

/* ---------- Typefaces ---------- */
html[data-type="georgia"]    { --font-body: Georgia, 'Times New Roman', serif; --font-display: Georgia, 'Times New Roman', serif; }
html[data-type="garamond"]   { --font-body: 'EB Garamond', Garamond, Georgia, serif; --font-display: 'EB Garamond', Garamond, Georgia, serif; }
html[data-type="mono"]       { --font-body: 'IBM Plex Mono', 'SF Mono', Menlo, monospace; --font-display: 'IBM Plex Mono', 'SF Mono', Menlo, monospace; }
html[data-type="groovy"]     { --font-body: 'Jost', Futura, 'Avenir Next', sans-serif; --font-display: 'Righteous', 'Jost', Futura, sans-serif; }
html[data-type="gallery"]    { --font-body: 'Syne', 'Helvetica Neue', Arial, sans-serif; --font-display: 'Syne', 'Helvetica Neue', Arial, sans-serif; }
html[data-type="instrument"] { --font-body: Georgia, 'Times New Roman', serif; --font-display: 'Instrument Serif', Georgia, serif; }
html[data-type="cormorant"]  { --font-body: 'EB Garamond', Garamond, Georgia, serif; --font-display: 'Cormorant Garamond', Garamond, Georgia, serif; }
html[data-type="terminal"]   { --font-body: 'Monaspace Neon', 'SF Mono', Menlo, Consolas, monospace; --font-display: 'Monaspace Neon', 'SF Mono', Menlo, Consolas, monospace; }
html[data-type="memphis"]    { --font-body: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; --font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; }
html[data-type="koons"]      { --font-body: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif; --font-display: 'Bagel Fat One', 'Arial Rounded MT Bold', sans-serif; }
html[data-type="claude"]     { --font-body: 'Source Serif 4', Georgia, serif; --font-display: 'Source Serif 4', Georgia, serif; }

html[data-type="georgia"] h1 { font-size: 50px; letter-spacing: -0.02em; }

html[data-type="garamond"] h1 { font-size: 58px; letter-spacing: -0.01em; }
html[data-type="garamond"] h2 { font-size: 27px; }
html[data-type="garamond"] .bio { font-size: 18px; }

html[data-type="mono"] h1 { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; }
html[data-type="mono"] h2 { font-size: 17px; font-weight: 600; font-style: normal; }
html[data-type="mono"] .bio { font-size: 15px; line-height: 1.7; }
html[data-type="mono"] .joy { font-size: 14px; }
html[data-type="mono"] .section { font-size: 13px; }
html[data-type="mono"] .desc { font-size: 12.5px; }

html[data-type="groovy"] h1 { font-size: 58px; letter-spacing: 0; line-height: 1; }
html[data-type="groovy"] h2 { font-size: 23px; font-style: normal; }
html[data-type="groovy"] .bio { font-size: 18px; }

html[data-type="gallery"] h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.035em; }
html[data-type="gallery"] h2 { font-size: 13px; font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: 0.12em; }
html[data-type="gallery"] .subtitle,
html[data-type="gallery"] footer { font-style: normal; }

html[data-type="instrument"] h1 { font-size: 68px; letter-spacing: -0.02em; line-height: 0.95; }
html[data-type="instrument"] h2 { font-size: 30px; }

html[data-type="cormorant"] h1 { font-size: 62px; font-weight: 600; letter-spacing: -0.01em; }
html[data-type="cormorant"] h2 { font-size: 30px; }
html[data-type="cormorant"] .bio { font-size: 18px; }

@media (max-width: 640px) {
  html[data-type] h1 { font-size: 44px; }
  html[data-type="mono"] h1 { font-size: 32px; }
  html[data-type="gallery"] h1 { font-size: 38px; }
  html[data-type="instrument"] h1,
  html[data-type="cormorant"] h1 { font-size: 50px; }
}

/* ---------- Wall label ---------- */
.label {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  max-width: 250px;
  margin: 0;
  padding: 12px 14px;
  background: #fff;
  color: #1a1a1a;
  font: 11px/1.45 'Helvetica Neue', Helvetica, Arial, sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.14);
}
@media (max-width: 900px) {
  .label {
    position: static;
    max-width: 516px;
    margin: 0 auto 40px;
  }
}
@media (max-width: 640px) {
  .label { margin: 0 24px 32px; }
}

/* ---------- Scene: colour field, after Rothko ---------- */
html[data-bg="color"] { background: var(--bg); }
html[data-bg="color"] body { background: transparent; }
html[data-bg="color"] footer { border-top-color: rgba(0, 0, 0, 0.14); }
html[data-bg="color"] .year,
html[data-bg="color"] footer,
html[data-bg="color"] .joy li::before { color: rgba(26, 26, 26, 0.55); }
html[data-bg="color"] .desc { color: rgba(26, 26, 26, 0.75); }

.field {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  overflow: hidden;
}
html[data-bg="color"] .field { display: block; }
.field .block {
  position: absolute;
  left: 7%;
  right: 7%;
  border-radius: 4px;
  filter: blur(9px);
}
/* Canvas grain */
.field::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Scenes with text straight over a picture: ocean, venus ---------- */
html[data-bg="ocean"] { background: #1d2b33; }
html[data-bg="venus"] { background: #4d5a52; }
html[data-bg="ocean"] body,
html[data-bg="venus"] body { background: transparent; color: #fff; }

/* The picture (and the ocean's poster frame, under its video) */
html[data-bg="ocean"] body::before,
html[data-bg="venus"] body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: 50% 50% / cover no-repeat;
}
html[data-bg="ocean"] body::before { background-image: url("assets/ocean-poster.jpg"); }
html[data-bg="venus"] body::before { background-image: url("assets/venus.jpg"); background-position: 50% 30%; }
@media (max-width: 800px) {
  html[data-bg="venus"] body::before { background-image: url("assets/venus-small.jpg"); }
}

video.ocean {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  opacity: 0;
  transition: opacity 1.2s linear;
}
html[data-bg="ocean"] video.ocean { display: block; }
video.ocean.showing { opacity: 1; }

/* A scrim between the picture and the text */
html[data-bg="ocean"] body::after,
html[data-bg="venus"] body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
html[data-bg="ocean"] body::after { background: linear-gradient(180deg, rgba(4, 18, 22, 0.42), rgba(4, 18, 22, 0.6)); }
html[data-bg="venus"] body::after {
  background: linear-gradient(90deg, rgba(20, 16, 10, 0.24), rgba(20, 16, 10, 0.54) 28%, rgba(20, 16, 10, 0.54) 72%, rgba(20, 16, 10, 0.24));
}

html[data-bg="ocean"] main,
html[data-bg="venus"] main { text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 0 22px rgba(0, 0, 0, 0.3); }
html[data-bg="ocean"] a,
html[data-bg="venus"] a { color: #fff; text-decoration-color: rgba(255, 255, 255, 0.6); }
html[data-bg="ocean"] .dice,
html[data-bg="venus"] .dice { color: #fff; }
html[data-bg="ocean"] .dice:focus-visible,
html[data-bg="venus"] .dice:focus-visible { outline-color: #fff; }
html[data-bg="ocean"] .year,
html[data-bg="venus"] .year,
html[data-bg="ocean"] .desc,
html[data-bg="venus"] .desc,
html[data-bg="ocean"] footer,
html[data-bg="venus"] footer,
html[data-bg="ocean"] .joy li::before,
html[data-bg="venus"] .joy li::before { color: rgba(255, 255, 255, 0.8); }
html[data-bg="ocean"] footer,
html[data-bg="venus"] footer { border-top-color: rgba(255, 255, 255, 0.35); }

/* ---------- Scene: terminal ---------- */
.prompt,
.banner,
.skip-hint { display: none; }
.banner-narrow { display: none; }

html[data-bg="terminal"],
html[data-bg="terminal"] body { background: #0d1117; }
html[data-bg="terminal"] body { color: #e6edf3; }
html[data-bg="terminal"] main { max-width: 680px; padding-top: 40px; }
html[data-bg="terminal"] h1,
html[data-bg="terminal"] h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
html[data-bg="terminal"] .prompt,
html[data-bg="terminal"] .banner { display: block; }
html[data-bg="terminal"] .pending { visibility: hidden; }

.prompt { margin: 0 0 12px; font-size: 14px; white-space: pre-wrap; }
.prompt .ps1 { color: #3fb950; text-shadow: 0 0 8px rgba(63, 185, 80, 0.35); }
.prompt .path { color: #58a6ff; }
.prompt-login { margin-bottom: 18px; color: #7d8590; }
.prompt-top { margin-bottom: 16px; }
.prompt-tail { margin: 28px 0 0; }
.cursor {
  display: inline-block;
  width: 0.6em;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.22em;
  background: #e6edf3;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.banner { margin: 0 0 22px; color: #3fb950; filter: drop-shadow(0 0 10px rgba(63, 185, 80, 0.25)); }
.banner svg { display: block; width: 100%; height: auto; }
.banner.printing svg { animation: print 0.75s steps(36, end) both; }
@keyframes print {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}
@media (max-width: 560px) {
  .banner-wide { display: none; }
  .banner-narrow { display: block; }
}

.skip-hint {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  text-align: center;
  font: 11px/1 'Monaspace Neon', 'SF Mono', Menlo, monospace;
  color: #7d8590;
  pointer-events: none;
}
html.playing[data-bg="terminal"] .skip-hint { display: block; }

html[data-bg="terminal"] a { color: #58a6ff; text-decoration-color: rgba(88, 166, 255, 0.45); }
html[data-bg="terminal"] .subtitle { font-size: 14px; font-style: normal; }
html[data-bg="terminal"] .subtitle a::before { content: "→ "; display: inline-block; white-space: pre; color: #7d8590; }
html[data-bg="terminal"] .dice { color: #e6edf3; }
html[data-bg="terminal"] .dice:focus-visible { outline-color: #e6edf3; }
html[data-bg="terminal"] .bio { font-size: 14px; line-height: 1.7; }
html[data-bg="terminal"] em { font-style: normal; color: #d2a8ff; }
html[data-bg="terminal"] .joy { font-size: 14px; }
html[data-bg="terminal"] .joy li::before { content: "-"; color: #7d8590; }
html[data-bg="terminal"] .section { font-size: 13px; }
html[data-bg="terminal"] .year { font-family: inherit; font-size: 12px; color: #7d8590; padding-top: 1px; }
html[data-bg="terminal"] .desc { font-size: 12.5px; color: #8b949e; }
html[data-bg="terminal"] footer { font-size: 12px; font-style: normal; color: #7d8590; border-top: 1px dashed #30363d; }
html[data-bg="terminal"] footer::before { content: "# "; }

/* ---------- Scene: Memphis ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.memphis {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  overflow: hidden;
}
html[data-bg="memphis"] .memphis { display: block; }
html[data-bg="memphis"] { background: var(--ground, #ffd23f); }
html[data-bg="memphis"] body { background: transparent; }
.memphis .shape { position: absolute; display: block; animation: drift var(--t, 9s) ease-in-out infinite alternate; }
.memphis .shape svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes drift {
  from { transform: translate(0, 0) rotate(var(--r0, 0deg)); }
  to { transform: translate(var(--dx, 0), var(--dy, 0)) rotate(var(--r1, 0deg)); }
}

html[data-bg="memphis"] h1 { font-size: 44px; line-height: 1.3; margin-bottom: 18px; }
html[data-bg="memphis"] h2 { font-size: 24px; font-style: normal; line-height: 1.45; margin-bottom: 16px; }
.word { display: inline-block; white-space: nowrap; }
.cut {
  display: inline-block;
  margin: 0 0.03em 0.08em;
  padding: 0 0.08em;
  border-radius: 2px;
  line-height: 1.15;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
}
html[data-bg="memphis"] .bio,
html[data-bg="memphis"] .joy,
html[data-bg="memphis"] .section {
  padding: 18px 20px;
  background: #fff;
  border: 3px solid #111;
  border-radius: 14px;
  box-shadow: 8px 8px 0 var(--pop, #ff4f9a);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}
html[data-bg="memphis"] .bio:hover,
html[data-bg="memphis"] .joy:hover,
html[data-bg="memphis"] .section:hover { transform: rotate(calc(var(--tilt, 0deg) * -1)) scale(1.02); }
html[data-bg="memphis"] .subtitle a {
  display: inline-block;
  padding: 4px 12px;
  background: #111;
  color: #fff;
  font-style: normal;
  font-weight: 800;
  text-decoration: none;
  transform: rotate(-3deg);
  box-shadow: 4px 4px 0 var(--pop2, #2ec4b6);
}
html[data-bg="memphis"] .dice { color: #111; }
html[data-bg="memphis"] footer { color: #111; font-style: normal; font-weight: 800; border-top: 3px dashed #111; }
html[data-bg="memphis"] .label { border: 3px solid #111; box-shadow: 6px 6px 0 #111; }
@media (max-width: 640px) {
  html[data-bg="memphis"] h1 { font-size: 36px; }
}

/* ---------- Scene: Koons ---------- */
.koons {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: none;
  overflow: hidden;
}
html[data-bg="koons"] .koons { display: block; }
html[data-bg="koons"] { background: #eef0f5; }
html[data-bg="koons"] body { background: transparent; color: #111; }
.koons canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.6s ease-out; }
.koons canvas.ready { opacity: 1; }
.koons-sheen {
  position: absolute;
  inset: -20%;
  background: linear-gradient(115deg, #fff 0%, #c7cbd6 14%, #fff 26%, #9ba1b0 38%, #fff 50%, #d5d8e1 62%, #fff 74%, #aab0bd 88%, #fff 100%);
  background-size: 220% 220%;
  animation: sheen 7s linear infinite;
}
.koons-sheen::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(rgba(255, 120, 200, 0.4), rgba(255, 230, 120, 0.4), rgba(120, 230, 255, 0.4), rgba(200, 140, 255, 0.4), rgba(255, 120, 200, 0.4));
  mix-blend-mode: soft-light;
  animation: spin 18s linear infinite;
}
@keyframes sheen {
  from { background-position: 0% 0%; }
  to { background-position: 100% 100%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.koons-glints { position: absolute; inset: 0; }
.koons-glints i {
  position: absolute;
  display: block;
  opacity: 0;
  background: radial-gradient(circle, #fff 0 30%, rgba(255, 255, 255, 0) 70%);
  clip-path: polygon(50% 0, 57% 43%, 100% 50%, 57% 57%, 50% 100%, 43% 57%, 0 50%, 43% 43%);
  animation: glint 3s ease-in-out infinite;
}
@keyframes glint {
  0%, 100% { opacity: 0; transform: scale(0) rotate(0deg); }
  50% { opacity: 1; transform: scale(1) rotate(45deg); }
}

html[data-bg="koons"] main { text-shadow: 0 0 2px #fff, 0 0 10px #fff, 0 0 18px rgba(255, 255, 255, 0.9); }
/* Puffy chrome lettering with a highlight sweeping across it */
html[data-bg="koons"] h1,
html[data-bg="koons"] h2 {
  display: inline-block;
  color: transparent;
  font-style: normal;
  background-image:
    linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.95) 48%, transparent 60%),
    linear-gradient(180deg, #fff 0%, #eef0f4 30%, #8a90a0 48%, #2d3140 52%, #c9ced9 70%, #fff 100%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-stroke: 1px rgba(40, 44, 56, 0.35);
  text-shadow: none;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.25)) drop-shadow(0 0 12px rgba(255, 255, 255, 0.9));
  animation: chrome-sweep 3.2s ease-in-out infinite;
}
html[data-bg="koons"] h1 { font-size: 66px; line-height: 1.05; letter-spacing: 0.01em; }
html[data-bg="koons"] h2 { font-size: 30px; }
@keyframes chrome-sweep {
  from { background-position: 180% 0, 0 0; }
  to { background-position: -80% 0, 0 0; }
}
html[data-bg="koons"] a { color: #111; text-decoration-color: var(--koons, #ff1f9d); text-decoration-thickness: 2px; }
html[data-bg="koons"] .dice { color: #111; }
html[data-bg="koons"] .year { color: #3a3d46; }
html[data-bg="koons"] .desc { color: #2a2c33; }
html[data-bg="koons"] footer { color: #3a3d46; border-top-color: rgba(0, 0, 0, 0.2); }
@media (max-width: 640px) {
  html[data-bg="koons"] h1 { font-size: 46px; }
}

/* ---------- Scene: chat, after the Claude desktop app ---------- */
.chat-ui,
.chat-user,
.chat-spark,
.chat-actions { display: none; }
html[data-bg="claude"] .chat-ui,
html[data-bg="claude"] .chat-spark { display: block; }
html[data-bg="claude"] .pending { visibility: hidden; }
html[data-bg="claude"] { background: #faf9f5; }
html[data-bg="claude"] body { padding-left: 260px; background: #faf9f5; color: #141413; }
html[data-bg="claude"] main { max-width: 740px; padding: 84px 28px 220px; }
.chat-ui { font: 14px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; color: #141413; }
.chat-ui svg,
.chat-actions svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-side {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 4;
  width: 260px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #f5f4ee;
  border-right: 0.5px solid rgba(31, 30, 29, 0.12);
}
.chat-brand { display: flex; align-items: center; gap: 8px; padding: 4px 8px 16px; font: 600 20px/1 'Source Serif 4', Georgia, serif; }
.chat-ui .chat-brand svg,
.chat-spark svg { width: 22px; height: 22px; fill: #d97757; stroke: none; }
.chat-new { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-weight: 500; color: #3d3d3a; }
.chat-ui .chat-new svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: #d97757; color: #fff; stroke-width: 2; }
.chat-group { margin: 18px 10px 6px; font-size: 12px; color: #73726c; }
.chat-list { margin: 0; padding: 0; list-style: none; }
.chat-list li { padding: 7px 10px; border-radius: 8px; color: #3d3d3a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list li.active { background: #ebe9e0; color: #141413; }
.chat-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 12px 8px 4px; border-top: 0.5px solid rgba(31, 30, 29, 0.12); }
.chat-me b { display: block; font-weight: 500; }
.chat-me small { font-size: 12px; color: #73726c; }
.chat-avatar {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #3d3d3a;
  color: #fff;
  font: 600 13px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.chat-head {
  position: fixed;
  top: 0;
  left: 260px;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 18px;
  background: rgba(250, 249, 245, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.chat-burger { display: none; }
.chat-title { font-weight: 500; }
.chat-share { margin-left: auto; padding: 6px 12px; border: 0.5px solid rgba(31, 30, 29, 0.2); border-radius: 8px; font-size: 13px; }
.chat-composer {
  position: fixed;
  left: 260px;
  right: 0;
  bottom: 0;
  z-index: 3;
  padding: 24px 20px 10px;
  background: linear-gradient(rgba(250, 249, 245, 0), #faf9f5 30%);
}
.chat-box {
  max-width: 700px;
  margin: 0 auto;
  padding: 14px 14px 10px;
  border: 0.5px solid rgba(31, 30, 29, 0.15);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.chat-placeholder { margin: 2px 4px 14px; font-size: 15px; color: #9b9a95; }
.chat-tools { display: flex; align-items: center; gap: 8px; }
.chat-tool { display: inline-flex; padding: 6px; border: 0.5px solid rgba(31, 30, 29, 0.15); border-radius: 8px; color: #3d3d3a; }
.chat-model { margin-left: auto; font-size: 13px; color: #3d3d3a; }
.chat-model i { font-style: normal; color: #73726c; }
.chat-send { display: inline-flex; padding: 6px; border-radius: 8px; background: #d97757; color: #fff; opacity: 0.5; }
.chat-fine { margin: 8px 0 0; font-size: 11px; text-align: center; color: #9b9a95; }

/* The conversation */
html[data-bg="claude"] .chat-user {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: fit-content;
  max-width: 90%;
  margin: 0 0 30px;
  padding: 10px 16px 10px 10px;
  border-radius: 14px;
  background: #f0eee6;
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}
.chat-user p { margin: 3px 0 0; }
html[data-bg="claude"] .chat-spark { margin: 0 0 12px; }
.chat-spark svg { display: block; width: 26px; height: 26px; }
.chat-spark.thinking svg { animation: chat-think 1.4s ease-in-out infinite; }
@keyframes chat-think {
  0%, 100% { transform: rotate(0) scale(1); }
  50% { transform: rotate(90deg) scale(0.82); }
}
html[data-bg="claude"] h1 { margin: 0 0 12px; font-size: 26px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
html[data-bg="claude"] h2 { margin: 0 0 10px; font-size: 19px; font-weight: 600; font-style: normal; }
html[data-bg="claude"] .bio { margin-bottom: 26px; font-size: 16.5px; line-height: 1.65; }
html[data-bg="claude"] .joy { margin-bottom: 26px; font-size: 16px; line-height: 1.65; }
html[data-bg="claude"] .joy li::before { content: "•"; color: #141413; }
html[data-bg="claude"] .section { margin-bottom: 26px; font-size: 15px; }
html[data-bg="claude"] .year { color: #73726c; }
html[data-bg="claude"] .desc { color: #3d3d3a; }
html[data-bg="claude"] a { color: #141413; text-decoration-color: rgba(20, 20, 19, 0.4); }
html[data-bg="claude"] footer { font: 12px/1.4 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #73726c; border-top: 0; }
html[data-bg="claude"] .dice { color: #3d3d3a; }
html[data-bg="claude"] .chat-actions { display: flex; align-items: center; gap: 2px; margin-top: 14px; color: #73726c; }
.chat-actions span { display: inline-flex; padding: 6px; border-radius: 6px; }
.chat-actions svg { width: 16px; height: 16px; }
.chat-actions .flip svg { transform: scale(1, -1); }
.chat-actions em { margin-left: 10px; font: 12px -apple-system, BlinkMacSystemFont, system-ui, sans-serif; font-style: normal; color: #9b9a95; }
/* The CV as an attached file */
html[data-bg="claude"] .subtitle { display: flex; align-items: center; gap: 12px; margin: 0 0 24px; font-style: normal; }
html[data-bg="claude"] .subtitle a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 10px 10px;
  border: 0.5px solid rgba(31, 30, 29, 0.15);
  border-radius: 12px;
  background: #fff;
  color: #141413;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
html[data-bg="claude"] .subtitle a::before {
  content: "";
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #f0eee6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%2373726c' stroke-width='1.4' stroke-linejoin='round'%3E%3Cpath d='M6 3h6l3 3v11H6z'/%3E%3Cpath d='M12 3v3h3M8 10h5M8 13h5'/%3E%3C/svg%3E") center / 20px no-repeat;
}
.chat-file b { display: block; font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; }
.chat-file small { display: block; font: 12px/1.3 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #73726c; }
html[data-bg="claude"] .label { top: 64px; bottom: auto; }
@media (max-width: 900px) {
  html[data-bg="claude"] .label { margin-bottom: 160px; }
}
@media (max-width: 760px) {
  html[data-bg="claude"] body { padding-left: 0; }
  .chat-side { display: none; }
  .chat-head,
  .chat-composer { left: 0; }
  .chat-burger { display: inline-flex; }
  html[data-bg="claude"] main { padding: 72px 18px 200px; }
}

/* ---------- Fake browser for the CV (terminal scene) ---------- */
.browser {
  width: min(1040px, 92vw);
  height: min(88vh, 1200px);
  padding: 0;
  border: 1px solid #30363d;
  border-radius: 10px;
  background: #161b22;
  color: #e6edf3;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.browser[open] { display: flex; flex-direction: column; }
.browser::backdrop { background: rgba(1, 4, 9, 0.72); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #30363d;
  font: 12px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.light {
  flex: none;
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
}
.light.close { background: #ff5f57; cursor: pointer; }
.light.min { background: #febc2e; }
.light.max { background: #28c840; }
.address {
  flex: 1;
  margin: 0 12px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #0d1117;
  color: #e6edf3;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.address svg { width: 10px; height: 10px; margin-right: 4px; vertical-align: -1px; fill: #7d8590; }
.browser-open { flex: none; color: #7d8590; text-decoration: none; }
.browser-open:hover { color: #e6edf3; }
.browser iframe { flex: 1; width: 100%; border: 0; background: #525659; }

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
  .banner.printing svg { animation: none; }
  .memphis .shape,
  .koons-sheen,
  .koons-sheen::after,
  .koons-glints i,
  html[data-bg="koons"] h1,
  html[data-bg="koons"] h2 { animation: none; }
  video.ocean { transition: none; }
  .chat-spark.thinking svg { animation: none; }
}
