@font-face {
  font-family: 'Bodoni Moda';
  src: url('/public/bodoni-moda.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
}
:root {
  --paper: #f1efe7;
  --ink: #262922;
  --muted: #66685d;
  --line: #cccec1;
  --orange: #f45c35;
  --blue: #275fd3;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: url('/public/grain.svg');
  opacity: .18;
  pointer-events: none;
  z-index: 9;
}
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: 3px solid #394bb3; outline-offset: 7px; }
[hidden] { display: none !important; }
.page-shell { max-width: 1800px; min-height: 100svh; margin: auto; padding: 0 48px; display: flex; flex-direction: column; }
.topbar { min-height: 100px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.wordmark { display: flex; align-items: center; text-decoration: none; font-size: 16px; font-weight: 800; letter-spacing: -.6px; min-height: 44px; }
.brand-icon { width: 31px; height: 31px; border: 1.5px solid var(--ink); margin-right: 11px; display: grid; place-items: center; font-size: 26px; line-height: 1; }
.wordmark-period { color: var(--orange); }
nav { display: flex; align-items: center; gap: 23px; }
.text-control { background: none; border: 0; min-height: 44px; padding: 10px 0; font-size: 12px; }
.text-control:hover { text-decoration: underline; text-underline-offset: 4px; }
#sound-icon { font-size: 18px; vertical-align: -1px; margin-right: 5px; }
#sound-label { color: var(--muted); }
.divider { width: 1px; height: 16px; background: var(--line); }
main { flex: 1; display: flex; flex-direction: column; }
.experience { --voice-gap: 48px; flex: 1; min-height: 560px; padding: 65px 0 30px; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.dialogue-space { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 270px; }
.dialogue { width: min(850px, 100%); text-align: center; padding: 10px 0; }
.voice { min-width: 0; }
.dialogue:not(.has-guest) .voice { max-width: 750px; margin-inline: auto; }
.dialogue.has-guest { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--voice-gap); min-height: 270px; align-items: end; }
.phrase { margin: 0; font: 400 clamp(28px, 3.3vw, 48px)/1.22 var(--serif); letter-spacing: -1.5px; overflow-wrap: break-word; text-wrap: balance; }
.phrase + .phrase { margin-top: 15px; }
.phrase.pending { visibility: hidden; }
.phrase.said { color: #64665b; }
.phrase[data-weight='big'] { font-size: clamp(54px, 6.4vw, 92px); letter-spacing: -3.5px; line-height: 1.05; }
.phrase[data-weight='loud'] { font-size: clamp(54px, 6vw, 84px); letter-spacing: -2px; }
.phrase[data-weight='small'] { font-size: clamp(22px, 2.5vw, 32px); letter-spacing: -.6px; }
.phrase[data-speaker='blue'] { font-family: 'Avenir Next', Avenir, 'Trebuchet MS', sans-serif; font-size: clamp(28px, 3.1vw, 44px); font-weight: 500; letter-spacing: -1px; line-height: 1.22; }
.phrase[data-speaker='bodoni'] { font-family: 'Bodoni Moda', 'Bodoni 72', Didot, serif; font-size: clamp(29px, 3.3vw, 46px); font-weight: 500; letter-spacing: -.9px; line-height: 1.25; font-optical-sizing: auto; }
.phrase[data-speaker='mote'] { font-family: Palatino, 'Palatino Linotype', 'Book Antiqua', serif; font-style: normal; font-size: clamp(26px, 3vw, 40px); letter-spacing: -.7px; line-height: 1.3; }
.cast { position: relative; width: min(850px, 100%); height: 175px; margin-top: 28px; }
.character-slot { position: absolute; top: 25px; left: 50%; display: flex; flex-direction: column; align-items: center; }
.orange-slot { transform: translateX(-50%); transition: left 700ms cubic-bezier(.2,.85,.25,1), opacity 650ms; z-index: 2; }
.cast.has-guest .orange-slot { left: calc(25% - var(--voice-gap) / 4); }
.guest-slot { left: calc(75% + var(--voice-gap) / 4); transform: translateX(-50%); }
.guest-slot.entering { animation: visitor 850ms cubic-bezier(.17,.8,.2,1) both; }
.character { position: relative; border: 0; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; outline-offset: 9px; }
.orange {
  background: linear-gradient(175deg, #ff754b 0%, #f45c35 65%);
  min-width: 260px;
  min-height: 96px;
  padding: 33px 29px 22px;
  gap: 23px;
  border: 1.5px solid #ad3b22;
  border-radius: 17px;
  box-shadow: 0 8px 0 #b63b21, 0 9px 0 1px #902c17, inset 0 2px 0 #ffb38c;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -.6px;
  transition: transform 120ms, box-shadow 120ms, filter 180ms;
}
.orange:hover { filter: brightness(1.04); transform: translateY(-2px); }
.orange:active, .orange.pressing { transform: translateY(7px); box-shadow: 0 1px 0 #b63b21, 0 2px 0 1px #902c17, inset 0 2px 0 #ffb38c; }
.button-arrow { font-size: 25px; font-weight: 400; }
.blue {
  width: 130px;
  height: 124px;
  border-radius: 50%;
  background: radial-gradient(ellipse at 35% 20%, #588cf4 0%, #2764df 58%, #1e4fae 100%);
  border: 2px solid #153d86;
  box-shadow: inset 0 4px 2px #b2ccffb0, inset 0 -5px 9px #163f9466, 0 8px 0 #163d89, 0 10px 0 5px #2d3037, 0 13px 0 7px #161d2b;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  padding: 30px 12px 15px;
  transition: transform 120ms, box-shadow 120ms;
}
.blue:hover { transform: translateY(-2px) rotate(3deg); }
.blue:active, .blue.pressing { transform: translateY(6px); box-shadow: inset 0 4px 2px #b2ccffb0, inset 0 -5px 9px #163f9466, 0 2px 0 #163d89, 0 4px 0 5px #2d3037, 0 7px 0 7px #161d2b; }
/* A lacquered guest with an unnecessarily formal gold edge. */
.bodoni-slot { top: 24px; }
.bodoni-slot.entering { animation-name: procession; animation-duration: 1200ms; }
.bodoni {
  width: 158px;
  min-height: 106px;
  padding: 31px 15px 19px;
  border-radius: 13px;
  border: 1px solid #a3915e;
  background: linear-gradient(160deg, #42423b 0%, #22251f 46%, #151a15 100%);
  color: #f6eed7;
  box-shadow: inset 0 1px 0 #b2a278, inset 0 0 0 4px #262a23, inset 0 0 0 5px #a3915e, 0 8px 0 #11170f, 0 9px 0 1px #98875c;
  font: 500 25px/1.1 'Bodoni Moda', 'Bodoni 72', Didot, serif;
  letter-spacing: .2px;
  transition: transform 180ms, box-shadow 180ms;
}
.bodoni:hover { transform: translateY(-1px); }
.bodoni:active, .bodoni.pressing { transform: translateY(6px); box-shadow: inset 0 1px 0 #b2a278, inset 0 0 0 4px #262a23, inset 0 0 0 5px #a3915e, 0 2px 0 #11170f, 0 3px 0 1px #98875c; }
.bodoni .face { top: 16px; gap: 14px; }
.bodoni .face i { width: 3px; height: 4px; }
.bodoni .face::before { content: ''; position: absolute; top: -4px; right: -2px; width: 8px; border-top: 1px solid currentColor; rotate: -12deg; }
.bodoni .face em { width: 7px; height: 1px; top: 10px; left: calc(50% - 3px); }
.bodoni.talking .face em { animation-duration: 950ms; }
.mote-slot { top: 65px; }
.mote {
  width: 89px;
  min-height: 67px;
  padding: 25px 9px 12px;
  background: radial-gradient(ellipse at 35% 15%, #fffdf4 0%, #ddd7bc 88%);
  border: 1px solid #a49c81;
  border-radius: 49% 44% 38% 47%;
  box-shadow: 0 5px 0 #b0a88d, 0 6px 0 1px #8f876e, inset 0 2px 0 #fffef9;
  font-size: 12px;
  transform: rotate(-6deg);
  transition: transform 140ms, box-shadow 140ms;
}
.mote:hover { transform: rotate(-2deg) translateY(-2px); }
.mote:active, .mote.pressing { transform: rotate(-6deg) translateY(4px); box-shadow: 0 1px 0 #b0a88d, 0 2px 0 1px #8f876e, inset 0 2px 0 #fffef9; }
.face { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; align-items: center; pointer-events: none; }
.face i { width: 4px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.face em { position: absolute; width: 5px; height: 2px; background: currentColor; border-radius: 50%; top: 9px; left: calc(50% - 2px); transition: height 140ms; }
.orange .face { opacity: 0; transition: opacity 300ms; }
.awake .orange .face { opacity: 1; }
.blue .face { top: 29px; gap: 12px; }
.blue .face i { width: 4px; height: 7px; }
.blue .face em { width: 9px; height: 4px; top: 11px; left: calc(50% - 4px); border-radius: 0 0 9px 9px; }
.mote .face { top: 13px; gap: 6px; }
.mote .face i { width: 3px; height: 4px; }
.mote .face em { top: 7px; width: 3px; }
.character.talking .face em { animation: talk 560ms ease-in-out infinite alternate; }
.character-shadow { display: block; height: 16px; width: 83%; background: #45342324; filter: blur(9px); border-radius: 50%; position: absolute; top: calc(100% + 13px); z-index: -1; pointer-events: none; }
.character.holding::after { content: ''; position: absolute; inset: -9px; border: 1px dashed currentColor; border-radius: inherit; animation: hold 1.6s linear; }
.cast.saying-goodbye .character { filter: saturate(.55); }
.cast.gone .character-slot { opacity: 0; pointer-events: none; transform: translateX(-50%) translateY(12px); }
.choice-space { min-height: 56px; display: grid; place-items: center; }
.alternative { border: 0; background: none; font-size: 13px; min-height: 44px; padding: 12px; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #929586; }
.alternative:hover { text-decoration-color: var(--ink); }
.footer { border-top: 1px solid var(--line); min-height: 79px; display: flex; justify-content: space-between; align-items: center; gap: 20px; color: var(--muted); }
.footer > span:first-child { font-size: 9px; letter-spacing: 1.1px; }
.footer > span:last-child { font-size: 12px; }
.footer i { display: inline-block; width: 5px; height: 5px; background: var(--orange); border-radius: 50%; margin: 0 9px 1px 0; }
dialog { width: min(530px, calc(100% - 32px)); padding: 48px 36px 28px; max-height: 85svh; background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
dialog::backdrop { background: #22271e80; backdrop-filter: blur(5px); }
dialog h2 { font: 36px/1.1 var(--serif); letter-spacing: -1.5px; margin: 0 0 24px; }
dialog p { font-size: 14px; line-height: 1.65; }
.close-dialog { position: absolute; top: 8px; right: 8px; font-size: 26px; line-height: 1; width: 44px; height: 44px; background: none; border: 0; }
summary { font-size: 12px; min-height: 44px; padding-top: 14px; cursor: pointer; }
details p { font-size: 12px; }
.setting { display: flex; align-items: center; gap: 10px; font-size: 13px; min-height: 44px; margin-top: 20px; }
.setting input { width: 18px; height: 18px; accent-color: var(--ink); }
.setting-note, dialog .privacy { font-size: 11px; color: var(--muted); }
dialog .colophon { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 25px; font-size: 11px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: 10px; left: 10px; z-index: 25; background: var(--ink); color: white; padding: 15px; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.noscript { position: fixed; inset: 20%; padding: 30px; border: 1px solid; background: var(--paper); z-index: 30; }
@keyframes procession { from { translate: 130px 0; } to { translate: 0 0; } }
@keyframes visitor { from { translate: 180px 0; rotate: 8deg; } to { translate: 0 0; rotate: 0deg; } }
@keyframes talk { from { height: 2px; } to { height: 5px; } }
@keyframes hold { from { scale: 1.05; } to { scale: 1; } }
@media (max-width: 720px) {
  .page-shell { padding: 0 24px; }
  .topbar { min-height: 80px; }
  .wordmark { font-size: 13px; }
  .brand-icon { width: 26px; height: 26px; font-size: 23px; margin-right: 8px; }
  nav { gap: 14px; }
  .text-control { font-size: 11px; }
  #about { font-size: 0; min-width: 32px; }
  #about span { font-size: 19px; display: grid; width: 30px; height: 30px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
  .divider { display: none; }
  .experience { --voice-gap: 22px; min-height: 530px; padding: 38px 0 24px; }
  .dialogue-space { min-height: 255px; }
  .dialogue { padding: 6px 0; }
  .phrase { font-size: clamp(27px, 7.3vw, 38px); letter-spacing: -.9px; }
  .phrase + .phrase { margin-top: 13px; }
  .phrase[data-weight='big'] { font-size: clamp(53px, 15vw, 70px); letter-spacing: -2.7px; }
  .dialogue.has-guest { min-height: 255px; }
  .has-guest .phrase { font-size: clamp(23px, 6.3vw, 29px); letter-spacing: -.65px; }
  .has-guest .phrase[data-weight='big'], .has-guest .phrase[data-weight='loud'] { font-size: clamp(35px, 9vw, 46px); }
  .has-guest .phrase[data-speaker='blue'] { font-size: clamp(22px, 6.1vw, 28px); letter-spacing: -.6px; }
  .has-guest .phrase[data-speaker='bodoni'] { font-size: clamp(23px, 6.5vw, 30px); letter-spacing: -.5px; }
  .bodoni { width: 119px; min-height: 100px; font-size: 22px; }
  .phrase[data-speaker='mote'] { font-size: clamp(23px, 6.1vw, 28px); }
  .cast { height: 163px; margin-top: 25px; }
  .orange { min-width: 240px; min-height: 91px; font-size: 21px; padding-left: 24px; padding-right: 24px; gap: 20px; }
  .has-guest .orange { min-width: 176px; max-width: 190px; font-size: 17px; padding-left: 15px; padding-right: 15px; gap: 12px; }
  .has-guest .button-arrow { display: none; }
  .blue { width: 99px; height: 97px; font-size: 12px; }
  .blue .face { top: 21px; }
  .mote-slot { top: 55px; }
  .mote { width: 78px; min-height: 62px; font-size: 11px; }
  .footer { min-height: 80px; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 20px 0; }
  .footer > span { text-align: center; }
  .footer > span:last-child { font-size: 11px; }
  dialog { padding-left: 25px; padding-right: 25px; }
  dialog h2 { font-size: 32px; }
}
@media (max-width: 360px) {
  .page-shell { padding: 0 18px; }
  .experience { --voice-gap: 16px; }
  .has-guest .orange { min-width: 156px; max-width: 160px; font-size: 16px; }
  .blue { width: 87px; height: 87px; }
  .bodoni { width: 106px; min-height: 94px; font-size: 21px; }
}
@media (max-height: 760px) and (min-width: 721px) {
  .experience { min-height: calc(100svh - 180px); padding: 20px 0; }
  .dialogue-space { min-height: 230px; }
  .cast { margin-top: 14px; height: 153px; }
  .phrase { font-size: clamp(27px, 3vw, 39px); }
  .phrase[data-weight='big'] { font-size: 74px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .character:hover, .character:active, .character.pressing { transform: none; }
}

.brand-group { display:flex; align-items:center; gap:24px; }
.gallery-back { font:11px Arial,sans-serif; color:var(--muted); text-decoration:none; min-height:44px; display:flex; align-items:center; gap:4px; }
.gallery-back:hover { color:var(--ink); text-decoration:underline; text-underline-offset:4px; }
@media(max-width:720px) { .brand-group{gap:12px}.gallery-back{font-size:10px}.gallery-back span{display:none} }
